我正在尝试将 prebid 与 amp 一起使用,但出现错误:
f.js:8 Error: Unknown attribute for doubleclick: prebid.
at w (https://3p.ampproject.net/1496245713200/f.js:12:20)
at E (https://3p.ampproject.net/1496245713200/f.js:22:467)
at va (https://3p.ampproject.net/1496245713200/f.js:9:544)
at https://3p.ampproject.net/1496245713200/f.js:184:250
我查看了代码并使用了http://prebid.org/dev-docs/show-prebid-ads-on-amp-pages.html#amp-content-page中的示例,但我找不到错误。
这是我的 amp-ad 代码:
<amp-ad width="300" height="250" layout="responsive" type="doubleclick" json='{"prebid":{"requestBidsDuration":2500,"adUnits":[{"code":"/9999999/XXXXXXXXXXX","sizes":[[300,250]],"bids":[{"bidder":"rubicon","params":{"accountId": "99999", "siteId": "99999", "zoneId": "99999", "sizes": "[15,10]"}},{"bidder":"appnexus","params":{"placementId": "99999999"}}]}]}}' data-slot="/9999999/XXXXXXXXXXX"></amp-ad>
remote.html 和 creative 是 prebid 中的示例。