ampproject / ampproject/amphtml

exposesTcfApi question

Open
#38,271 3 comments 0 reactions 0 assignees View on GitHub
Component: amp-consent Stale Type: Feature Request WG: components
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

When "exposesTcfApi": true is set in consent configuration, we should be able to use post messaging to retrieve consent data.

What I noticed is that received objects are missing many fields compared to TCF API used on non-AMP pages, e.g. purposes, interests... Is there a way we can have all those fields in the response or it's just not supported at the moment?

![amp-consent](https://user-images.githubusercontent.com/5851760/172366416-9bbac777-2a75-4786-99c1-eacb6a4975c6.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.