MobileAds.Settings

public static final class MobileAds.Settings extends Object

This class describes all optional initialization settings that impact the Google Mobile Ads SDK's behavior.

Public Constructor Summary

Public Method Summary

String
getTrackingId()
Return the tracking Id set by setTrackingId(String).
boolean
isGoogleAnalyticsEnabled()
Return true if Google Analytics is enabled.
MobileAds.Settings
setGoogleAnalyticsEnabled(boolean enable)
Set whether or not to enable Google Analytics.
MobileAds.Settings
setTrackingId(String trackingId)
Set a tracking Id provided by Google Analytics.

Inherited Method Summary

Public Constructors

public MobileAds.Settings ()

Public Methods

public String getTrackingId ()

Return the tracking Id set by setTrackingId(String). Returns null if it is not set.

public boolean isGoogleAnalyticsEnabled ()

Return true if Google Analytics is enabled.

public MobileAds.Settings setGoogleAnalyticsEnabled (boolean enable)

Set whether or not to enable Google Analytics.

public MobileAds.Settings setTrackingId (String trackingId)

Set a tracking Id provided by Google Analytics. The tracking Id should match the format UA-XXXXXXXX-X

Send feedback about...

Need help? Visit our support page.