MediaItem.AdsConfiguration.Builder


public final class MediaItem.AdsConfiguration.Builder


Builder for AdsConfiguration instances.

Summary

Public constructors

Builder(Uri adTagUri)

Constructs a new instance.

Public constructors

Builder

public Builder(Uri adTagUri)

Constructs a new instance.

Parameters
Uri adTagUri

The ad tag URI to load.

Public methods

setAdTagUri

@CanIgnoreReturnValue
public MediaItem.AdsConfiguration.Builder setAdTagUri(Uri adTagUri)

Sets the ad tag URI to load.

setAdsId

@CanIgnoreReturnValue
public MediaItem.AdsConfiguration.Builder setAdsId(@Nullable Object adsId)

Sets the ads identifier.

See details on adsId for how the ads identifier is used and how it's calculated if not explicitly set.