AATKit Ionic Integration
Release Notes
  • Start
    • Setup
    • Initialization
    • App Tracking Transparency
    • Google Mobile Ads SDK
    • Consent
      • Managed Consent
      • Vendor Consent
      • Simple Consent
  • Formats
    • Banner
    • Fullscreen (Interstitial)
    • Rewarded Video
  • Other
    • Reference
      • Functions
        • initialize
        • reconfigure
        • setLogLevel
        • configureDebugScreen
        • enableDebugScreen
        • disableDebugScreen
        • setIsChildDirected
        • showConsentDialogIfNeeded
        • showConsentDialogIfNeededOrRejected
        • editConsent
        • reloadConsent
        • createPlacement
        • createRewardedVideoPlacement
        • reloadPlacement
        • startPlacementAutoReload
        • stopPlacementAutoReload
        • showPlacement
        • addPlacementToView
        • removePlacementFromView
        • setPlacementAlignment
        • setPlacementAlignmentWithOffset
        • isTablet
        • maximumBannerSizeLandscape
        • maximumBannerSizePortrait
        • fittingBannerSizesPortrait
        • fittingBannerSizesLandscape
        • setCollapsibleBannerOptions
        • setMultiContentTargetingUrlsForPlacement
        • getAdInfo
        • enableCreativeHistory
        • setUserTargeting
      • Interfaces
        • AATKitDebugScreenConfiguration
        • AATKitAdNetworkOptions
        • AATKitConfiguration
        • AATKitConsent
        • AATKitCollapsibleBannerOptions
        • AATKitAdInfo
      • Events
        • onHaveAd
        • onNoAd
        • onPauseForAd
        • onResumeAfterAd
        • onUserEarnedIncentive
        • aatkitObtainedAdRules
        • managedConsentNeedsUserInterface
        • managedConsentCMPFinished
        • managedConsentCMPFailedToShow
        • managedConsentCMPFailedToLoad
Powered by GitBook
On this page
  1. Other
  2. Reference
  3. Functions

showConsentDialogIfNeeded

showConsentDialogIfNeeded()

showConsentDialogIfNeeded() => Promise<void>

Presents the consent screen only if it is required by the used CMP (for example if no user consent has been set yet). It is advised to always call this method when the app starts.

PrevioussetIsChildDirectedNextshowConsentDialogIfNeededOrRejected

Last updated 1 year ago