Ads
Google Admob - Banner & Interstitial
Config Adsense
Configure adsense, In this app you must replace this 2 ID with your own data, at file res/values/strings.xml
<string name="interstitial_ad_unit_id">ca-app-pub-32396...</string>
<string name="banner_ad_unit_id">ca-app-pub-32396779206...</string>
Admob App ID
Based on this article https://developers.google.com/admob/android/quick-start new admob required admob app id
<string name="admob_app_id">ca-app-pub-323967........</string>
Disable
new we make easy way to disable or enable adsense in the app, you only need to set boolean value with TRUE or FALSE
public class AppConfig {
// flag for display ads
public static final boolean ADS_MAIN_INTERSTITIAL = true;
public static final boolean ADS_PLACE_DETAILS_BANNER = true;
public static final boolean ADS_NEWS_DETAILS_BANNER = true;
. . .
}
Last updated