ConsentData /5.0.0

public interface ConsentData

Contains methods to get GDPR-related data, such as the policy link and the vendor list link; these are helpful when publishers use their own consent mechanism. Refer to our Android GDPR article for additional usage instructions.

Public Methods

public String /getConsentedPrivacyPolicyVersion() /+5.0.0

  • Description: Returns the version of the privacy policy that the user has consented to.

  • Parameters: None.

public String /getConsentedVendorListIabFormat() /+5.0.0

  • Description: Returns the consented vendor list in IAB’s global vendor list format.

  • Parameters: None.

public String /getConsentedVendorListVersion() /+5.0.0

  • Description: Returns the version of the vendor list that the user has consented to.

  • Parameters: None.

  • Description: Returns a link for the current privacy policy with the system default language.

  • Parameters: None.

public String /getCurrentPrivacyPolicyLink(String language) /+5.0.0

  • Description: Returns a link for the current privacy policy in a specific language.

  • Parameters:

    • language: Any ISO 639-1 two-letter language code corresponding to the language to query.

public String /getCurrentPrivacyPolicyVersion() /+5.0.0

  • Description: Returns the current privacy policy version.

  • Parameters: None.

public String /getCurrentVendorListIabFormat() /+5.0.0

  • Description: Returns the current vendor list in IAB’s global vendor list format.

  • Parameters: None.

  • Description: Returns a link for the current vendor list with the system default language.

  • Parameters: None.

public String /getCurrentVendorListLink(String language) /+5.0.0

  • Description: Returns a link for the current vendor list in a specific language.

  • Parameters:

    • language: Any ISO 639-1 two-letter language code corresponding to the language to query.

public String /getCurrentVendorListVersion() /+5.0.0

  • Description: Returns the current vendor list version.

  • Parameters: None.

public boolean /isForceGdprApplies() /+5.1.0

  • Description: Returns true if GDPR rules have been forced to apply by either the publisher or by MoPub; false otherwise.

  • Parameters: None.

Last updated October 06, 2020

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2020 MoPub (a division of Twitter, Inc.)