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. Start

Initialization

Initialize AATKit

Use initialize function to initialize AATKit. This operation should be run only once during the application lifecycle. You can pass JSON object as the parameter to set desired configuration. Please see the example below where AATKit is initialized with test mode using ID 74:

AATKitIonic.initialize({
  testModeAccountId: 74, 
});

Make sure to remove the testModeAccountId from your configuration object before you publish your app to the store. Otherwise, your app will not earn any ad revenue.

PreviousSetupNextApp Tracking Transparency

Last updated 3 months ago