GCKVASTAdsRequest Class
Stay organized with collections
Save and categorize content based on your preferences.
A class representing a VAST request for an ad break clip.
- Since
- 4.1
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
Inherited by GCKAdBreakClipVastAdsRequest
.
A string specifying a VAST document to be used as the ads response instead of making a request via an ad tag url. More...
- (nullable instancetype) initWithAdTagURL: |
|
(nullable NSURL *) |
adTagURL
|
adsResponse: |
|
(nullable NSString *) |
adsResponse
|
|
|
|
|
Initializes a GCKVASTAdsRequest
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
A URL for the VAST file.
- Since
- 4.1
- (NSString*) adsResponse
read
nonatomic
assign
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["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\u003eThe \u003ccode\u003eGCKVASTAdsRequest\u003c/code\u003e class represents a VAST request for an ad break clip, allowing you to specify either an ad tag URL or a VAST document directly.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties for specifying the ad tag URL (\u003ccode\u003eadTagUrl\u003c/code\u003e) and the VAST document (\u003ccode\u003eadsResponse\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eIf \u003ccode\u003eadsResponse\u003c/code\u003e is provided, the \u003ccode\u003eadTagUrl\u003c/code\u003e will be ignored.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eNSObject\u003c/code\u003e, \u003ccode\u003eNSCopying\u003c/code\u003e, and \u003ccode\u003eNSSecureCoding\u003c/code\u003e, providing basic object functionality, copy semantics, and secure coding capabilities.\u003c/p\u003e\n"]]],[],null,["# GCKVASTAdsRequest Class\n\n[Instance Methods](#pub-methods) \\| [Properties](#properties) \nGCKVASTAdsRequest Class Reference \n\nOverview\n--------\n\nA class representing a VAST request for an ad break clip.\n\nSince\n: 4.1\n\nInherits NSObject, \\\u003cNSCopying\\\u003e, and \\\u003cNSSecureCoding\\\u003e.\n\nInherited by [GCKAdBreakClipVastAdsRequest](/cast/docs/reference/ios/interface_g_c_k_ad_break_clip_vast_ads_request).\n\n|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (nullable instancetype) | - [initWithAdTagURL:adsResponse:](/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#a6a137103e04ae1d7be2012a8d6e89ca8) |\n| | Initializes a [GCKVASTAdsRequest](/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...](#a6a137103e04ae1d7be2012a8d6e89ca8) |\n| ||\n| (instancetype) | - **init** |\n| ||\n\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| NSURL \\* | [adTagUrl](/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#a91521e7ee93def335f3d053041976514) |\n| | A URL for the VAST file. [More...](#a91521e7ee93def335f3d053041976514) |\n| ||\n| NSString \\* | [adsResponse](/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_ads_request#a7f9b5a159a024fad85f1649f12844901) |\n| | A string specifying a VAST document to be used as the ads response instead of making a request via an ad tag url. [More...](#a7f9b5a159a024fad85f1649f12844901) |\n| ||\n\nMethod Detail\n-------------\n\n|---------------------------------------------|---|------------------------|---------------|\n| - (nullable instancetype) initWithAdTagURL: | | (nullable NSURL \\*) | *adTagURL* |\n| adsResponse: | | (nullable NSString \\*) | *adsResponse* |\n| | | | |\n\nInitializes a [GCKVASTAdsRequest](/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.\n\nNeeds an adTagURL or an adsResponse.\n\nParameters\n:\n\n |-------------|-------------------------------------------------------------------------------------------------|\n | adTagURL | The ad tag URL for the request. |\n | adsResponse | The ads response for the request. If this is non-nil, adTagURL will be ignored by the receiver. |\n\n\nSince\n: 4.3.4\n\nProperty Detail\n---------------\n\n|---------------------------------------------------|---------------------|\n| |----------------------| | - (NSURL\\*) adTagUrl | | readnonatomicassign |\n\nA URL for the VAST file.\n\nSince\n: 4.1 \n\n|---------------------------------------------------------------|---------------------|\n| |----------------------------| | - (NSString\\*) adsResponse | | readnonatomicassign |\n\nA string specifying a VAST document to be used as the ads response instead of making a request via an ad tag url.\n\nThis 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.\n\nSince\n: 4.1"]]