Page Summary
-
VastAdsRequest.Builderis a builder class forVastAdsRequest. -
It has a constructor to create a
Builderinstance. -
You can set the VAST ad tag URL using
setAdTagUrl. -
You can set the VAST XML response directly using
setAdsResponse, which takes precedence over the ad tag URL. -
The
buildmethod creates the finalVastAdsRequestobject.
A builder for VastAdsRequest
Public Constructor Summary
|
Builder()
Construct a
VastAdsRequest.Builder.
|
Public Method Summary
| VastAdsRequest |
build()
|
| VastAdsRequest.Builder | |
| VastAdsRequest.Builder |
setAdsResponse(String adsResponse)
Sets the VAST XML document that can be used as the ads response instead of
making a request via an ad tag url.
|
Inherited Method Summary
Public Constructors
public Builder ()
Construct a VastAdsRequest.Builder.
Public Methods
public VastAdsRequest build ()
public VastAdsRequest.Builder setAdTagUrl (String adTagUrl)
Sets the URL for the VAST file, used to retrieve and identify the ad.
public VastAdsRequest.Builder setAdsResponse (String adsResponse)
Sets the VAST XML document that can be used as the ads response instead of making a request via an ad tag url. If this is set, adTagUrl is ignored. This can be useful for debugging and other situations where a VAST response is already available.