Skip to main content

Add the Ad SDK Dependency

Add the following dependency to your app-level build.gradle file.
📝 Note:
If you’re using the Ad Analytics SDK, you do not need to add the Analytics SDK dependency separately. The Ad SDK already includes all analytics features, events, and insights. However, you must initialize the SDK in your Application class.

Initializing Analytics SDK in Android

Initialize the SDK in your Application class to start tracking sessions, events, and insights.
Demo Account
Password:123
Best Practice

Always call initialize() inside your Application class — not inside an Activity — to ensure complete session tracking.


Initialize Ads in the Launch Activity

Run initAds() in the launch activity, typically SplashActivity, StartActivity, or MainActivity.

Add Ad View in XML

Place two ads in one Activity using app:position="top" and app:position="bottom".