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.



3519
3520
3521
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3519

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

Instance Attribute Details

#business_nameString

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

Returns:

  • (String)


3492
3493
3494
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3492

def business_name
  @business_name
end

#call_to_action_textString

Call to action text. Corresponds to the JSON property callToActionText

Returns:

  • (String)


3497
3498
3499
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3497

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



3502
3503
3504
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3502

def carousel_cards
  @carousel_cards
end

#descriptionGoogle::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

#headlineGoogle::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_imageGoogle::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