向歐盟使用者徵求同意聲明
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
根據 Google 的《歐盟地區使用者同意授權政策》,您必須向歐洲經濟區 (EEA) 境內的使用者揭露特定資訊,而且在使用 Cookie 或其他本機儲存空間,並收集、分享及使用廣告個人化需要的個人資料時,都須徵得使用者同意。本政策是配合《歐盟電子通訊隱私指令》和《一般資料保護規則》(GDPR) 的法規而制定。
將同意聲明轉送至 IMA SDK
根據預設,傳送給 Google 的廣告請求會放送個人化廣告,且會同時根據網頁或應用程式內容和使用者造訪該網頁的記錄來選擇廣告。此外,Google 也支援放送非個人化廣告。進一步瞭解個人化和非個人化廣告
如要強制顯示非個人化廣告,您可以將 &npa=1
附加至廣告標記,指定只應傳回非個人化廣告內容。
您可以使用 adTagParameters
屬性完成這項作業,如下所示:
Sub loadStream()
...
request = sdk.CreateStreamRequest()
if m.top.streamData.type = "live"
request.assetKey = m.top.streamData.assetKey
else
request.contentSourceId = m.top.streamData.contentSourceId
request.videoId = m.top.streamData.videoId
end if
request.apiKey = m.top.streamData.apiKey
request.player = m.player
request.adTagParameters = "npa=1";
requestResult = sdk.requestStream(request)
...
End Sub
將使用者標記為未滿法定同意年齡
您可以替廣告請求設定未滿法定同意年齡的歐洲經濟區使用者標記。這項功能的立意是協助發布商遵守《一般資料保護規則》(GDPR)。請注意,您可能還有 GDPR 所衍生的其他法律義務。請查看歐盟發布的指南並諮詢您的法律顧問。提醒您,Google 提供工具的用意是協助發布商遵守規定,而非方便發布商規避法定義務。進一步瞭解 GDPR 對發布商的影響
使用這項功能時,廣告請求會包含 TFUA (未滿法定同意年齡的歐洲使用者標記) 參數。這個參數會針對特定廣告請求停用個人化廣告功能 (包括再行銷),並且停止向第三方廣告供應商 (例如廣告評估像素和第三方廣告伺服器) 提出其他請求。這個參數不會影響您使用 Ad Manager 的鍵/值,因此請務必確認您的鍵/值用法符合 GDPR 規範。
如果在廣告請求中加入 TFUA 參數,該參數的效力將優先於任何相關網站層級設定。
如要在導入方式中發出的所有廣告請求中加入這個代碼,請在廣告代碼中附加 &tfua=1
。
Sub loadStream()
...
request = sdk.CreateStreamRequest()
if m.top.streamData.type = "live"
request.assetKey = m.top.streamData.assetKey
else
request.contentSourceId = m.top.streamData.contentSourceId
request.videoId = m.top.streamData.videoId
end if
request.apiKey = m.top.streamData.apiKey
request.player = m.player
request.adTagParameters = "tfua=1";
requestResult = sdk.requestStream(request)
...
End Sub
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-21 (世界標準時間)。
[null,null,["上次更新時間:2025-08-21 (世界標準時間)。"],[[["\u003cp\u003ePublishers serving users in the European Economic Area (EEA) must comply with Google's EU User Consent Policy, including obtaining consent for cookies and data usage for ad personalization.\u003c/p\u003e\n"],["\u003cp\u003eNon-personalized ads can be served by adding \u003ccode\u003e&npa=1\u003c/code\u003e to the ad tag's \u003ccode\u003eadTagParameters\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eTo comply with GDPR for users under the age of consent, add \u003ccode\u003e&tfua=1\u003c/code\u003e to the ad tag's \u003ccode\u003eadTagParameters\u003c/code\u003e, which disables personalized ads and third-party ad vendor requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etfua\u003c/code\u003e parameter takes precedence over site-level settings, disabling personalized advertising and third-party ad vendor requests for that specific ad request.\u003c/p\u003e\n"],["\u003cp\u003ePublishers should review GDPR guidelines and seek legal counsel to ensure full compliance beyond the use of Google's tools.\u003c/p\u003e\n"]]],[],null,["# Request consent from EU users\n\nUnder Google's [EU User Consent\nPolicy](//www.google.com/about/company/consentstaging.html),\nyou must make certain disclosures to your users in the European\nEconomic Area (EEA) and obtain their consent for the use of cookies or\nother local storage where legally required, and for the collection,\nsharing, and use of personal data for ads personalization. This policy\nreflects the requirements of the EU ePrivacy Directive and the General\nData Protection Regulation (GDPR).\n\n\u003cbr /\u003e\n\nForwarding consent to the IMA SDK\n---------------------------------\n\nBy default, ad requests to Google serve personalized ads, with ad selection\nbased on both the content of the web page or app and the history of the user\nvisiting it. Google also supports serving non-personalized ads.\n[Learn more about personalized and non-personalized\nads](//support.google.com/admanager/answer/9005435)\n\nTo force non-personalized ads, you can append `&npa=1` to your ad tag\nto specify that only non-personalized ad content should be returned.\n\nThis is accomplished with the `adTagParameters` property, like so: \n\n```gdscript\nSub loadStream()\n ...\n request = sdk.CreateStreamRequest()\n if m.top.streamData.type = \"live\"\n request.assetKey = m.top.streamData.assetKey\n else\n request.contentSourceId = m.top.streamData.contentSourceId\n request.videoId = m.top.streamData.videoId\n end if\n request.apiKey = m.top.streamData.apiKey\n request.player = m.player\n request.adTagParameters = \"npa=1\";\n requestResult = sdk.requestStream(request)\n ...\nEnd Sub\n```\n\nTagging users as under the age of consent\n-----------------------------------------\n\nYou can mark your ad requests to receive treatment for users in the European\nEconomic Area (EEA) under the age of consent. This feature is designed to\nhelp facilitate compliance with the [General Data Protection Regulation\n(GDPR)](//eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32016R0679).\nNote that you may have other legal obligations under GDPR. Please review\nthe European Union's guidance and consult with your own legal counsel.\nPlease remember that Google's tools are designed to facilitate compliance\nand do not relieve any particular publisher of its obligations under the\nlaw. [Learn more about how GDPR affects\npublishers](//support.google.com/admanager/answer/7666366)\n\nWhen using this feature, a TFUA (Tag For Users under the Age of Consent in\nEurope) parameter will be included in the ad request. This parameter disables\n[personalized advertising](//support.google.com/admanager/answer/9005435),\nincluding remarketing, for that specific ad request. It also disables\nrequests to third-party ad vendors, such as ad measurement pixels and\nthird-party ad servers. The parameter does not affect your use of\nAd Manager key-values. Consequently, you must ensure that your use of\nkey-values is compliant with GDPR.\n\nIncluding the TFUA parameter in an ad request takes precedence over any\napplicable site-level settings.\n\nTo include this tag on all ad requests made from your implementation,\nappend `&tfua=1` to your ad tag. \n\n```gdscript\nSub loadStream()\n ...\n request = sdk.CreateStreamRequest()\n if m.top.streamData.type = \"live\"\n request.assetKey = m.top.streamData.assetKey\n else\n request.contentSourceId = m.top.streamData.contentSourceId\n request.videoId = m.top.streamData.videoId\n end if\n request.apiKey = m.top.streamData.apiKey\n request.player = m.player\n request.adTagParameters = \"tfua=1\";\n requestResult = sdk.requestStream(request)\n ...\nEnd Sub\n```"]]