Specifies a VAST document to be used as the ads response instead of
making a request via an ad tag URL. This can be useful for debugging and
other situations where a VAST response is already available.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eVastAdsRequest\u003c/code\u003e configures requests for VAST video ads within the Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eIt allows specifying either a VAST ad tag URL for retrieving ads or directly providing a VAST document for use.\u003c/p\u003e\n"],["\u003cp\u003eProperties include \u003ccode\u003eadTagUrl\u003c/code\u003e for the ad request URL and \u003ccode\u003eadsResponse\u003c/code\u003e for providing a pre-fetched VAST response.\u003c/p\u003e\n"]]],["The `VastAdsRequest` class configures VAST ad requests. It can be instantiated using `new VastAdsRequest()`. Key properties include `adsResponse`, which takes a VAST document string, allowing pre-existing ad responses to be used instead of a URL request. The `adTagUrl` property, a string, defines the URL of the VAST file to retrieve for the ad response. These properties define how a VAST ad response is configured.\n"],null,["# Class: VastAdsRequest\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).VastAdsRequest\n=======================================================================================================================================================\n\nclass static\n\nVAST ad request configuration.\n\nConstructor\n-----------\n\n### VastAdsRequest\n\nnew\nVastAdsRequest()\n\nProperties\n----------\n\n### adsResponse\n\n(string or undefined)\n\nSpecifies a VAST document to be used as the ads response instead of\nmaking a request via an ad tag URL. This can be useful for debugging and\nother situations where a VAST response is already available.\n\n### adTagUrl\n\n(string or undefined)\n\nThe VAST file URL."]]