export function clearSlotInfoCache(): void; /** * Returns filter function to match adUnitCode in slot * @param {string} adUnitCode AdUnit code * @return {function} filter function */ export function isSlotMatchingAdUnitCode(adUnitCode: string): Function; /** * @summary Export a k-v pair to GAM */ export function setKeyValue(key: any, value: any): boolean; /** * @summary Uses the adUnit's code in order to find a matching gpt slot object on the page */ export function getGptSlotForAdUnitCode(adUnitCode: any): googletag.Slot; /** * @summary Uses the adUnit's code in order to find a matching gptSlot on the page */ export function getGptSlotInfoForAdUnitCode(adUnitCode: any): any; export function getSignals(fpd: any): { taxonomy: string; values: any; }[]; export function getSegments(fpd: any, sections: any, segtax: any): any; /** * Add an event listener on the given GAM event. * If GPT Pubads isn't defined, window.googletag is set to a new object. * @param {String} event * @param {Function} callback */ export function subscribeToGamEvent(event: string, callback: Function): void; /** * @typedef {Object} Slot * @property {function(String): (String|null)} get * @property {function(): String} getAdUnitPath * @property {function(): String[]} getAttributeKeys * @property {function(): String[]} getCategoryExclusions * @property {function(String): String} getSlotElementId * @property {function(): String[]} getTargeting * @property {function(): String[]} getTargetingKeys * @see {@link https://developers.google.com/publisher-tag/reference#googletag.Slot GPT official docs} */ /** * @typedef {Object} SlotRenderEndedEvent * @property {(String|null)} advertiserId * @property {(String|null)} campaignId * @property {(String[]|null)} companyIds * @property {(Number|null)} creativeId * @property {(Number|null)} creativeTemplateId * @property {(Boolean)} isBackfill * @property {(Boolean)} isEmpty * @property {(Number[]|null)} labelIds * @property {(Number|null)} lineItemId * @property {(String)} serviceName * @property {(string|Number[]|null)} size * @property {(Slot)} slot * @property {(Boolean)} slotContentChanged * @property {(Number|null)} sourceAgnosticCreativeId * @property {(Number|null)} sourceAgnosticLineItemId * @property {(Number[]|null)} yieldGroupIds * @see {@link https://developers.google.com/publisher-tag/reference#googletag.events.SlotRenderEndedEvent GPT official docs} */ /** * @callback SlotRenderEndedEventCallback * @param {SlotRenderEndedEvent} event * @returns {void} */ /** * Add an event listener on the GAM event 'slotRenderEnded'. * @param {SlotRenderEndedEventCallback} callback */ export function subscribeToGamSlotRenderEndedEvent(callback: SlotRenderEndedEventCallback): void; export const taxonomies: string[]; export type Slot = { get: (arg0: string) => (string | null); getAdUnitPath: () => string; getAttributeKeys: () => string[]; getCategoryExclusions: () => string[]; getSlotElementId: (arg0: string) => string; getTargeting: () => string[]; getTargetingKeys: () => string[]; }; export type SlotRenderEndedEvent = { advertiserId: (string | null); campaignId: (string | null); companyIds: (string[] | null); creativeId: (number | null); creativeTemplateId: (number | null); isBackfill: (boolean); isEmpty: (boolean); labelIds: (number[] | null); lineItemId: (number | null); serviceName: (string); size: (string | number[] | null); slot: (Slot); slotContentChanged: (boolean); sourceAgnosticCreativeId: (number | null); sourceAgnosticLineItemId: (number | null); yieldGroupIds: (number[] | null); }; export type SlotRenderEndedEventCallback = (event: SlotRenderEndedEvent) => void;