CCPA 準備

為協助發布商遵守《 加州消費者隱私法 (CCPA)》,Google 互動式媒體廣告 SDK 可讓發布商使用兩個不同的參數,指明 Google 是否應啟用受限的資料處理 (RDP)。SDK 可讓發布商使用下列參數,在廣告請求層級設定 RDP:

使用這些參數時,Google 會限制其使用特定專屬 ID,以及其他為發布商提供服務時處理的資料。

發布商應自行決定該如何運用「受限的資料處理」模式滿足法規遵循計畫,以及啟用時機。您可以同時使用這兩種選用參數,但都會對 Google 的廣告放送情形造成影響。

本指南旨在協助發布商瞭解針對個別廣告請求啟用這些選項的必要步驟。

受限的資料處理信號

如要通知 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 信號

如要通知 Google 應透過 IAB 信號啟用 RDP,請使用廣告代碼參數 us_privacy。確認您使用的字串值符合 IAB 規格

以下程式碼片段示範如何使用 IAB 參數 "1YNN" 建立廣告請求:

Objective-C

- (void)requestStream {
  ...
  IMALiveStreamRequest *request =
      [[IMALiveStreamRequest alloc] initWithAssetKey:kAssetKey
                              adDisplayContainer:adDisplayContainer
                                    videoDisplay:imaVideoDisplay];
  request.adTagParameters = @{ @"us_privacy" : @"1YNN"};
  [self.adsLoader requestStreamWithRequest:request];
}

Swift

func requestStream() {
  ...
  let request = IMALiveStreamRequest(assetKey: ViewController.kAssetKey,
                                     adDisplayContainer: adDisplayContainer,
                                     videoDisplay: imaVideoDisplay);
  request?.adTagParameters = ["us_privacy" : "1YNN"];
  adsLoader.requestStream(with: request)
}