Share via


KeyedFrequencyCap.MaxCount Property

Definition

Returns the maximum count of event occurrences allowed within a given time interval.

public int MaxCount { [Android.Runtime.Register("getMaxCount", "()I", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getMaxCount", "()I", "", ApiSince=35)>]
member this.MaxCount : int

Property Value

Attributes

Remarks

Returns the maximum count of event occurrences allowed within a given time interval.

If there are more events matching the ad counter key and ad event type counted on the device within the time interval defined by #getInterval(), the frequency cap has been exceeded, and the ad will not be eligible for ad selection.

For example, an ad that specifies a filter for a max count of two within one hour will not be eligible for ad selection if the event has been counted two or more times within the hour preceding the ad selection process.

Java documentation for android.adservices.common.KeyedFrequencyCap.getMaxCount().

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