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.



18881
18882
18883
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18881

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

Instance Attribute Details

#adGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesAd

An ad. Corresponds to the JSON property ad



18867
18868
18869
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18867

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)


18873
18874
18875
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18873

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)


18879
18880
18881
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18879

def creation_date
  @creation_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18886
18887
18888
18889
18890
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18886

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