@ExperimentalFeatures.Ext14OptIn
public final class SellerConfiguration


SellerConfiguration will be part of the GetAdSelectionDataRequest and will be constructed and used by the SDK to influence the size of the response of GetAdSelectionData API.

Summary

Public constructors

SellerConfiguration(
    int maximumPayloadSizeBytes,
    @NonNull Set<@NonNull PerBuyerConfiguration> perBuyerConfigurations
)

Public methods

boolean
equals(Object other)

Checks whether two SellerConfiguration objects contain the same information.

final int

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

final @NonNull Set<@NonNull PerBuyerConfiguration>

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

int

Returns the hash of the SellerConfiguration object's data.

@NonNull String

Overrides the toString method.

Public constructors

SellerConfiguration

Added in 1.1.0-beta12
public SellerConfiguration(
    int maximumPayloadSizeBytes,
    @NonNull Set<@NonNull PerBuyerConfiguration> perBuyerConfigurations
)
Parameters
int maximumPayloadSizeBytes

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

@NonNull Set<@NonNull PerBuyerConfiguration> perBuyerConfigurations

Returns a set of per buyer configurations that the service will do a best effort to respect when constructing the response without exceeding maximumPayloadSizeBytes. If this is empty, the service will fill up the response with buyer data until maximumPayloadSizeBytes is reached. Otherwise, only data from buyers from the per buyer configuration will be included.

Public methods

equals

public boolean equals(Object other)

Checks whether two SellerConfiguration objects contain the same information.

getMaximumPayloadSizeBytes

Added in 1.1.0-beta12
public final int getMaximumPayloadSizeBytes()

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

getPerBuyerConfigurations

Added in 1.1.0-beta12
public final @NonNull Set<@NonNull PerBuyerConfigurationgetPerBuyerConfigurations()

Returns a set of per buyer configurations that the service will do a best effort to respect when constructing the response without exceeding maximumPayloadSizeBytes. If this is empty, the service will fill up the response with buyer data until maximumPayloadSizeBytes is reached. Otherwise, only data from buyers from the per buyer configuration will be included.

hashCode

public int hashCode()

Returns the hash of the SellerConfiguration object's data.

toString

public @NonNull String toString()

Overrides the toString method.