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.



36610
36611
36612
# File 'lib/google/apis/searchads360_v23/classes.rb', line 36610

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)


36602
36603
36604
# File 'lib/google/apis/searchads360_v23/classes.rb', line 36602

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)


36608
36609
36610
# File 'lib/google/apis/searchads360_v23/classes.rb', line 36608

def creation_time
  @creation_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36615
36616
36617
36618
# File 'lib/google/apis/searchads360_v23/classes.rb', line 36615

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