Native Ads: Google
Integrate native ads (Google)
NativeAdView
Native ad assets of GoogleMobileAds SDK are required to be encapsulated within a parent view of a specific type
NativeAdView
.The same view must be passed to AATKit via the
NativeAdData
method:attachToLayout
.
Also, Google displays the native ad main image using an instance of MediaView
.
Bind Google Native Ad Assets
After getting a native ad from the NativeAdPlacement
, you can follow this code example to bind the native ad assets:
Change Native Ad AdChoicesIconPosition
You can choose from the following values to position the AdChoices icon within your native ad layout: TOP_LEFT
, TOP_RIGHT
, BOTTOM_LEFT
, BOTTOM_RIGHT
Last updated