征求欧盟用户同意
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
根据 Google 的欧盟地区用户意见征求
政策,
您必须向欧洲境内的用户披露特定信息
并就使用 Cookie 或
其他本地存储空间(如果法律要求)
出于广告个性化目的分享和使用个人数据。此政策反映了欧盟《电子隐私指令》和《一般数据保护条例》(GDPR) 的要求。
将用户意见转发给 IMA SDK
默认情况下,向 Google 发出的广告请求会随广告选择一起投放个性化广告
基于网页或应用的内容以及用户的历史记录
访问它。Google 也支持投放非个性化广告。
详细了解个性化广告和非个性化广告
如需强制展示非个性化广告,您可以将 &npa=1
附加到广告代码,以指定应仅返回非个性化广告内容。
这是通过 adTagParameters
属性实现的,如下所示:
function requestLiveStream(assetKey, apiKey) {
var streamRequest = new google.ima.dai.api.LiveStreamRequest();
streamRequest.assetKey = assetKey;
streamRequest.apiKey = apiKey;
streamRequest.adTagParameters = {"npa": 1};
streamManager.requestStream(streamRequest);
}
将用户标记为未达到同意年龄
您可以对广告请求进行标记,确保针对未达到法定承诺年龄的欧洲经济区 (EEA) 用户投放的是合适的广告。这项功能旨在帮助您遵守《一般数据保护条例》(GDPR)。请注意,您可能还须承担 GDPR 规定的其他法律义务。请查看
或咨询您自己的法律顾问。
请注意,Google 的工具旨在协助客户遵守
并不会免除任何特定发布商按照
法律。详细了解 GDPR 的影响
发布商
使用此功能时,
欧洲)参数都会包含在广告请求中。此参数会禁止针对相应广告请求投放个性化广告,包括再营销广告。还会停用
向第三方广告供应商(例如广告衡量像素和
第三方广告服务器该参数不会影响您使用
键值对因此,您必须确保您使用键值对的行为符合 GDPR 的规定。
在广告请求中加入 TFUA 参数后,任何适用的网站级设置若与此冲突,则一概无效。
如需在您实现的所有广告请求中添加此标记,请将 &tfua=1
附加到广告代码。
function requestLiveStream(assetKey, apiKey) {
var streamRequest = new google.ima.dai.api.LiveStreamRequest();
streamRequest.assetKey = assetKey;
streamRequest.apiKey = apiKey;
streamRequest.adTagParameters = {"tfua": 1};
streamManager.requestStream(streamRequest);
}
上例使用的是直播请求,但也是如此
到视频点播视频流
如未另行说明,那么本页面中的内容已根据知识共享署名 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, data collection, and ad personalization.\u003c/p\u003e\n"],["\u003cp\u003eTo comply with GDPR for users under the age of consent in the EEA, publishers can include the \u003ccode\u003e&tfua=1\u003c/code\u003e parameter in ad requests, disabling personalized advertising and third-party ad vendor requests.\u003c/p\u003e\n"],["\u003cp\u003eNon-personalized ads can be served by appending \u003ccode\u003e&npa=1\u003c/code\u003e to the ad tag, restricting ad selection to the content of the webpage or app.\u003c/p\u003e\n"],["\u003cp\u003ePublishers are ultimately responsible for GDPR compliance, even when using Google's tools designed to help facilitate it.\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\nfunction requestLiveStream(assetKey, apiKey) {\n var streamRequest = new google.ima.dai.api.LiveStreamRequest();\n streamRequest.assetKey = assetKey;\n streamRequest.apiKey = apiKey;\n streamRequest.adTagParameters = {\"npa\": 1};\n streamManager.requestStream(streamRequest);\n}\n```\n\n\u003cbr /\u003e\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\nfunction requestLiveStream(assetKey, apiKey) {\n var streamRequest = new google.ima.dai.api.LiveStreamRequest();\n streamRequest.assetKey = assetKey;\n streamRequest.apiKey = apiKey;\n streamRequest.adTagParameters = {\"tfua\": 1};\n streamManager.requestStream(streamRequest);\n}\n```\n\n\u003cbr /\u003e\n\nThe example above uses a live stream request, but the same applies to VOD streams."]]