征求欧盟用户同意
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
根据 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
将用户标记为未达到法定承诺年龄
您可以对广告请求进行标记,确保针对未达到法定承诺年龄的欧洲经济区 (EEA) 用户投放的是合适的广告。这项功能旨在帮助您遵守《一般数据保护条例》(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
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):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```"]]