Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonSearchAds360TextAdInfo

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 text ad.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonSearchAds360TextAdInfo

Returns a new instance of GoogleAdsSearchads360V23CommonSearchAds360TextAdInfo.



10268
10269
10270
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10268

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)


10241
10242
10243
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10241

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)


10246
10247
10248
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10246

def description1
  @description1
end

#description2String

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

Returns:

  • (String)


10251
10252
10253
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10251

def description2
  @description2
end

#display_mobile_urlString

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

Returns:

  • (String)


10256
10257
10258
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10256

def display_mobile_url
  @display_mobile_url
end

#display_urlString

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

Returns:

  • (String)


10261
10262
10263
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10261

def display_url
  @display_url
end

#headlineString

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

Returns:

  • (String)


10266
10267
10268
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10266

def headline
  @headline
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10273
10274
10275
10276
10277
10278
10279
10280
# File 'lib/google/apis/searchads360_v23/classes.rb', line 10273

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