Portal Configuration and SDK Changes

Enabling GPP and MSPA for Existing and New Signatories

Note

For existing app properties, users must explicitly save the property for the first time to activate the GPP functionality.

  1. Before you begin enabling GPP and MSPA, upgrade to v54 or latest.
  2. For GDPR, select TCF, GPP, or Both (recommended).

  3. Applicable only for Websites: Enabling both GPP and TCF doesn't work for AMP sites where only the GPP string will be stored. To extract the TCF string from GPP, use the code below:
    /**  
     * 1. Get the key from localStorage which start with amp-store
     * 2. Parse the value and convert into JSON.
     * 3. Once parsed, access the property 'amp-consent:inmobi'
     * 4. Split the GPP string, and retrieve the TCF string which you can use.
     * 5. Add proper handling and test before pushing the below code to production
     * 6. For more details on how to access local storage, please look at amp-script documentation (https://amp.dev/documentation/components/amp-script)
    */
    let consent = JSON.parse(atob(localStorage.getItem('<key-from-domain-local-storage>'))); //looks like this amp-store:https://deranged-humorr.surge.sh
    if (consent && consent.vv) {
        const gppString = consent.vv['amp-consent:inmobi'].v.r;
    
        const gppStringArray = gppString.split('~');
        
        for(let i = 0; i < gppStringArray.length; i++) {
            if (gppStringArray[i].startsWith('CP')) {
                console.log('TCF String is ', gppStringArray[i]);
            }
        }
    }
    	
  4. To implement MSPA, update your signatory status and regulatory path.

    Note

    Only MSPA signatories can mark transactions as Covered. You can check your signatory status and sign the MSPA here.

  5. Select the relevant opt-outs among personal, sensitive, and child data consents.

  6. The end-user is shown the consent screen based on the consents selected by you.

  7. The GPP string is stored under the key name (IABGPP_HDR_GppString).

SDK Integration Changes

Android

For Android Implementation and SDK-related changes, see Android App Implementation (SDK).

iOS

For iOS Implementation and SDK-related changes, see iOS App Implementation (SDK)

On This Page

Last Updated on: 04 Jul, 2024