# GCKVASTAdsRequest Class

[Instance Methods](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#pub-methods) \| [Properties](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#properties) GCKVASTAdsRequest Class Reference

## Overview

A class representing a VAST request for an ad break clip.

Since
:   4.1

Inherits NSObject, \<NSCopying\>, and \<NSSecureCoding\>.

Inherited by [GCKAdBreakClipVastAdsRequest](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_ad_break_clip_vast_ads_request).

|---|---|
| ## Instance Method Summary ||
| (nullable instancetype) | - [initWithAdTagURL:adsResponse:](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#a6a137103e04ae1d7be2012a8d6e89ca8) |
|   | Initializes a [GCKVASTAdsRequest](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request "A class representing a VAST request for an ad break clip. ") object. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#a6a137103e04ae1d7be2012a8d6e89ca8) |
|   ||
| (instancetype) | - **init** |
|   ||

|---|---|
| ## Property Summary ||
| NSURL \* | [adTagUrl](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#a91521e7ee93def335f3d053041976514) |
|   | A URL for the VAST file. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#a91521e7ee93def335f3d053041976514) |
|   ||
| NSString \* | [adsResponse](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#a7f9b5a159a024fad85f1649f12844901) |
|   | A string specifying a VAST document to be used as the ads response instead of making a request via an ad tag url. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#a7f9b5a159a024fad85f1649f12844901) |
|   ||

## Method Detail

|---|---|---|---|
| - (nullable instancetype) initWithAdTagURL: |   | (nullable NSURL \*) | *adTagURL* |
| adsResponse: |   | (nullable NSString \*) | *adsResponse* |
|   |   |   |   |

Initializes a [GCKVASTAdsRequest](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request "A class representing a VAST request for an ad break clip. ") object.

Needs an adTagURL or an adsResponse.

Parameters
:

    |---|---|
    | adTagURL | The ad tag URL for the request. |
    | adsResponse | The ads response for the request. If this is non-nil, adTagURL will be ignored by the receiver. |


Since
:   4.3.4

## Property Detail

|---|---|
| |---| | - (NSURL\*) adTagUrl | | readnonatomicassign |

A URL for the VAST file.

Since
:   4.1

|---|---|
| |---| | - (NSString\*) adsResponse | | readnonatomicassign |

A string specifying 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. If the adsResponse is non-nil, the adTagURL will be ignored by the receiver.

Since
:   4.1