SDK Documentation
HomeBlogSign up
English
English
  • 🏠Homepage
  • 🧪Test Ad Units
  • Privacy
    • ✅Google Data Safety
  • Android SDK
    • ⌨️SDK integration
      • App Open
      • Banner
      • Interstitial
      • Rewarded
      • Native (Google)
      • Targeting
      • Revenue reporting
    • 🙎User consent
    • 🔓Privacy
    • 🛠️ProGuard
  • iOS SDK
    • ⌨️SDK integration
      • App Open
      • Banner
      • Interstitial
      • Rewarded
      • Native (Google)
      • Revenue reporting
    • 🙍User consent
    • 🔓Privacy
  • Unity SDK
    • ⌨️SDK integration
      • App Open
      • Banner
      • Interstitial
      • Rewarded
      • Targeting
      • Revenue reporting
    • 🙎User consent
    • 🔓Privacy
  • Flutter SDK
    • ⌨️SDK integration
      • App Open
      • Banner
      • Interstitial
      • Rewarded
      • Native (Google)
      • Targeting
      • Revenue reporting
    • 🙎User consent
    • 🔓Privacy
  • React Native
    • ⌨️SDK integration
      • App Open
      • Banner
      • Interstitial
      • Rewarded
      • Targeting
      • Revenue reporting
    • 🙎User consent
    • 🔓Privacy
  • Web SDK
    • ⌨️SDK integration
Con tecnología de GitBook
En esta página
  • Request consent
  • Example
  • Delegate configuration
  1. iOS SDK

User consent

The Wortise SDK includes support for Google Ads Consent Manager (CMP) to request the consent of every user.

Obtaining the user consent is important to comply with the privacy policies and qualify for higher CPMs.

Request consent

To request the user consent, it is needed to invoke the method WAConsentManager.request(ifRequired:) at an appropriate moment of the app. This will show a dialog, only when it is required (normally during the first app launch), so the user can grant or deny consent.

There is also the WAConsentManager.request method to always show the dialog, and not only when required (for example, to provide an option in the app settings to allow the user change the consent at anytime).

Example

// Example with WortiseAds.shared.initialize
WortiseAds.shared.initialize(assetKey: "your app key") {
    WAConsentManager.request(ifRequired: self)
}

// Example with WortiseAds.shared.wait
WortiseAds.shared.wait {
    WAConsentManager.request(ifRequired: self)
}

Delegate configuration

It is possible to pass a delegate, to both request and request(ifRequired:), to know when the consent requested has finished (and if it has been shown). To achieve this, just pass a listener as the last parameter of both methods.

WAConsentManager.request(ifRequired: self) {
    // This delegate will be invoked when the request finishes 
}
AnteriorRevenue reportingSiguientePrivacy

Última actualización hace 4 meses

🙍