CustomAudienceManager.FetchAndJoinCustomAudience 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.
Adds the user to the CustomAudience
fetched from a fetchUri
.
[Android.Runtime.Register("fetchAndJoinCustomAudience", "(Landroid/adservices/customaudience/FetchAndJoinCustomAudienceRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetFetchAndJoinCustomAudience_Landroid_adservices_customaudience_FetchAndJoinCustomAudienceRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=35)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_ADSERVICES_CUSTOM_AUDIENCE")]
public virtual void FetchAndJoinCustomAudience (Android.AdServices.CustomAudiences.FetchAndJoinCustomAudienceRequest fetchAndJoinCustomAudienceRequest, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("fetchAndJoinCustomAudience", "(Landroid/adservices/customaudience/FetchAndJoinCustomAudienceRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetFetchAndJoinCustomAudience_Landroid_adservices_customaudience_FetchAndJoinCustomAudienceRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=35)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_ADSERVICES_CUSTOM_AUDIENCE")>]
abstract member FetchAndJoinCustomAudience : Android.AdServices.CustomAudiences.FetchAndJoinCustomAudienceRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.FetchAndJoinCustomAudience : Android.AdServices.CustomAudiences.FetchAndJoinCustomAudienceRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
Parameters
- fetchAndJoinCustomAudienceRequest
- FetchAndJoinCustomAudienceRequest
- executor
- IExecutor
- receiver
- IOutcomeReceiver
- Attributes
Remarks
Adds the user to the CustomAudience
fetched from a fetchUri
.
An attempt to register the user for a custom audience with the same combination of ownerPackageName
, buyer
, and name
will cause the existing custom audience's information to be overwritten, including the list of ads data.
Note that the ads list can be completely overwritten by the daily background fetch job.
This call fails with an SecurityException
if
<ol> <li>the ownerPackageName
is not calling app's package name and/or <li>the buyer is not authorized to use the API. </ol>
This call fails with an IllegalArgumentException
if
<ol> <li>the storage limit has been exceeded by the calling application and/or <li>any URI parameters in the CustomAudience
given are not authenticated with the CustomAudience
buyer. </ol>
This call fails with LimitExceededException
if the calling package exceeds the allowed rate limits and is throttled.
This call fails with an IllegalStateException
if an internal service error is encountered.
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.