为帮助您遵守美国州级隐私权法,Google 互动式媒体广告 SDK 允许您使用以下参数来指明 Google 是否必须启用受限的数据处理 (RDP)。借助该 SDK,发布商可以利用以下参数在广告请求一级设置 RDP:
如果您使用上述任一参数来表明用户选择不分享数据,Google 会限制对用户标识符和其他数据(例如受众特征定位)的处理。根据 RDP,Google 仅在向您提供服务时投放非个性化广告。
您必须自行决定受限的数据处理如何支持您的合规计划,以及何时启用 RDP。您可以同时使用这些可选参数中的一个或多个,但 Google 始终会应用最严格的处理方式。例如,如果 RDP=1、GPP 字符串或 us_privacy 字符串表明用户选择停用,Google 广告投放会启用 RDP。
本指南旨在帮助发布商了解针对每个广告请求启用这些选项所需的操作步骤。
RDP 信号
要使用 Google 的信号通知 Google 应启用 RDP,请将 &rdp=1 附加到广告代码参数中,如以下示例所示:
Objective-C
- (void)requestStream {
...
IMALiveStreamRequest *request =
[[IMALiveStreamRequest alloc] initWithAssetKey:kAssetKey
adDisplayContainer:adDisplayContainer
videoDisplay:imaVideoDisplay];
request.adTagParameters = @{ @"rdp" : @1};
[self.adsLoader requestStreamWithRequest:request];
}
Swift
func requestStream() {
...
let request = IMALiveStreamRequest(assetKey: ViewController.kAssetKey,
adDisplayContainer: adDisplayContainer,
videoDisplay: imaVideoDisplay);
request?.adTagParameters = ["rdp" : 1];
adsLoader.requestStream(with: request)
}
IAB GPP 信号
要使用 IAB 的信号通知 Google 应启用 RDP,请使用广告代码参数 gpp={gpp string} 和 gpp_sid={gpp section id}。如需详细了解如何使用 GPP 信号,请参阅支持 IAB 的全球隐私保护平台。
当满足美国全国、加利福尼亚州、科罗拉多州、康涅狄格州、佛罗里达州和弗吉尼亚州 GPP 字符串特有的某些条件时,Google 会触发 RDP。
如需详细了解 Global Privacy Protocol 规范,请参阅上文中链接的相关部分。
Objective-C
- (void)requestStream {
...
IMALiveStreamRequest *request =
[[IMALiveStreamRequest alloc] initWithAssetKey:kAssetKey
adDisplayContainer:adDisplayContainer
videoDisplay:imaVideoDisplay];
request.adTagParameters = @{
@"gpp" : @"gpp_string",
@"gpp_sid" : @"gpp_section_id"
};
[self.adsLoader requestStreamWithRequest:request];
}
Swift
func requestStream() {
...
let request = IMALiveStreamRequest(assetKey: ViewController.kAssetKey,
adDisplayContainer: adDisplayContainer,
videoDisplay: imaVideoDisplay);
request?.adTagParameters = [
"gpp" : "gpp_string",
"gpp_sid" : "gpp_section_id"
];
adsLoader.requestStream(with: request)
}