public static class VastAdsRequest.Builder extends Object
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.