public final class InvideoPromotion
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the YouTube Data API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
InvideoPromotion() |
Modifier and Type | Method and Description |
---|---|
InvideoPromotion |
clone() |
InvideoTiming |
getDefaultTiming()
The default temporal position within the video where the promoted item will be displayed.
|
java.util.List<PromotedItem> |
getItems()
List of promoted items in decreasing priority.
|
InvideoPosition |
getPosition()
The spatial position within the video where the promoted item will be displayed.
|
java.lang.Boolean |
getUseSmartTiming()
Indicates whether the channel's promotional campaign uses "smart timing." This feature attempts
to show promotions at a point in the video when they are more likely to be clicked and less
likely to disrupt the viewing experience.
|
InvideoPromotion |
set(java.lang.String fieldName,
java.lang.Object value) |
InvideoPromotion |
setDefaultTiming(InvideoTiming defaultTiming)
The default temporal position within the video where the promoted item will be displayed.
|
InvideoPromotion |
setItems(java.util.List<PromotedItem> items)
List of promoted items in decreasing priority.
|
InvideoPromotion |
setPosition(InvideoPosition position)
The spatial position within the video where the promoted item will be displayed.
|
InvideoPromotion |
setUseSmartTiming(java.lang.Boolean useSmartTiming)
Indicates whether the channel's promotional campaign uses "smart timing." This feature attempts
to show promotions at a point in the video when they are more likely to be clicked and less
likely to disrupt the viewing experience.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public InvideoTiming getDefaultTiming()
null
for nonepublic InvideoPromotion setDefaultTiming(InvideoTiming defaultTiming)
defaultTiming
- defaultTiming or null
for nonepublic java.util.List<PromotedItem> getItems()
null
for nonepublic InvideoPromotion setItems(java.util.List<PromotedItem> items)
items
- items or null
for nonepublic InvideoPosition getPosition()
null
for nonepublic InvideoPromotion setPosition(InvideoPosition position)
position
- position or null
for nonepublic java.lang.Boolean getUseSmartTiming()
null
for nonepublic InvideoPromotion setUseSmartTiming(java.lang.Boolean useSmartTiming)
useSmartTiming
- useSmartTiming or null
for nonepublic InvideoPromotion set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public InvideoPromotion clone()
clone
in class com.google.api.client.json.GenericJson