Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSearchAds360TextAdInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb

Overview

A Search Ads 360 text ad.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonSearchAds360TextAdInfo

Returns a new instance of GoogleAdsSearchads360V0CommonSearchAds360TextAdInfo.



1162
1163
1164
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1162

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)


1135
1136
1137
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1135

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)


1140
1141
1142
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1140

def description1
  @description1
end

#description2String

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

Returns:

  • (String)


1145
1146
1147
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1145

def description2
  @description2
end

#display_mobile_urlString

The displayed mobile URL of the ad. Corresponds to the JSON property displayMobileUrl

Returns:

  • (String)


1150
1151
1152
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1150

def display_mobile_url
  @display_mobile_url
end

#display_urlString

The displayed URL of the ad. Corresponds to the JSON property displayUrl

Returns:

  • (String)


1155
1156
1157
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1155

def display_url
  @display_url
end

#headlineString

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

Returns:

  • (String)


1160
1161
1162
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1160

def headline
  @headline
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1167
1168
1169
1170
1171
1172
1173
1174
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1167

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)
  @display_mobile_url = args[:display_mobile_url] if args.key?(:display_mobile_url)
  @display_url = args[:display_url] if args.key?(:display_url)
  @headline = args[:headline] if args.key?(:headline)
end