Added in API level 34
Also in Ad Services Extensions 4
Deprecated in API level 37

AdServicesException


public class AdServicesException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ android.adservices.exceptions.AdServicesException


This class was deprecated in API level 37.
The Rubidium (Rb) Measurement APIs, including those in android.adservices.measurement, are being deprecated. There are no direct replacement APIs for the Measurement APIs. Developers currently using these APIs should cease integration, as calls to these APIs will be rejected in upcoming Android releases as part of a soft removal process. Please refer to the official Privacy Sandbox developer documentation and announcements for more details on this deprecation and the future roadmap of Privacy Sandbox on Android: https://privacysandbox.com/news/update-on-plans-for-privacy-sandbox-technologies/

Exception thrown by AdServices.

Summary

Public constructors

AdServicesException(String message)
AdServicesException(String message, Throwable e)

Inherited methods

Public constructors

AdServicesException

public AdServicesException (String message)

Parameters
message String: This value may be null.

AdServicesException

public AdServicesException (String message, 
                Throwable e)

Parameters
message String: This value may be null.

e Throwable: This value may be null.