Lớp GCKAdBreakClipVastAdsRequest
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Kế thừa GCKVASTAdsRequest.
- (nullable instancetype) initWithAdTagURL: |
|
(nullable NSURL *) |
adTagURL |
adsResponse: |
|
(nullable NSString *) |
adsResponse |
|
|
| |
Khởi động đối tượng GCKVASTAdsRequest.
Cần một adTagURL hoặc một 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. |
- Năm thành lập
- 4.3.4
|
readnonatomicassigninherited |
URL cho tệp VAST.
- Năm thành lập
- 4,1
- (NSString*) adsResponse |
|
readnonatomicassigninherited |
Một chuỗi chỉ định một tài liệu VAST để dùng làm phản hồi quảng cáo thay vì đưa ra yêu cầu qua URL của thẻ quảng cáo.
Việc này có thể hữu ích khi gỡ lỗi và trong các trường hợp khác khi đã có phản hồi VAST. Nếu adsResponse là không có giá trị nil, thì adTagURL sẽ bị trình nhận bỏ qua.
- Năm thành lập
- 4,1
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2023-12-02 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2023-12-02 UTC."],[[["The `GCKAdBreakClipVastAdsRequest` class handles VAST ad requests for ad break clips within Google Cast."],["It inherits from `GCKVASTAdsRequest` and can be initialized with either an ad tag URL or a pre-fetched VAST response."],["The `adTagUrl` property stores the URL for fetching the VAST file, while `adsResponse` can hold a pre-fetched VAST response."],["If `adsResponse` is provided during initialization, `adTagUrl` is ignored."]]],["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"]]