年龄分级保护标记 (TFAT)
年龄处理方式设置是一种工具,可帮助您遵守《一般数据保护条例》(GDPR)、《儿童在线隐私保护法》(COPPA)、《适龄设计规范》(AADC) 和《澳大利亚网络安全法》(AU OSA) 或者其他适用法律或法规。
请注意,Google 的工具并不能免除您按照法律规定所需承担的义务。请咨询您的法律顾问,依据自身法律及监管要求,为用户确定年龄处理方式设置。
以下指南介绍了如何在广告代码中添加年龄分级保护标记,以实现按年龄段处理广告请求,具体包括如下主题:
如果您使用的是 Google 的广告服务,并希望在网站或应用级别(而不是在广告请求中)按照年龄段限制处理广告请求,也可以使用 TFAT。请参阅将网站或广告请求标记为按照年龄限制加以处理。请注意,作为管理自己网站或应用的内容所有者,通常情况下,您可以自己控制按照 COPPA 认定您的内容的方式。即使没有接到您的通知,Google 有时也会遵循 COPPA 规定的义务,开始将您的网站或应用认定为面向儿童。在此类情况下,我们会设法通知您,而您则可以使用我们的工具指定相关内容是否面向儿童。
按年龄段处理设置简介
您可以通过以下设置,指定 Google 如何按不同的年龄段来处理广告请求:
- CHILD:表示广告请求应采用面向儿童的处理方式。面向儿童的处理方式由值 1 指定。这会导致特定的广告请求行为,例如:
- 系统将停用个性化广告和再营销功能。
- 系统将停用向第三方广告供应商(例如广告效果衡量像素和第三方广告服务器)发送请求的功能。
- 系统将应用面向儿童的广告投放保护措施。
- TEEN:表示广告请求应采用面向青少年的处理方式。面向青少年的处理方式由值 2 指定。这会导致特定的广告请求行为,例如:
- 系统将停用个性化广告和再营销功能。
- 系统将应用面向青少年的广告投放保护措施。
- UNSPECIFIED:表示未针对广告请求设置任何特定的年龄处理方式。这是默认状态,由值 0 指定。
Google 发布商代码 (GPT)
如果您使用的是 GPT,则可以通过以下 API 调用,将广告请求标记为按照面向儿童的方式加以处理:
googletag.pubads().setPrivacySettings({ tagForAgeTreatment: 1,});
将 age treatment 值设为 2 可将广告请求标记为面向青少年;设为 1 可将广告请求标记为面向儿童;设为 0 则表示广告请求不面向儿童或青少年。
为了确保您指定的选项在网页发出广告请求前生效,请在网页执行过程中尽早调用 setPrivacySettings(...) GPT API。如果您未尽早实施调用,年龄分级保护标记可能无法在每个广告请求中生效。例如,您需要确保对 setPrivacySettings(...) 的调用先于对 googletag.enableServices()、googletag.pubads().display(...) 和 googletag.pubads().definePassback(...).display()(未逐一列举)的调用。
如果您使用的是异步模式,用于刷新任何广告位的后续调用(使用 googletag.pubads().refresh)将考虑自该广告位上次发出请求以来使用 setPrivacySettings(...) 做出的更改。
同步 GPT 代码段示例
面向儿童的标记示例</script>
<script type='text/javascript'> googletag.pubads().setPrivacySettings({ tagForAgeTreatment: 1,}); googletag.defineSlot('/1234/sports/football', [728, 90],'div_1') .addService(googletag.pubads()); googletag.pubads().enableSyncRendering(); googletag.enableServices();
</script>
</script>
<script type='text/javascript'> googletag.pubads().setPrivacySettings({ tagForAgeTreatment: 2,}); googletag.defineSlot('/1234/sports/football', [728, 90],'div_1') .addService(googletag.pubads()); googletag.pubads().enableSyncRendering(); googletag.enableServices();
</script>
</script>
<script type='text/javascript'> googletag.pubads().setPrivacySettings({ tagForAgeTreatment: 0,}); googletag.defineSlot('/1234/sports/football', [728, 90],'div_1') .addService(googletag.pubads()); googletag.pubads().enableSyncRendering(); googletag.enableServices();
</script>
异步 GPT 代码段示例
面向儿童的标记示例</script>
<script type='text/javascript'> googletag.cmd.push(function() { googletag.pubads().setPrivacySettings({ tagForAgeTreatment: 1,}); googletag.defineSlot('/1234/sports/football', [728, 90],'div_1') .addService(googletag.pubads()); googletag.enableServices(); });
</script>
</script>
<script type='text/javascript'> googletag.cmd.push(function() { googletag.pubads().setPrivacySettings({ tagForAgeTreatment: 2,}); googletag.defineSlot('/1234/sports/football', [728, 90],'div_1') .addService(googletag.pubads()); googletag.enableServices(); });
</script>
</script>
<script type='text/javascript'> googletag.cmd.push(function() { googletag.pubads().setPrivacySettings({ tagForAgeTreatment: 0,}); googletag.defineSlot('/1234/sports/football', [728, 90],'div_1') .addService(googletag.pubads()); googletag.enableServices(); });
</script>
GPT 回传代码
GPT 回传代码可用于将广告从投放到一个 Google Ad Manager 发布商改投到另一个发布商,无论他们使用的是 Google Ad Manager 广告投放技术,还是第三方广告服务器。代码会从 Google Ad Manager 发布商 A 发送给发布商 B,然后使用发布商 B 的广告服务器进行投放管理。
如果您使用的是 GPT 回传代码,则可以在自己的 API 调用中添加以下代码,将广告请求标记为按照面向儿童的方式加以处理:
setPrivacySettings({ tagForAgeTreatment: 1,});
将 age treatment 值设为 2 可将广告请求标记为采用面向青少年的处理方式;设为 1 可将广告请求标记为采用面向儿童的处理方式;设为 0 则表示广告请求未采用面向儿童或青少年的处理方式。
使用回传代码时,系统会向 Google Ad Manager 为发布商 A 请求初始广告,请求时使用的是 TFAT=2 (teen)、TFATTFCD=1 (child) 或 TFATTFCD=0 (unspecified)。广告素材投放到网页之后,%%TFAT%% 宏将“继承”初始广告请求中的值。系统向发布商 B 发出广告请求时,将使用第一个广告请求中的值。仅在发布商 A 和发布商 B 均使用 Google Ad Manager 广告投放技术时,使用 %%TFAT%% 宏才会起作用。
GPT 回传代码段示例
面向儿童的标记示例.display();
</script>
.display();
</script>
.display();
</script>
.display();
</script>
详细了解 GPT 回传代码和 Google Ad Manager 宏。
简单网址
如果您使用的是简单网址,则可以通过直接向代码请求网址中添加 tfat=[int] 参数来将广告请求标记为按照年龄限制加以处理。您必须在代码中比较靠前的位置指定该参数。为了保险起见,请将该参数置于前 500 个字符以内。指定 tfat=1 可将广告请求标记为面向儿童;指定 tfcd=2 可将广告请求标记为面向青少年;指定 tfcd=0 则表示广告请求未采用面向儿童或青少年的受限处理方式。例如:
https://securepubads.g.doubleclick.net/gampad/ad?tfat=1&iu=/12345/adunit&sz=728x90&c=12345