Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonDemandGenCarouselAdInfo
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonDemandGenCarouselAdInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb
Overview
A Demand Gen carousel ad.
Instance Attribute Summary collapse
-
#business_name ⇒ String
Required.
-
#call_to_action_text ⇒ String
Call to action text.
-
#carousel_cards ⇒ Array<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdDemandGenCarouselCardAsset>
Required.
-
#description ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdTextAsset
A text asset used inside an ad.
-
#headline ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdTextAsset
A text asset used inside an ad.
-
#logo_image ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdImageAsset
An image asset used inside an ad.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonDemandGenCarouselAdInfo
constructor
A new instance of GoogleAdsSearchads360V23CommonDemandGenCarouselAdInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonDemandGenCarouselAdInfo
Returns a new instance of GoogleAdsSearchads360V23CommonDemandGenCarouselAdInfo.
3519 3520 3521 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3519 def initialize(**args) update!(**args) end |
Instance Attribute Details
#business_name ⇒ String
Required. The Advertiser/brand name.
Corresponds to the JSON property businessName
3492 3493 3494 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3492 def business_name @business_name end |
#call_to_action_text ⇒ String
Call to action text.
Corresponds to the JSON property callToActionText
3497 3498 3499 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3497 def call_to_action_text @call_to_action_text end |
#carousel_cards ⇒ Array<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdDemandGenCarouselCardAsset>
Required. Carousel cards that will display with the ad. Min 2 max 10.
Corresponds to the JSON property carouselCards
3502 3503 3504 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3502 def carousel_cards @carousel_cards end |
#description ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdTextAsset
A text asset used inside an ad.
Corresponds to the JSON property description
3507 3508 3509 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3507 def description @description end |
#headline ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdTextAsset
A text asset used inside an ad.
Corresponds to the JSON property headline
3512 3513 3514 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3512 def headline @headline end |
#logo_image ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdImageAsset
An image asset used inside an ad.
Corresponds to the JSON property logoImage
3517 3518 3519 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3517 def logo_image @logo_image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3524 3525 3526 3527 3528 3529 3530 3531 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3524 def update!(**args) @business_name = args[:business_name] if args.key?(:business_name) @call_to_action_text = args[:call_to_action_text] if args.key?(:call_to_action_text) @carousel_cards = args[:carousel_cards] if args.key?(:carousel_cards) @description = args[:description] if args.key?(:description) @headline = args[:headline] if args.key?(:headline) @logo_image = args[:logo_image] if args.key?(:logo_image) end |