google-api-client 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +11 -2
  4. data/api_names.yaml +76 -43
  5. data/api_names_out.yaml +3853 -3508
  6. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +151 -151
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +2785 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1033 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1378 -0
  11. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +79 -79
  12. data/generated/google/apis/admin_datatransfer_v1/classes.rb +26 -26
  13. data/generated/google/apis/admin_directory_v1/classes.rb +374 -374
  14. data/generated/google/apis/admin_reports_v1/classes.rb +63 -63
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +145 -143
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1/classes.rb +95 -92
  19. data/generated/google/apis/analytics_v3/classes.rb +582 -582
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +132 -132
  22. data/generated/google/apis/androidenterprise_v1/service.rb +9 -8
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +122 -122
  24. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta4/classes.rb +195 -142
  26. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -0
  27. data/generated/google/apis/appengine_v1beta4/service.rb +3 -2
  28. data/generated/google/apis/appengine_v1beta5.rb +35 -0
  29. data/generated/google/apis/appengine_v1beta5/classes.rb +1523 -0
  30. data/generated/google/apis/appengine_v1beta5/representations.rb +525 -0
  31. data/generated/google/apis/appengine_v1beta5/service.rb +478 -0
  32. data/generated/google/apis/appsactivity_v1/classes.rb +34 -34
  33. data/generated/google/apis/appstate_v1.rb +1 -1
  34. data/generated/google/apis/appstate_v1/classes.rb +12 -12
  35. data/generated/google/apis/autoscaler_v1beta2/classes.rb +82 -82
  36. data/generated/google/apis/bigquery_v2.rb +1 -1
  37. data/generated/google/apis/bigquery_v2/classes.rb +266 -265
  38. data/generated/google/apis/blogger_v3/classes.rb +145 -145
  39. data/generated/google/apis/books_v1.rb +1 -1
  40. data/generated/google/apis/books_v1/classes.rb +431 -431
  41. data/generated/google/apis/books_v1/service.rb +3 -12
  42. data/generated/google/apis/calendar_v3.rb +1 -1
  43. data/generated/google/apis/calendar_v3/classes.rb +180 -180
  44. data/generated/google/apis/civicinfo_v2/classes.rb +125 -125
  45. data/generated/google/apis/classroom_v1/classes.rb +42 -42
  46. data/generated/google/apis/cloudbilling_v1/classes.rb +11 -11
  47. data/generated/google/apis/{mapsengine_v1.rb → cloudbuild_v1.rb} +11 -14
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +521 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +190 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +278 -0
  51. data/generated/google/apis/clouddebugger_v2/classes.rb +81 -81
  52. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  53. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  54. data/generated/google/apis/cloudlatencytest_v2/representations.rb +113 -0
  55. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  56. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  57. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +55 -55
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +26 -26
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +13 -13
  60. data/generated/google/apis/clouduseraccounts_beta/classes.rb +85 -85
  61. data/generated/google/apis/compute_beta.rb +1 -1
  62. data/generated/google/apis/compute_beta/classes.rb +1051 -998
  63. data/generated/google/apis/compute_beta/representations.rb +1 -0
  64. data/generated/google/apis/compute_beta/service.rb +426 -366
  65. data/generated/google/apis/compute_v1.rb +1 -1
  66. data/generated/google/apis/compute_v1/classes.rb +1332 -946
  67. data/generated/google/apis/compute_v1/representations.rb +108 -0
  68. data/generated/google/apis/compute_v1/service.rb +686 -318
  69. data/generated/google/apis/container_v1/classes.rb +43 -43
  70. data/generated/google/apis/content_v2.rb +1 -1
  71. data/generated/google/apis/content_v2/classes.rb +767 -639
  72. data/generated/google/apis/content_v2/representations.rb +40 -0
  73. data/generated/google/apis/coordinate_v1/classes.rb +66 -66
  74. data/generated/google/apis/customsearch_v1/classes.rb +96 -96
  75. data/generated/google/apis/dataproc_v1.rb +43 -0
  76. data/generated/google/apis/dataproc_v1/classes.rb +175 -0
  77. data/generated/google/apis/dataproc_v1/representations.rb +84 -0
  78. data/generated/google/apis/dataproc_v1/service.rb +142 -0
  79. data/generated/google/apis/datastore_v1beta2/classes.rb +105 -105
  80. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  81. data/generated/google/apis/deploymentmanager_v2/classes.rb +183 -112
  82. data/generated/google/apis/deploymentmanager_v2/representations.rb +28 -0
  83. data/generated/google/apis/deploymentmanager_v2/service.rb +42 -37
  84. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  85. data/generated/google/apis/dfareporting_v2_3/classes.rb +10830 -0
  86. data/generated/google/apis/dfareporting_v2_3/representations.rb +3443 -0
  87. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  88. data/generated/google/apis/discovery_v1/classes.rb +106 -106
  89. data/generated/google/apis/dns_v1/classes.rb +39 -39
  90. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  91. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +155 -69
  92. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +31 -0
  93. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -0
  94. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  95. data/generated/google/apis/doubleclicksearch_v2/classes.rb +106 -104
  96. data/generated/google/apis/drive_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2/classes.rb +308 -308
  98. data/generated/google/apis/drive_v2/service.rb +44 -0
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +178 -178
  101. data/generated/google/apis/drive_v3/service.rb +2 -1
  102. data/generated/google/apis/fitness_v1/classes.rb +74 -74
  103. data/generated/google/apis/fusiontables_v2/classes.rb +108 -108
  104. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  105. data/generated/google/apis/games_configuration_v1configuration/classes.rb +52 -52
  106. data/generated/google/apis/games_management_v1management.rb +2 -2
  107. data/generated/google/apis/games_management_v1management/classes.rb +55 -46
  108. data/generated/google/apis/games_management_v1management/representations.rb +1 -0
  109. data/generated/google/apis/games_v1.rb +2 -2
  110. data/generated/google/apis/games_v1/classes.rb +484 -475
  111. data/generated/google/apis/games_v1/representations.rb +1 -0
  112. data/generated/google/apis/gan_v1beta1/classes.rb +187 -187
  113. data/generated/google/apis/genomics_v1.rb +2 -2
  114. data/generated/google/apis/genomics_v1/classes.rb +441 -232
  115. data/generated/google/apis/genomics_v1/representations.rb +85 -0
  116. data/generated/google/apis/genomics_v1/service.rb +1 -1
  117. data/generated/google/apis/gmail_v1/classes.rb +73 -73
  118. data/generated/google/apis/groupsmigration_v1/classes.rb +2 -2
  119. data/generated/google/apis/groupssettings_v1/classes.rb +28 -28
  120. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  121. data/generated/google/apis/identitytoolkit_v3/classes.rb +232 -166
  122. data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
  123. data/generated/google/apis/kgsearch_v1/classes.rb +3 -3
  124. data/generated/google/apis/licensing_v1/classes.rb +11 -11
  125. data/generated/google/apis/logging_v2beta1.rb +47 -0
  126. data/generated/google/apis/logging_v2beta1/classes.rb +990 -0
  127. data/generated/google/apis/logging_v2beta1/representations.rb +337 -0
  128. data/generated/google/apis/logging_v2beta1/service.rb +547 -0
  129. data/generated/google/apis/manager_v1beta2/classes.rb +125 -125
  130. data/generated/google/apis/mirror_v1/classes.rb +101 -101
  131. data/generated/google/apis/oauth2_v2.rb +2 -2
  132. data/generated/google/apis/oauth2_v2/classes.rb +27 -27
  133. data/generated/google/apis/pagespeedonline_v2/classes.rb +62 -62
  134. data/generated/google/apis/partners_v2/classes.rb +87 -87
  135. data/generated/google/apis/people_v1.rb +59 -0
  136. data/generated/google/apis/people_v1/classes.rb +1594 -0
  137. data/generated/google/apis/people_v1/representations.rb +593 -0
  138. data/generated/google/apis/people_v1/service.rb +193 -0
  139. data/generated/google/apis/plus_domains_v1.rb +2 -2
  140. data/generated/google/apis/plus_domains_v1/classes.rb +274 -274
  141. data/generated/google/apis/plus_v1.rb +2 -2
  142. data/generated/google/apis/plus_v1/classes.rb +215 -215
  143. data/generated/google/apis/prediction_v1_6/classes.rb +73 -73
  144. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +45 -45
  145. data/generated/google/apis/pubsub_v1/classes.rb +36 -36
  146. data/generated/google/apis/qpx_express_v1/classes.rb +135 -135
  147. data/generated/google/apis/replicapool_v1beta2/classes.rb +63 -63
  148. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +76 -76
  149. data/generated/google/apis/reseller_v1.rb +1 -1
  150. data/generated/google/apis/reseller_v1/classes.rb +55 -55
  151. data/generated/google/apis/reseller_v1/service.rb +1 -1
  152. data/generated/google/apis/resourceviews_v1beta2/classes.rb +68 -68
  153. data/generated/google/apis/script_v1/classes.rb +18 -18
  154. data/generated/google/apis/site_verification_v1/classes.rb +12 -12
  155. data/generated/google/apis/sqladmin_v1beta4/classes.rb +203 -203
  156. data/generated/google/apis/storage_v1.rb +1 -1
  157. data/generated/google/apis/storage_v1/classes.rb +130 -130
  158. data/generated/google/apis/storagetransfer_v1/classes.rb +84 -84
  159. data/generated/google/apis/tagmanager_v1/classes.rb +154 -154
  160. data/generated/google/apis/taskqueue_v1beta2/classes.rb +24 -24
  161. data/generated/google/apis/tasks_v1/classes.rb +32 -32
  162. data/generated/google/apis/translate_v2/classes.rb +10 -10
  163. data/generated/google/apis/urlshortener_v1/classes.rb +24 -24
  164. data/generated/google/apis/webmasters_v3/classes.rb +49 -49
  165. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1/classes.rb +49 -49
  167. data/generated/google/apis/youtube_v3.rb +1 -1
  168. data/generated/google/apis/youtube_v3/classes.rb +882 -895
  169. data/generated/google/apis/youtube_v3/representations.rb +2 -13
  170. data/generated/google/apis/youtubereporting_v1/classes.rb +19 -19
  171. data/lib/google/apis/core/api_command.rb +1 -1
  172. data/lib/google/apis/core/upload.rb +1 -1
  173. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  174. data/lib/google/apis/version.rb +1 -1
  175. data/samples/cli/lib/base_cli.rb +2 -1
  176. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  177. data/script/generate +17 -13
  178. metadata +35 -6
  179. data/generated/google/apis/mapsengine_v1/classes.rb +0 -2873
  180. data/generated/google/apis/mapsengine_v1/representations.rb +0 -1235
  181. data/generated/google/apis/mapsengine_v1/service.rb +0 -3388
