TestAdSelectionManager.OverrideAdSelectionConfigRemoteInfo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)]
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)>]
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
- request
- AddAdSelectionOverrideRequest
The configuration and remote data to override.
- executor
- IExecutor
This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.
- receiver
- IOutcomeReceiver
The callback for the operation. In the Android 16 AOSP source, it can receive a result or an exception. In the Android 17 AOSP source, both service callbacks report an exception.
- 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.
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.