Builder
class Builder
kotlin.Any | |
↳ | android.adservices.customaudience.FetchAndJoinCustomAudienceRequest.Builder |
Builder for FetchAndJoinCustomAudienceRequest
objects.
Summary
Public constructors | |
---|---|
Instantiates a |
Public methods | |
---|---|
FetchAndJoinCustomAudienceRequest |
build() Builds an instance of a |
FetchAndJoinCustomAudienceRequest.Builder |
setActivationTime(activationTime: Instant?) Sets the |
FetchAndJoinCustomAudienceRequest.Builder |
setExpirationTime(expirationTime: Instant?) Sets the |
FetchAndJoinCustomAudienceRequest.Builder |
setFetchUri(fetchUri: Uri) Sets the |
FetchAndJoinCustomAudienceRequest.Builder |
Sets the |
FetchAndJoinCustomAudienceRequest.Builder |
setUserBiddingSignals(userBiddingSignals: AdSelectionSignals?) Sets the buyer signals to be consumed by the buyer-provided JavaScript when the custom audience participates in an ad selection. |
Public constructors
Builder
Builder(fetchUri: Uri)
Instantiates a FetchAndJoinCustomAudienceRequest.Builder
with the Uri
from which the custom audience is to be fetched.
Parameters | |
---|---|
fetchUri |
Uri: This value cannot be null . |
Public methods
build
fun build(): FetchAndJoinCustomAudienceRequest
Builds an instance of a FetchAndJoinCustomAudienceRequest
.
Return | |
---|---|
FetchAndJoinCustomAudienceRequest |
This value cannot be null . |
Exceptions | |
---|---|
java.lang.NullPointerException |
if any non-null parameter is null. |
setActivationTime
fun setActivationTime(activationTime: Instant?): FetchAndJoinCustomAudienceRequest.Builder
Sets the Instant
by which joining the custom audience will be delayed.
See getActivationTime()
for details.
Parameters | |
---|---|
activationTime |
Instant?: This value may be null . |
Return | |
---|---|
FetchAndJoinCustomAudienceRequest.Builder |
This value cannot be null . |
setExpirationTime
fun setExpirationTime(expirationTime: Instant?): FetchAndJoinCustomAudienceRequest.Builder
Sets the Instant
by when the membership to the custom audience will expire.
See getExpirationTime()
for details.
Parameters | |
---|---|
expirationTime |
Instant?: This value may be null . |
Return | |
---|---|
FetchAndJoinCustomAudienceRequest.Builder |
This value cannot be null . |
setFetchUri
fun setFetchUri(fetchUri: Uri): FetchAndJoinCustomAudienceRequest.Builder
Sets the Uri
from which the custom audience is to be fetched.
See getFetchUri()
()} for details.
Parameters | |
---|---|
fetchUri |
Uri: This value cannot be null . |
Return | |
---|---|
FetchAndJoinCustomAudienceRequest.Builder |
This value cannot be null . |
setName
fun setName(name: String?): FetchAndJoinCustomAudienceRequest.Builder
Sets the String
name of the custom audience to join.
See getName()
for details.
Parameters | |
---|---|
name |
String?: This value may be null . |
Return | |
---|---|
FetchAndJoinCustomAudienceRequest.Builder |
This value cannot be null . |
setUserBiddingSignals
fun setUserBiddingSignals(userBiddingSignals: AdSelectionSignals?): FetchAndJoinCustomAudienceRequest.Builder
Sets the buyer signals to be consumed by the buyer-provided JavaScript when the custom audience participates in an ad selection.
See getUserBiddingSignals()
for details.
Parameters | |
---|---|
userBiddingSignals |
AdSelectionSignals?: This value may be null . |
Return | |
---|---|
FetchAndJoinCustomAudienceRequest.Builder |
This value cannot be null . |