Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonSearchAds360ExpandedTextAdInfo

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 Search Ads 360 expanded text ad. Expanded text ads are deprecated. Use SearchAds360ResponsiveSearchAd instead.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonSearchAds360ExpandedTextAdInfo

Returns a new instance of GoogleAdsSearchads360V23CommonSearchAds360ExpandedTextAdInfo.



10159
10160
10161
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10159

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

Instance Attribute Details

#ad_tracking_idFixnum

The tracking id of the ad. Corresponds to the JSON property adTrackingId

Returns:

  • (Fixnum)


10122
10123
10124
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10122

def ad_tracking_id
  @ad_tracking_id
end

#description1String

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

Returns:

  • (String)


10127
10128
10129
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10127

def description1
  @description1
end

#description2String

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

Returns:

  • (String)


10132
10133
10134
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10132

def description2
  @description2
end

#headlineString

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

Returns:

  • (String)


10137
10138
10139
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10137

def headline
  @headline
end

#headline2String

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

Returns:

  • (String)


10142
10143
10144
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10142

def headline2
  @headline2
end

#headline3String

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

Returns:

  • (String)


10147
10148
10149
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10147

def headline3
  @headline3
end

#path1String

Text appended to the auto-generated visible URL with a delimiter. Corresponds to the JSON property path1

Returns:

  • (String)


10152
10153
10154
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10152

def path1
  @path1
end

#path2String

Text appended to path1 with a delimiter. Corresponds to the JSON property path2

Returns:

  • (String)


10157
10158
10159
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10157

def path2
  @path2
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10164

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