Class POBAdvertisingIdClient
-
- All Implemented Interfaces:
public class POBAdvertisingIdClientAdvertisingIdClient class is used to manage Advertising info from google ads
-
-
Method Summary
Modifier and Type Method Description static POBAdvertisingIdClientgetInstance(@NonNull() Context context)Returns the single instance of the POBAdvertisingIdClient, create if not already created. booleanupdateAAID()This API update the Android Advertising ID info &LMT state in background and saves in shared preference for next immediate Ad request. StringgetStoredAdvertisingId()Returns the Android advertisement id if saved in local storage else returns given androidAid. booleangetStoredLMTState()Returns the Android advertisement id if saved in local storage else returns given state. -
-
Method Detail
-
getInstance
static POBAdvertisingIdClient getInstance(@NonNull() Context context)
Returns the single instance of the POBAdvertisingIdClient, create if not already created.
- Parameters:
context- Valid application context- Returns:
Single instance of the POBAdvertisingIdClient
-
updateAAID
boolean updateAAID()
This API update the Android Advertising ID info &LMT state in background and saves in shared preference for next immediate Ad request. This call is asynchronous. Please ensure the manifest has mentioned below permission (For Apps target API level set to 33): com.google.android.gms.permission.AD_ID
- Returns:
Returns true if the request for update is success and return false if any pending request is in progress.
-
getStoredAdvertisingId
@Nullable() String getStoredAdvertisingId()
Returns the Android advertisement id if saved in local storage else returns given androidAid.
-
getStoredLMTState
boolean getStoredLMTState()
Returns the Android advertisement id if saved in local storage else returns given state.
-
-
-
-