AATKit React Native Integration
Release Notes
  • Start
    • Setup
    • Expo
    • Initialization
    • App Tracking Transparency
    • Google Mobile Ads SDK
    • Consent
      • Managed Consent
      • Vendor Consent
      • Simple Consent
  • Formats
    • Banner
    • In-Feed Banner
    • Fullscreen (Interstitial)
    • Rewarded Video
    • Native Ad
  • Other
    • Banner Reuse
    • Screens Navigation
    • Reference
      • RNAatkit
        • Functions
          • initWithConfiguration
          • initWithConfigurationAndCallback
          • reconfigureUsingConfiguration
          • configureDebugScreen
          • createPlacement
          • createRewardedVideoPlacement
          • createInFeedBannerPlacement
          • setCollapsibleBannerOptions
          • inFeedBannerViewWillDisappear
          • reloadPlacement
          • startPlacementAutoReload
          • stopPlacementAutoReload
          • reloadPlacementForced
          • reloadAllInFeedBannerComponents
          • reloadLastInFeedBannerComponent
          • reloadConcreteInFeedBannerComponents
          • getInFeedBannerComponentsCount
          • setBannerSizesForInFeedBannerPlacement
          • cancelReloadingInFeedBannerPlacement
          • countAdSpaceForInFeedBannerPlacement
          • showPlacement
          • setDebugEnabled
          • setDebugShakeEnabled
          • setPlacementContentGravity
          • setNetworkEnabled
          • getDebugInfo
          • setIsChildDirected
          • isNetworkEnabled
          • hasAdForPlacement
          • isFrequencyCapReachedForPlacement
          • preparePromo
          • showPromo
          • showConsentDialogIfNeeded
          • showConsentDialogIfNeededOrRejected
          • editConsent
          • reloadConsent
          • isConsentOptIn
          • setContentTargetingUrl
          • setUserTargeting
          • setContentTargetingUrlForPlacement
          • addAdNetworkForKeywordTargeting
          • removeAdNetworkForKeywordTargeting
          • setTargetingInfo
          • setTargetingInfoForPlacement
          • setMultiContentTargetingUrlsForPlacement
          • addAdNetworkForKeywordTargetingForInFeedBannerPlacement
          • removeAdNetworkForKeywordTargetingForInFeedBannerPlacement
          • setTargetingInfo
          • setTargetingInfoForPlacement
          • addAdNetworkForKeywordTargetingForInFeedBannerPlacement
          • removeAdNetworkForKeywordTargetingForInFeedBannerPlacement
          • setTargetingInfoForInFeedBannerPlacement
          • showUnifiedNativeAdPlacement
          • isTablet
          • maximumBannerSizePortrait
          • maximumBannerSizeLandscape
          • fittingBannerSizesPortrait
          • fittingBannerSizesPortrait
          • muteVideoAds
          • setImpressionListener
          • getAdInfo
          • [Deprecated] setFullscreenAdsMuted
        • Events
          • AATKitHaveAd
          • AATKitNoAds
          • AATKitPauseForAd
          • AATKitResumeAfterAd
          • AATKitShowingEmpty
          • AATKitUserEarnedIncentive
          • AATKitObtainedAdRules
          • AATKitUnknownBundleId
          • AATKitHaveAdOnMultiSizeBanner
          • managedConsentNeedsUserInterface
          • managedConsentCMPFinished
          • managedConsentCMPFailedToLoad
          • managedConsentCMPFailedToShow
          • countedAdSpace
          • countedRequest
          • countedResponse
          • countedImpression
          • countedVimpression
          • countedNimpression
          • countedDirectDealsImpressionForNetwork
          • countedClick
          • didCountImpression
          • onGetAdInfo
      • RNAatkitBanner
        • Properties
          • name
          • size
          • gravity
          • reloadOnStart
          • autoreload
          • visible
          • creativeHistorySize
        • Methods
          • reloadPlacement
          • reloadPlacementForced
        • Events
          • onHaveAd
          • onHaveAdForPlacementWithBannerView
          • onNoAd
          • onPauseForAd
          • onResumeAfterAd
          • onShowingEmpty
          • onCountedAdSpace
          • onCountedRequest
          • onCountedResponse
          • onCountedImpression
          • onCountedVimpression
          • onCountedNimpression
          • onCountedDirectDealsImpressionForNetwork
          • onCountedClick
      • RNAatkitInFeedBanner
        • Properties
          • name
          • reloadOnStart
          • forceCacheConsuming
        • Events
          • onCreate
          • onShowNewAd
          • onNoAd
      • RNAatkitUnifiedNativeAd
        • Properties
          • name
          • reloadOnStart
          • showTestDataForLayout
          • testData
      • Other
        • Configuration JSON
        • RNAatkitAdNetworkOptions
          • RNAatkitAppNexusOptions
          • RNAatkitPubNativeOptions
          • RNAatkitFeedAdOptions
          • RNAatkitAdMobOptions
          • RNAatkitDFPOptions
          • RNAatkitDatonomyOptions
          • RNAatkitSuperAwesomeOptions
            • RNAatkitSuperAwesomeBannerOptions
            • RNAatkitSuperAwesomeInterstitialAdOptions
            • RNAatkitSuperAwesomeRewardedVideOptions
          • RNAatkitGraviteRTBOptions
          • RNAatkitDisplayIOOptions
        • Ad Networks
        • Banner Sizes
        • RNAatkitDebugScreenConfiguration
Powered by GitBook
On this page
  1. Start

Expo

Expo-specific details

PreviousSetupNextInitialization

Last updated 2 months ago

This plugin is designed for use with Expo. Please ensure that you are using one of the following workflows:

  • Bare Workflow

  • Managed Workflow with EAS

You can build your project in the cloud using EAS Build or locally with the expo prebuild command.

Configuring Platform-Specific AdMob App IDs

If you are using Bare Workflow, you need to manually add the AdMob App IDs to the native configuration files, as described .

However, for Managed Workflow with EAS to specify separate AdMob App IDs for Android and iOS, you need to update your Expo configuration. This can be done in either app.config.js or app.json by adding the following entry under plugins, like:

plugins: [
  [
    "@addapptr/react-native-aatkit",
    {
      "androidAdMobAppId": "ca-app-pub-000000000000000~0000000000",
      "iosAdMobAppId": "ca-app-pub-000000000000000~0000000000"
    }
  ]
]

This ensures that the correct AdMob App ID is used depending on the platform the app is running on.

here