問題タブ [iab]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
amp-html - amp-consent と IAB 同意文字列の実装の詳細
IAB TCFv2 に準拠した CMP の開発は完了しましたが、AMP との統合に苦労しています。これは、amp-consent では CMP プロンプトと広告で同意文字列を使用できないためです。
出版社コード:
Iframe は、ユーザーの設定に従って同意文字列を送り返しています。
AMP ドキュメントによると、ユーザーが変更を加えたい場合、同意文字列は amp-ad と CMP プロンプトで利用できるようになります。
iframe に渡されるクライアント情報 iframe が作成されると、次の情報が name 属性を介して iframe に渡されます。
ただし、window.nameは常に iframe の名前を含むプレーンな文字列、つまりamp_iframe0に設定され、JSON のようなデータはありません。また、常にundefinedであるwindow.contextも試しました。
2 つ目の課題は、同意文字列が amp-ad や他のコンポーネントで利用できるようにするにはどうすればよいかということです。amp-iframe を試しましたが、同意文字列がありません。
Web のすべての記事、ディスカッション、ドキュメントは、少しわかりにくい/時代遅れ/矛盾しています。