GPT v105 - added getSlots API on Service

This commit is contained in:
steven-joyce
2018-02-27 13:50:11 +13:00
parent c6614dd157
commit e9cfa5ee4b
2 changed files with 5 additions and 1 deletions
@@ -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.
+3 -1
View File
@@ -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 {