美國州級隱私權法律

協助發布商遵守 美國州級隱私權法律, Google Mobile Ads SDK 可讓發布商使用兩種參數來 指出 Google 是否應啟用受限的資料處理模式 (RDP)。SDK 為發布商提供 運用下列信號,在廣告請求層級設定受限的資料處理模式:

使用上述任一參數時,Google 會限制該參數的使用方式 識別碼和其他資料。 因此,Google 只會顯示非個人化廣告。這些參數 在 UI 中覆寫 RDP 設定。

「受限的資料處理」模式可以 符合法規遵循計畫和應啟用的時間您可以 雖然兩者的選用參數相同,但請同時使用 影響 Google 廣告放送。

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

受限的資料處理信號

有兩種方法可以通知 Google 應啟用 RDP 如何利用 Google 的 RDP 信號

RDP 的 Extras 參數

如果使用 extras 參數選項,請建立廣告請求,指定額外的 參數,值為 rdp,值為 1

Java

Bundle networkExtrasBundle = new Bundle();
networkExtrasBundle.putInt("rdp", 1);

AdRequest request = new AdRequest.Builder()
   .addNetworkExtrasBundle(AdMobAdapter.class, networkExtrasBundle)
   .build();

Kotlin

val networkExtrasBundle = Bundle()
networkExtrasBundle.putInt("rdp", 1)

val request = AdRequest.Builder()
 .addNetworkExtrasBundle(AdMobAdapter::class.java!!, networkExtrasBundle)
 .build()

載入廣告時,請務必使用這個請求物件。

遠端桌面協定的共用偏好設定

針對共用偏好設定選項,寫入索引鍵 gad_rdp 的值為 1SharedPreferences。 Google Mobile Ads SDK 會在廣告載入期間讀取 gad_rdp 鍵。

Java

SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(context);
sharedPref.edit().putInt("gad_rdp", 1).apply();

Kotlin

val sharedPref = PreferenceManager.getDefaultSharedPreferences(context)
sharedPref.edit().putInt("gad_rdp", 1).apply()

IAB 信號

有兩種方法可以通知 Google 應啟用 RDP 透過 IAB 信號

IAB 的 Extras 參數

如果使用 extras 參數選項,請建立廣告請求,指定額外的 參數,包含 IABUSPrivacy_String 鍵與 符合 規格

Java

Bundle networkExtrasBundle = new Bundle();
networkExtrasBundle.putString("IABUSPrivacy_String", IAB_STRING);
AdRequest request = new AdRequest.Builder()
   .addNetworkExtrasBundle(AdMobAdapter.class, networkExtrasBundle)
   .build();

Kotlin

val networkExtrasBundle = Bundle()
networkExtrasBundle.putString("IABUSPrivacy_String", IAB_STRING)
val request = AdRequest.Builder()
    .addNetworkExtrasBundle(AdMobAdapter::class.java!!, networkExtrasBundle)
    .build()

載入廣告時,請務必使用這個請求物件。

共用的 IAB 偏好設定

針對共用偏好設定選項,使用IABUSPrivacy_String 符合 IAB 規範的字串值 規格SharedPreferences. Google Mobile Ads SDK 會在廣告載入期間讀取 IABUSPrivacy_String 鍵。

Java

SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(context);
sharedPref.edit().putString("IABUSPrivacy_String", IAB_STRING).apply();

Kotlin

val sharedPref = PreferenceManager.getDefaultSharedPreferences(context)
sharedPref.edit().putString("IABUSPrivacy_String", IAB_STRING).apply()

中介服務

如果您使用中介服務

  1. 請按照 CPRA 設定 將中介服務合作夥伴加進 CPRA 廣告合作夥伴名單 AdMob 使用者介面。

  2. 建議您編寫 使用共用偏好設定的 IAB 信號IAB 信號 因此只要符合 IAB 規格 還可以讀取信號

  3. 參閱各廣告聯播網夥伴的說明文件,以決定哪些選項 協助他們遵循《加州隱私權法案》(CPRA) 規範