google-apis-adexchangebuyer2_v2beta1 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3accb2f3ccf7659006614d074d8705ac76b0c61ef670f113da64035ad2b13042
4
- data.tar.gz: 075e955636eba87bf4fc82da76bb48e18aafb7bd3c43d8eb456e3d09931c13fa
3
+ metadata.gz: 73ce60ba50c8a2cdeeb216ce87f88edc096bf34232c4618e701b23861351291e
4
+ data.tar.gz: 51711e6fcf844bed62a0cb3fcc24c124d75d722a434a4ad4937971d8fafac0fe
5
5
  SHA512:
6
- metadata.gz: 29169bb1beff56a34a39b4c6ffcc3b00a564434ce82e6625a05217a7241286e299b41b5920c9a49a32ff9dede823a388087078facbc2e8badee5e00201d02bd2
7
- data.tar.gz: 0ca2c57ac159fc5cbb4732097f985dd60b1d438e60718329e8e6274e4e7ca8b609c4c31e539b073acf2c105d7e4b747c7adef0570ac8409af68f35c54f350010
6
+ metadata.gz: bf7732937c645877949a77e5840dbea7cd531952064d21ecee368d0cd01d28c374faef22d632ab5715a2666df818983b8a71b2cff8f6b442bf946d0c1f28bc55
7
+ data.tar.gz: 8d22428caf9a4c3939f3f89519c65a0d9f81725798a171c0928e275aec9f0560776021f0131405fbadbf3d156adf1f8230bfa48506a98a839ac1f3eaa09def42
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Release history for google-apis-adexchangebuyer2_v2beta1
2
2
 
3
+ ### v0.6.0 (2021-06-15)
4
+
5
+ * Regenerated from discovery document revision 20210613
6
+ * Regenerated using generator version 0.3.0
7
+
8
+ ### v0.5.0 (2021-05-26)
9
+
10
+ * Regenerated from discovery document revision 20210525
11
+
12
+ ### v0.4.0 (2021-05-19)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.3.0 (2021-04-29)
17
+
18
+ * Regenerated from discovery document revision 20210428
19
+ * Regenerated using generator version 0.2.0
20
+
21
+ ### v0.2.0 (2021-03-04)
22
+
23
+ * Regenerated from discovery document revision 20210223
24
+ * Regenerated using generator version 0.1.2
25
+
3
26
  ### v0.1.0 (2021-01-07)
4
27
 
5
28
  * Regenerated using generator version 0.1.1
@@ -1443,8 +1443,7 @@ module Google
1443
1443
  # @return [Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedAuctionTerms]
1444
1444
  attr_accessor :non_guaranteed_auction_terms
1445
1445
 
1446
- # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the
1447
- # API at this time, but can be returned in a get or list request.
1446
+ # Terms for Preferred Deals.
1448
1447
  # Corresponds to the JSON property `nonGuaranteedFixedPriceTerms`
1449
1448
  # @return [Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedFixedPriceTerms]
1450
1449
  attr_accessor :non_guaranteed_fixed_price_terms
@@ -1843,11 +1842,30 @@ module Google
1843
1842
  # @return [Fixnum]
1844
1843
  attr_accessor :guaranteed_looks
1845
1844
 
1845
+ # The lifetime impression cap for CPM sponsorship deals. The deal will stop
1846
+ # serving when the cap is reached.
1847
+ # Corresponds to the JSON property `impressionCap`
1848
+ # @return [Fixnum]
1849
+ attr_accessor :impression_cap
1850
+
1846
1851
  # Daily minimum looks for CPD deal types.
1847
1852
  # Corresponds to the JSON property `minimumDailyLooks`
1848
1853
  # @return [Fixnum]
1849
1854
  attr_accessor :minimum_daily_looks
1850
1855
 
1856
+ # For sponsorship deals, this is the percentage of the seller's eligible
1857
+ # impressions that the deal will serve until the cap is reached.
1858
+ # Corresponds to the JSON property `percentShareOfVoice`
1859
+ # @return [Fixnum]
1860
+ attr_accessor :percent_share_of_voice
1861
+
1862
+ # The reservation type for a Programmatic Guaranteed deal. This indicates
1863
+ # whether the number of impressions is fixed, or a percent of available
1864
+ # impressions. If not specified, the default reservation type is STANDARD.
1865
+ # Corresponds to the JSON property `reservationType`
1866
+ # @return [String]
1867
+ attr_accessor :reservation_type
1868
+
1851
1869
  def initialize(**args)
