GCKAdBreakClipVastAdsRequest 类
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
继承 GCKVASTAdsRequest。
- (nullable instancetype) initWithAdTagURL: |
|
(nullable NSURL *) |
adTagURL |
adsResponse: |
|
(nullable NSString *) |
adsResponse |
|
|
| |
初始化一个 GCKVASTAdsRequest 对象。
需要 adTag网址 或 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. |
- 开始时间
- 4.3.4
|
readnonatomicassigninherited |
- (NSString*) adsResponse |
|
readnonatomicassigninherited |
一个字符串,用于指定要用作广告响应(而不是通过广告代码网址发出请求)的 VAST 文档。
这对于调试以及有 VAST 响应的其他情况非常有用。如果 adsResponse 为非 nil,则接收方会忽略 adTag网址。
- 开始时间
- 4.1
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe \u003ccode\u003eGCKAdBreakClipVastAdsRequest\u003c/code\u003e class handles VAST ad requests for ad break clips within Google Cast.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eGCKVASTAdsRequest\u003c/code\u003e and can be initialized with either an ad tag URL or a pre-fetched VAST response.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eadTagUrl\u003c/code\u003e property stores the URL for fetching the VAST file, while \u003ccode\u003eadsResponse\u003c/code\u003e can hold a pre-fetched VAST response.\u003c/p\u003e\n"],["\u003cp\u003eIf \u003ccode\u003eadsResponse\u003c/code\u003e is provided during initialization, \u003ccode\u003eadTagUrl\u003c/code\u003e is ignored.\u003c/p\u003e\n"]]],["The `GCKAdBreakClipVastAdsRequest` class, inheriting from `GCKVASTAdsRequest`, manages VAST ad requests for ad break clips. It can be initialized using an ad tag URL or a VAST ad response string. Key properties include `adTagUrl`, a URL for the VAST file, and `adsResponse`, a string containing a VAST document. When both properties are given, `adsResponse` takes priority and it's considered the main source of the ads.\n"],null,["# GCKAdBreakClipVastAdsRequest Class\n\n[Instance Methods](#pub-methods) \\| [Properties](#properties) \nGCKAdBreakClipVastAdsRequest Class Reference \nInherits [GCKVASTAdsRequest](/cast/docs/reference/ios/interface_g_c_k_v_a_s_t_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 | | readnonatomicassigninherited |\n\nA URL for the VAST file.\n\nSince\n: 4.1 \n\n|---------------------------------------------------------------|------------------------------|\n| |----------------------------| | - (NSString\\*) adsResponse | | readnonatomicassigninherited |\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"]]