Native Ad
1. Basic requirements
Add ADX Android SDK to your project.
Use the Ad Unit ID issued for Native Ad.
Before requesting an ad, SDK initialization must be done first.
SDK initialization should be called only once when the app launches and ad requests should be made after SDK initialization is complete.
2. Layout setup
For Native Ads, you must create the layout to be used for the ad yourself. The required components are as follows.
Title :
TextViewMain Text :
TextViewCall-To-Action :
ButtonIcon Image :
ImageViewMain Image :
FrameLayoutPrivacy Icon :
FrameLayoutAd Tag :
TextView or ImageView
Ensure that these elements are included and properly configured, and that no layer covers the ad content. Also, avoid modifying any part of the ad content, such as changing text, images, or touch actions.
Refer to the sample source layout_adx_native_ad.xml for reference.
3. Implementation
Native Ads can be loaded using any of the following three methods.
Case 1: Using a single ad view
MainActivity
Activity (or Fragment)
Case 2: Using RecyclerView
MainActivity
Acivity (or Fragment)
You must define fixed and repeating ad positions directly in the source code for the list.
Case 3: Using Close Native Ad
After consulting the responsible manager, implement the following using the Ad Unit ID issued for Close Native Ad.
4. Ad Revenue (OnPaidEvent)
You can receive the estimated ad revenue while an ad impression occurs.
Manually set values during mediation setup and actual values may be mixed, so it is recommended to treat this as an estimate.
The currency unit of eCPM is USD.
As shown in the example below, use
OnPaidEventto check the estimated eCPM value.You can link ad revenue data with your MMP. For details, please refer to the SDK integration guides below:
This feature is only supported for Native Ad.
Last updated
Was this helpful?