Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__tcfapiReturn or __uspapiReturn #13

Open
littlewindwang opened this issue May 6, 2021 · 1 comment
Open

__tcfapiReturn or __uspapiReturn #13

littlewindwang opened this issue May 6, 2021 · 1 comment

Comments

@littlewindwang
Copy link

Hi IAB,
I read this document:
https://github.com/InteractiveAdvertisingBureau/USPrivacy/blob/master/CCPA/Data%20Deletion%20Request%20Handling.md

The vendor sample code:
* wrapped in a try/catch and will ignore
* any errors in parsing
*/
json = typeof event.data === 'string' ? JSON.parse(event.data) : event.data;

    } catch (ignore) {}

    **if (json.__tcfapiReturn) {**

      // should be executed at window scope
      deletePersonalData();

    } // else this is some message we don't recognize

  }, false);

Why it is "json.__tcfapiReturn"? __tcfapiReturn is used for __tcfapiCall according to this document:
https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md

Here is using USP API, the return name should be :"__uspapiReturn" according to this document:
https://github.com/InteractiveAdvertisingBureau/USPrivacy/blob/master/CCPA/USP%20API.md

@littlewindwang
Copy link
Author

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant