AdData
public final class AdData
Represents data specific to an ad that is necessary for ad selection and rendering.
Summary
Public constructors |
|---|
|
Represents data specific to an ad that is necessary for ad selection and rendering. |
@ExperimentalFeatures.Ext8OptInRepresents data specific to an ad that is necessary for ad selection and rendering. |
Public methods |
|
|---|---|
boolean |
Checks whether two |
final @NonNull Set<@NonNull Integer> |
the set of keys used in counting events |
final AdFilters |
all |
final String |
ad render id for server auctions |
final @NonNull String |
buyer ad metadata represented as a JSON string |
final @NonNull Uri |
a URI pointing to the ad's rendering assets |
int |
hashCode()Returns the hash of the |
@NonNull String |
toString()Overrides the toString method. |
Public constructors
AdData
public AdData(@NonNull Uri renderUri, @NonNull String metadata)
Represents data specific to an ad that is necessary for ad selection and rendering.
AdData
@ExperimentalFeatures.Ext8OptIn
public AdData(
@NonNull Uri renderUri,
@NonNull String metadata,
@NonNull Set<@NonNull Integer> adCounterKeys,
AdFilters adFilters
)
Represents data specific to an ad that is necessary for ad selection and rendering.
AdData
@ExperimentalFeatures.Ext10OptIn
public AdData(
@NonNull Uri renderUri,
@NonNull String metadata,
@NonNull Set<@NonNull Integer> adCounterKeys,
AdFilters adFilters,
String adRenderId
)
| Parameters | |
|---|---|
@NonNull Uri renderUri |
a URI pointing to the ad's rendering assets |
@NonNull String metadata |
buyer ad metadata represented as a JSON string |
@NonNull Set<@NonNull Integer> adCounterKeys |
the set of keys used in counting events |
AdFilters adFilters |
all |
String adRenderId |
ad render id for server auctions |
Public methods
equals
public boolean equals(Object other)
Checks whether two AdData objects contain the same information.
getAdCounterKeys
public final @NonNull Set<@NonNull Integer> getAdCounterKeys()
the set of keys used in counting events
getAdFilters
public final AdFilters getAdFilters()
all AdFilters associated with the ad, it's optional and can be null as well
getAdRenderId
public final String getAdRenderId()
ad render id for server auctions
getMetadata
public final @NonNull String getMetadata()
buyer ad metadata represented as a JSON string
getRenderUri
public final @NonNull Uri getRenderUri()
a URI pointing to the ad's rendering assets