AI-generated Key Takeaways
-
VastAdsRequest is a class representing the configuration of a VAST ad request, implementing the Parcelable interface.
-
It includes a nested builder class, VastAdsRequest.Builder, for creating VastAdsRequest objects.
-
Key methods allow retrieving the ad tag URL or the VAST XML document directly.
-
The class also provides methods for JSON parsing, equality checks, and Parcelable implementation.
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 | |
| static VastAdsRequest | |
| 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 |
hashCode()
|
| 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.