__tcfapiReturn or __uspapiReturn
littlewindwang opened this issue · 1 comments
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
Thx!