Skip to content

__tcfapiReturn or __uspapiReturn #13

@littlewindwang

Description

@littlewindwang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions