VastAdsRequest

public class VastAdsRequest extends Object
implements Parcelable

A class that represents configuration of a VAST ad request. Digital Video Ad Serving Template (VAST) is a common protocol that enables ad servers to use a single ad response format across multiple publishers/video players.

Nested Class Summary

class VastAdsRequest.Builder A builder for VastAdsRequest  

Inherited Constant Summary

Public Method Summary

boolean
equals(Object other)
static VastAdsRequest
fromJson(JSONObject json)
Parses a JSON Object sent by the receiver.
String
getAdTagUrl()
Returns the URL for the VAST file, used to retrieve and identify the ad.
String
getAdsResponse()
Returns the VAST XML document that can be used as the ads response instead of making a request via an ad tag url.
int
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Public Methods

public boolean equals (Object other)

public static VastAdsRequest fromJson (JSONObject json)

Parses a JSON Object sent by the receiver.

public String getAdTagUrl ()

Returns the URL for the VAST file, used to retrieve and identify the ad.

public String getAdsResponse ()

Returns 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.

public int hashCode ()

public void writeToParcel (Parcel out, int flags)