Ir a la consola

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()
Returns the tracking Id set by setTrackingId(String).
boolean
isGoogleAnalyticsEnabled()
Returns true if Google Analytics is enabled.
MobileAds.Settings
setGoogleAnalyticsEnabled(boolean enable)
Sets whether or not to enable Google Analytics.
MobileAds.Settings
setTrackingId(String trackingId)
Sets a tracking Id provided by Google Analytics.

Inherited Method Summary

Public Constructors

public MobileAds.Settings ()

Public Methods

public String getTrackingId ()

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

public boolean isGoogleAnalyticsEnabled ()

Returns true if Google Analytics is enabled.

public MobileAds.Settings setGoogleAnalyticsEnabled (boolean enable)

Sets whether or not to enable Google Analytics.

public MobileAds.Settings setTrackingId (String trackingId)

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