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.



19007
19008
19009
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19007

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

Instance Attribute Details

#adGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesAd

An ad. Corresponds to the JSON property ad



18993
18994
18995
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18993

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)


18999
19000
19001
# File 'lib/google/apis/searchads360_v23/classes.rb', line 18999

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)


19005
19006
19007
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19005

def creation_date
  @creation_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19012
19013
19014
19015
19016
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19012

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