AATKit Android Integration
Release Notes
  • Start
    • Setup
      • Maven
      • Prerequisites
      • Google Family Safe Apps
    • 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
      • Sticky Banner
      • Multi-Size Banner
    • Fullscreen (Interstitial)
    • AppOpen (Google)
    • Rewarded Video
      • Server-Side Verification (SSV)
    • Native Ad
      • Basic Integration
      • Network Specifics
        • Native Ads: Google
        • Native Ads: ApplovinMax
        • Native Ads: Bluestack
        • Native Ads: FacebookAudienceNetwork
        • Native Ads: Huawei
  • Ad Networks
    • Customize Ad Networks
    • Google Mobile Ads SDK
    • AppLovinMax Ad Review
    • AppNexus special settings
    • FeedAd Shutter Colour and Disabling Spinner
    • Kidoz
  • Advanced
    • Targeting
      • Key-Value Targeting
      • User Targeting
      • Content Targeting URL
    • Frequency Capping
    • Advanced Listeners
      • Reports Delegate
      • Impression Listener (ILRD)
      • Statistics Listener
    • AATKit's Size
    • Ad Space and Fill Rate
    • Shake Debug
    • Child-directed Support
    • Geo Tracking
    • Disabling Ad Networks
    • Huawei Support
    • Creatives History
  • Other
    • AdMob Custom Events
    • Reference
      • Classes
        • AATKit
        • AATKitUserTargeting
        • CollapsibleBannerOptions
        • AATKitDebugScreenConfiguration
        • PlacementDebugInfo
        • AATKitDebugInfo
        • AATKitConfiguration
        • AATKitRuntimeConfiguration
        • ManagedConsent
        • VendorConsent
        • SimpleConsent
        • BannerConfiguration
        • BannerRequest
        • BannerCacheConfiguration
        • AATKitReward
        • NativeAdRating
        • AATKitImpression
        • PriceInfo
        • AdInfo
        • RewardedAdSSVInfo
        • PlacementHistoryInfo
        • AATKitAdNetworkOptions
          • SuperAwesomeOptions
          • FeedAdOptions
          • AppNexusOptions
          • AdMobOptions
          • DFPOptions
      • Interfaces
        • CacheStatusDelegate
        • AATKit.Delegate
        • BannerCache
        • BannerRequestCompletionListener
        • ManagedConsentDelegate
        • VendorConsentDelegate
        • Placement
        • StickyBannerPlacement
        • StickyBannerPlacementListener
        • MultiSizeBannerPlacement
        • MultiSizeBannerPlacementListener
        • InfeedBannerPlacement
        • InfeedBannerPlacementListener
        • BannerRequestDelegate
        • CacheDelegate
        • FullscreenPlacement
        • FullscreenPlacementListener
        • AppOpenAdPlacement
        • AppOpenPlacementListener
        • RewardedVideoPlacement
        • RewardedVideoPlacementListener
        • NativeAdPlacement
        • NativePlacementListener
        • NativeAdData
        • AutoLoadBannerPlacement
        • AutoLoadBannerPlacementListener
        • AutoLoadMultiSizeBannerPlacement
        • AutoLoadMultiSizeBannerPlacementListener
        • ReportsDelegate
        • ImpressionListener
        • StatisticsListener
      • Enumerations
        • AATKitGender
        • AdNetwork
        • ManagedConsentState
        • NonIABConsent
        • BannerPlacementSize
        • BannerSize
        • MediationType
        • ImpressionPricePrecisionType
  • Samples
Powered by GitBook
On this page
  1. Formats
  2. Native Ad
  3. Network Specifics

Native Ads: ApplovinMax

Integrate native ads (AppLovinMax)

Last updated 2 years ago

To use Applovin’s native ads you need to do the following:

  • Native ad assets are required to be encapsulated within a parent view of a specific type MaxNativeAdView.

  • The same view must be passed to AATKit via the NativeAdData method: attachToLayout.

  • Assign unique IDs to the native ad assets' Views in the layout file. These IDs will be used in the next integration step.

  • Bind the subviews using the assigned IDs using an instance of MaxNativeAdViewBinder. AppLovin does not guarantee a network will return certain assets.

MaxNativeAdViewBinder maxNativeAdViewBinder;
maxNativeAdViewBinder = new MaxNativeAdViewBinder.Builder(R.layout.your_layout_for_applovinmax_native_ad)
    .setTitleTextViewId( R.id.title_text_view )
    .setBodyTextViewId( R.id.body_text_view )
    .setAdvertiserTextViewId( R.id.advertiser_textView )
    .setIconImageViewId( R.id.icon_image_view )
    .setOptionsContentViewGroupId( R.id.options_view )
    .setCallToActionButtonId( R.id.cta_button )
    .build();
appLovinContainerView = new MaxNativeAdView(maxNativeAdViewBinder, activity);
val maxNativeAdViewBinder: MaxNativeAdViewBinder
maxNativeAdViewBinder = MaxNativeAdViewBinder.Builder(R.layout.your_layout_for_applovinmax_native_ad)
    .setTitleTextViewId(R.id.title_text_view)
    .setBodyTextViewId(R.id.body_text_view)
    .setAdvertiserTextViewId(R.id.advertiser_textView)
    .setIconImageViewId(R.id.icon_image_view)
    .setOptionsContentViewGroupId(R.id.options_view)
    .setCallToActionButtonId(R.id.cta_button)
    .build()
appLovinContainerView = MaxNativeAdView(maxNativeAdViewBinder, activity)
  • Next, call attachToLayout when you need to display the ad.

nativeAd.attachToLayout(appLovinContainerView, null, null, null);
nativeAd.attachToLayout(appLovinContainerView, null, null, null)
  • You don’t have to retrieve and bind each asset like or .

basic native Ads
Google Native Ads