Class: Google::Apis::Adexchangebuyer2V2beta1::PauseProposalDealsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/adexchangebuyer2_v2beta1/classes.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb

Overview

Request message to pause serving for finalized deals.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PauseProposalDealsRequest

Returns a new instance of PauseProposalDealsRequest.



2991
2992
2993
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2991

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

Instance Attribute Details

#external_deal_idsArray<String>

The external_deal_id's of the deals to be paused. If empty, all the deals in the proposal will be paused. Corresponds to the JSON property externalDealIds

Returns:

  • (Array<String>)


2983
2984
2985
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2983

def external_deal_ids
  @external_deal_ids
end

#reasonString

The reason why the deals are being paused. This human readable message will be displayed in the seller's UI. (Max length: 1000 unicode code units.) Corresponds to the JSON property reason

Returns:

  • (String)


2989
2990
2991
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2989

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2996
2997
2998
2999
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2996

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