Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonExpandedTextAdInfo

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

An expanded text ad. Expanded text ads are deprecated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonExpandedTextAdInfo

Returns a new instance of GoogleAdsSearchads360V23CommonExpandedTextAdInfo.



5051
5052
5053
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5051

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


5019
5020
5021
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5019

def description
  @description
end

#description2String

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

Returns:

  • (String)


5024
5025
5026
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5024

def description2
  @description2
end

#headline_part1String

The first part of the ad's headline. Corresponds to the JSON property headlinePart1

Returns:

  • (String)


5029
5030
5031
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5029

def headline_part1
  @headline_part1
end

#headline_part2String

The second part of the ad's headline. Corresponds to the JSON property headlinePart2

Returns:

  • (String)


5034
5035
5036
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5034

def headline_part2
  @headline_part2
end

#headline_part3String

The third part of the ad's headline. Corresponds to the JSON property headlinePart3

Returns:

  • (String)


5039
5040
5041
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5039

def headline_part3
  @headline_part3
end

#path1String

The text that can appear alongside the ad's displayed URL. Corresponds to the JSON property path1

Returns:

  • (String)


5044
5045
5046
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5044

def path1
  @path1
end

#path2String

Additional text that can appear alongside the ad's displayed URL. Corresponds to the JSON property path2

Returns:

  • (String)


5049
5050
5051
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5049

def path2
  @path2
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5056
5057
5058
5059
5060
5061
5062
5063
5064
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5056

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @description2 = args[:description2] if args.key?(:description2)
  @headline_part1 = args[:headline_part1] if args.key?(:headline_part1)
  @headline_part2 = args[:headline_part2] if args.key?(:headline_part2)
  @headline_part3 = args[:headline_part3] if args.key?(:headline_part3)
  @path1 = args[:path1] if args.key?(:path1)
  @path2 = args[:path2] if args.key?(:path2)
end