@ExperimentalFeatures.Ext8OptIn
public final class AdFilters


A container class for filters which are associated with an ad.

If any of the filters in an AdFilters instance are not satisfied, the associated ad will not be eligible for ad selection. Filters are optional ad parameters and are not required as part of AdData.

Summary

Public constructors

AdFilters(FrequencyCapFilters frequencyCapFilters)

Public methods

boolean
equals(Object other)

Checks whether two AdFilters objects contain the same information.

final FrequencyCapFilters

Gets the FrequencyCapFilters instance that represents all frequency cap filters for the ad.

int

Returns the hash of the AdFilters object's data.

@NonNull String

Overrides the toString method.

Public constructors

AdFilters

Added in 1.1.0-beta06
public AdFilters(FrequencyCapFilters frequencyCapFilters)
Parameters
FrequencyCapFilters frequencyCapFilters

Gets the FrequencyCapFilters instance that represents all frequency cap filters for the ad.

Public methods

equals

public boolean equals(Object other)

Checks whether two AdFilters objects contain the same information.

getFrequencyCapFilters

Added in 1.1.0-beta06
public final FrequencyCapFilters getFrequencyCapFilters()

Gets the FrequencyCapFilters instance that represents all frequency cap filters for the ad.

hashCode

public int hashCode()

Returns the hash of the AdFilters object's data.

toString

public @NonNull String toString()

Overrides the toString method.