Språk

AdData.Builder.SetAdCounterKeys(ICollection<Integer>) Method

Definition

Sets the set of keys used in counting events.

[Android.Runtime.Register("setAdCounterKeys", "(Ljava/util/Set;)Landroid/adservices/common/AdData$Builder;", "", ApiSince=35)]
public Android.AdServices.Common.AdData.Builder SetAdCounterKeys(System.Collections.Generic.ICollection<Java.Lang.Integer> adCounterKeys);
[<Android.Runtime.Register("setAdCounterKeys", "(Ljava/util/Set;)Landroid/adservices/common/AdData$Builder;", "", ApiSince=35)>]
member this.SetAdCounterKeys : System.Collections.Generic.ICollection<Java.Lang.Integer> -> Android.AdServices.Common.AdData.Builder

Parameters

adCounterKeys
ICollection<Integer>

The set of counter keys for the ad. The set must not be null, must not contain null, and must contain at most 10 keys.

Returns

This builder, with the counter keys assigned.

Attributes

Remarks

Sets the set of keys used in counting events.

No more than 10 ad counter keys may be associated with an ad.

See AdData.getAdCounterKeys() for more information.

Android reference for android.adservices.common.AdData.Builder.setAdCounterKeys.

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