向使用者放送受限制的廣告
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
自 2021 年 1 月 14 日起,如果使用者未同意 Cookie、拒絕同意 Cookie,或是 IMA 在 IAB 資訊公開和同意聲明架構第 2 版整合的寬限期過後,未在 GDPR 和 ePrivacy 地區收到有效的資訊公開和同意聲明 (TC) 字串,則 IMA Android SDK 會放送受限制的廣告。
對於 DAI SDK
使用以下參數的
ltd
參數:
StreamRequest.setAdTagParameters()
,直接在 Google Cloud 控制台實際操作。
請參閱
受限制的廣告指南:
瞭解詳情
您也可以整合
同意聲明管理平台 (CMP)支援以下項目的裝置:
Android SDK 3.16.2 版及所有較新版本。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-21 (世界標準時間)。
[null,null,["上次更新時間:2025-08-21 (世界標準時間)。"],[[["\u003cp\u003eAs of January 14, 2021, the IMA Android SDK can serve limited ads when users do not consent to cookies or when a valid TC string is not received in GDPR and ePrivacy regions.\u003c/p\u003e\n"],["\u003cp\u003eFor DAI SDKs, the \u003ccode\u003eltd\u003c/code\u003e parameter must be set using \u003ccode\u003eStreamRequest.setAdTagParameters()\u003c/code\u003e to enable limited ads.\u003c/p\u003e\n"],["\u003cp\u003eLimited ads can also be automatically enabled by integrating with a Consent Management Platform (CMP) on Android SDK version 3.16.2 and later.\u003c/p\u003e\n"],["\u003cp\u003eMore information about limited ads can be found in the Limited ads guide.\u003c/p\u003e\n"]]],[],null,["# Serve users with Limited Ads\n\nAs of January 14th 2021, the IMA Android SDK\nallows [limited ads](//support.google.com/admanager/answer/9882911) to be served\nwhen the user does not give consent to cookies, the user denies consent to\ncookies, or when IMA does not receive a valid TC string in GDPR and ePrivacy\nregions following the grace period of IAB TCFv2 integration.\nFor DAI SDKs you must set the [`ltd`](//support.google.com/admanager/answer/7320899#ltd) parameter using [`StreamRequest.setAdTagParameters()`](/interactive-media-ads/docs/sdks/android/dai/api/reference/com/google/ads/interactivemedia/v3/api/StreamRequest#public-abstract-void-setadtagparameters-mapstring,-string-adtagparameters) . Please see this [Limited ads guide](//support.google.com/admanager/answer/9882911) for more information.\n\n\u003cbr /\u003e\n\nIt is also possible to enable limited ads automatically through integrating with\na Consent Management Platform (CMP). This is supported on\n\nversion 3.16.2 of the Android SDK and all later versions."]]