VastAdsRequest

public classVastAdsRequestextendsObject
implementsParcelable

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 forVastAdsRequest

Inherited Constant Summary

Public Method Summary

boolean
staticVastAdsRequest
fromJson(JSONObjectjson)
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(Parcelout, int flags)

Inherited Method Summary

Public Methods

public booleanequals(Objectother)

public staticVastAdsRequest fromJson(JSONObject json)

Parses a JSON Object sent by the receiver.

publicStringgetAdTagUrl()

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

publicStringgetAdsResponse()

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 inthashCode()

public voidwriteToParcel(Parcelout, int flags)