Google is committed to advancing racial equity for Black communities. See how.

AdManagerAdRequest.Builder

public static final class AdManagerAdRequest.Builder extends AdRequest.Builder

Builds an AdManagerAdRequest.

Public Constructor Summary

Public Method Summary

AdManagerAdRequest.Builder
addCategoryExclusion(String categoryExclusion)
Sets a slot-level ad category exclusion label.
AdManagerAdRequest.Builder
addCustomTargeting(String key, List<String> values)
Adds a custom targeting parameter.
AdManagerAdRequest.Builder
addCustomTargeting(String key, String value)
Adds a custom targeting parameter.
AdManagerAdRequest
build()
Constructs an AdManagerAdRequest with the specified attributes.
AdManagerAdRequest.Builder
setPublisherProvidedId(String publisherProvidedId)
Sets an identifier for use in frequency capping, audience segmentation and targeting, sequential ad rotation, and other audience-based ad delivery controls across devices.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public AdManagerAdRequest.Builder addCategoryExclusion (String categoryExclusion)

Sets a slot-level ad category exclusion label.

public AdManagerAdRequest.Builder addCustomTargeting (String key, List<String> values)

Adds a custom targeting parameter. Calling this multiple times for the same key will overwrite old values.

public AdManagerAdRequest.Builder addCustomTargeting (String key, String value)

Adds a custom targeting parameter. Calling this multiple times for the same key will overwrite old values.

public AdManagerAdRequest build ()

Constructs an AdManagerAdRequest with the specified attributes.

public AdManagerAdRequest.Builder setPublisherProvidedId (String publisherProvidedId)

Sets an identifier for use in frequency capping, audience segmentation and targeting, sequential ad rotation, and other audience-based ad delivery controls across devices.