1852
1870
  update!(**args)
1853
1871
  end
@@ -1857,7 +1875,10 @@ module Google
1857
1875
  @fixed_prices = args[:fixed_prices] if args.key?(:fixed_prices)
1858
1876
  @guaranteed_impressions = args[:guaranteed_impressions] if args.key?(:guaranteed_impressions)
1859
1877
  @guaranteed_looks = args[:guaranteed_looks] if args.key?(:guaranteed_looks)
1878
+ @impression_cap = args[:impression_cap] if args.key?(:impression_cap)
1860
1879
  @minimum_daily_looks = args[:minimum_daily_looks] if args.key?(:minimum_daily_looks)
1880
+ @percent_share_of_voice = args[:percent_share_of_voice] if args.key?(:percent_share_of_voice)
1881
+ @reservation_type = args[:reservation_type] if args.key?(:reservation_type)
1861
1882
  end
1862
1883
  end
1863
1884
 
@@ -2857,8 +2878,7 @@ module Google
2857
2878
  end
2858
2879
  end
2859
2880
 
2860
- # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the
2861
- # API at this time, but can be returned in a get or list request.
2881
+ # Terms for Preferred Deals.
2862
2882
  class NonGuaranteedFixedPriceTerms
2863
2883
  include Google::Apis::Core::Hashable
2864
2884
 
@@ -2949,6 +2969,33 @@ module Google
2949
2969
  end
2950
2970
  end
2951
2971
 
2972
+ # Request message to pause serving for finalized deals.
2973
+ class PauseProposalDealsRequest
2974
+ include Google::Apis::Core::Hashable
2975
+
2976
+ # The external_deal_id's of the deals to be paused. If empty, all the deals in
2977
+ # the proposal will be paused.
2978
+ # Corresponds to the JSON property `externalDealIds`
2979
+ # @return [Array<String>]
2980
+ attr_accessor :external_deal_ids
2981
+
2982
+ # The reason why the deals are being paused. This human readable message will be
2983
+ # displayed in the seller's UI. (Max length: 1000 unicode code units.)
2984
+ # Corresponds to the JSON property `reason`
2985
+ # @return [String]
2986
+ attr_accessor :reason
2987
+
2988
+ def initialize(**args)
2989
+ update!(**args)
2990
+ end
2991
+
2992
+ # Update properties of this object
2993
+ def update!(**args)
2994
+ @external_deal_ids = args[:external_deal_ids] if args.key?(:external_deal_ids)
2995
+ @reason = args[:reason] if args.key?(:reason)
2996
+ end
2997
+ end
2998
+
2952
2999
  # Request message to pause serving for an already-finalized proposal.
2953
3000
  class PauseProposalRequest
2954
3001
  include Google::Apis::Core::Hashable
@@ -3100,10 +3147,9 @@ module Google
3100
3147
  end
3101
3148
  end
3102
3149
 
3103
- # Note: this resource requires whitelisting for access. Please contact your
3104
- # account manager for access to Marketplace resources. A product is a segment of
3105
- # inventory that a seller wishes to sell. It is associated with certain terms
3106
- # and targeting information which helps the buyer know more about the inventory.
3150
+ # A product is a segment of inventory that a seller wishes to sell. It is
3151
+ # associated with certain terms and targeting information which helps the buyer
3152
+ # know more about the inventory.
3107
3153
  class Product
3108
3154
  include Google::Apis::Core::Hashable
3109
3155
 
@@ -3220,12 +3266,10 @@ module Google
3220
3266
  end
3221
3267
  end
3222
3268
 
3223
- # Note: this resource requires whitelisting for access. Please contact your
3224
- # account manager for access to Marketplace resources. Represents a proposal in
3225
- # the Marketplace. A proposal is the unit of negotiation between a seller and a
3226
- # buyer and contains deals which are served. Note: you can not update, create,
3227
- # or otherwise modify Private Auction or Preferred Deals deals through the API.
3228
- # Fields are updatable unless noted otherwise.
3269
+ # Represents a proposal in the Marketplace. A proposal is the unit of
3270
+ # negotiation between a seller and a buyer and contains deals which are served.
3271
+ # Note: You can't update, create, or otherwise modify Private Auction deals
3272
+ # through the API. Fields are updatable unless noted otherwise.
3229
3273
  class Proposal
