共用方式為


TestAdSelectionManager.OverrideAdSelectionConfigRemoteInfo Method

Definition

Overrides the AdSelection API for a given AdSelectionConfig to avoid fetching data from remote servers and use the data provided in AddAdSelectionOverrideRequest instead.

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

Parameters

executor
IExecutor
receiver
IOutcomeReceiver
Attributes

Remarks

Overrides the AdSelection API for a given AdSelectionConfig to avoid fetching data from remote servers and use the data provided in AddAdSelectionOverrideRequest instead. The AddAdSelectionOverrideRequest 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.

Java documentation for android.adservices.adselection.TestAdSelectionManager.overrideAdSelectionConfigRemoteInfo(android.adservices.adselection.AddAdSelectionOverrideRequest, 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