Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonTextAdInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonTextAdInfo

Returns a new instance of GoogleAdsSearchads360V23CommonTextAdInfo.



11897
11898
11899
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11897

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

Instance Attribute Details

#description1String

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

Returns:

  • (String)


11885
11886
11887
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11885

def description1
  @description1
end

#description2String

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

Returns:

  • (String)


11890
11891
11892
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11890

def description2
  @description2
end

#headlineString

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

Returns:

  • (String)


11895
11896
11897
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11895

def headline
  @headline
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11902
11903
11904
11905
11906
# File 'lib/google/apis/searchads360_v23/classes.rb', line 11902

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