UpdateAdCounterHistogramRequest.Builder
public
static
final
class
UpdateAdCounterHistogramRequest.Builder
extends Object
| java.lang.Object | |
| ↳ | android.adservices.adselection.UpdateAdCounterHistogramRequest.Builder |
This class was deprecated
in API level 37.
The Rubidium (Rb) Relevance APIs, including those in
android.adservices.adselection, are being deprecated. Relevance APIs have no direct
replacement. Developers should stop using them, as calls will be rejected in future
Android releases. Please refer to official Privacy Sandbox documentation for deprecation
and roadmap details:
https://privacysandbox.com/news/update-on-plans-for-privacy-sandbox-technologies/
Builder for UpdateAdCounterHistogramRequest objects.
Summary
Public constructors | |
|---|---|
Builder(long adSelectionId, int adEventType, AdTechIdentifier callerAdTech)
|
|
Public methods | |
|---|---|
UpdateAdCounterHistogramRequest
|
build()
Builds the |
UpdateAdCounterHistogramRequest.Builder
|
setAdEventType(int adEventType)
Sets the ad event type which, along with an ad's counter keys, identifies which histogram should be updated. |
UpdateAdCounterHistogramRequest.Builder
|
setAdSelectionId(long adSelectionId)
Sets the ad selection ID with which the rendered ad's events are associated. |
UpdateAdCounterHistogramRequest.Builder
|
setCallerAdTech(AdTechIdentifier callerAdTech)
Sets the caller adtech entity's |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder (long adSelectionId,
int adEventType,
AdTechIdentifier callerAdTech)| Parameters | |
|---|---|
adSelectionId |
long |
adEventType |
int |
callerAdTech |
AdTechIdentifier: This value cannot be null. |
Public methods
build
public UpdateAdCounterHistogramRequest build ()
Builds the UpdateAdCounterHistogramRequest object.
| Returns | |
|---|---|
UpdateAdCounterHistogramRequest |
This value cannot be null. |
setAdEventType
public UpdateAdCounterHistogramRequest.Builder setAdEventType (int adEventType)
Sets the ad event type which, along with an ad's counter keys, identifies which histogram should be updated.
See UpdateAdCounterHistogramRequest.getAdEventType() for more information.
| Parameters | |
|---|---|
adEventType |
int: Value is one of the following:
|
| Returns | |
|---|---|
UpdateAdCounterHistogramRequest.Builder |
This value cannot be null. |
setAdSelectionId
public UpdateAdCounterHistogramRequest.Builder setAdSelectionId (long adSelectionId)
Sets the ad selection ID with which the rendered ad's events are associated.
See UpdateAdCounterHistogramRequest.getAdSelectionId() for more information.
| Parameters | |
|---|---|
adSelectionId |
long |
| Returns | |
|---|---|
UpdateAdCounterHistogramRequest.Builder |
This value cannot be null. |
setCallerAdTech
public UpdateAdCounterHistogramRequest.Builder setCallerAdTech (AdTechIdentifier callerAdTech)
Sets the caller adtech entity's AdTechIdentifier.
See UpdateAdCounterHistogramRequest.getCallerAdTech() for more information.
| Parameters | |
|---|---|
callerAdTech |
AdTechIdentifier: This value cannot be null. |
| Returns | |
|---|---|
UpdateAdCounterHistogramRequest.Builder |
This value cannot be null. |