Class POBAdvertisingIdClient

  • All Implemented Interfaces:

    
    public class POBAdvertisingIdClient
    
                        

    AdvertisingIdClient class is used to manage Advertising info from google ads

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static POBAdvertisingIdClient getInstance(@NonNull() Context context) Returns the single instance of the POBAdvertisingIdClient, create if not already created.
      boolean updateAAID() This API update the Android Advertising ID info &LMT state in background and saves in shared preference for next immediate Ad request.
      String getStoredAdvertisingId() Returns the Android advertisement id if saved in local storage else returns given androidAid.
      boolean getStoredLMTState() Returns the Android advertisement id if saved in local storage else returns given state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.

      • getStoredLMTState

         boolean getStoredLMTState()

        Returns the Android advertisement id if saved in local storage else returns given state.