class Google::Apis::YoutubeV3::ActivityContentDetailsPromotedItem
Details about a resource which is being promoted.
Attributes
The URL the client should fetch to request a promoted item. Corresponds to the JSON property `adTag` @return [String]
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]
The URL the client should ping to indicate that the user was shown this promoted item. Corresponds to the JSON property `creativeViewUrl` @return [String]
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]
The text description to accompany the promoted item. Corresponds to the JSON property `descriptionText` @return [String]
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]
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>]
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>]
The ID that YouTube uses to uniquely identify the promoted video. Corresponds to the JSON property `videoId` @return [String]
Public Class Methods
# File generated/google/apis/youtube_v3/classes.rb, line 373 def initialize(**args) update!(**args) end
Public Instance Methods
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