问题描述
我正在尝试在amp页面上实现TCF 2.0同意。
这是我从https://github.com/ampproject/amphtml/blob/master/examples/amp-consent/cmp-vendors.amp.html提取的示例代码
<!-- _ping_ example -->
<amp-consent id='ABC' layout='nodisplay' type='_ping_'>
<script type="application/json">
{
"consents": {},"postPromptUI": "postPromptUI","clientConfig": {
"CMP_id": "test_id","other_info": "test_info"
}
}
</script>
<div id="postPromptUI">
Post Prompt UI
<button on="tap:ABC.prompt(consent=_ping_)" role="button">Manage</button>
</div>
</amp-consent>
<!-- End _ping_ example -->
相反,在控制台中,我收到一个错误:amp-consent / consent-config:无效的CMP类型 ping 。
有人遇到这样的问题吗?不知道在哪里找到解决方案:(
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)