AATKit iOS Integration
Release Notes
  • Start
    • Setup
      • Minimum iOS Version
      • Cocoapods
      • Swift Package Manager
      • AATKit Reporting
      • App Transport Security (ATS)
      • SKAdNetwork
    • Initialization
    • Consent
      • General Handling
      • Managed Consent
        • Google CMP
        • Sourcepoint CMP
        • SFBX (AppConsent) CMP
      • Vendor Consent
      • Simple Consent
    • Plugins documentation
    • Additional Information
  • Formats
    • Introduction
    • Banner
      • Auto Load Banner
      • Multi-Size Auto Load Banner
      • Banner Cache
      • Infeed Banner
      • Asynchronous Infeed Banner
      • Sticky Banner
      • Multi-Size Banner
    • Fullscreen (Interstitial)
    • AppOpen (Google)
    • Rewarded Video
      • Server-Side Verification (SSV)
    • Native Ad
      • Basic Integration
      • Asynchronous Basic Integration
      • Network Specifics
        • Native Ads: Google
        • Native Ads: Applovin
  • Ad Networks
    • Customize Ad Networks
    • Privacy Requirements
    • Google Mobile Ads SDK
    • AppNexus Custom Interstitial Auto Dismiss Delay
    • FeedAd Banner Options
    • AmazonHB
  • Advanced
    • Targeting
      • Key-Value Targeting
      • User Targeting
      • Content Targeting URL
    • Frequency Capping
    • Advanced Delegates
      • Reports Delegate
      • Impression Delegate (ILRD)
      • Statistics Delegate
    • AATKit's Size
    • Ad Space and Fill Rate
    • Shake Debug
    • Publisher Provided ID
    • Child-directed Support
    • Disabling Ad Networks
    • Geo Tracking
    • Ad Quality
    • Creatives History
  • Other
    • AdMob Custom Events
    • Datonomy
    • Reference
      • Classes
        • AATConfiguration
        • AATRuntimeConfiguration
        • AATManagedConsent
        • AATVendorConsent
        • AATSimpleConsent
        • AATAdInfo
        • AATBannerConfiguration
        • AATBannerRequest
        • AATBannerCacheConfiguration
        • AATBannerAlign
        • AATPlacementHistoryInfo
        • AATReward
        • AATRewardedAdSSVInfo
        • AATNativeAdRating
        • AATImpression
        • AATPriceInfo
        • AATAdNetworksOptions
          • AATAppNexusOptions
          • AATFeedAdOptions
          • AATAdMobOptions
          • AATDFPOptions
          • AATDatonomyOptions
        • AATDebugInfo
        • AATDebugScreenConfiguration
        • AATUserTargeting
        • AATCollapsibleBannerOptions
      • Protocols
        • AATDelegate
        • AATManagedConsentDelegate
        • AATVendorConsentDelegate
        • AATPlacement
        • AATStickyBannerPlacement
        • AATStickyBannerPlacementDelegate
        • AATMultiSizeBannerPlacement
        • AATMultiSizeBannerPlacementDelegate
        • AATInfeedBannerPlacement
        • AATInfeedBannerPlacementDelegate
        • AATAsyncInfeedBannerPlacement
        • AATBannerRequestDelegate
        • AATBannerCache
        • AATBannerCacheDelegate
        • AATBannerCacheStatusDelegate
        • AATAutoLoadBannerPlacement
        • AATAutoLoadBannerPlacementDelegate
        • AATAutoLoadMultiSizeBannerPlacement
        • AATAutoLoadMultiSizeBannerPlacementDelegate
        • AATFullscreenPlacement
        • AATFullscreenPlacementDelegate
        • AATAppOpenAdPlacement
        • AATAppOpenPlacementDelegate
        • AATRewardedVideoPlacement
        • AATRewardedVideoPlacementDelegate
        • AATNativeAdPlacement
        • AATNativePlacementDelegate
        • AATAsyncNativeAdPlacement
        • AATNativeAdData
        • AATReportsDelegate
        • AATImpressionDelegate
        • AATStatisticsDelegate
      • Enumerations
        • AATAdNetwork
        • AATGender
        • AATLogLevel
        • AATManagedConsentState
        • NonIABConsent
        • AATBannerPlacementSize
        • AATBannerSize
        • HorizontalAlign
        • VerticalAlign
        • AATMediationType
        • AATImpressionPricePrecisionType
  • Samples
Powered by GitBook
On this page
  • AATAdMobMediationAdapter
  • How AATAdMobMediationAdapter Works
  • Integration steps
  • Recommended Ad Networks
  1. Other

AdMob Custom Events

