class Google::Apis::YoutubeV3::ActivityContentDetailsPromotedItem

Details about a resource which is being promoted.

Attributes

ad_tag[RW]

The URL the client should fetch to request a promoted item. Corresponds to the JSON property `adTag` @return [String]

click_tracking_url[RW]

The URL the client should ping to indicate that the user clicked through on this promoted item. Corresponds to the JSON property `clickTrackingUrl` @return [String]

creative_view_url[RW]

The URL the client should ping to indicate that the user was shown this promoted item. Corresponds to the JSON property `creativeViewUrl` @return [String]

cta_type[RW]

The type of call-to-action, a message to the user indicating action that can be taken. Corresponds to the JSON property `ctaType` @return [String]

custom_cta_button_text[RW]

The custom call-to-action button text. If specified, it will override the default button text for the cta_type. Corresponds to the JSON property `customCtaButtonText` @return [String]

description_text[RW]

The text description to accompany the promoted item. Corresponds to the JSON property `descriptionText` @return [String]

destination_url[RW]

The URL the client should direct the user to, if the user chooses to visit the advertiser's website. Corresponds to the JSON property `destinationUrl` @return [String]

forecasting_url[RW]

The list of forecasting URLs. The client should ping all of these URLs when a promoted item is not available, to indicate that a promoted item could have been shown. Corresponds to the JSON property `forecastingUrl` @return [Array<String>]

impression_url[RW]

The list of impression URLs. The client should ping all of these URLs to indicate that the user was shown this promoted item. Corresponds to the JSON property `impressionUrl` @return [Array<String>]

video_id[RW]

The ID that YouTube uses to uniquely identify the promoted video. Corresponds to the JSON property `videoId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_v3/classes.rb, line 373
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 378
def update!(**args)
  @ad_tag = args[:ad_tag] if args.key?(:ad_tag)
  @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
  @creative_view_url = args[:creative_view_url] if args.key?(:creative_view_url)
  @cta_type = args[:cta_type] if args.key?(:cta_type)
  @custom_cta_button_text = args[:custom_cta_button_text] if args.key?(:custom_cta_button_text)
  @description_text = args[:description_text] if args.key?(:description_text)
  @destination_url = args[:destination_url] if args.key?(:destination_url)
  @forecasting_url = args[:forecasting_url] if args.key?(:forecasting_url)
  @impression_url = args[:impression_url] if args.key?(:impression_url)
  @video_id = args[:video_id] if args.key?(:video_id)
end