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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonExpandedTextAdInfo

Returns a new instance of GoogleAdsSearchads360V23CommonExpandedTextAdInfo.



4991
4992
4993
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4991

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


4959
4960
4961
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4959

def description
  @description
end

#description2String

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

Returns:

  • (String)


4964
4965
4966
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4964

def description2
  @description2
end

#headline_part1String

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

Returns:

  • (String)


4969
4970
4971
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4969

def headline_part1
  @headline_part1
end

#headline_part2String

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

Returns:

  • (String)


4974
4975
4976
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4974

def headline_part2
  @headline_part2
end

#headline_part3String

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

Returns:

  • (String)


4979
4980
4981
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4979

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)


4984
4985
4986
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4984

def path1
  @path1
end

#path2String

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

Returns:

  • (String)


4989
4990
4991
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4989

def path2
  @path2
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4996
4997
4998
4999
5000
5001
5002
5003
5004
# File 'lib/google/apis/searchads360_v23/classes.rb', line 4996

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