Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesApplyIncentiveResponse

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

Response for applying an incentive.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesApplyIncentiveResponse

Returns a new instance of GoogleAdsSearchads360V23ServicesApplyIncentiveResponse.



36745
36746
36747
# File 'lib/google/apis/searchads360_v23/classes.rb', line 36745

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

Instance Attribute Details

#coupon_codeString

The coupon code of the applied incentive. A globally unique identifier of the applied incentive. This code is separate and distinct from the selected_incentive_id in the request. Corresponds to the JSON property couponCode

Returns:

  • (String)


36737
36738
36739
# File 'lib/google/apis/searchads360_v23/classes.rb', line 36737

def coupon_code
  @coupon_code
end

#creation_timeString

The timestamp when this incentive was applied. The timestamp is in UTC timezone and in "yyyy-MM-dd HH:mm:ss" format. Corresponds to the JSON property creationTime

Returns:

  • (String)


36743
36744
36745
# File 'lib/google/apis/searchads360_v23/classes.rb', line 36743

def creation_time
  @creation_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36750
36751
36752
36753
# File 'lib/google/apis/searchads360_v23/classes.rb', line 36750

def update!(**args)
  @coupon_code = args[:coupon_code] if args.key?(:coupon_code)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
end