Class PrefetchConfig (0.8.0)
Stay organized with collections
Save and categorize content based on your preferences.
PrefetchConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The configuration for prefetch ads.
Attributes |
Name |
Description |
enabled |
bool
Required. Indicates whether the option to
prefetch ad requests is enabled.
|
initial_ad_request_duration |
google.protobuf.duration_pb2.Duration
The duration in seconds of the part of the
break to be prefetched. This field is only
relevant if prefetch is enabled. You should set
this duration to as long as possible to increase
the benefits of prefetching, but not longer than
the shortest ad break expected. For example, for
a live event with 30s and 60s ad breaks, the
initial duration should be set to 30s.
|
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 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]