Add definition for PubAdsService.setRequestNonPersonalizedAds

This commit is contained in:
Joe Porpeglia
2018-06-25 14:27:05 -04:00
parent 64219b1c0d
commit 6a2f2ba7ed
2 changed files with 5 additions and 1 deletions

View File

@@ -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);

View File

@@ -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 <https://github.com/johngeorgewright>
// Steven Joyce <https://github.com/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;