class Google::Apis::YoutubeV3::PromotedItem

Describes a single promoted item.

Attributes

custom_message[RW]

A custom message to display for this promotion. This field is currently ignored unless the promoted item is a website. Corresponds to the JSON property `customMessage` @return [String]

id[RW]

Describes a single promoted item id. It is a union of various possible types. Corresponds to the JSON property `id` @return [Google::Apis::YoutubeV3::PromotedItemId]

promoted_by_content_owner[RW]

If true, the content owner's name will be used when displaying the promotion. This field can only be set when the update is made on behalf of the content owner. Corresponds to the JSON property `promotedByContentOwner` @return [Boolean]

promoted_by_content_owner?[RW]

If true, the content owner's name will be used when displaying the promotion. This field can only be set when the update is made on behalf of the content owner. Corresponds to the JSON property `promotedByContentOwner` @return [Boolean]

timing[RW]

Describes a temporal position of a visual widget inside a video. Corresponds to the JSON property `timing` @return [Google::Apis::YoutubeV3::InvideoTiming]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_v3/classes.rb, line 5781
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/youtube_v3/classes.rb, line 5786
def update!(**args)
  @custom_message = args[:custom_message] if args.key?(:custom_message)
  @id = args[:id] if args.key?(:id)
  @promoted_by_content_owner = args[:promoted_by_content_owner] if args.key?(:promoted_by_content_owner)
  @timing = args[:timing] if args.key?(:timing)
end