Javascript 尝试测试tcf同意时cmp类型无效
我正在尝试在amp页面上实现TCF2.0许可 下面是我从中获取的示例代码Javascript 尝试测试tcf同意时cmp类型无效,javascript,amp-html,cmp,Javascript,Amp Html,Cmp,我正在尝试在amp页面上实现TCF2.0许可 下面是我从中获取的示例代码 { “同意”:{}, “postPromptUI”:“postPromptUI”, “客户端配置”:{ “CMP\U id”:“测试id”, “其他信息”:“测试信息” } } 后提示用户界面 管理 相反,在控制台中,我得到一个错误:amp同意/同意配置:无效的CMP类型ping 有人面临这样的问题吗?不知道在哪里可以找到解决方案:( <!-- _ping_ example --> <amp-c
{
“同意”:{},
“postPromptUI”:“postPromptUI”,
“客户端配置”:{
“CMP\U id”:“测试id”,
“其他信息”:“测试信息”
}
}
后提示用户界面
管理
相反,在控制台中,我得到一个错误:amp同意/同意配置:无效的CMP类型ping
有人面临这样的问题吗?不知道在哪里可以找到解决方案:(
<!-- _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 -->