啟用受限的資料處理模式

選取平台: HTML5 Android iOS tvOS Roku

為協助您遵守美國州級隱私權法律,Google Interactive Media Ads SDK 支援使用下列參數,用來指定 Google 是否必須啟用「受限的資料處理 (RDP)」。發布商可透過 SDK,使用下列參數在廣告請求層級設定 RDP:

如果您使用其中一個參數指出使用者選擇不分享資料,Google 就會限制處理使用者 ID 和其他資料,例如指定客層。在「受限的資料處理」模式下,Google 只會在向您提供服務時放送非個人化廣告。

您必須決定受限的資料處理模式如何配合法規遵循計畫,以及何時啟用該模式。您可以同時使用一或多個選用參數,但 Google 一律會套用最嚴格的處理方式。舉例來說,如果 RDP=1、GPP 字串或 us_privacy 字串指出使用者選擇不採用,Google 廣告放送就會啟用受限的資料處理模式。

本指南旨在協助發布商瞭解如何為每個廣告請求啟用這些選項。

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 信號

如要通知 Google 應使用 IAB 的信號啟用 RDP,請使用廣告代碼參數 gpp={gpp string}gpp_sid={gpp section id}。如要進一步瞭解如何使用 GPP 信號,請參閱「支援 IAB 全球隱私權平台」。當符合美國全國、加州、科羅拉多州、康乃狄克州、佛羅里達州和維吉尼亞州 GPP 字串的特定條件時,Google 就會觸發 RDP。 如要瞭解全球隱私權通訊協定規格的詳細資訊,請參閱先前連結文章中的相關章節。

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)
}