App prerequisites
Use Android Studio 3.2 or higher
Make sure that your app’s build file uses the following values:
a minSdkVersion
of 19
or higher
a compileSdkVersion
of 28
or higher
Configure your app
1. Config build.gradle (Project)
buildscript { repositories { google() mavenCentral() maven{ url 'https://android-sdk.is.com/' } } }
allprojects {
repositories {
google()
mavenCentral()
maven{
url ‘https://android-sdk.is.com/’
}
}
}
2. Config build.gradle (Module app)
dependencies { implementation 'com.google.android.gms:play-services-ads:21.3.0' implementation 'vn.netlink:android-sdk:+' }
3. Config AndroidManifest.xml
Select an ad format
The Google Mobile Ads SDK is now imported and you’re ready to implement an ad. Ad Manager offers a number of different ad formats, so you can choose the one that best fits your app’s user experience.
Banner
Rectangular ads that appear at the top or bottom of the device screen. Banner ads stay on screen while users are interacting with the app, and can refresh automatically after a certain period of time. If you’re new to mobile advertising, they’re a great place to start. |
Interstitial
Full-screen ads that cover the interface of an app until closed by the user. They’re best used at natural pauses in the flow of an app’s execution, such as between levels of a game or just after a task is completed. |
Native
Customizable ads that match the look and feel of your app. You decide how and where they’re placed, so the layout is more consistent with your app’s design. |
Google Ad Manager offers two ways to implement native ads: Native Styles and Custom Rendering.
Native Styles has been designed to make the implementation of native ads as easy as possible, and it’s a great choice if you are new to the format. Custom Rendering has been designed to maximize the freedom you have in creating your presentations.
Rewarded
Ads that reward users for watching short videos and interacting with playable ads and surveys. Used for monetizing free-to-play apps. |