@@ -0,0 +1,1378 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module AdexchangebuyerV1_4
23
+ # Ad Exchange Buyer API
24
+ #
25
+ # Accesses your bidding-account information, submits creatives for validation,
26
+ # finds available direct deals, and retrieves performance reports.
27
+ #
28
+ # @example
29
+ # require 'google/apis/adexchangebuyer_v1_4'
30
+ #
31
+ # Adexchangebuyer = Google::Apis::AdexchangebuyerV1_4 # Alias the module
32
+ # service = Adexchangebuyer::AdExchangeBuyerService.new
33
+ #
34
+ # @see https://developers.google.com/ad-exchange/buyer-rest
35
+ class AdExchangeBuyerService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ # Overrides userIp if both are provided.
45
+ attr_accessor :quota_user
46
+
47
+ # @return [String]
48
+ # IP address of the site where the request originates. Use this if you want to
49
+ # enforce per-user limits.
50
+ attr_accessor :user_ip
51
+
52
+ def initialize
53
+ super('https://www.googleapis.com/', 'adexchangebuyer/v1.4/')
54
+ end
55
+
56
+ # Gets one account by ID.
57
+ # @param [Fixnum] id
58
+ # The account id
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # Overrides userIp if both are provided.
65
+ # @param [String] user_ip
66
+ # IP address of the site where the request originates. Use this if you want to
67
+ # enforce per-user limits.
68
+ # @param [Google::Apis::RequestOptions] options
69
+ # Request-specific options
70
+ #
71
+ # @yield [result, err] Result & error if block supplied
72
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Account] parsed result object
73
+ # @yieldparam err [StandardError] error object if request failed
74
+ #
75
+ # @return [Google::Apis::AdexchangebuyerV1_4::Account]
76
+ #
77
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
80
+ def get_account(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
81
+ command = make_simple_command(:get, 'accounts/{id}', options)
82
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation
83
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Account
84
+ command.params['id'] = id unless id.nil?
85
+ command.query['fields'] = fields unless fields.nil?
86
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
+ command.query['userIp'] = user_ip unless user_ip.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
91
+ # Retrieves the authenticated user's list of accounts.
92
+ # @param [String] fields
93
+ # Selector specifying which fields to include in a partial response.
94
+ # @param [String] quota_user
95
+ # Available to use for quota purposes for server-side applications. Can be any
96
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
97
+ # Overrides userIp if both are provided.
98
+ # @param [String] user_ip
99
+ # IP address of the site where the request originates. Use this if you want to
100
+ # enforce per-user limits.
101
+ # @param [Google::Apis::RequestOptions] options
102
+ # Request-specific options
103
+ #
104
+ # @yield [result, err] Result & error if block supplied
105
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::AccountsList] parsed result object
106
+ # @yieldparam err [StandardError] error object if request failed
107
+ #
108
+ # @return [Google::Apis::AdexchangebuyerV1_4::AccountsList]
109
+ #
110
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
113
+ def list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
114
+ command = make_simple_command(:get, 'accounts', options)
115
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::AccountsList::Representation
116
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::AccountsList
117
+ command.query['fields'] = fields unless fields.nil?
118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
119
+ command.query['userIp'] = user_ip unless user_ip.nil?
120
+ execute_or_queue_command(command, &block)
121
+ end
122
+
123
+ # Updates an existing account. This method supports patch semantics.
124
+ # @param [Fixnum] id
125
+ # The account id
126
+ # @param [Google::Apis::AdexchangebuyerV1_4::Account] account_object
127
+ # @param [String] fields
128
+ # Selector specifying which fields to include in a partial response.
129
+ # @param [String] quota_user
130
+ # Available to use for quota purposes for server-side applications. Can be any
131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
132
+ # Overrides userIp if both are provided.
133
+ # @param [String] user_ip
134
+ # IP address of the site where the request originates. Use this if you want to
135
+ # enforce per-user limits.
136
+ # @param [Google::Apis::RequestOptions] options
137
+ # Request-specific options
138
+ #
139
+ # @yield [result, err] Result & error if block supplied
140
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Account] parsed result object
141
+ # @yieldparam err [StandardError] error object if request failed
142
+ #
143
+ # @return [Google::Apis::AdexchangebuyerV1_4::Account]
144
+ #
145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
148
+ def patch_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
149
+ command = make_simple_command(:patch, 'accounts/{id}', options)
150
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation
151
+ command.request_object = account_object
152
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation
153
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Account
154
+ command.params['id'] = id unless id.nil?
155
+ command.query['fields'] = fields unless fields.nil?
156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ command.query['userIp'] = user_ip unless user_ip.nil?
158
+ execute_or_queue_command(command, &block)
159
+ end
160
+
161
+ # Updates an existing account.
162
+ # @param [Fixnum] id
163
+ # The account id
164
+ # @param [Google::Apis::AdexchangebuyerV1_4::Account] account_object
165
+ # @param [String] fields
166
+ # Selector specifying which fields to include in a partial response.
167
+ # @param [String] quota_user
168
+ # Available to use for quota purposes for server-side applications. Can be any
169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
170
+ # Overrides userIp if both are provided.
171
+ # @param [String] user_ip
172
+ # IP address of the site where the request originates. Use this if you want to
173
+ # enforce per-user limits.
174
+ # @param [Google::Apis::RequestOptions] options
175
+ # Request-specific options
176
+ #
177
+ # @yield [result, err] Result & error if block supplied
178
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Account] parsed result object
179
+ # @yieldparam err [StandardError] error object if request failed
180
+ #
181
+ # @return [Google::Apis::AdexchangebuyerV1_4::Account]
182
+ #
183
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
186
+ def update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
187
+ command = make_simple_command(:put, 'accounts/{id}', options)
188
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation
189
+ command.request_object = account_object
190
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation
191
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Account
192
+ command.params['id'] = id unless id.nil?
193
+ command.query['fields'] = fields unless fields.nil?
194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
195
+ command.query['userIp'] = user_ip unless user_ip.nil?
196
+ execute_or_queue_command(command, &block)
197
+ end
198
+
199
+ # Returns the billing information for one account specified by account ID.
200
+ # @param [Fixnum] account_id
201
+ # The account id.
202
+ # @param [String] fields
203
+ # Selector specifying which fields to include in a partial response.
204
+ # @param [String] quota_user
205
+ # Available to use for quota purposes for server-side applications. Can be any
206
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
207
+ # Overrides userIp if both are provided.
208
+ # @param [String] user_ip
209
+ # IP address of the site where the request originates. Use this if you want to
210
+ # enforce per-user limits.
211
+ # @param [Google::Apis::RequestOptions] options
212
+ # Request-specific options
213
+ #
214
+ # @yield [result, err] Result & error if block supplied
215
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::BillingInfo] parsed result object
216
+ # @yieldparam err [StandardError] error object if request failed
217
+ #
218
+ # @return [Google::Apis::AdexchangebuyerV1_4::BillingInfo]
219
+ #
220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
223
+ def get_billing_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
224
+ command = make_simple_command(:get, 'billinginfo/{accountId}', options)
225
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::BillingInfo::Representation
226
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::BillingInfo
227
+ command.params['accountId'] = account_id unless account_id.nil?
228
+ command.query['fields'] = fields unless fields.nil?
229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
230
+ command.query['userIp'] = user_ip unless user_ip.nil?
231
+ execute_or_queue_command(command, &block)
232
+ end
233
+
234
+ # Retrieves a list of billing information for all accounts of the authenticated
235
+ # user.
236
+ # @param [String] fields
237
+ # Selector specifying which fields to include in a partial response.
238
+ # @param [String] quota_user
239
+ # Available to use for quota purposes for server-side applications. Can be any
240
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
241
+ # Overrides userIp if both are provided.
242
+ # @param [String] user_ip
243
+ # IP address of the site where the request originates. Use this if you want to
244
+ # enforce per-user limits.
245
+ # @param [Google::Apis::RequestOptions] options
246
+ # Request-specific options
247
+ #
248
+ # @yield [result, err] Result & error if block supplied
249
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::BillingInfoList] parsed result object
250
+ # @yieldparam err [StandardError] error object if request failed
251
+ #
252
+ # @return [Google::Apis::AdexchangebuyerV1_4::BillingInfoList]
253
+ #
254
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
255
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
256
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
257
+ def list_billing_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
258
+ command = make_simple_command(:get, 'billinginfo', options)
259
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::BillingInfoList::Representation
260
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::BillingInfoList
261
+ command.query['fields'] = fields unless fields.nil?
262
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
263
+ command.query['userIp'] = user_ip unless user_ip.nil?
264
+ execute_or_queue_command(command, &block)
265
+ end
266
+
267
+ # Returns the budget information for the adgroup specified by the accountId and
268
+ # billingId.
269
+ # @param [String] account_id
270
+ # The account id to get the budget information for.
271
+ # @param [String] billing_id
272
+ # The billing id to get the budget information for.
273
+ # @param [String] fields
274
+ # Selector specifying which fields to include in a partial response.
275
+ # @param [String] quota_user
276
+ # Available to use for quota purposes for server-side applications. Can be any
277
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
278
+ # Overrides userIp if both are provided.
279
+ # @param [String] user_ip
280
+ # IP address of the site where the request originates. Use this if you want to
281
+ # enforce per-user limits.
282
+ # @param [Google::Apis::RequestOptions] options
283
+ # Request-specific options
284
+ #
285
+ # @yield [result, err] Result & error if block supplied
286
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Budget] parsed result object
287
+ # @yieldparam err [StandardError] error object if request failed
288
+ #
289
+ # @return [Google::Apis::AdexchangebuyerV1_4::Budget]
290
+ #
291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
294
+ def get_budget(account_id, billing_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
295
+ command = make_simple_command(:get, 'billinginfo/{accountId}/{billingId}', options)
296
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation
297
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Budget
298
+ command.params['accountId'] = account_id unless account_id.nil?
299
+ command.params['billingId'] = billing_id unless billing_id.nil?
300
+ command.query['fields'] = fields unless fields.nil?
301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
302
+ command.query['userIp'] = user_ip unless user_ip.nil?
303
+ execute_or_queue_command(command, &block)
304
+ end
305
+
306
+ # Updates the budget amount for the budget of the adgroup specified by the
307
+ # accountId and billingId, with the budget amount in the request. This method
308
+ # supports patch semantics.
309
+ # @param [String] account_id
310
+ # The account id associated with the budget being updated.
311
+ # @param [String] billing_id
312
+ # The billing id associated with the budget being updated.
313
+ # @param [Google::Apis::AdexchangebuyerV1_4::Budget] budget_object
314
+ # @param [String] fields
315
+ # Selector specifying which fields to include in a partial response.
316
+ # @param [String] quota_user
317
+ # Available to use for quota purposes for server-side applications. Can be any
318
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
319
+ # Overrides userIp if both are provided.
320
+ # @param [String] user_ip
321
+ # IP address of the site where the request originates. Use this if you want to
322
+ # enforce per-user limits.
323
+ # @param [Google::Apis::RequestOptions] options
324
+ # Request-specific options
325
+ #
326
+ # @yield [result, err] Result & error if block supplied
327
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Budget] parsed result object
328
+ # @yieldparam err [StandardError] error object if request failed
329
+ #
330
+ # @return [Google::Apis::AdexchangebuyerV1_4::Budget]
331
+ #
332
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
333
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
334
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
335
+ def patch_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
336
+ command = make_simple_command(:patch, 'billinginfo/{accountId}/{billingId}', options)
337
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation
338
+ command.request_object = budget_object
339
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation
340
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Budget
341
+ command.params['accountId'] = account_id unless account_id.nil?
342
+ command.params['billingId'] = billing_id unless billing_id.nil?
343
+ command.query['fields'] = fields unless fields.nil?
344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
345
+ command.query['userIp'] = user_ip unless user_ip.nil?
346
+ execute_or_queue_command(command, &block)
347
+ end
348
+
349
+ # Updates the budget amount for the budget of the adgroup specified by the
350
+ # accountId and billingId, with the budget amount in the request.
351
+ # @param [String] account_id
352
+ # The account id associated with the budget being updated.
353
+ # @param [String] billing_id
354
+ # The billing id associated with the budget being updated.
355
+ # @param [Google::Apis::AdexchangebuyerV1_4::Budget] budget_object
356
+ # @param [String] fields
357
+ # Selector specifying which fields to include in a partial response.
358
+ # @param [String] quota_user
359
+ # Available to use for quota purposes for server-side applications. Can be any
360
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
361
+ # Overrides userIp if both are provided.
362
+ # @param [String] user_ip
363
+ # IP address of the site where the request originates. Use this if you want to
364
+ # enforce per-user limits.
365
+ # @param [Google::Apis::RequestOptions] options
366
+ # Request-specific options
367
+ #
368
+ # @yield [result, err] Result & error if block supplied
369
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Budget] parsed result object
370
+ # @yieldparam err [StandardError] error object if request failed
371
+ #
372
+ # @return [Google::Apis::AdexchangebuyerV1_4::Budget]
373
+ #
374
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
375
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
376
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
377
+ def update_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
378
+ command = make_simple_command(:put, 'billinginfo/{accountId}/{billingId}', options)
379
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation
380
+ command.request_object = budget_object
381
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation
382
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Budget
383
+ command.params['accountId'] = account_id unless account_id.nil?
384
+ command.params['billingId'] = billing_id unless billing_id.nil?
385
+ command.query['fields'] = fields unless fields.nil?
386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
387
+ command.query['userIp'] = user_ip unless user_ip.nil?
388
+ execute_or_queue_command(command, &block)
389
+ end
390
+
391
+ # Add a deal id association for the creative.
392
+ # @param [Fixnum] account_id
393
+ # The id for the account that will serve this creative.
394
+ # @param [String] buyer_creative_id
395
+ # The buyer-specific id for this creative.
396
+ # @param [String] deal_id
397
+ # The id of the deal id to associate with this creative.
398
+ # @param [String] fields
399
+ # Selector specifying which fields to include in a partial response.
400
+ # @param [String] quota_user
401
+ # Available to use for quota purposes for server-side applications. Can be any
402
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
403
+ # Overrides userIp if both are provided.
404
+ # @param [String] user_ip
405
+ # IP address of the site where the request originates. Use this if you want to
406
+ # enforce per-user limits.
407
+ # @param [Google::Apis::RequestOptions] options
408
+ # Request-specific options
409
+ #
410
+ # @yield [result, err] Result & error if block supplied
411
+ # @yieldparam result [NilClass] No result returned for this method
412
+ # @yieldparam err [StandardError] error object if request failed
413
+ #
414
+ # @return [void]
415
+ #
416
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
417
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
418
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
419
+ def add_creative_deal(account_id, buyer_creative_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
420
+ command = make_simple_command(:post, 'creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}', options)
421
+ command.params['accountId'] = account_id unless account_id.nil?
422
+ command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil?
423
+ command.params['dealId'] = deal_id unless deal_id.nil?
424
+ command.query['fields'] = fields unless fields.nil?
425
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
426
+ command.query['userIp'] = user_ip unless user_ip.nil?
427
+ execute_or_queue_command(command, &block)
428
+ end
429
+
430
+ # Gets the status for a single creative. A creative will be available 30-40
431
+ # minutes after submission.
432
+ # @param [Fixnum] account_id
433
+ # The id for the account that will serve this creative.
434
+ # @param [String] buyer_creative_id
435
+ # The buyer-specific id for this creative.
436
+ # @param [String] fields
437
+ # Selector specifying which fields to include in a partial response.
438
+ # @param [String] quota_user
439
+ # Available to use for quota purposes for server-side applications. Can be any
440
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
441
+ # Overrides userIp if both are provided.
442
+ # @param [String] user_ip
443
+ # IP address of the site where the request originates. Use this if you want to
444
+ # enforce per-user limits.
445
+ # @param [Google::Apis::RequestOptions] options
446
+ # Request-specific options
447
+ #
448
+ # @yield [result, err] Result & error if block supplied
449
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Creative] parsed result object
450
+ # @yieldparam err [StandardError] error object if request failed
451
+ #
452
+ # @return [Google::Apis::AdexchangebuyerV1_4::Creative]
453
+ #
454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
457
+ def get_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
458
+ command = make_simple_command(:get, 'creatives/{accountId}/{buyerCreativeId}', options)
459
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Creative::Representation
460
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Creative
461
+ command.params['accountId'] = account_id unless account_id.nil?
462
+ command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil?
463
+ command.query['fields'] = fields unless fields.nil?
464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
465
+ command.query['userIp'] = user_ip unless user_ip.nil?
466
+ execute_or_queue_command(command, &block)
467
+ end
468
+
469
+ # Submit a new creative.
470
+ # @param [Google::Apis::AdexchangebuyerV1_4::Creative] creative_object
471
+ # @param [String] fields
472
+ # Selector specifying which fields to include in a partial response.
473
+ # @param [String] quota_user
474
+ # Available to use for quota purposes for server-side applications. Can be any
475
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
476
+ # Overrides userIp if both are provided.
477
+ # @param [String] user_ip
478
+ # IP address of the site where the request originates. Use this if you want to
479
+ # enforce per-user limits.
480
+ # @param [Google::Apis::RequestOptions] options
481
+ # Request-specific options
482
+ #
483
+ # @yield [result, err] Result & error if block supplied
484
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Creative] parsed result object
485
+ # @yieldparam err [StandardError] error object if request failed
486
+ #
487
+ # @return [Google::Apis::AdexchangebuyerV1_4::Creative]
488
+ #
489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
492
+ def insert_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
493
+ command = make_simple_command(:post, 'creatives', options)
494
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::Creative::Representation
495
+ command.request_object = creative_object
496
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Creative::Representation
497
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Creative
498
+ command.query['fields'] = fields unless fields.nil?
499
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
500
+ command.query['userIp'] = user_ip unless user_ip.nil?
501
+ execute_or_queue_command(command, &block)
502
+ end
503
+
504
+ # Retrieves a list of the authenticated user's active creatives. A creative will
505
+ # be available 30-40 minutes after submission.
506
+ # @param [Array<Fixnum>, Fixnum] account_id
507
+ # When specified, only creatives for the given account ids are returned.
508
+ # @param [Array<String>, String] buyer_creative_id
509
+ # When specified, only creatives for the given buyer creative ids are returned.
510
+ # @param [String] deals_status_filter
511
+ # When specified, only creatives having the given deals status are returned.
512
+ # @param [Fixnum] max_results
513
+ # Maximum number of entries returned on one result page. If not set, the default
514
+ # is 100. Optional.
515
+ # @param [String] open_auction_status_filter
516
+ # When specified, only creatives having the given open auction status are
517
+ # returned.
518
+ # @param [String] page_token
519
+ # A continuation token, used to page through ad clients. To retrieve the next
520
+ # page, set this parameter to the value of "nextPageToken" from the previous
521
+ # response. Optional.
522
+ # @param [String] fields
523
+ # Selector specifying which fields to include in a partial response.
524
+ # @param [String] quota_user
525
+ # Available to use for quota purposes for server-side applications. Can be any
526
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
527
+ # Overrides userIp if both are provided.
528
+ # @param [String] user_ip
529
+ # IP address of the site where the request originates. Use this if you want to
530
+ # enforce per-user limits.
531
+ # @param [Google::Apis::RequestOptions] options
532
+ # Request-specific options
533
+ #
534
+ # @yield [result, err] Result & error if block supplied
535
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::CreativesList] parsed result object
536
+ # @yieldparam err [StandardError] error object if request failed
537
+ #
538
+ # @return [Google::Apis::AdexchangebuyerV1_4::CreativesList]
539
+ #
540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
543
+ def list_creatives(account_id: nil, buyer_creative_id: nil, deals_status_filter: nil, max_results: nil, open_auction_status_filter: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
544
+ command = make_simple_command(:get, 'creatives', options)
545
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::CreativesList::Representation
546
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::CreativesList
547
+ command.query['accountId'] = account_id unless account_id.nil?
548
+ command.query['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil?
549
+ command.query['dealsStatusFilter'] = deals_status_filter unless deals_status_filter.nil?
550
+ command.query['maxResults'] = max_results unless max_results.nil?
551
+ command.query['openAuctionStatusFilter'] = open_auction_status_filter unless open_auction_status_filter.nil?
552
+ command.query['pageToken'] = page_token unless page_token.nil?
553
+ command.query['fields'] = fields unless fields.nil?
554
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
555
+ command.query['userIp'] = user_ip unless user_ip.nil?
556
+ execute_or_queue_command(command, &block)
557
+ end
558
+
559
+ # Remove a deal id associated with the creative.
560
+ # @param [Fixnum] account_id
561
+ # The id for the account that will serve this creative.
562
+ # @param [String] buyer_creative_id
563
+ # The buyer-specific id for this creative.
564
+ # @param [String] deal_id
565
+ # The id of the deal id to disassociate with this creative.
566
+ # @param [String] fields
567
+ # Selector specifying which fields to include in a partial response.
568
+ # @param [String] quota_user
569
+ # Available to use for quota purposes for server-side applications. Can be any
570
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
571
+ # Overrides userIp if both are provided.
572
+ # @param [String] user_ip
573
+ # IP address of the site where the request originates. Use this if you want to
574
+ # enforce per-user limits.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [NilClass] No result returned for this method
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [void]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def remove_creative_deal(account_id, buyer_creative_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
588
+ command = make_simple_command(:post, 'creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}', options)
589
+ command.params['accountId'] = account_id unless account_id.nil?
590
+ command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil?
591
+ command.params['dealId'] = deal_id unless deal_id.nil?
592
+ command.query['fields'] = fields unless fields.nil?
593
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
594
+ command.query['userIp'] = user_ip unless user_ip.nil?
595
+ execute_or_queue_command(command, &block)
596
+ end
597
+
598
+ # Delete the specified deals from the proposal
599
+ # @param [String] proposal_id
600
+ # The proposalId to delete deals from.
601
+ # @param [Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsRequest] delete_order_deals_request_object
602
+ # @param [String] fields
603
+ # Selector specifying which fields to include in a partial response.
604
+ # @param [String] quota_user
605
+ # Available to use for quota purposes for server-side applications. Can be any
606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
607
+ # Overrides userIp if both are provided.
608
+ # @param [String] user_ip
609
+ # IP address of the site where the request originates. Use this if you want to
610
+ # enforce per-user limits.
611
+ # @param [Google::Apis::RequestOptions] options
612
+ # Request-specific options
613
+ #
614
+ # @yield [result, err] Result & error if block supplied
615
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse] parsed result object
616
+ # @yieldparam err [StandardError] error object if request failed
617
+ #
618
+ # @return [Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse]
619
+ #
620
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
621
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
622
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
623
+ def delete_marketplacedeal_order_deals(proposal_id, delete_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
624
+ command = make_simple_command(:post, 'proposals/{proposalId}/deals/delete', options)
625
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsRequest::Representation
626
+ command.request_object = delete_order_deals_request_object
627
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse::Representation
628
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse
629
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
630
+ command.query['fields'] = fields unless fields.nil?
631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
632
+ command.query['userIp'] = user_ip unless user_ip.nil?
633
+ execute_or_queue_command(command, &block)
634
+ end
635
+
636
+ # Add new deals for the specified proposal
637
+ # @param [String] proposal_id
638
+ # proposalId for which deals need to be added.
639
+ # @param [Google::Apis::AdexchangebuyerV1_4::AddOrderDealsRequest] add_order_deals_request_object
640
+ # @param [String] fields
641
+ # Selector specifying which fields to include in a partial response.
642
+ # @param [String] quota_user
643
+ # Available to use for quota purposes for server-side applications. Can be any
644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
645
+ # Overrides userIp if both are provided.
646
+ # @param [String] user_ip
647
+ # IP address of the site where the request originates. Use this if you want to
648
+ # enforce per-user limits.
649
+ # @param [Google::Apis::RequestOptions] options
650
+ # Request-specific options
651
+ #
652
+ # @yield [result, err] Result & error if block supplied
653
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse] parsed result object
654
+ # @yieldparam err [StandardError] error object if request failed
655
+ #
656
+ # @return [Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse]
657
+ #
658
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
659
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
660
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
661
+ def insert_marketplacedeal(proposal_id, add_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
662
+ command = make_simple_command(:post, 'proposals/{proposalId}/deals/insert', options)
663
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderDealsRequest::Representation
664
+ command.request_object = add_order_deals_request_object
665
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse::Representation
666
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse
667
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
668
+ command.query['fields'] = fields unless fields.nil?
669
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
670
+ command.query['userIp'] = user_ip unless user_ip.nil?
671
+ execute_or_queue_command(command, &block)
672
+ end
673
+
674
+ # List all the deals for a given proposal
675
+ # @param [String] proposal_id
676
+ # The proposalId to get deals for.
677
+ # @param [String] fields
678
+ # Selector specifying which fields to include in a partial response.
679
+ # @param [String] quota_user
680
+ # Available to use for quota purposes for server-side applications. Can be any
681
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
682
+ # Overrides userIp if both are provided.
683
+ # @param [String] user_ip
684
+ # IP address of the site where the request originates. Use this if you want to
685
+ # enforce per-user limits.
686
+ # @param [Google::Apis::RequestOptions] options
687
+ # Request-specific options
688
+ #
689
+ # @yield [result, err] Result & error if block supplied
690
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse] parsed result object
691
+ # @yieldparam err [StandardError] error object if request failed
692
+ #
693
+ # @return [Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse]
694
+ #
695
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
696
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
697
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
698
+ def list_marketplacedeals(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
699
+ command = make_simple_command(:get, 'proposals/{proposalId}/deals', options)
700
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse::Representation
701
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse
702
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
703
+ command.query['fields'] = fields unless fields.nil?
704
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
705
+ command.query['userIp'] = user_ip unless user_ip.nil?
706
+ execute_or_queue_command(command, &block)
707
+ end
708
+
709
+ # Replaces all the deals in the proposal with the passed in deals
710
+ # @param [String] proposal_id
711
+ # The proposalId to edit deals on.
712
+ # @param [Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsRequest] edit_all_order_deals_request_object
713
+ # @param [String] fields
714
+ # Selector specifying which fields to include in a partial response.
715
+ # @param [String] quota_user
716
+ # Available to use for quota purposes for server-side applications. Can be any
717
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
718
+ # Overrides userIp if both are provided.
719
+ # @param [String] user_ip
720
+ # IP address of the site where the request originates. Use this if you want to
721
+ # enforce per-user limits.
722
+ # @param [Google::Apis::RequestOptions] options
723
+ # Request-specific options
724
+ #
725
+ # @yield [result, err] Result & error if block supplied
726
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse] parsed result object
727
+ # @yieldparam err [StandardError] error object if request failed
728
+ #
729
+ # @return [Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse]
730
+ #
731
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
732
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
733
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
734
+ def update_marketplacedeal(proposal_id, edit_all_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
735
+ command = make_simple_command(:post, 'proposals/{proposalId}/deals/update', options)
736
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsRequest::Representation
737
+ command.request_object = edit_all_order_deals_request_object
738
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse::Representation
739
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse
740
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
741
+ command.query['fields'] = fields unless fields.nil?
742
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
743
+ command.query['userIp'] = user_ip unless user_ip.nil?
744
+ execute_or_queue_command(command, &block)
745
+ end
746
+
747
+ # Add notes to the proposal
748
+ # @param [String] proposal_id
749
+ # The proposalId to add notes for.
750
+ # @param [Google::Apis::AdexchangebuyerV1_4::AddOrderNotesRequest] add_order_notes_request_object
751
+ # @param [String] fields
752
+ # Selector specifying which fields to include in a partial response.
753
+ # @param [String] quota_user
754
+ # Available to use for quota purposes for server-side applications. Can be any
755
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
756
+ # Overrides userIp if both are provided.
757
+ # @param [String] user_ip
758
+ # IP address of the site where the request originates. Use this if you want to
759
+ # enforce per-user limits.
760
+ # @param [Google::Apis::RequestOptions] options
761
+ # Request-specific options
762
+ #
763
+ # @yield [result, err] Result & error if block supplied
764
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse] parsed result object
765
+ # @yieldparam err [StandardError] error object if request failed
766
+ #
767
+ # @return [Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse]
768
+ #
769
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
770
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
771
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
772
+ def insert_marketplacenote(proposal_id, add_order_notes_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
773
+ command = make_simple_command(:post, 'proposals/{proposalId}/notes/insert', options)
774
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderNotesRequest::Representation
775
+ command.request_object = add_order_notes_request_object
776
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse::Representation
777
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse
778
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
779
+ command.query['fields'] = fields unless fields.nil?
780
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
781
+ command.query['userIp'] = user_ip unless user_ip.nil?
782
+ execute_or_queue_command(command, &block)
783
+ end
784
+
785
+ # Get all the notes associated with a proposal
786
+ # @param [String] proposal_id
787
+ # The proposalId to get notes for.
788
+ # @param [String] fields
789
+ # Selector specifying which fields to include in a partial response.
790
+ # @param [String] quota_user
791
+ # Available to use for quota purposes for server-side applications. Can be any
792
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
793
+ # Overrides userIp if both are provided.
794
+ # @param [String] user_ip
795
+ # IP address of the site where the request originates. Use this if you want to
796
+ # enforce per-user limits.
797
+ # @param [Google::Apis::RequestOptions] options
798
+ # Request-specific options
799
+ #
800
+ # @yield [result, err] Result & error if block supplied
801
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse] parsed result object
802
+ # @yieldparam err [StandardError] error object if request failed
803
+ #
804
+ # @return [Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse]
805
+ #
806
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
807
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
808
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
809
+ def list_marketplacenotes(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
810
+ command = make_simple_command(:get, 'proposals/{proposalId}/notes', options)
811
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse::Representation
812
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse
813
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
814
+ command.query['fields'] = fields unless fields.nil?
815
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
816
+ command.query['userIp'] = user_ip unless user_ip.nil?
817
+ execute_or_queue_command(command, &block)
818
+ end
819
+
820
+ # Retrieves the authenticated user's list of performance metrics.
821
+ # @param [String] account_id
822
+ # The account id to get the reports.
823
+ # @param [String] end_date_time
824
+ # The end time of the report in ISO 8601 timestamp format using UTC.
825
+ # @param [String] start_date_time
826
+ # The start time of the report in ISO 8601 timestamp format using UTC.
827
+ # @param [Fixnum] max_results
828
+ # Maximum number of entries returned on one result page. If not set, the default
829
+ # is 100. Optional.
830
+ # @param [String] page_token
831
+ # A continuation token, used to page through performance reports. To retrieve
832
+ # the next page, set this parameter to the value of "nextPageToken" from the
833
+ # previous response. Optional.
834
+ # @param [String] fields
835
+ # Selector specifying which fields to include in a partial response.
836
+ # @param [String] quota_user
837
+ # Available to use for quota purposes for server-side applications. Can be any
838
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
839
+ # Overrides userIp if both are provided.
840
+ # @param [String] user_ip
841
+ # IP address of the site where the request originates. Use this if you want to
842
+ # enforce per-user limits.
843
+ # @param [Google::Apis::RequestOptions] options
844
+ # Request-specific options
845
+ #
846
+ # @yield [result, err] Result & error if block supplied
847
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::PerformanceReportList] parsed result object
848
+ # @yieldparam err [StandardError] error object if request failed
849
+ #
850
+ # @return [Google::Apis::AdexchangebuyerV1_4::PerformanceReportList]
851
+ #
852
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
853
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
854
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
855
+ def list_performance_reports(account_id, end_date_time, start_date_time, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
856
+ command = make_simple_command(:get, 'performancereport', options)
857
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::PerformanceReportList::Representation
858
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::PerformanceReportList
859
+ command.query['accountId'] = account_id unless account_id.nil?
860
+ command.query['endDateTime'] = end_date_time unless end_date_time.nil?
861
+ command.query['maxResults'] = max_results unless max_results.nil?
862
+ command.query['pageToken'] = page_token unless page_token.nil?
863
+ command.query['startDateTime'] = start_date_time unless start_date_time.nil?
864
+ command.query['fields'] = fields unless fields.nil?
865
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
866
+ command.query['userIp'] = user_ip unless user_ip.nil?
867
+ execute_or_queue_command(command, &block)
868
+ end
869
+
870
+ # Deletes an existing pretargeting config.
871
+ # @param [String] account_id
872
+ # The account id to delete the pretargeting config for.
873
+ # @param [String] config_id
874
+ # The specific id of the configuration to delete.
875
+ # @param [String] fields
876
+ # Selector specifying which fields to include in a partial response.
877
+ # @param [String] quota_user
878
+ # Available to use for quota purposes for server-side applications. Can be any
879
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
880
+ # Overrides userIp if both are provided.
881
+ # @param [String] user_ip
882
+ # IP address of the site where the request originates. Use this if you want to
883
+ # enforce per-user limits.
884
+ # @param [Google::Apis::RequestOptions] options
885
+ # Request-specific options
886
+ #
887
+ # @yield [result, err] Result & error if block supplied
888
+ # @yieldparam result [NilClass] No result returned for this method
889
+ # @yieldparam err [StandardError] error object if request failed
890
+ #
891
+ # @return [void]
892
+ #
893
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
894
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
895
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
896
+ def delete_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
897
+ command = make_simple_command(:delete, 'pretargetingconfigs/{accountId}/{configId}', options)
898
+ command.params['accountId'] = account_id unless account_id.nil?
899
+ command.params['configId'] = config_id unless config_id.nil?
900
+ command.query['fields'] = fields unless fields.nil?
901
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
902
+ command.query['userIp'] = user_ip unless user_ip.nil?
903
+ execute_or_queue_command(command, &block)
904
+ end
905
+
906
+ # Gets a specific pretargeting configuration
907
+ # @param [String] account_id
908
+ # The account id to get the pretargeting config for.
909
+ # @param [String] config_id
910
+ # The specific id of the configuration to retrieve.
911
+ # @param [String] fields
912
+ # Selector specifying which fields to include in a partial response.
913
+ # @param [String] quota_user
914
+ # Available to use for quota purposes for server-side applications. Can be any
915
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
916
+ # Overrides userIp if both are provided.
917
+ # @param [String] user_ip
918
+ # IP address of the site where the request originates. Use this if you want to
919
+ # enforce per-user limits.
920
+ # @param [Google::Apis::RequestOptions] options
921
+ # Request-specific options
922
+ #
923
+ # @yield [result, err] Result & error if block supplied
924
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] parsed result object
925
+ # @yieldparam err [StandardError] error object if request failed
926
+ #
927
+ # @return [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig]
928
+ #
929
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
930
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
931
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
932
+ def get_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
933
+ command = make_simple_command(:get, 'pretargetingconfigs/{accountId}/{configId}', options)
934
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation
935
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig
936
+ command.params['accountId'] = account_id unless account_id.nil?
937
+ command.params['configId'] = config_id unless config_id.nil?
938
+ command.query['fields'] = fields unless fields.nil?
939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
940
+ command.query['userIp'] = user_ip unless user_ip.nil?
941
+ execute_or_queue_command(command, &block)
942
+ end
943
+
944
+ # Inserts a new pretargeting configuration.
945
+ # @param [String] account_id
946
+ # The account id to insert the pretargeting config for.
947
+ # @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_object
948
+ # @param [String] fields
949
+ # Selector specifying which fields to include in a partial response.
950
+ # @param [String] quota_user
951
+ # Available to use for quota purposes for server-side applications. Can be any
952
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
953
+ # Overrides userIp if both are provided.
954
+ # @param [String] user_ip
955
+ # IP address of the site where the request originates. Use this if you want to
956
+ # enforce per-user limits.
957
+ # @param [Google::Apis::RequestOptions] options
958
+ # Request-specific options
959
+ #
960
+ # @yield [result, err] Result & error if block supplied
961
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] parsed result object
962
+ # @yieldparam err [StandardError] error object if request failed
963
+ #
964
+ # @return [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig]
965
+ #
966
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
967
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
968
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
969
+ def insert_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
970
+ command = make_simple_command(:post, 'pretargetingconfigs/{accountId}', options)
971
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation
972
+ command.request_object = pretargeting_config_object
973
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation
974
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig
975
+ command.params['accountId'] = account_id unless account_id.nil?
976
+ command.query['fields'] = fields unless fields.nil?
977
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
978
+ command.query['userIp'] = user_ip unless user_ip.nil?
979
+ execute_or_queue_command(command, &block)
980
+ end
981
+
982
+ # Retrieves a list of the authenticated user's pretargeting configurations.
983
+ # @param [String] account_id
984
+ # The account id to get the pretargeting configs for.
985
+ # @param [String] fields
986
+ # Selector specifying which fields to include in a partial response.
987
+ # @param [String] quota_user
988
+ # Available to use for quota purposes for server-side applications. Can be any
989
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
990
+ # Overrides userIp if both are provided.
991
+ # @param [String] user_ip
992
+ # IP address of the site where the request originates. Use this if you want to
993
+ # enforce per-user limits.
994
+ # @param [Google::Apis::RequestOptions] options
995
+ # Request-specific options
996
+ #
997
+ # @yield [result, err] Result & error if block supplied
998
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::PretargetingConfigList] parsed result object
999
+ # @yieldparam err [StandardError] error object if request failed
1000
+ #
1001
+ # @return [Google::Apis::AdexchangebuyerV1_4::PretargetingConfigList]
1002
+ #
1003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1006
+ def list_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1007
+ command = make_simple_command(:get, 'pretargetingconfigs/{accountId}', options)
1008
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfigList::Representation
1009
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::PretargetingConfigList
1010
+ command.params['accountId'] = account_id unless account_id.nil?
1011
+ command.query['fields'] = fields unless fields.nil?
1012
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1013
+ command.query['userIp'] = user_ip unless user_ip.nil?
1014
+ execute_or_queue_command(command, &block)
1015
+ end
1016
+
1017
+ # Updates an existing pretargeting config. This method supports patch semantics.
1018
+ # @param [String] account_id
1019
+ # The account id to update the pretargeting config for.
1020
+ # @param [String] config_id
1021
+ # The specific id of the configuration to update.
1022
+ # @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_object
1023
+ # @param [String] fields
1024
+ # Selector specifying which fields to include in a partial response.
1025
+ # @param [String] quota_user
1026
+ # Available to use for quota purposes for server-side applications. Can be any
1027
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1028
+ # Overrides userIp if both are provided.
1029
+ # @param [String] user_ip
1030
+ # IP address of the site where the request originates. Use this if you want to
1031
+ # enforce per-user limits.
1032
+ # @param [Google::Apis::RequestOptions] options
1033
+ # Request-specific options
1034
+ #
1035
+ # @yield [result, err] Result & error if block supplied
1036
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] parsed result object
1037
+ # @yieldparam err [StandardError] error object if request failed
1038
+ #
1039
+ # @return [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig]
1040
+ #
1041
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1042
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1043
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1044
+ def patch_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1045
+ command = make_simple_command(:patch, 'pretargetingconfigs/{accountId}/{configId}', options)
1046
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation
1047
+ command.request_object = pretargeting_config_object
1048
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation
1049
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig
1050
+ command.params['accountId'] = account_id unless account_id.nil?
1051
+ command.params['configId'] = config_id unless config_id.nil?
1052
+ command.query['fields'] = fields unless fields.nil?
1053
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1054
+ command.query['userIp'] = user_ip unless user_ip.nil?
1055
+ execute_or_queue_command(command, &block)
1056
+ end
1057
+
1058
+ # Updates an existing pretargeting config.
1059
+ # @param [String] account_id
1060
+ # The account id to update the pretargeting config for.
1061
+ # @param [String] config_id
1062
+ # The specific id of the configuration to update.
1063
+ # @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_object
1064
+ # @param [String] fields
1065
+ # Selector specifying which fields to include in a partial response.
1066
+ # @param [String] quota_user
1067
+ # Available to use for quota purposes for server-side applications. Can be any
1068
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1069
+ # Overrides userIp if both are provided.
1070
+ # @param [String] user_ip
1071
+ # IP address of the site where the request originates. Use this if you want to
1072
+ # enforce per-user limits.
1073
+ # @param [Google::Apis::RequestOptions] options
1074
+ # Request-specific options
1075
+ #
1076
+ # @yield [result, err] Result & error if block supplied
1077
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] parsed result object
1078
+ # @yieldparam err [StandardError] error object if request failed
1079
+ #
1080
+ # @return [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig]
1081
+ #
1082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1085
+ def update_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1086
+ command = make_simple_command(:put, 'pretargetingconfigs/{accountId}/{configId}', options)
1087
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation
1088
+ command.request_object = pretargeting_config_object
1089
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation
1090
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig
1091
+ command.params['accountId'] = account_id unless account_id.nil?
1092
+ command.params['configId'] = config_id unless config_id.nil?
1093
+ command.query['fields'] = fields unless fields.nil?
1094
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1095
+ command.query['userIp'] = user_ip unless user_ip.nil?
1096
+ execute_or_queue_command(command, &block)
1097
+ end
1098
+
1099
+ # Gets the requested product by id.
1100
+ # @param [String] product_id
1101
+ # The id for the product to get the head revision for.
1102
+ # @param [String] fields
1103
+ # Selector specifying which fields to include in a partial response.
1104
+ # @param [String] quota_user
1105
+ # Available to use for quota purposes for server-side applications. Can be any
1106
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1107
+ # Overrides userIp if both are provided.
1108
+ # @param [String] user_ip
1109
+ # IP address of the site where the request originates. Use this if you want to
1110
+ # enforce per-user limits.
1111
+ # @param [Google::Apis::RequestOptions] options
1112
+ # Request-specific options
1113
+ #
1114
+ # @yield [result, err] Result & error if block supplied
1115
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Product] parsed result object
1116
+ # @yieldparam err [StandardError] error object if request failed
1117
+ #
1118
+ # @return [Google::Apis::AdexchangebuyerV1_4::Product]
1119
+ #
1120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1123
+ def get_product(product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1124
+ command = make_simple_command(:get, 'products/{productId}', options)
1125
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Product::Representation
1126
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Product
1127
+ command.params['productId'] = product_id unless product_id.nil?
1128
+ command.query['fields'] = fields unless fields.nil?
1129
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1130
+ command.query['userIp'] = user_ip unless user_ip.nil?
1131
+ execute_or_queue_command(command, &block)
1132
+ end
1133
+
1134
+ # Gets the requested product.
1135
+ # @param [String] pql_query
1136
+ # The pql query used to query for products.
1137
+ # @param [String] fields
1138
+ # Selector specifying which fields to include in a partial response.
1139
+ # @param [String] quota_user
1140
+ # Available to use for quota purposes for server-side applications. Can be any
1141
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1142
+ # Overrides userIp if both are provided.
1143
+ # @param [String] user_ip
1144
+ # IP address of the site where the request originates. Use this if you want to
1145
+ # enforce per-user limits.
1146
+ # @param [Google::Apis::RequestOptions] options
1147
+ # Request-specific options
1148
+ #
1149
+ # @yield [result, err] Result & error if block supplied
1150
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::GetOffersResponse] parsed result object
1151
+ # @yieldparam err [StandardError] error object if request failed
1152
+ #
1153
+ # @return [Google::Apis::AdexchangebuyerV1_4::GetOffersResponse]
1154
+ #
1155
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1156
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1157
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1158
+ def search_products(pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1159
+ command = make_simple_command(:get, 'products/search', options)
1160
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOffersResponse::Representation
1161
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOffersResponse
1162
+ command.query['pqlQuery'] = pql_query unless pql_query.nil?
1163
+ command.query['fields'] = fields unless fields.nil?
1164
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1165
+ command.query['userIp'] = user_ip unless user_ip.nil?
1166
+ execute_or_queue_command(command, &block)
1167
+ end
1168
+
1169
+ # Get a proposal given its id
1170
+ # @param [String] proposal_id
1171
+ # Id of the proposal to retrieve.
1172
+ # @param [String] fields
1173
+ # Selector specifying which fields to include in a partial response.
1174
+ # @param [String] quota_user
1175
+ # Available to use for quota purposes for server-side applications. Can be any
1176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1177
+ # Overrides userIp if both are provided.
1178
+ # @param [String] user_ip
1179
+ # IP address of the site where the request originates. Use this if you want to
1180
+ # enforce per-user limits.
1181
+ # @param [Google::Apis::RequestOptions] options
1182
+ # Request-specific options
1183
+ #
1184
+ # @yield [result, err] Result & error if block supplied
1185
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Proposal] parsed result object
1186
+ # @yieldparam err [StandardError] error object if request failed
1187
+ #
1188
+ # @return [Google::Apis::AdexchangebuyerV1_4::Proposal]
1189
+ #
1190
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1191
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1192
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1193
+ def get_proposal(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1194
+ command = make_simple_command(:get, 'proposals/{proposalId}', options)
1195
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation
1196
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Proposal
1197
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1198
+ command.query['fields'] = fields unless fields.nil?
1199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1200
+ command.query['userIp'] = user_ip unless user_ip.nil?
1201
+ execute_or_queue_command(command, &block)
1202
+ end
1203
+
1204
+ # Create the given list of proposals
1205
+ # @param [Google::Apis::AdexchangebuyerV1_4::CreateOrdersRequest] create_orders_request_object
1206
+ # @param [String] fields
1207
+ # Selector specifying which fields to include in a partial response.
1208
+ # @param [String] quota_user
1209
+ # Available to use for quota purposes for server-side applications. Can be any
1210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1211
+ # Overrides userIp if both are provided.
1212
+ # @param [String] user_ip
1213
+ # IP address of the site where the request originates. Use this if you want to
1214
+ # enforce per-user limits.
1215
+ # @param [Google::Apis::RequestOptions] options
1216
+ # Request-specific options
1217
+ #
1218
+ # @yield [result, err] Result & error if block supplied
1219
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse] parsed result object
1220
+ # @yieldparam err [StandardError] error object if request failed
1221
+ #
1222
+ # @return [Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse]
1223
+ #
1224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1227
+ def insert_proposal(create_orders_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1228
+ command = make_simple_command(:post, 'proposals/insert', options)
1229
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::CreateOrdersRequest::Representation
1230
+ command.request_object = create_orders_request_object
1231
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse::Representation
1232
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse
1233
+ command.query['fields'] = fields unless fields.nil?
1234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1235
+ command.query['userIp'] = user_ip unless user_ip.nil?
1236
+ execute_or_queue_command(command, &block)
1237
+ end
1238
+
1239
+ # Update the given proposal. This method supports patch semantics.
1240
+ # @param [String] proposal_id
1241
+ # The proposal id to update.
1242
+ # @param [String] revision_number
1243
+ # The last known revision number to update. If the head revision in the
1244
+ # marketplace database has since changed, an error will be thrown. The caller
1245
+ # should then fetch the latest proposal at head revision and retry the update at
1246
+ # that revision.
1247
+ # @param [String] update_action
1248
+ # The proposed action to take on the proposal.
1249
+ # @param [Google::Apis::AdexchangebuyerV1_4::Proposal] proposal_object
1250
+ # @param [String] fields
1251
+ # Selector specifying which fields to include in a partial response.
1252
+ # @param [String] quota_user
1253
+ # Available to use for quota purposes for server-side applications. Can be any
1254
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1255
+ # Overrides userIp if both are provided.
1256
+ # @param [String] user_ip
1257
+ # IP address of the site where the request originates. Use this if you want to
1258
+ # enforce per-user limits.
1259
+ # @param [Google::Apis::RequestOptions] options
1260
+ # Request-specific options
1261
+ #
1262
+ # @yield [result, err] Result & error if block supplied
1263
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Proposal] parsed result object
1264
+ # @yieldparam err [StandardError] error object if request failed
1265
+ #
1266
+ # @return [Google::Apis::AdexchangebuyerV1_4::Proposal]
1267
+ #
1268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1271
+ def patch_proposal(proposal_id, revision_number, update_action, proposal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1272
+ command = make_simple_command(:patch, 'proposals/{proposalId}/{revisionNumber}/{updateAction}', options)
1273
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation
1274
+ command.request_object = proposal_object
1275
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation
1276
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Proposal
1277
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1278
+ command.params['revisionNumber'] = revision_number unless revision_number.nil?
1279
+ command.params['updateAction'] = update_action unless update_action.nil?
1280
+ command.query['fields'] = fields unless fields.nil?
1281
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1282
+ command.query['userIp'] = user_ip unless user_ip.nil?
1283
+ execute_or_queue_command(command, &block)
1284
+ end
1285
+
1286
+ # Search for proposals using pql query
1287
+ # @param [String] pql_query
1288
+ # Query string to retrieve specific proposals.
1289
+ # @param [String] fields
1290
+ # Selector specifying which fields to include in a partial response.
1291
+ # @param [String] quota_user
1292
+ # Available to use for quota purposes for server-side applications. Can be any
1293
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1294
+ # Overrides userIp if both are provided.
1295
+ # @param [String] user_ip
1296
+ # IP address of the site where the request originates. Use this if you want to
1297
+ # enforce per-user limits.
1298
+ # @param [Google::Apis::RequestOptions] options
1299
+ # Request-specific options
1300
+ #
1301
+ # @yield [result, err] Result & error if block supplied
1302
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse] parsed result object
1303
+ # @yieldparam err [StandardError] error object if request failed
1304
+ #
1305
+ # @return [Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse]
1306
+ #
1307
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1308
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1309
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1310
+ def search_proposals(pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1311
+ command = make_simple_command(:get, 'proposals/search', options)
1312
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse::Representation
1313
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse
1314
+ command.query['pqlQuery'] = pql_query unless pql_query.nil?
1315
+ command.query['fields'] = fields unless fields.nil?
1316
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1317
+ command.query['userIp'] = user_ip unless user_ip.nil?
1318
+ execute_or_queue_command(command, &block)
1319
+ end
1320
+
1321
+ # Update the given proposal
1322
+ # @param [String] proposal_id
1323
+ # The proposal id to update.
1324
+ # @param [String] revision_number
1325
+ # The last known revision number to update. If the head revision in the
1326
+ # marketplace database has since changed, an error will be thrown. The caller
1327
+ # should then fetch the latest proposal at head revision and retry the update at
1328
+ # that revision.
1329
+ # @param [String] update_action
1330
+ # The proposed action to take on the proposal.
1331
+ # @param [Google::Apis::AdexchangebuyerV1_4::Proposal] proposal_object
1332
+ # @param [String] fields
1333
+ # Selector specifying which fields to include in a partial response.
1334
+ # @param [String] quota_user
1335
+ # Available to use for quota purposes for server-side applications. Can be any
1336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1337
+ # Overrides userIp if both are provided.
1338
+ # @param [String] user_ip
1339
+ # IP address of the site where the request originates. Use this if you want to
1340
+ # enforce per-user limits.
1341
+ # @param [Google::Apis::RequestOptions] options
1342
+ # Request-specific options
1343
+ #
1344
+ # @yield [result, err] Result & error if block supplied
1345
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_4::Proposal] parsed result object
1346
+ # @yieldparam err [StandardError] error object if request failed
1347
+ #
1348
+ # @return [Google::Apis::AdexchangebuyerV1_4::Proposal]
1349
+ #
1350
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1351
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1352
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1353
+ def update_proposal(proposal_id, revision_number, update_action, proposal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1354
+ command = make_simple_command(:put, 'proposals/{proposalId}/{revisionNumber}/{updateAction}', options)
1355
+ command.request_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation
1356
+ command.request_object = proposal_object
1357
+ command.response_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation
1358
+ command.response_class = Google::Apis::AdexchangebuyerV1_4::Proposal
1359
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
1360
+ command.params['revisionNumber'] = revision_number unless revision_number.nil?
1361
+ command.params['updateAction'] = update_action unless update_action.nil?
1362
+ command.query['fields'] = fields unless fields.nil?
1363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1364
+ command.query['userIp'] = user_ip unless user_ip.nil?
1365
+ execute_or_queue_command(command, &block)
1366
+ end
1367
+
1368
+ protected
1369
+
1370
+ def apply_command_defaults(command)
1371
+ command.query['key'] = key unless key.nil?
1372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1373
+ command.query['userIp'] = user_ip unless user_ip.nil?
1374
+ end
1375
+ end
1376
+ end
1377
+ end
1378
+ end