Builder
class Builder
| kotlin.Any | |
| ↳ | android.adservices.adselection.SignedContextualAds.Builder |
Builder for SignedContextualAds object
Summary
| Public constructors | |
|---|---|
Builder() |
|
Builder(signedContextualAds: SignedContextualAds)Returns a |
|
| Public methods | |
|---|---|
| SignedContextualAds |
build()Builds a |
| SignedContextualAds.Builder |
setAdsWithBid(adsWithBid: MutableList<AdWithBid!>)Sets the Ads with pre-defined bid values |
| SignedContextualAds.Builder |
setBuyer(buyer: AdTechIdentifier)Sets the buyer Ad tech Identifier |
| SignedContextualAds.Builder |
setDecisionLogicUri(decisionLogicUri: Uri)Sets the URI to fetch the decision logic used in ad selection and reporting |
| SignedContextualAds.Builder |
setSignature(signature: ByteArray)Sets the copied signature |
Public constructors
Builder
Builder(signedContextualAds: SignedContextualAds)
Returns a SignedContextualAds.Builder from a SignedContextualAds.
| Parameters | |
|---|---|
signedContextualAds |
SignedContextualAds: This value cannot be null. |
Public methods
build
fun build(): SignedContextualAds
Builds a SignedContextualAds instance.
| Return | |
|---|---|
SignedContextualAds |
This value cannot be null. |
| Exceptions | |
|---|---|
java.lang.NullPointerException |
if any required params are null |
setAdsWithBid
fun setAdsWithBid(adsWithBid: MutableList<AdWithBid!>): SignedContextualAds.Builder
Sets the Ads with pre-defined bid values
See getAdsWithBid() for more details
| Parameters | |
|---|---|
adsWithBid |
MutableList<AdWithBid!>: This value cannot be null. |
| Return | |
|---|---|
SignedContextualAds.Builder |
This value cannot be null. |
setBuyer
fun setBuyer(buyer: AdTechIdentifier): SignedContextualAds.Builder
Sets the buyer Ad tech Identifier
See getBuyer() for more details
| Parameters | |
|---|---|
buyer |
AdTechIdentifier: This value cannot be null. |
| Return | |
|---|---|
SignedContextualAds.Builder |
This value cannot be null. |
setDecisionLogicUri
fun setDecisionLogicUri(decisionLogicUri: Uri): SignedContextualAds.Builder
Sets the URI to fetch the decision logic used in ad selection and reporting
See getDecisionLogicUri() for more details
| Parameters | |
|---|---|
decisionLogicUri |
Uri: This value cannot be null. |
| Return | |
|---|---|
SignedContextualAds.Builder |
This value cannot be null. |
setSignature
fun setSignature(signature: ByteArray): SignedContextualAds.Builder
Sets the copied signature
| Parameters | |
|---|---|
signature |
ByteArray: This value cannot be null. |
| Return | |
|---|---|
SignedContextualAds.Builder |
This value cannot be null. |