為協助您遵守美國州級隱私權法律,Google 互動式媒體廣告 SDK 支援使用下列參數,指定 Google 是否必須啟用受限的資料處理 (RDP)。發布商可利用 SDK,在廣告請求層級使用下列參數設定受限的資料處理模式:
當您使用其中一個參數,表示使用者選擇不採用資料共用時,Google 會限制處理使用者 ID 和其他資料 (例如指定客層)。在受限的資料處理模式下,Google 為您提供服務時,只會放送非個人化廣告。
您必須決定受限的資料處理模式如何配合法規遵循計畫,以及何時啟用 RDP。您可以同時使用一或多個選用參數,但 Google 一律會套用最嚴格的處理方式。舉例來說,如果 RDP=1、GPP 字串或 us_privacy 字串指出使用者選擇不採用,Google 廣告放送就會啟用 RDP。
本指南旨在協助發布商瞭解如何為個別廣告請求啟用這些選項。
RDP 信號
如要通知 Google 應使用 Google 信號啟用受限的資料處理模式,請在廣告代碼參數中附加 &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 信號
如要通知 Google 應使用 IAB 信號啟用受限的資料處理模式,請使用廣告代碼參數 gpp={gpp string} 和 gpp_sid={gpp section id}。如要進一步瞭解如何使用 GPP 信號,請參閱「支援 IAB 全球隱私權平台」。當美國全國、加州、科羅拉多州、康乃迪克州、佛羅里達州和維吉尼亞州 GPP 字串符合特定條件時,Google 就會觸發受限的資料處理模式。如要進一步瞭解 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)
}