Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesRecommendationTextAdRecommendation

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

The text ad recommendation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesRecommendationTextAdRecommendation

Returns a new instance of GoogleAdsSearchads360V23ResourcesRecommendationTextAdRecommendation.



18947
18948
18949
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18947

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

Instance Attribute Details

#adGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesAd

An ad. Corresponds to the JSON property ad



18933
18934
18935
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18933

def ad
  @ad
end

#auto_apply_dateString

Output only. Date, if present, is the earliest when the recommendation will be auto applied. YYYY-MM-DD format, for example, 2018-04-17. Corresponds to the JSON property autoApplyDate

Returns:

  • (String)


18939
18940
18941
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18939

def auto_apply_date
  @auto_apply_date
end

#creation_dateString

Output only. Creation date of the recommended ad. YYYY-MM-DD format, for example, 2018-04-17. Corresponds to the JSON property creationDate

Returns:

  • (String)


18945
18946
18947
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18945

def creation_date
  @creation_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18952
18953
18954
18955
18956
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18952

def update!(**args)
  @ad = args[:ad] if args.key?(:ad)
  @auto_apply_date = args[:auto_apply_date] if args.key?(:auto_apply_date)
  @creation_date = args[:creation_date] if args.key?(:creation_date)
end