Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonDemandGenCarouselAdInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonDemandGenCarouselAdInfo

Returns a new instance of GoogleAdsSearchads360V23CommonDemandGenCarouselAdInfo.



3579
3580
3581
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3579

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#business_nameString

Required. The Advertiser/brand name. Corresponds to the JSON property businessName

Returns:

  • (String)


3552
3553
3554
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3552

def business_name
  @business_name
end

#call_to_action_textString

Call to action text. Corresponds to the JSON property callToActionText

Returns:

  • (String)


3557
3558
3559
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3557

def call_to_action_text
  @call_to_action_text
end

Required. Carousel cards that will display with the ad. Min 2 max 10. Corresponds to the JSON property carouselCards



3562
3563
3564
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3562

def carousel_cards
  @carousel_cards
end

#descriptionGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdTextAsset

A text asset used inside an ad. Corresponds to the JSON property description



3567
3568
3569
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3567

def description
  @description
end

#headlineGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdTextAsset

A text asset used inside an ad. Corresponds to the JSON property headline



3572
3573
3574
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3572

def headline
  @headline
end

#logo_imageGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdImageAsset

An image asset used inside an ad. Corresponds to the JSON property logoImage



3577
3578
3579
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3577

def logo_image
  @logo_image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3584
3585
3586
3587
3588
3589
3590
3591
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3584

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