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.



11837
11838
11839
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11837

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)


11825
11826
11827
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11825

def description1
  @description1
end

#description2String

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

Returns:

  • (String)


11830
11831
11832
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11830

def description2
  @description2
end

#headlineString

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

Returns:

  • (String)


11835
11836
11837
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11835

def headline
  @headline
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11842
11843
11844
11845
11846
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11842

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