Указывает документ VAST, который будет использоваться в качестве ответа на рекламу вместо отправки запроса через URL-адрес тега объявления. Это может быть полезно для отладки и других ситуаций, когда ответ VAST уже доступен.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-24 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,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).VastAdsRequest \nclass static\n\nVAST ad request configuration.\n\nConstructor\n\nVastAdsRequest\n\nnew\nVastAdsRequest()\n\nProperties\n\nadsResponse\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\nadTagUrl\n\n(string or undefined)\n\nThe VAST file URL."]]