Language

CustomAudience.Priority Property

Definition

Returns the priority of this CustomAudience with respect to other CustomAudiences for this buyer.

public double Priority { [Android.Runtime.Register("getPriority", "()D", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getPriority", "()D", "", ApiSince=36)>]
member this.Priority : double

Property Value

The audience's priority relative to other audiences for the same buyer. The default is zero; larger values are preferred when the server auction payload has limited space.

Attributes

Remarks

Returns the priority of this CustomAudience with respect to other CustomAudiences for this buyer.

This means if there is insufficient space during buyer input generation in the android.adservices.adselection.AdSelectionManager#getAdSelectionData(GetAdSelectionDataRequest, Executor, OutcomeReceiver) call, the service will attempt to include the highest priority custom audiences first.

The default value if this field is not set is 0.0.

Java documentation for android.adservices.customaudience.CustomAudience.getPriority().

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