Last updated 1 month ago

AATAdMobMediationAdapter

AATAdMobMediationAdapter is a Gravite framework that implements . It supports the following ad formats:

  • Banners

  • Fullscreen

  • Rewarded Video

  • Native Ads

How AATAdMobMediationAdapter Works

  • Publishers must prepare their AdMob dashboard by adding custom events to their mediation (See Google instructions ).

  • AATAdMobMediationAdapter Implements AdMob custom events delegates.

  • The publisher requests an ad (Banner, Fullscreen, RewardedVideo or NativeAd) normally from GoogleMobileAds (To learn how to request an ad from GoogleMobileAds, please visit ).

  • GoogleMobileAds internally calls AATAdMobMediationAdapter asking for an ad.

  • AATAdMobMediationAdapter internally calls AATKit asking for an ad.

  • When AATKit responds, AATAdMobMediationAdapter would notify GoogleMobileAds with the response using the AdMob custom events delegate methods. And in return, GoogleMobileAds will notify you of the response using the normal GoogleMobileAds callback.

Integration steps

  • In your AdMob dashboard, click on mediation on the left menu.

  • Create a new mediation for each ad format (Please choose the proper ad unit you are using in your application in the GoogleMobileAds integration).

  • Open the newly created mediation and add a custom event.

  • Edit the custom event and add the proper class names from the following:

    • Banner class name: AATAdMobBannerAdapter.

    • Interstitial class name: AATAdMobInterstitialAdapter.

    • Rewarded video class name: AATAdMobRewardedVideoAdapter.

    • Native ads class name: AATAdMobNativeAdAdapter.

  • Integrate AATAdMobMediationAdapter:

    • Cocoapods:

      • pod 'AATKit/AATAdMobMediationAdapter'

        • The above line will add only the basic required dependencies of AATAdMobMediationAdapter (AATKit-Core and GoogleMobileAds)

        • To add other ad networks, you must add them via AATKit by adding the following to your Podfile:

          • pod 'AATKit/<SOME_NETWORK>'

          • For more information about adding ad networks, please check

    • Swift Package Manager:

      • Follow the same SPM steps .

      • In the last step, select AATKit-Core, AATAdMobMediationAdapter and other ad networks' adapters as needed.

  • Initialise AATKit as early as you can (in the AppDelegate didFinishLaunchingWithOptions for example) by calling:

    • AATAdMobMediationAdapterManager.shared.initAATKit()

  • Integrate with GoogleMobileAds different ad formats following their (Please add the proper app ID to your info.plist under GADApplicationIdentifier key)

  • In the viewDidAppear() of the viewController that requests an ad from Google, call the following AATAdMobMediationAdapterManager public API:

AATAdMobMediationAdapterManager.sharedInstance().viewControllerDidAppear(self)
[[AATAdMobMediationAdapterManager sharedInstance] viewControllerDidAppear:self];
  • In the viewWillDisappear() of the same viewController, call the AATAdMobMediationAdapterManager public API:

AATAdMobMediationAdapterManager.sharedInstance().viewControllerWillDisappear()
[[AATAdMobMediationAdapterManager sharedInstance] viewControllerWillDisappear];

If your integration is successfully done, you should see logs with this pattern AATAdMobMediationAdapter [LOG_LEVEL]: while testing your integration. If not, please revisit your dashboard and the above steps again.

Recommended Ad Networks

Here’s a list of the recommended ad networks and how to add them to your project:

AdColony

pod 'AATKit/AdColony'

Admob

pod 'AATKit/Admob'

AdX

pod 'AATKit/AdX'

AppLovinMAX

pod 'AATKit/AppLovinMAX'

AppLovinSDK

pod 'AATKit/AppLovinSDK'

AppNexus

pod 'AATKit/AppNexus'

CriteoSDK

pod 'AATKit/CriteoSDK'

DFP

pod 'AATKit/DFP'

Facebook

pod 'AATKit/Facebook'

FeedAd

pod 'AATKit/FeedAd'

Inmobi

pod 'AATKit/Inmobi'

IronSource

pod 'AATKit/IronSource'

OguryAds

pod 'AATKit/OguryAds'

PrebidSDK

pod 'AATKit/PrebidSDK'

Pubnative

pod 'AATKit/PubNative'

Smaato

pod 'AATKit/Smaato'

SmartAdServer

pod 'AATKit/SmartAdServer'

Unity

pod 'AATKit/Unity'

Vungle

pod 'AATKit/Vungle'

AdMob custom events
Add a custom event
Google’s documentation
AATKit Cocoapods Integration Section
here
GMA documentation