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
This commit is contained in:
Krishna Glick
2019-11-20 14:58:21 -08:00
committed by Sheetal Nandi
parent e8eab36fda
commit daa264d814
2 changed files with 6 additions and 1 deletions
@@ -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,
});
+1 -1
View File
@@ -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 {