Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonTextAdInfo

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 text ad.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonTextAdInfo

Returns a new instance of GoogleAdsSearchads360V23CommonTextAdInfo.



11771
11772
11773
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11771

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

Instance Attribute Details

#description1String

The first line of the ad's description. Corresponds to the JSON property description1

Returns:

  • (String)


11759
11760
11761
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11759

def description1
  @description1
end

#description2String

The second line of the ad's description. Corresponds to the JSON property description2

Returns:

  • (String)


11764
11765
11766
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11764

def description2
  @description2
end

#headlineString

The headline of the ad. Corresponds to the JSON property headline

Returns:

  • (String)


11769
11770
11771
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11769

def headline
  @headline
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11776
11777
11778
11779
11780
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11776

def update!(**args)
  @description1 = args[:description1] if args.key?(:description1)
  @description2 = args[:description2] if args.key?(:description2)
  @headline = args[:headline] if args.key?(:headline)
end