FetchAndJoinCustomAudienceRequest
class FetchAndJoinCustomAudienceRequest
kotlin.Any | |
↳ | android.adservices.customaudience.FetchAndJoinCustomAudienceRequest |
The request object wrapping the required and optional parameters needed to fetch a CustomAudience
.
fetchUri
is the only required parameter. It represents the URI to fetch a custom audience from. name
, activationTime
, expirationTime
and userBiddingSignals
are optional parameters. They represent a partial custom audience which can be used by the caller to inform the choice of the custom audience the user should be added to. Any field set by the caller cannot be overridden by the custom audience fetched from the fetchUri
. For more information about each field refer to CustomAudience
.
Summary
Nested classes | |
---|---|
Builder for |
Public methods | |
---|---|
Boolean | |
Instant? |
Reference |
Instant? |
Reference |
Uri | |
String? |
getName() Reference |
AdSelectionSignals? |
Reference |
Int |
hashCode() |
String |
toString() |
Public methods
equals
fun equals(other: Any?): Boolean
Parameters | |
---|---|
obj |
the reference object with which to compare. |
Return | |
---|---|
Boolean |
true only if two FetchAndJoinCustomAudienceRequest objects contain the same information. |
getActivationTime
fun getActivationTime(): Instant?
Reference CustomAudience#getActivationTime()
for details.
Return | |
---|---|
Instant? |
the Instant by which joining the custom audience will be delayed. This value may be null . |
getExpirationTime
fun getExpirationTime(): Instant?
Reference CustomAudience#getExpirationTime()
for details.
Return | |
---|---|
Instant? |
the Instant by when the membership to the custom audience will expire. This value may be null . |
getFetchUri
fun getFetchUri(): Uri
Return | |
---|---|
Uri |
the Uri from which the custom audience is to be fetched. This value cannot be null . |
getName
fun getName(): String?
Reference CustomAudience#getName()
for details.
Return | |
---|---|
String? |
the String name of the custom audience to join. This value may be null . |
getUserBiddingSignals
fun getUserBiddingSignals(): AdSelectionSignals?
Reference CustomAudience#getUserBiddingSignals()
for details.
Return | |
---|---|
AdSelectionSignals? |
the buyer signals to be consumed by the buyer-provided JavaScript when the custom audience participates in an ad selection. This value may be null . |
hashCode
fun hashCode(): Int
Return | |
---|---|
Int |
the hash of the FetchAndJoinCustomAudienceRequest object's data. |
toString
fun toString(): String
Return | |
---|---|
String |
a human-readable representation of FetchAndJoinCustomAudienceRequest . |