// Signature format: 2.0 package android.adservices { public class AdServicesState { method public static boolean isAdServicesStateEnabled(); } } package android.adservices.adid { public class AdId { ctor public AdId(@NonNull String, boolean); method @NonNull public String getAdId(); method public boolean isLimitAdTrackingEnabled(); field public static final String ZERO_OUT = "00000000-0000-0000-0000-000000000000"; } public class AdIdManager { method @NonNull public static android.adservices.adid.AdIdManager get(@NonNull android.content.Context); method @NonNull @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_AD_ID) public void getAdId(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); } } package android.adservices.adselection { public final class AdSelectionConfig implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.adservices.common.AdSelectionSignals getAdSelectionSignals(); method @NonNull public java.util.List getCustomAudienceBuyers(); method @NonNull public android.net.Uri getDecisionLogicUri(); method @NonNull public java.util.Map getPerBuyerSignals(); method @NonNull public android.adservices.common.AdTechIdentifier getSeller(); method @NonNull public android.adservices.common.AdSelectionSignals getSellerSignals(); method @NonNull public android.net.Uri getTrustedScoringSignalsUri(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class AdSelectionConfig.Builder { ctor public AdSelectionConfig.Builder(); method @NonNull public android.adservices.adselection.AdSelectionConfig build(); method @NonNull public android.adservices.adselection.AdSelectionConfig.Builder setAdSelectionSignals(@NonNull android.adservices.common.AdSelectionSignals); method @NonNull public android.adservices.adselection.AdSelectionConfig.Builder setCustomAudienceBuyers(@NonNull java.util.List); method @NonNull public android.adservices.adselection.AdSelectionConfig.Builder setDecisionLogicUri(@NonNull android.net.Uri); method @NonNull public android.adservices.adselection.AdSelectionConfig.Builder setPerBuyerSignals(@NonNull java.util.Map); method @NonNull public android.adservices.adselection.AdSelectionConfig.Builder setSeller(@NonNull android.adservices.common.AdTechIdentifier); method @NonNull public android.adservices.adselection.AdSelectionConfig.Builder setSellerSignals(@NonNull android.adservices.common.AdSelectionSignals); method @NonNull public android.adservices.adselection.AdSelectionConfig.Builder setTrustedScoringSignalsUri(@NonNull android.net.Uri); } public class AdSelectionManager { method @NonNull public static android.adservices.adselection.AdSelectionManager get(@NonNull android.content.Context); method @NonNull public android.adservices.adselection.TestAdSelectionManager getTestAdSelectionManager(); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE) public void reportImpression(@NonNull android.adservices.adselection.ReportImpressionRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE) public void selectAds(@NonNull android.adservices.adselection.AdSelectionConfig, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); } public class AdSelectionOutcome { method @NonNull public long getAdSelectionId(); method @NonNull public android.net.Uri getRenderUri(); } public static final class AdSelectionOutcome.Builder { ctor public AdSelectionOutcome.Builder(); method @NonNull public android.adservices.adselection.AdSelectionOutcome build(); method @NonNull public android.adservices.adselection.AdSelectionOutcome.Builder setAdSelectionId(long); method @NonNull public android.adservices.adselection.AdSelectionOutcome.Builder setRenderUri(@NonNull android.net.Uri); } public class AddAdSelectionOverrideRequest { ctor public AddAdSelectionOverrideRequest(@NonNull android.adservices.adselection.AdSelectionConfig, @NonNull String, @NonNull android.adservices.common.AdSelectionSignals); method @NonNull public android.adservices.adselection.AdSelectionConfig getAdSelectionConfig(); method @NonNull public String getDecisionLogicJs(); method @NonNull public android.adservices.common.AdSelectionSignals getTrustedScoringSignals(); } public class RemoveAdSelectionOverrideRequest { ctor public RemoveAdSelectionOverrideRequest(@NonNull android.adservices.adselection.AdSelectionConfig); method @NonNull public android.adservices.adselection.AdSelectionConfig getAdSelectionConfig(); } public class ReportImpressionRequest { ctor public ReportImpressionRequest(long, @NonNull android.adservices.adselection.AdSelectionConfig); method @NonNull public android.adservices.adselection.AdSelectionConfig getAdSelectionConfig(); method public long getAdSelectionId(); } public class TestAdSelectionManager { method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE) public void overrideAdSelectionConfigRemoteInfo(@NonNull android.adservices.adselection.AddAdSelectionOverrideRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE) public void removeAdSelectionConfigRemoteInfoOverride(@NonNull android.adservices.adselection.RemoveAdSelectionOverrideRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE) public void resetAllAdSelectionConfigRemoteOverrides(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); } } package android.adservices.appsetid { public class AppSetId { ctor public AppSetId(@NonNull String, int); method @NonNull public String getId(); method public int getScope(); field public static final int SCOPE_APP = 1; // 0x1 field public static final int SCOPE_DEVELOPER = 2; // 0x2 } public class AppSetIdManager { method @NonNull public static android.adservices.appsetid.AppSetIdManager get(@NonNull android.content.Context); method @NonNull public void getAppSetId(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); } } package android.adservices.common { public final class AdData implements android.os.Parcelable { method public int describeContents(); method @NonNull public String getMetadata(); method @NonNull public android.net.Uri getRenderUri(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class AdData.Builder { ctor public AdData.Builder(); method @NonNull public android.adservices.common.AdData build(); method @NonNull public android.adservices.common.AdData.Builder setMetadata(@NonNull String); method @NonNull public android.adservices.common.AdData.Builder setRenderUri(@NonNull android.net.Uri); } public final class AdSelectionSignals implements android.os.Parcelable { method public int describeContents(); method @NonNull public static android.adservices.common.AdSelectionSignals fromString(@NonNull String); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final android.adservices.common.AdSelectionSignals EMPTY; } public class AdServicesPermissions { field public static final String ACCESS_ADSERVICES_AD_ID = "android.permission.ACCESS_ADSERVICES_AD_ID"; field public static final String ACCESS_ADSERVICES_ATTRIBUTION = "android.permission.ACCESS_ADSERVICES_ATTRIBUTION"; field public static final String ACCESS_ADSERVICES_CUSTOM_AUDIENCE = "android.permission.ACCESS_ADSERVICES_CUSTOM_AUDIENCE"; field public static final String ACCESS_ADSERVICES_TOPICS = "android.permission.ACCESS_ADSERVICES_TOPICS"; } public final class AdTechIdentifier implements android.os.Parcelable { method public int describeContents(); method @NonNull public static android.adservices.common.AdTechIdentifier fromString(@NonNull String); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } } package android.adservices.customaudience { public class AddCustomAudienceOverrideRequest { ctor public AddCustomAudienceOverrideRequest(@NonNull android.adservices.common.AdTechIdentifier, @NonNull String, @NonNull String, @NonNull android.adservices.common.AdSelectionSignals); method @NonNull public String getBiddingLogicJs(); method @NonNull public android.adservices.common.AdTechIdentifier getBuyer(); method @NonNull public String getName(); method @NonNull public android.adservices.common.AdSelectionSignals getTrustedBiddingSignals(); } public static final class AddCustomAudienceOverrideRequest.Builder { ctor public AddCustomAudienceOverrideRequest.Builder(); method @NonNull public android.adservices.customaudience.AddCustomAudienceOverrideRequest build(); method @NonNull public android.adservices.customaudience.AddCustomAudienceOverrideRequest.Builder setBiddingLogicJs(@NonNull String); method @NonNull public android.adservices.customaudience.AddCustomAudienceOverrideRequest.Builder setBuyer(@NonNull android.adservices.common.AdTechIdentifier); method @NonNull public android.adservices.customaudience.AddCustomAudienceOverrideRequest.Builder setName(@NonNull String); method @NonNull public android.adservices.customaudience.AddCustomAudienceOverrideRequest.Builder setTrustedBiddingSignals(@NonNull android.adservices.common.AdSelectionSignals); } public final class CustomAudience implements android.os.Parcelable { method public int describeContents(); method @Nullable public java.time.Instant getActivationTime(); method @NonNull public java.util.List getAds(); method @NonNull public android.net.Uri getBiddingLogicUri(); method @NonNull public android.adservices.common.AdTechIdentifier getBuyer(); method @NonNull public android.net.Uri getDailyUpdateUri(); method @Nullable public java.time.Instant getExpirationTime(); method @NonNull public String getName(); method @Nullable public android.adservices.customaudience.TrustedBiddingData getTrustedBiddingData(); method @Nullable public android.adservices.common.AdSelectionSignals getUserBiddingSignals(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class CustomAudience.Builder { ctor public CustomAudience.Builder(); method @NonNull public android.adservices.customaudience.CustomAudience build(); method @NonNull public android.adservices.customaudience.CustomAudience.Builder setActivationTime(@Nullable java.time.Instant); method @NonNull public android.adservices.customaudience.CustomAudience.Builder setAds(@Nullable java.util.List); method @NonNull public android.adservices.customaudience.CustomAudience.Builder setBiddingLogicUri(@NonNull android.net.Uri); method @NonNull public android.adservices.customaudience.CustomAudience.Builder setBuyer(@NonNull android.adservices.common.AdTechIdentifier); method @NonNull public android.adservices.customaudience.CustomAudience.Builder setDailyUpdateUri(@NonNull android.net.Uri); method @NonNull public android.adservices.customaudience.CustomAudience.Builder setExpirationTime(@Nullable java.time.Instant); method @NonNull public android.adservices.customaudience.CustomAudience.Builder setName(@NonNull String); method @NonNull public android.adservices.customaudience.CustomAudience.Builder setTrustedBiddingData(@Nullable android.adservices.customaudience.TrustedBiddingData); method @NonNull public android.adservices.customaudience.CustomAudience.Builder setUserBiddingSignals(@Nullable android.adservices.common.AdSelectionSignals); } public class CustomAudienceManager { method @NonNull public static android.adservices.customaudience.CustomAudienceManager get(@NonNull android.content.Context); method @NonNull public android.adservices.customaudience.TestCustomAudienceManager getTestCustomAudienceManager(); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE) public void joinCustomAudience(@NonNull android.adservices.customaudience.JoinCustomAudienceRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE) public void leaveCustomAudience(@NonNull android.adservices.customaudience.LeaveCustomAudienceRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); } public class JoinCustomAudienceRequest { method @NonNull public android.adservices.customaudience.CustomAudience getCustomAudience(); } public static final class JoinCustomAudienceRequest.Builder { ctor public JoinCustomAudienceRequest.Builder(); method @NonNull public android.adservices.customaudience.JoinCustomAudienceRequest build(); method @NonNull public android.adservices.customaudience.JoinCustomAudienceRequest.Builder setCustomAudience(@NonNull android.adservices.customaudience.CustomAudience); } public final class LeaveCustomAudienceRequest { method @NonNull public android.adservices.common.AdTechIdentifier getBuyer(); method @NonNull public String getName(); } public static final class LeaveCustomAudienceRequest.Builder { ctor public LeaveCustomAudienceRequest.Builder(); method @NonNull public android.adservices.customaudience.LeaveCustomAudienceRequest build(); method @NonNull public android.adservices.customaudience.LeaveCustomAudienceRequest.Builder setBuyer(@NonNull android.adservices.common.AdTechIdentifier); method @NonNull public android.adservices.customaudience.LeaveCustomAudienceRequest.Builder setName(@NonNull String); } public class RemoveCustomAudienceOverrideRequest { ctor public RemoveCustomAudienceOverrideRequest(@NonNull android.adservices.common.AdTechIdentifier, @NonNull String); method @NonNull public android.adservices.common.AdTechIdentifier getBuyer(); method @NonNull public String getName(); } public static final class RemoveCustomAudienceOverrideRequest.Builder { ctor public RemoveCustomAudienceOverrideRequest.Builder(); method @NonNull public android.adservices.customaudience.RemoveCustomAudienceOverrideRequest build(); method @NonNull public android.adservices.customaudience.RemoveCustomAudienceOverrideRequest.Builder setBuyer(@NonNull android.adservices.common.AdTechIdentifier); method @NonNull public android.adservices.customaudience.RemoveCustomAudienceOverrideRequest.Builder setName(@NonNull String); } public class TestCustomAudienceManager { method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE) public void overrideCustomAudienceRemoteInfo(@NonNull android.adservices.customaudience.AddCustomAudienceOverrideRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE) public void removeCustomAudienceRemoteInfoOverride(@NonNull android.adservices.customaudience.RemoveCustomAudienceOverrideRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_CUSTOM_AUDIENCE) public void resetAllCustomAudienceOverrides(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); } public final class TrustedBiddingData implements android.os.Parcelable { method public int describeContents(); method @NonNull public java.util.List getTrustedBiddingKeys(); method @NonNull public android.net.Uri getTrustedBiddingUri(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class TrustedBiddingData.Builder { ctor public TrustedBiddingData.Builder(); method @NonNull public android.adservices.customaudience.TrustedBiddingData build(); method @NonNull public android.adservices.customaudience.TrustedBiddingData.Builder setTrustedBiddingKeys(@NonNull java.util.List); method @NonNull public android.adservices.customaudience.TrustedBiddingData.Builder setTrustedBiddingUri(@NonNull android.net.Uri); } } package android.adservices.exceptions { public class AdServicesException extends java.lang.Exception { ctor public AdServicesException(@Nullable String, @Nullable Throwable); ctor public AdServicesException(@Nullable String); } } package android.adservices.measurement { public class DeletionRequest { method public int getDeletionMode(); method @NonNull public java.util.List getDomainUris(); method @NonNull public java.time.Instant getEnd(); method public int getMatchBehavior(); method @NonNull public java.util.List getOriginUris(); method @NonNull public java.time.Instant getStart(); field public static final int DELETION_MODE_ALL = 0; // 0x0 field public static final int DELETION_MODE_EXCLUDE_INTERNAL_DATA = 1; // 0x1 field public static final int MATCH_BEHAVIOR_DELETE = 0; // 0x0 field public static final int MATCH_BEHAVIOR_PRESERVE = 1; // 0x1 } public static final class DeletionRequest.Builder { ctor public DeletionRequest.Builder(); method @NonNull public android.adservices.measurement.DeletionRequest build(); method @NonNull public android.adservices.measurement.DeletionRequest.Builder setDeletionMode(int); method @NonNull public android.adservices.measurement.DeletionRequest.Builder setDomainUris(@Nullable java.util.List); method @NonNull public android.adservices.measurement.DeletionRequest.Builder setEnd(@NonNull java.time.Instant); method @NonNull public android.adservices.measurement.DeletionRequest.Builder setMatchBehavior(int); method @NonNull public android.adservices.measurement.DeletionRequest.Builder setOriginUris(@Nullable java.util.List); method @NonNull public android.adservices.measurement.DeletionRequest.Builder setStart(@NonNull java.time.Instant); } public class MeasurementManager { method public void deleteRegistrations(@NonNull android.adservices.measurement.DeletionRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); method @NonNull public static android.adservices.measurement.MeasurementManager get(@NonNull android.content.Context); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION) public void getMeasurementApiStatus(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION) public void registerSource(@NonNull android.net.Uri, @Nullable android.view.InputEvent, @Nullable java.util.concurrent.Executor, @Nullable android.os.OutcomeReceiver); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION) public void registerTrigger(@NonNull android.net.Uri, @Nullable java.util.concurrent.Executor, @Nullable android.os.OutcomeReceiver); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION) public void registerWebSource(@NonNull android.adservices.measurement.WebSourceRegistrationRequest, @Nullable java.util.concurrent.Executor, @Nullable android.os.OutcomeReceiver); method @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION) public void registerWebTrigger(@NonNull android.adservices.measurement.WebTriggerRegistrationRequest, @Nullable java.util.concurrent.Executor, @Nullable android.os.OutcomeReceiver); field public static final int MEASUREMENT_API_STATE_DISABLED = 0; // 0x0 field public static final int MEASUREMENT_API_STATE_ENABLED = 1; // 0x1 } public final class WebSourceParams implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.net.Uri getRegistrationUri(); method public boolean isDebugKeyAllowed(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WebSourceParams.Builder { ctor public WebSourceParams.Builder(@NonNull android.net.Uri); method @NonNull public android.adservices.measurement.WebSourceParams build(); method @NonNull public android.adservices.measurement.WebSourceParams.Builder setDebugKeyAllowed(boolean); } public final class WebSourceRegistrationRequest implements android.os.Parcelable { method public int describeContents(); method @Nullable public android.net.Uri getAppDestination(); method @Nullable public android.view.InputEvent getInputEvent(); method @NonNull public java.util.List getSourceParams(); method @NonNull public android.net.Uri getTopOriginUri(); method @Nullable public android.net.Uri getVerifiedDestination(); method @Nullable public android.net.Uri getWebDestination(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WebSourceRegistrationRequest.Builder { ctor public WebSourceRegistrationRequest.Builder(@NonNull java.util.List, @NonNull android.net.Uri); method @NonNull public android.adservices.measurement.WebSourceRegistrationRequest build(); method @NonNull public android.adservices.measurement.WebSourceRegistrationRequest.Builder setAppDestination(@Nullable android.net.Uri); method @NonNull public android.adservices.measurement.WebSourceRegistrationRequest.Builder setInputEvent(@Nullable android.view.InputEvent); method @NonNull public android.adservices.measurement.WebSourceRegistrationRequest.Builder setVerifiedDestination(@Nullable android.net.Uri); method @NonNull public android.adservices.measurement.WebSourceRegistrationRequest.Builder setWebDestination(@Nullable android.net.Uri); } public final class WebTriggerParams implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.net.Uri getRegistrationUri(); method public boolean isDebugKeyAllowed(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WebTriggerParams.Builder { ctor public WebTriggerParams.Builder(@NonNull android.net.Uri); method @NonNull public android.adservices.measurement.WebTriggerParams build(); method @NonNull public android.adservices.measurement.WebTriggerParams.Builder setDebugKeyAllowed(boolean); } public final class WebTriggerRegistrationRequest implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.net.Uri getDestination(); method @NonNull public java.util.List getTriggerParams(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WebTriggerRegistrationRequest.Builder { ctor public WebTriggerRegistrationRequest.Builder(@NonNull java.util.List, @NonNull android.net.Uri); method @NonNull public android.adservices.measurement.WebTriggerRegistrationRequest build(); } } package android.adservices.topics { public final class GetTopicsRequest { method @NonNull public String getAdsSdkName(); method public boolean shouldRecordObservation(); } public static final class GetTopicsRequest.Builder { ctor public GetTopicsRequest.Builder(); method @NonNull public android.adservices.topics.GetTopicsRequest build(); method @NonNull public android.adservices.topics.GetTopicsRequest.Builder setAdsSdkName(@NonNull String); method @NonNull public android.adservices.topics.GetTopicsRequest.Builder setShouldRecordObservation(boolean); } public final class GetTopicsResponse { method @NonNull public java.util.List getTopics(); } public static final class GetTopicsResponse.Builder { ctor public GetTopicsResponse.Builder(@NonNull java.util.List); method @NonNull public android.adservices.topics.GetTopicsResponse build(); } public final class Topic { ctor public Topic(long, long, int); method public long getModelVersion(); method public long getTaxonomyVersion(); method public int getTopicId(); } public final class TopicsManager { method @NonNull public static android.adservices.topics.TopicsManager get(@NonNull android.content.Context); method @NonNull @RequiresPermission(android.adservices.common.AdServicesPermissions.ACCESS_ADSERVICES_TOPICS) public void getTopics(@NonNull android.adservices.topics.GetTopicsRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver); } }