Class MyTargetPrivacy

  • All Implemented Interfaces:

    
    public class MyTargetPrivacy
    
                        

    Provides the ability to manage the collection of personal user data in accordance with the requirements of the GDPR, CCPA and iAB.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static MyTargetPrivacy currentPrivacy()
      boolean isConsent() Get combined consent value based on user GDPR, IAB and CCPA consent flags.
      static void setCcpaUserConsent(boolean ccpaUserConsent) Gives SDK an information about user CCPA consent.
      static void setIabUserConsent(boolean useIABUserConsentConsent) Gives SDK an information about user IAB consent.
      static void setUserAgeRestricted(boolean userAgeRestricted) Gives SDK an information about if user under age of consent or not.
      static void setUserConsent(boolean userConsent) Gives SDK an information about user GDPR consent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MyTargetPrivacy

        MyTargetPrivacy(Boolean userConsent, Boolean ccpaUserConsent, Boolean iabUserConsent, boolean userAgeRestricted)
    • Method Detail

      • isConsent

         boolean isConsent()

        Get combined consent value based on user GDPR, IAB and CCPA consent flags.

        Returns:

        false if any of user GDPR, IAB or CCPA consent flags is set to false

      • setCcpaUserConsent

         static void setCcpaUserConsent(boolean ccpaUserConsent)

        Gives SDK an information about user CCPA consent. If false, SDK will not send personal information according to CCPA rules

        It is recommended to retrieve bidder token after changing this flag, because bidder token depends on it.

        Parameters:
        ccpaUserConsent - CCPA consent
      • setIabUserConsent

         static void setIabUserConsent(boolean useIABUserConsentConsent)

        Gives SDK an information about user IAB consent. If false, SDK will not send personal information according to IAB rules

        It is recommended to retrieve bidder token after changing this flag, because bidder token depends on it.

        Parameters:
        useIABUserConsentConsent - IAB consent
      • setUserAgeRestricted

         static void setUserAgeRestricted(boolean userAgeRestricted)

        Gives SDK an information about if user under age of consent or not.

        Parameters:
        userAgeRestricted - true if user is under age of consent
      • setUserConsent

         static void setUserConsent(boolean userConsent)

        Gives SDK an information about user GDPR consent. If false, SDK will not send personal information according to GDPR rules

        It is recommended to retrieve bidder token after changing this flag, because bidder token depends on it.

        Parameters:
        userConsent - GDPR consent