3230
3274
  include Google::Apis::Core::Hashable
3231
3275
 
@@ -3365,11 +3409,9 @@ module Google
3365
3409
  end
3366
3410
  end
3367
3411
 
3368
- # Note: this resource requires whitelisting for access. Please contact your
3369
- # account manager for access to Marketplace resources. Represents a publisher
3370
- # profile (https://support.google.com/admanager/answer/6035806) in Marketplace.
3371
- # All fields are read only. All string fields are free-form text entered by the
3372
- # publisher unless noted otherwise.
3412
+ # Represents a publisher profile (https://support.google.com/admanager/answer/
3413
+ # 6035806) in Marketplace. All fields are read only. All string fields are free-
3414
+ # form text entered by the publisher unless noted otherwise.
3373
3415
  class PublisherProfile
3374
3416
  include Google::Apis::Core::Hashable
3375
3417
 
@@ -3604,6 +3646,26 @@ module Google
3604
3646
  end
3605
3647
  end
3606
3648
 
3649
+ # Request message to resume (unpause) serving for already-finalized deals.
3650
+ class ResumeProposalDealsRequest
3651
+ include Google::Apis::Core::Hashable
3652
+
3653
+ # The external_deal_id's of the deals to resume. If empty, all the deals in the
3654
+ # proposal will be resumed.
3655
+ # Corresponds to the JSON property `externalDealIds`
3656
+ # @return [Array<String>]
3657
+ attr_accessor :external_deal_ids
3658
+
3659
+ def initialize(**args)
3660
+ update!(**args)
3661
+ end
3662
+
3663
+ # Update properties of this object
3664
+ def update!(**args)
3665
+ @external_deal_ids = args[:external_deal_ids] if args.key?(:external_deal_ids)
3666
+ end
3667
+ end
3668
+
3607
3669
  # Request message to resume (unpause) serving for an already-finalized proposal.
3608
3670
  class ResumeProposalRequest
3609
3671
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module Adexchangebuyer2V2beta1
18
18
  # Version of the google-apis-adexchangebuyer2_v2beta1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201202"
25
+ REVISION = "20210613"
26
26
  end
27
27
  end
28
28
  end
@@ -478,6 +478,12 @@ module Google
478
478
  include Google::Apis::Core::JsonObjectSupport
479
479
  end
480
480
 
481
+ class PauseProposalDealsRequest
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
481
487
  class PauseProposalRequest
482
488
  class Representation < Google::Apis::Core::JsonRepresentation; end
483
489
 
@@ -556,6 +562,12 @@ module Google
556
562
  include Google::Apis::Core::JsonObjectSupport
557
563
  end
558
564
 
565
+ class ResumeProposalDealsRequest
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
559
571
  class ResumeProposalRequest
560
572
  class Representation < Google::Apis::Core::JsonRepresentation; end
561
573
 
@@ -1136,7 +1148,10 @@ module Google
1136
1148
 
1137
1149
  property :guaranteed_impressions, :numeric_string => true, as: 'guaranteedImpressions'
1138
1150
  property :guaranteed_looks, :numeric_string => true, as: 'guaranteedLooks'
1151
+ property :impression_cap, :numeric_string => true, as: 'impressionCap'
1139
1152
  property :minimum_daily_looks, :numeric_string => true, as: 'minimumDailyLooks'
1153
+ property :percent_share_of_voice, :numeric_string => true, as: 'percentShareOfVoice'
1154
+ property :reservation_type, as: 'reservationType'
1140
1155
  end
1141
1156
  end
1142
1157
 
@@ -1477,6 +1492,14 @@ module Google
1477
1492
  end
1478
1493
  end
1479
1494
 
1495
+ class PauseProposalDealsRequest
1496
+ # @private
1497
+ class Representation < Google::Apis::Core::JsonRepresentation
1498
+ collection :external_deal_ids, as: 'externalDealIds'
1499
+ property :reason, as: 'reason'
1500
+ end
1501
+ end
1502
+
1480
1503
  class PauseProposalRequest
1481
1504
  # @private
1482
1505
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1643,6 +1666,13 @@ module Google
1643
1666
  end
