AATKit Cordova 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
        • initWithConfiguration
        • reconfigure
        • configureDebugScreen
        • getVersion
        • showConsentDialogIfNeeded
        • showConsentDialogIfNeededOrRejected
        • editConsent
        • reloadConsent
        • isConsentOptIn
        • setDebugEnabled
        • setDebugShakeEnabled
        • getDebugInfo
        • enableCreativeHistory
        • setNetworkEnabled
        • isNetworkEnabled
        • setIsChildDirected
        • createPlacement
        • createRewardedVideoPlacement
        • createAppOpenAdPlacement
        • setCollapsibleBannerOptions
        • reloadPlacement
        • reloadPlacementForced
        • startPlacementAutoReload
        • stopPlacementAutoReload
        • muteVideoAds
        • hasAdForPlacement
        • isFrequencyCapReachedForPlacement
        • addPlacementToView
        • removePlacementFromView
        • setPlacementAlignment
        • setPlacementAlignmentWithOffset
        • setPlacementPosition
        • setPlacementContentGravity
        • showPlacement
        • setTargetingInfo
        • setTargetingInfoForPlacement
        • setContentTargetingUrl
        • setContentTargetingUrlForPlacement
        • setMultiContentTargetingUrls
        • addAdNetworkForKeywordTargeting
        • removeAdNetworkForKeywordTargeting
        • setUserTargeting
        • isTablet
        • maximumBannerSizePortrait
        • maximumBannerSizeLandscape
        • fittingBannerSizesPortrait
        • fittingBannerSizesLandscape
        • getAdInfo
      • Events
        • aatkitHaveAd
        • aatkitNoAd
        • aatkitShowingEmpty
        • aatkitPauseForAd
        • aatkitResumeAfterAd
        • aatkitUserEarnedIncentive
        • aatkitObtainedAdRules
        • managedConsentNeedsUserInterface
        • managedConsentCMPFinished
        • managedConsentCMPFailedToLoad
        • managedConsentCMPFailedToShow
      • Statistics Events
        • countedAdSpace
        • countedRequest
        • countedResponse
        • countedImpression
        • countedVimpression
        • countedNimpression
        • countedDirectDealImpression
        • countedClick
      • Other
        • Configuration JSON
        • DebugScreenConfiguration
        • Networks list
        • Banner sizes
Powered by GitBook
On this page
  1. Start

Initialization

Initialize AATKit

PreviousSetupNextApp Tracking Transparency

Last updated 3 months ago

Use 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:

AATKitCordova.initWithConfiguration({
    "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.

Adding optional networks

Optional networks are disabled by default. If you want to include them to the build, follow instructions below.

Android

  1. Find plugins/aatkit-cordova-plugin/src/android/aatkit-cordova-plugin.gradle file.

  2. Comment out network dependencies which should be indluced to the build.

initWithConfiguration