SetCCPAConsent

Description

Pass the CCPA consent obtained from the user to the plugin.

Declaration

 public static void SetGDPRConsent(bool accept)

Parameters

NameDescription

accept

true - user agreed to data selling false - user refused data selling

Example

public class Test : MonoBehaviour
{
    public void SHowCustomConsentPopup()
    {
        if (!Gley.MobileAds.API.CCPAConsentWasSet())
        {
            //show custom consent popup
            //get the CCPA consent from the user and pass it to this method
            //in this case user agreed
            Gley.MobileAds.API.SetCCPAConsent(true);
        }
        else
        {
            //consent popup is not required
        }
    }
}

Last updated