youtube
v3
|
#include <invideo_promotion.h>
Public Member Functions | |
InvideoPromotion (const Json::Value &storage) | |
InvideoPromotion (Json::Value *storage) | |
virtual | ~InvideoPromotion () |
const StringPiece | GetTypeName () const |
bool | has_default_timing () const |
void | clear_default_timing () |
const InvideoTiming | get_default_timing () const |
InvideoTiming | mutable_defaultTiming () |
bool | has_items () const |
void | clear_items () |
const client::JsonCppArray< PromotedItem > | get_items () const |
client::JsonCppArray< PromotedItem > | mutable_items () |
bool | has_position () const |
void | clear_position () |
const InvideoPosition | get_position () const |
InvideoPosition | mutable_position () |
bool | has_use_smart_timing () const |
void | clear_use_smart_timing () |
bool | get_use_smart_timing () const |
void | set_use_smart_timing (bool value) |
Static Public Member Functions | |
static InvideoPromotion * | New () |
Describes an invideo promotion campaign consisting of multiple promoted items. A campaign belongs to a single channel_id.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'defaultTiming
' attribute.
|
inline |
Clears the 'items
' attribute.
|
inline |
Clears the 'position
' attribute.
|
inline |
Clears the 'useSmartTiming
' attribute.
const InvideoTiming google_youtube_api::InvideoPromotion::get_default_timing | ( | ) | const |
Get a reference to the value of the 'defaultTiming
' attribute.
const client::JsonCppArray<PromotedItem > google_youtube_api::InvideoPromotion::get_items | ( | ) | const |
Get a reference to the value of the 'items
' attribute.
const InvideoPosition google_youtube_api::InvideoPromotion::get_position | ( | ) | const |
Get a reference to the value of the 'position
' attribute.
|
inline |
Get the value of the 'useSmartTiming
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'defaultTiming
' attribute was set.
defaultTiming
' attribute was set.
|
inline |
Determine if the 'items
' attribute was set.
items
' attribute was set.
|
inline |
Determine if the 'position
' attribute was set.
position
' attribute was set.
|
inline |
Determine if the 'useSmartTiming
' attribute was set.
useSmartTiming
' attribute was set. InvideoTiming google_youtube_api::InvideoPromotion::mutable_defaultTiming | ( | ) |
Gets a reference to a mutable value of the 'defaultTiming
' property.
The default temporal position within the video where the promoted item will be displayed. Can be overriden by more specific timing in the item.
client::JsonCppArray<PromotedItem > google_youtube_api::InvideoPromotion::mutable_items | ( | ) |
Gets a reference to a mutable value of the 'items
' property.
List of promoted items in decreasing priority.
InvideoPosition google_youtube_api::InvideoPromotion::mutable_position | ( | ) |
Gets a reference to a mutable value of the 'position
' property.
The spatial position within the video where the promoted item will be displayed.
|
static |
Creates a new default instance.
|
inline |
Change the 'useSmartTiming
' attribute.
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. This feature also picks up a single promotion to show on each video.
[in] | value | The new value. |