From 2e1dac3d640187f21269699a65b4b8e1bfa7b0b9 Mon Sep 17 00:00:00 2001 From: Krishna Glick Date: Wed, 20 Nov 2019 14:32:38 -0500 Subject: [PATCH] Add definition for setPrivacySetting (#40510) * Add definition for setPrivacySetting The docs for this addition to gpt can be found here: https://support.google.com/admanager/answer/9598414 Unfortunately the official documentation has not caught up, see here: https://developers.google.com/doubleclick-gpt/reference#googletag.PubAdsService There doesn't seem to be anything else it takes besides that, based on the above documentation. * Contribution Addition --- types/doubleclick-gpt/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/doubleclick-gpt/index.d.ts b/types/doubleclick-gpt/index.d.ts index f7e80c1e7c..353f5a3c17 100644 --- a/types/doubleclick-gpt/index.d.ts +++ b/types/doubleclick-gpt/index.d.ts @@ -4,6 +4,7 @@ // Steven Joyce // Joe Flateau // Vanessa Garcia +// Krishna Glick // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -118,6 +119,7 @@ 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 {