TestCustomAudienceManager.OverrideCustomAudienceRemoteInfo Method

Definition

Overrides the Custom Audience API to avoid fetching data from remote servers and use the data provided in AddCustomAudienceOverrideRequest instead.

[Android.Runtime.Register("overrideCustomAudienceRemoteInfo", "(Landroid/adservices/customaudience/AddCustomAudienceOverrideRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetOverrideCustomAudienceRemoteInfo_Landroid_adservices_customaudience_AddCustomAudienceOverrideRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_ADSERVICES_CUSTOM_AUDIENCE")]
public virtual void OverrideCustomAudienceRemoteInfo (Android.AdServices.CustomAudiences.AddCustomAudienceOverrideRequest request, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("overrideCustomAudienceRemoteInfo", "(Landroid/adservices/customaudience/AddCustomAudienceOverrideRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetOverrideCustomAudienceRemoteInfo_Landroid_adservices_customaudience_AddCustomAudienceOverrideRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_ADSERVICES_CUSTOM_AUDIENCE")>]
abstract member OverrideCustomAudienceRemoteInfo : Android.AdServices.CustomAudiences.AddCustomAudienceOverrideRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.OverrideCustomAudienceRemoteInfo : Android.AdServices.CustomAudiences.AddCustomAudienceOverrideRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

executor
IExecutor
receiver
IOutcomeReceiver
Attributes

Remarks

Overrides the Custom Audience API to avoid fetching data from remote servers and use the data provided in AddCustomAudienceOverrideRequest instead. The AddCustomAudienceOverrideRequest is provided by the Ads SDK.

This method is intended to be used for end-to-end testing. This API is enabled only for apps in debug mode with developer options enabled.

This call will fail silently if the owner in the request is not the calling app's package name.

Java documentation for android.adservices.customaudience.TestCustomAudienceManager.overrideCustomAudienceRemoteInfo(android.adservices.customaudience.AddCustomAudienceOverrideRequest, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Object, java.lang.Exception>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to