TestCustomAudienceManager.OverrideCustomAudienceRemoteInfo 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 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
- request
- AddCustomAudienceOverrideRequest
- 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.
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.