mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
GPT v105 - added getSlots API on Service
This commit is contained in:
@@ -224,6 +224,8 @@ googletag.defineSlot("/1234567/news", [160, 600], "div-2").
|
||||
|
||||
googletag.display();
|
||||
|
||||
googletag.pubads().getSlots();
|
||||
|
||||
googletag.pubads().setTagForChildDirectedTreatment(1);
|
||||
|
||||
// Example with a single value for a key.
|
||||
|
||||
Vendored
+3
-1
@@ -1,6 +1,7 @@
|
||||
// Type definitions for Google Publisher Tag v104
|
||||
// Type definitions for Google Publisher Tag v105
|
||||
// Project: https://developers.google.com/doubleclick-gpt/reference
|
||||
// Definitions by: John Wright <https://github.com/johngeorgewright>
|
||||
// Steven Joyce <https://github.com/steven-joyce>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace googletag {
|
||||
@@ -27,6 +28,7 @@ declare namespace googletag {
|
||||
eventType: string,
|
||||
listener: (event: events.ImpressionViewableEvent | events.SlotOnloadEvent | events.SlotRenderEndedEvent | events.slotVisibilityChangedEvent) => void
|
||||
): void;
|
||||
getSlots(): Slot[];
|
||||
}
|
||||
|
||||
export interface CompanionAdsService extends Service {
|
||||
|
||||
Reference in New Issue
Block a user