SellerConfiguration


class SellerConfiguration : Parcelable
kotlin.Any
   ↳ android.adservices.adselection.SellerConfiguration

This object will be part of the GetAdSelectionDataRequest and will be constructed and used by the SDK to influence the size of the response of android.adservices.adselection.AdSelectionManager#getAdSelectionData(android.adservices.adselection.GetAdSelectionDataRequest,java.util.concurrent.Executor,android.os.OutcomeReceiver)

Summary

Nested classes

Builder for SellerConfiguration objects.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

Int

Returns the maximum size of the payload in bytes that the service will return.

MutableSet<PerBuyerConfiguration!>

Returns a set of per buyer configurations that the service will do a best effort to respect when constructing the response without exceeding getMaximumPayloadSizeBytes().

Int

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<SellerConfiguration!>

Public methods

describeContents

Added in API level 36
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 36
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getMaximumPayloadSizeBytes

fun getMaximumPayloadSizeBytes(): Int

Returns the maximum size of the payload in bytes that the service will return.

Return
Int Value is between 1 and Integer.MAX_VALUE inclusive

getPerBuyerConfigurations

fun getPerBuyerConfigurations(): MutableSet<PerBuyerConfiguration!>

Returns a set of per buyer configurations that the service will do a best effort to respect when constructing the response without exceeding getMaximumPayloadSizeBytes().

If this is empty, the service will fill up the response with buyer data until getMaximumPayloadSizeBytes() is reached. Otherwise, only data from buyers from the per buyer configuration will be included. If the sum of android.adservices.adselection.PerBuyerConfiguration#getTargetInputSizeBytes() sizes is larger than getMaximumPayloadSizeBytes(), the service will do a best effort attempt to proportionally include the buyer data based on the ratio between that specific buyer's target and the sum of PerBuyerConfiguration.getTargetInputSizeBytes().

Return
MutableSet<PerBuyerConfiguration!> This value cannot be null.

hashCode

Added in API level 36
fun hashCode(): Int
Return
Int a hash code value for this object.

writeToParcel

Added in API level 36
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

static val CREATOR: Parcelable.Creator<SellerConfiguration!>