diff --git a/types/doubleclick-gpt/doubleclick-gpt-tests.ts b/types/doubleclick-gpt/doubleclick-gpt-tests.ts index 941ad3c260..5865ed02dd 100644 --- a/types/doubleclick-gpt/doubleclick-gpt-tests.ts +++ b/types/doubleclick-gpt/doubleclick-gpt-tests.ts @@ -435,3 +435,6 @@ googletag.pubads().display("/1234567/science", [300, 250], new HTMLElement()); // A named size can be a string or an array of strings. googletag.pubads().display("/1234567/science/physics", [[300, 250], "fluid"], "div-1"); googletag.pubads().display("/1234567/science/physics", [[300, 250], ["fluid"]], "div-1"); + +// Request non-personalized ads +googletag.pubads().setRequestNonPersonalizedAds(1); diff --git a/types/doubleclick-gpt/index.d.ts b/types/doubleclick-gpt/index.d.ts index 10e20cccd1..545f534e79 100644 --- a/types/doubleclick-gpt/index.d.ts +++ b/types/doubleclick-gpt/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Publisher Tag v172 +// Type definitions for Google Publisher Tag v199 // Project: https://developers.google.com/doubleclick-gpt/reference // Definitions by: John Wright // Steven Joyce @@ -131,6 +131,7 @@ declare namespace googletag { setForceSafeFrame(forceSafeFrame: boolean): PubAdsService; setLocation(latitudeOrAddress: string | number, opt_longitude?: number, opt_radius?: number): PubAdsService; setPublisherProvidedId(ppid: string): PubAdsService; + setRequestNonPersonalizedAds(nonPersonalizedAds: 0 | 1): PubAdsService; setSafeFrameConfig(config: SafeFrameConfig): PubAdsService; setTagForChildDirectedTreatment(value: number): PubAdsService; setTargeting(key: string, value: string | string[]): PubAdsService;