cdp / com.salesforce.marketingcloud.cdp.events / Event / getAdvertisingId

getAdvertisingId

@JvmStatic fun getAdvertisingId(context: Context, listener: AdvertisingIdListener): Unit

Retrieves the advertising identifier and publishes the response to the provided listener.

Parameters

context - Your application's Context.

listener - The AdvertisingIdListener to be notified when the ID is returned from Google.