1644
1667
  end
1645
1668
 
1669
+ class ResumeProposalDealsRequest
1670
+ # @private
1671
+ class Representation < Google::Apis::Core::JsonRepresentation
1672
+ collection :external_deal_ids, as: 'externalDealIds'
1673
+ end
1674
+ end
1675
+
1646
1676
  class ResumeProposalRequest
1647
1677
  # @private
1648
1678
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -852,6 +852,90 @@ module Google
852
852
  execute_or_queue_command(command, &block)
853
853
  end
854
854
 
855
+ # Update given deals to pause serving. This method will set the `
856
+ # DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all
857
+ # listed deals in the request. Currently, this method only applies to PG and PD
858
+ # deals. For PA deals, please call accounts.proposals.pause endpoint. It is a no-
859
+ # op to pause already-paused deals. It is an error to call PauseProposalDeals
860
+ # for deals which are not part of the proposal of proposal_id or which are not
861
+ # finalized or renegotiating.
862
+ # @param [String] account_id
863
+ # Account ID of the buyer.
864
+ # @param [String] proposal_id
865
+ # The proposal_id of the proposal containing the deals.
866
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::PauseProposalDealsRequest] pause_proposal_deals_request_object
867
+ # @param [String] fields
868
+ # Selector specifying which fields to include in a partial response.
869
+ # @param [String] quota_user
870
+ # Available to use for quota purposes for server-side applications. Can be any
871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
872
+ # @param [Google::Apis::RequestOptions] options
873
+ # Request-specific options
874
+ #
875
+ # @yield [result, err] Result & error if block supplied
876
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
877
+ # @yieldparam err [StandardError] error object if request failed
878
+ #
879
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
880
+ #
881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
884
+ def pause_finalized_proposal_proposal_deals(account_id, proposal_id, pause_proposal_deals_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
885
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:pause', options)
886
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::PauseProposalDealsRequest::Representation
887
+ command.request_object = pause_proposal_deals_request_object
888
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
889
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
890
+ command.params['accountId'] = account_id unless account_id.nil?
891
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
892
+ command.query['fields'] = fields unless fields.nil?
893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
894
+ execute_or_queue_command(command, &block)
895
+ end
896
+
897
+ # Update given deals to resume serving. This method will set the `
898
+ # DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all
899
+ # listed deals in the request. Currently, this method only applies to PG and PD
900
+ # deals. For PA deals, please call accounts.proposals.resume endpoint. It is a
901
+ # no-op to resume running deals or deals paused by the other party. It is an
902
+ # error to call ResumeProposalDeals for deals which are not part of the proposal
903
+ # of proposal_id or which are not finalized or renegotiating.
904
+ # @param [String] account_id
905
+ # Account ID of the buyer.
906
+ # @param [String] proposal_id
907
+ # The proposal_id of the proposal containing the deals.
908
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ResumeProposalDealsRequest] resume_proposal_deals_request_object
909
+ # @param [String] fields
910
+ # Selector specifying which fields to include in a partial response.
911
+ # @param [String] quota_user
912
+ # Available to use for quota purposes for server-side applications. Can be any
913
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
914
+ # @param [Google::Apis::RequestOptions] options
915
+ # Request-specific options
916
+ #
917
+ # @yield [result, err] Result & error if block supplied
918
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
919
+ # @yieldparam err [StandardError] error object if request failed
920
+ #
921
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
922
+ #
923
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
924
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
925
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
926
+ def resume_finalized_proposal_proposal_deals(account_id, proposal_id, resume_proposal_deals_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
927
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:resume', options)
928
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ResumeProposalDealsRequest::Representation
929
+ command.request_object = resume_proposal_deals_request_object
930
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
931
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
932
+ command.params['accountId'] = account_id unless account_id.nil?
933
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
934
+ command.query['fields'] = fields unless fields.nil?
935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
936
+ execute_or_queue_command(command, &block)
937
+ end
938
+
855
939
  # Gets the requested product by ID.
856
940
  # @param [String] account_id
857
941
  # Account ID of the buyer.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-adexchangebuyer2_v2beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-adexchangebuyer2_v2beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-adexchangebuyer2_v2beta1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-adexchangebuyer2_v2beta1/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-adexchangebuyer2_v2beta1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Ad Exchange Buyer API II V2beta1