Class: Google::Apis::YoutubeV3::ActivityContentDetailsPromotedItem
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::ActivityContentDetailsPromotedItem
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb
Overview
Details about a resource which is being promoted.
Instance Attribute Summary collapse
-
#ad_tag ⇒ String
The URL the client should fetch to request a promoted item.
-
#click_tracking_url ⇒ String
The URL the client should ping to indicate that the user clicked through on this promoted item.
-
#creative_view_url ⇒ String
The URL the client should ping to indicate that the user was shown this promoted item.
-
#cta_type ⇒ String
The type of call-to-action, a message to the user indicating action that can be taken.
-
#custom_cta_button_text ⇒ String
The custom call-to-action button text.
-
#description_text ⇒ String
The text description to accompany the promoted item.
-
#destination_url ⇒ String
The URL the client should direct the user to, if the user chooses to visit the advertiser's website.
-
#forecasting_url ⇒ Array<String>
The list of forecasting URLs.
-
#impression_url ⇒ Array<String>
The list of impression URLs.
-
#video_id ⇒ String
The ID that YouTube uses to uniquely identify the promoted video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActivityContentDetailsPromotedItem
constructor
A new instance of ActivityContentDetailsPromotedItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActivityContentDetailsPromotedItem
Returns a new instance of ActivityContentDetailsPromotedItem.
429 430 431 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 429 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_tag ⇒ String
The URL the client should fetch to request a promoted item.
Corresponds to the JSON property adTag
374 375 376 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 374 def ad_tag @ad_tag end |
#click_tracking_url ⇒ String
The URL the client should ping to indicate that the user clicked through on
this promoted item.
Corresponds to the JSON property clickTrackingUrl
380 381 382 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 380 def click_tracking_url @click_tracking_url end |
#creative_view_url ⇒ String
The URL the client should ping to indicate that the user was shown this
promoted item.
Corresponds to the JSON property creativeViewUrl
386 387 388 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 386 def creative_view_url @creative_view_url end |
#cta_type ⇒ String
The type of call-to-action, a message to the user indicating action that can
be taken.
Corresponds to the JSON property ctaType
392 393 394 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 392 def cta_type @cta_type end |
#custom_cta_button_text ⇒ String
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
398 399 400 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 398 def @custom_cta_button_text end |
#description_text ⇒ String
The text description to accompany the promoted item.
Corresponds to the JSON property descriptionText
403 404 405 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 403 def description_text @description_text end |
#destination_url ⇒ 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
409 410 411 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 409 def destination_url @destination_url end |
#forecasting_url ⇒ Array<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
416 417 418 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 416 def forecasting_url @forecasting_url end |
#impression_url ⇒ 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
422 423 424 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 422 def impression_url @impression_url end |
#video_id ⇒ String
The ID that YouTube uses to uniquely identify the promoted video.
Corresponds to the JSON property videoId
427 428 429 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 427 def video_id @video_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
434 435 436 437 438 439 440 441 442 443 444 445 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 434 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 |