From daa264d8143e01275ff1e4db8e3d2832780f1132 Mon Sep 17 00:00:00 2001 From: Krishna Glick Date: Wed, 20 Nov 2019 17:58:21 -0500 Subject: [PATCH] Update setPrivacySettings place in interface (#40534) * Update setPrivacySettings place in interface I placed this in the wrong spot in the git editor. My bad. * Adding a test for the functionality * newline at end of file --- types/doubleclick-gpt/doubleclick-gpt-tests.ts | 5 +++++ types/doubleclick-gpt/index.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/types/doubleclick-gpt/doubleclick-gpt-tests.ts b/types/doubleclick-gpt/doubleclick-gpt-tests.ts index 7f9d11363c..7a297e3012 100644 --- a/types/doubleclick-gpt/doubleclick-gpt-tests.ts +++ b/types/doubleclick-gpt/doubleclick-gpt-tests.ts @@ -478,3 +478,8 @@ googletag.pubads().display("/1234567/science/physics", [[300, 250], ["fluid"]], // Request non-personalized ads googletag.pubads().setRequestNonPersonalizedAds(1); + +// Set Privact Settings +googletag.pubads().setPrivacySettings({ + restrictDataProcessing: true, +}); diff --git a/types/doubleclick-gpt/index.d.ts b/types/doubleclick-gpt/index.d.ts index 353f5a3c17..3bf798396e 100644 --- a/types/doubleclick-gpt/index.d.ts +++ b/types/doubleclick-gpt/index.d.ts @@ -119,7 +119,6 @@ declare namespace googletag { setForceSafeFrame(forceSafeFrame: boolean): Slot; setSafeFrameConfig(config: SafeFrameConfig): Slot; setTargeting(key: string, value: string | string[]): Slot; - setPrivacySettings(settings: { restrictDataProcessing: boolean }): Slot; } interface PassbackSlot { @@ -168,6 +167,7 @@ declare namespace googletag { setTargeting(key: string, value: string | string[]): PubAdsService; setVideoContent(videoContentId: string, videoCmsId: string): void; updateCorrelator(): PubAdsService; + setPrivacySettings(settings: { restrictDataProcessing: boolean }): Slot; } interface SizeMappingBuilder {