google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -48,18 +48,18 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Updates a creative.
52
- # @param [String] account_id
53
- # The account that this creative belongs to.
54
- # Can be used to filter the response of the
55
- # creatives.list
56
- # method.
57
- # @param [String] creative_id
58
- # The buyer-defined creative ID of this creative.
59
- # Can be used to filter the response of the
60
- # creatives.list
61
- # method.
62
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
51
+ # Lists all the clients for the current sponsor buyer.
52
+ # @param [Fixnum] account_id
53
+ # Unique numerical account ID of the sponsor buyer to list the clients for.
54
+ # @param [Fixnum] page_size
55
+ # Requested page size. The server may return fewer clients than requested.
56
+ # If unspecified, the server will pick an appropriate default.
57
+ # @param [String] page_token
58
+ # A token identifying a page of results the server should return.
59
+ # Typically, this is the value of
60
+ # ListClientsResponse.nextPageToken
61
+ # returned from the previous call to the
62
+ # accounts.clients.list method.
63
63
  # @param [String] quota_user
64
64
  # Available to use for quota purposes for server-side applications. Can be any
65
65
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -69,57 +69,31 @@ module Google
69
69
  # Request-specific options
70
70
  #
71
71
  # @yield [result, err] Result & error if block supplied
72
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
72
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
73
73
  # @yieldparam err [StandardError] error object if request failed
74
74
  #
75
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
75
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
76
76
  #
77
77
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
78
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
79
  # @raise [Google::Apis::AuthorizationError] Authorization is required
80
- def update_account_creative(account_id, creative_id, creative_object = nil, quota_user: nil, fields: nil, options: nil, &block)
81
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
82
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
83
- command.request_object = creative_object
84
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
85
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
80
+ def list_account_clients(account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
81
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
82
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
83
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
86
84
  command.params['accountId'] = account_id unless account_id.nil?
87
- command.params['creativeId'] = creative_id unless creative_id.nil?
85
+ command.query['pageSize'] = page_size unless page_size.nil?
86
+ command.query['pageToken'] = page_token unless page_token.nil?
88
87
  command.query['quotaUser'] = quota_user unless quota_user.nil?
89
88
  command.query['fields'] = fields unless fields.nil?
90
89
  execute_or_queue_command(command, &block)
91
90
  end
92
91
 
93
- # Lists creatives.
94
- # @param [String] account_id
95
- # The account to list the creatives from.
96
- # Specify "-" to list all creatives the current user has access to.
97
- # @param [String] page_token
98
- # A token identifying a page of results the server should return.
99
- # Typically, this is the value of
100
- # ListCreativesResponse.next_page_token
101
- # returned from the previous call to 'ListCreatives' method.
102
- # @param [Fixnum] page_size
103
- # Requested page size. The server may return fewer creatives than requested
104
- # (due to timeout constraint) even if more are available via another call.
105
- # If unspecified, server will pick an appropriate default.
106
- # Acceptable values are 1 to 1000, inclusive.
107
- # @param [String] query
108
- # An optional query string to filter creatives. If no filter is specified,
109
- # all active creatives will be returned.
110
- # Supported queries are:
111
- # <ul>
112
- # <li>accountId=<i>account_id_string</i>
113
- # <li>creativeId=<i>creative_id_string</i>
114
- # <li>dealsStatus: `approved, conditionally_approved, disapproved,
115
- # not_checked`
116
- # <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
117
- # not_checked`
118
- # <li>attribute: `a numeric attribute from the list of attributes`
119
- # <li>disapprovalReason: `a reason from DisapprovalReason
120
- # </ul>
121
- # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
122
- # unacceptable_content) OR attribute:47'
92
+ # Gets a client buyer with a given client account ID.
93
+ # @param [Fixnum] account_id
94
+ # Numerical account ID of the client's sponsor buyer. (required)
95
+ # @param [Fixnum] client_account_id
96
+ # Numerical account ID of the client buyer to retrieve. (required)
123
97
  # @param [String] quota_user
124
98
  # Available to use for quota purposes for server-side applications. Can be any
125
99
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -129,37 +103,32 @@ module Google
129
103
  # Request-specific options
130
104
  #
131
105
  # @yield [result, err] Result & error if block supplied
132
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
106
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
133
107
  # @yieldparam err [StandardError] error object if request failed
134
108
  #
135
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
109
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
136
110
  #
137
111
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
112
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
113
  # @raise [Google::Apis::AuthorizationError] Authorization is required
140
- def list_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
141
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
142
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
143
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
114
+ def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
115
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
116
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
117
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
144
118
  command.params['accountId'] = account_id unless account_id.nil?
145
- command.query['pageToken'] = page_token unless page_token.nil?
146
- command.query['pageSize'] = page_size unless page_size.nil?
147
- command.query['query'] = query unless query.nil?
119
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
148
120
  command.query['quotaUser'] = quota_user unless quota_user.nil?
149
121
  command.query['fields'] = fields unless fields.nil?
150
122
  execute_or_queue_command(command, &block)
151
123
  end
152
124
 
153
- # Creates a creative.
154
- # @param [String] account_id
155
- # The account that this creative belongs to.
156
- # Can be used to filter the response of the
157
- # creatives.list
158
- # method.
159
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
160
- # @param [String] duplicate_id_mode
161
- # Indicates if multiple creatives can share an ID or not. Default is
162
- # NO_DUPLICATES (one ID per creative).
125
+ # Updates an existing client buyer.
126
+ # @param [Fixnum] account_id
127
+ # Unique numerical account ID for the buyer of which the client buyer
128
+ # is a customer; the sponsor buyer to update a client for. (required)
129
+ # @param [Fixnum] client_account_id
130
+ # Unique numerical account ID of the client to update. (required)
131
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
163
132
  # @param [String] quota_user
164
133
  # Available to use for quota purposes for server-side applications. Can be any
165
134
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -169,35 +138,32 @@ module Google
169
138
  # Request-specific options
170
139
  #
171
140
  # @yield [result, err] Result & error if block supplied
172
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
141
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
173
142
  # @yieldparam err [StandardError] error object if request failed
174
143
  #
175
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
144
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
176
145
  #
177
146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
178
147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
179
148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
180
- def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, quota_user: nil, fields: nil, options: nil, &block)
181
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
182
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
183
- command.request_object = creative_object
184
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
185
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
149
+ def update_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
150
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
151
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
152
+ command.request_object = client_object
153
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
154
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
186
155
  command.params['accountId'] = account_id unless account_id.nil?
187
- command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
156
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
188
157
  command.query['quotaUser'] = quota_user unless quota_user.nil?
189
158
  command.query['fields'] = fields unless fields.nil?
190
159
  execute_or_queue_command(command, &block)
191
160
  end
192
161
 
193
- # Stops watching a creative. Will stop push notifications being sent to the
194
- # topics when the creative changes status.
195
- # @param [String] account_id
196
- # The account of the creative to stop notifications for.
197
- # @param [String] creative_id
198
- # The creative ID of the creative to stop notifications for.
199
- # Specify "-" to specify stopping account level notifications.
200
- # @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_request_object
162
+ # Creates a new client buyer.
163
+ # @param [Fixnum] account_id
164
+ # Unique numerical account ID for the buyer of which the client buyer
165
+ # is a customer; the sponsor buyer to create a client for. (required)
166
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
201
167
  # @param [String] quota_user
202
168
  # Available to use for quota purposes for server-side applications. Can be any
203
169
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -207,38 +173,47 @@ module Google
207
173
  # Request-specific options
208
174
  #
209
175
  # @yield [result, err] Result & error if block supplied
210
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
176
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
211
177
  # @yieldparam err [StandardError] error object if request failed
212
178
  #
213
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
179
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
214
180
  #
215
181
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
216
182
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
217
183
  # @raise [Google::Apis::AuthorizationError] Authorization is required
218
- def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
219
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options)
220
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation
221
- command.request_object = stop_watching_creative_request_object
222
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
223
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
184
+ def create_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
185
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
186
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
187
+ command.request_object = client_object
188
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
189
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
224
190
  command.params['accountId'] = account_id unless account_id.nil?
225
- command.params['creativeId'] = creative_id unless creative_id.nil?
226
191
  command.query['quotaUser'] = quota_user unless quota_user.nil?
227
192
  command.query['fields'] = fields unless fields.nil?
228
193
  execute_or_queue_command(command, &block)
229
194
  end
230
195
 
231
- # Watches a creative. Will result in push notifications being sent to the
232
- # topic when the creative changes status.
233
- # @param [String] account_id
234
- # The account of the creative to watch.
235
- # @param [String] creative_id
236
- # The creative ID to watch for status changes.
237
- # Specify "-" to watch all creatives under the above account.
238
- # If both creative-level and account-level notifications are
239
- # sent, only a single notification will be sent to the
240
- # creative-level notification topic.
241
- # @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_request_object
196
+ # Lists all the client users invitations for a client
197
+ # with a given account ID.
198
+ # @param [Fixnum] account_id
199
+ # Numerical account ID of the client's sponsor buyer. (required)
200
+ # @param [String] client_account_id
201
+ # Numerical account ID of the client buyer to list invitations for.
202
+ # (required)
203
+ # You must either specify a string representation of a
204
+ # numerical account identifier or the `-` character
205
+ # to list all the invitations for all the clients
206
+ # of a given sponsor buyer.
207
+ # @param [String] page_token
208
+ # A token identifying a page of results the server should return.
209
+ # Typically, this is the value of
210
+ # ListClientUserInvitationsResponse.nextPageToken
211
+ # returned from the previous call to the
212
+ # clients.invitations.list
213
+ # method.
214
+ # @param [Fixnum] page_size
215
+ # Requested page size. Server may return fewer clients than requested.
216
+ # If unspecified, server will pick an appropriate default.
242
217
  # @param [String] quota_user
243
218
  # Available to use for quota purposes for server-side applications. Can be any
244
219
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -248,32 +223,110 @@ module Google
248
223
  # Request-specific options
249
224
  #
250
225
  # @yield [result, err] Result & error if block supplied
251
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
226
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
252
227
  # @yieldparam err [StandardError] error object if request failed
253
228
  #
254
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
229
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
255
230
  #
256
231
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
257
232
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
258
233
  # @raise [Google::Apis::AuthorizationError] Authorization is required
259
- def watch_creative(account_id, creative_id, watch_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
260
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options)
261
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation
262
- command.request_object = watch_creative_request_object
263
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
264
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
234
+ def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
235
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
236
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
237
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
265
238
  command.params['accountId'] = account_id unless account_id.nil?
266
- command.params['creativeId'] = creative_id unless creative_id.nil?
239
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
240
+ command.query['pageToken'] = page_token unless page_token.nil?
241
+ command.query['pageSize'] = page_size unless page_size.nil?
267
242
  command.query['quotaUser'] = quota_user unless quota_user.nil?
268
243
  command.query['fields'] = fields unless fields.nil?
269
244
  execute_or_queue_command(command, &block)
270
245
  end
271
246
 
272
- # Gets a creative.
273
- # @param [String] account_id
274
- # The account the creative belongs to.
275
- # @param [String] creative_id
276
- # The ID of the creative to retrieve.
247
+ # Retrieves an existing client user invitation.
248
+ # @param [Fixnum] account_id
249
+ # Numerical account ID of the client's sponsor buyer. (required)
250
+ # @param [Fixnum] client_account_id
251
+ # Numerical account ID of the client buyer that the user invitation
252
+ # to be retrieved is associated with. (required)
253
+ # @param [Fixnum] invitation_id
254
+ # Numerical identifier of the user invitation to retrieve. (required)
255
+ # @param [String] quota_user
256
+ # Available to use for quota purposes for server-side applications. Can be any
257
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
258
+ # @param [String] fields
259
+ # Selector specifying which fields to include in a partial response.
260
+ # @param [Google::Apis::RequestOptions] options
261
+ # Request-specific options
262
+ #
263
+ # @yield [result, err] Result & error if block supplied
264
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
265
+ # @yieldparam err [StandardError] error object if request failed
266
+ #
267
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
268
+ #
269
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
270
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
271
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
272
+ def get_account_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
273
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
274
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
275
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
276
+ command.params['accountId'] = account_id unless account_id.nil?
277
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
278
+ command.params['invitationId'] = invitation_id unless invitation_id.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ command.query['fields'] = fields unless fields.nil?
281
+ execute_or_queue_command(command, &block)
282
+ end
283
+
284
+ # Creates and sends out an email invitation to access
285
+ # an Ad Exchange client buyer account.
286
+ # @param [Fixnum] account_id
287
+ # Numerical account ID of the client's sponsor buyer. (required)
288
+ # @param [Fixnum] client_account_id
289
+ # Numerical account ID of the client buyer that the user
290
+ # should be associated with. (required)
291
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
292
+ # @param [String] quota_user
293
+ # Available to use for quota purposes for server-side applications. Can be any
294
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
295
+ # @param [String] fields
296
+ # Selector specifying which fields to include in a partial response.
297
+ # @param [Google::Apis::RequestOptions] options
298
+ # Request-specific options
299
+ #
300
+ # @yield [result, err] Result & error if block supplied
301
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
302
+ # @yieldparam err [StandardError] error object if request failed
303
+ #
304
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
305
+ #
306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
308
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
309
+ def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
310
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
311
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
312
+ command.request_object = client_user_invitation_object
313
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
314
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
315
+ command.params['accountId'] = account_id unless account_id.nil?
316
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
317
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
318
+ command.query['fields'] = fields unless fields.nil?
319
+ execute_or_queue_command(command, &block)
320
+ end
321
+
322
+ # Retrieves an existing client user.
323
+ # @param [Fixnum] account_id
324
+ # Numerical account ID of the client's sponsor buyer. (required)
325
+ # @param [Fixnum] client_account_id
326
+ # Numerical account ID of the client buyer
327
+ # that the user to be retrieved is associated with. (required)
328
+ # @param [Fixnum] user_id
329
+ # Numerical identifier of the user to retrieve. (required)
277
330
  # @param [String] quota_user
278
331
  # Available to use for quota purposes for server-side applications. Can be any
279
332
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -283,54 +336,46 @@ module Google
283
336
  # Request-specific options
284
337
  #
285
338
  # @yield [result, err] Result & error if block supplied
286
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
339
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
287
340
  # @yieldparam err [StandardError] error object if request failed
288
341
  #
289
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
342
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
290
343
  #
291
344
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
292
345
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
293
346
  # @raise [Google::Apis::AuthorizationError] Authorization is required
294
- def get_account_creative(account_id, creative_id, quota_user: nil, fields: nil, options: nil, &block)
295
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
296
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
297
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
347
+ def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
348
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
349
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
350
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
298
351
  command.params['accountId'] = account_id unless account_id.nil?
299
- command.params['creativeId'] = creative_id unless creative_id.nil?
352
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
353
+ command.params['userId'] = user_id unless user_id.nil?
300
354
  command.query['quotaUser'] = quota_user unless quota_user.nil?
301
355
  command.query['fields'] = fields unless fields.nil?
302
356
  execute_or_queue_command(command, &block)
303
357
  end
304
358
 
305
- # List all creative-deal associations.
306
- # @param [String] account_id
307
- # The account to list the associations from.
308
- # Specify "-" to list all creatives the current user has access to.
309
- # @param [String] creative_id
310
- # The creative ID to list the associations from.
311
- # Specify "-" to list all creatives under the above account.
359
+ # Lists all the known client users for a specified
360
+ # sponsor buyer account ID.
361
+ # @param [Fixnum] account_id
362
+ # Numerical account ID of the sponsor buyer of the client to list users for.
363
+ # (required)
364
+ # @param [String] client_account_id
365
+ # The account ID of the client buyer to list users for. (required)
366
+ # You must specify either a string representation of a
367
+ # numerical account identifier or the `-` character
368
+ # to list all the client users for all the clients
369
+ # of a given sponsor buyer.
312
370
  # @param [String] page_token
313
371
  # A token identifying a page of results the server should return.
314
372
  # Typically, this is the value of
315
- # ListDealAssociationsResponse.next_page_token
316
- # returned from the previous call to 'ListDealAssociations' method.
373
+ # ListClientUsersResponse.nextPageToken
374
+ # returned from the previous call to the
375
+ # accounts.clients.users.list method.
317
376
  # @param [Fixnum] page_size
318
- # Requested page size. Server may return fewer associations than requested.
319
- # If unspecified, server will pick an appropriate default.
320
- # @param [String] query
321
- # An optional query string to filter deal associations. If no filter is
322
- # specified, all associations will be returned.
323
- # Supported queries are:
324
- # <ul>
325
- # <li>accountId=<i>account_id_string</i>
326
- # <li>creativeId=<i>creative_id_string</i>
327
- # <li>dealsId=<i>deals_id_string</i>
328
- # <li>dealsStatus:`approved, conditionally_approved, disapproved,
329
- # not_checked`
330
- # <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
331
- # not_checked`
332
- # </ul>
333
- # Example: 'dealsId=12345 AND dealsStatus:disapproved'
377
+ # Requested page size. The server may return fewer clients than requested.
378
+ # If unspecified, the server will pick an appropriate default.
334
379
  # @param [String] quota_user
335
380
  # Available to use for quota purposes for server-side applications. Can be any
336
381
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -340,34 +385,37 @@ module Google
340
385
  # Request-specific options
341
386
  #
342
387
  # @yield [result, err] Result & error if block supplied
343
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
388
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
344
389
  # @yieldparam err [StandardError] error object if request failed
345
390
  #
346
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
391
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
347
392
  #
348
393
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
349
394
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
350
395
  # @raise [Google::Apis::AuthorizationError] Authorization is required
351
- def list_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
352
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
353
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
354
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
396
+ def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
397
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
398
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
399
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
355
400
  command.params['accountId'] = account_id unless account_id.nil?
356
- command.params['creativeId'] = creative_id unless creative_id.nil?
401
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
357
402
  command.query['pageToken'] = page_token unless page_token.nil?
358
403
  command.query['pageSize'] = page_size unless page_size.nil?
359
- command.query['query'] = query unless query.nil?
360
404
  command.query['quotaUser'] = quota_user unless quota_user.nil?
361
405
  command.query['fields'] = fields unless fields.nil?
362
406
  execute_or_queue_command(command, &block)
363
407
  end
364
408
 
365
- # Associate an existing deal with a creative.
366
- # @param [String] account_id
367
- # The account the creative belongs to.
368
- # @param [String] creative_id
369
- # The ID of the creative associated with the deal.
370
- # @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_request_object
409
+ # Updates an existing client user.
410
+ # Only the user status can be changed on update.
411
+ # @param [Fixnum] account_id
412
+ # Numerical account ID of the client's sponsor buyer. (required)
413
+ # @param [Fixnum] client_account_id
414
+ # Numerical account ID of the client buyer that the user to be retrieved
415
+ # is associated with. (required)
416
+ # @param [Fixnum] user_id
417
+ # Numerical identifier of the user to retrieve. (required)
418
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
371
419
  # @param [String] quota_user
372
420
  # Available to use for quota purposes for server-side applications. Can be any
373
421
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -377,33 +425,38 @@ module Google
377
425
  # Request-specific options
378
426
  #
379
427
  # @yield [result, err] Result & error if block supplied
380
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
428
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
381
429
  # @yieldparam err [StandardError] error object if request failed
382
430
  #
383
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
431
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
384
432
  #
385
433
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
434
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
435
  # @raise [Google::Apis::AuthorizationError] Authorization is required
388
- def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
389
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
390
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
391
- command.request_object = add_deal_association_request_object
392
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
393
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
436
+ def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
437
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
438
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
439
+ command.request_object = client_user_object
440
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
441
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
394
442
  command.params['accountId'] = account_id unless account_id.nil?
395
- command.params['creativeId'] = creative_id unless creative_id.nil?
443
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
444
+ command.params['userId'] = user_id unless user_id.nil?
396
445
  command.query['quotaUser'] = quota_user unless quota_user.nil?
397
446
  command.query['fields'] = fields unless fields.nil?
398
447
  execute_or_queue_command(command, &block)
399
448
  end
400
449
 
401
- # Remove the association between a deal and a creative.
450
+ # Creates a creative.
402
451
  # @param [String] account_id
403
- # The account the creative belongs to.
404
- # @param [String] creative_id
405
- # The ID of the creative associated with the deal.
406
- # @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_request_object
452
+ # The account that this creative belongs to.
453
+ # Can be used to filter the response of the
454
+ # creatives.list
455
+ # method.
456
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
457
+ # @param [String] duplicate_id_mode
458
+ # Indicates if multiple creatives can share an ID or not. Default is
459
+ # NO_DUPLICATES (one ID per creative).
407
460
  # @param [String] quota_user
408
461
  # Available to use for quota purposes for server-side applications. Can be any
409
462
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -413,33 +466,35 @@ module Google
413
466
  # Request-specific options
414
467
  #
415
468
  # @yield [result, err] Result & error if block supplied
416
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
469
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
417
470
  # @yieldparam err [StandardError] error object if request failed
418
471
  #
419
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
472
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
420
473
  #
421
474
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
422
475
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
423
476
  # @raise [Google::Apis::AuthorizationError] Authorization is required
424
- def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
425
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
426
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
427
- command.request_object = remove_deal_association_request_object
428
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
429
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
477
+ def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, quota_user: nil, fields: nil, options: nil, &block)
478
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
479
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
480
+ command.request_object = creative_object
481
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
482
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
430
483
  command.params['accountId'] = account_id unless account_id.nil?
431
- command.params['creativeId'] = creative_id unless creative_id.nil?
484
+ command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
432
485
  command.query['quotaUser'] = quota_user unless quota_user.nil?
433
486
  command.query['fields'] = fields unless fields.nil?
434
487
  execute_or_queue_command(command, &block)
435
488
  end
436
489
 
437
- # Deletes the requested filter set from the account with the given account
438
- # ID.
439
- # @param [Fixnum] account_id
440
- # Account ID of the buyer.
441
- # @param [Fixnum] filter_set_id
442
- # The ID of the filter set to delete.
490
+ # Stops watching a creative. Will stop push notifications being sent to the
491
+ # topics when the creative changes status.
492
+ # @param [String] account_id
493
+ # The account of the creative to stop notifications for.
494
+ # @param [String] creative_id
495
+ # The creative ID of the creative to stop notifications for.
496
+ # Specify "-" to specify stopping account level notifications.
497
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_request_object
443
498
  # @param [String] quota_user
444
499
  # Available to use for quota purposes for server-side applications. Can be any
445
500
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -457,64 +512,30 @@ module Google
457
512
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
458
513
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
459
514
  # @raise [Google::Apis::AuthorizationError] Authorization is required
460
- def delete_account_filter_set(account_id, filter_set_id, quota_user: nil, fields: nil, options: nil, &block)
461
- command = make_simple_command(:delete, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}', options)
515
+ def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
516
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options)
517
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation
518
+ command.request_object = stop_watching_creative_request_object
462
519
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
463
520
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
464
521
  command.params['accountId'] = account_id unless account_id.nil?
465
- command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
466
- command.query['quotaUser'] = quota_user unless quota_user.nil?
467
- command.query['fields'] = fields unless fields.nil?
468
- execute_or_queue_command(command, &block)
469
- end
470
-
471
- # Retrieves the requested filter set for the account with the given account
472
- # ID.
473
- # @param [Fixnum] account_id
474
- # Account ID of the buyer.
475
- # @param [Fixnum] filter_set_id
476
- # The ID of the filter set to get.
477
- # @param [String] quota_user
478
- # Available to use for quota purposes for server-side applications. Can be any
479
- # arbitrary string assigned to a user, but should not exceed 40 characters.
480
- # @param [String] fields
481
- # Selector specifying which fields to include in a partial response.
482
- # @param [Google::Apis::RequestOptions] options
483
- # Request-specific options
484
- #
485
- # @yield [result, err] Result & error if block supplied
486
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] parsed result object
487
- # @yieldparam err [StandardError] error object if request failed
488
- #
489
- # @return [Google::Apis::Adexchangebuyer2V2beta1::FilterSet]
490
- #
491
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
492
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
493
- # @raise [Google::Apis::AuthorizationError] Authorization is required
494
- def get_account_filter_set(account_id, filter_set_id, quota_user: nil, fields: nil, options: nil, &block)
495
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}', options)
496
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
497
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::FilterSet
498
- command.params['accountId'] = account_id unless account_id.nil?
499
- command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
522
+ command.params['creativeId'] = creative_id unless creative_id.nil?
500
523
  command.query['quotaUser'] = quota_user unless quota_user.nil?
501
524
  command.query['fields'] = fields unless fields.nil?
502
525
  execute_or_queue_command(command, &block)
503
526
  end
504
527
 
505
- # Lists all filter sets for the account with the given account ID.
506
- # @param [Fixnum] account_id
507
- # Account ID of the buyer.
508
- # @param [String] page_token
509
- # A token identifying a page of results the server should return.
510
- # Typically, this is the value of
511
- # ListFilterSetsResponse.nextPageToken
512
- # returned from the previous call to the
513
- # accounts.rtbBreakout.filterSets.list
514
- # method.
515
- # @param [Fixnum] page_size
516
- # Requested page size. The server may return fewer than requested.
517
- # If unspecified, the server will pick an appropriate default.
528
+ # Watches a creative. Will result in push notifications being sent to the
529
+ # topic when the creative changes status.
530
+ # @param [String] account_id
531
+ # The account of the creative to watch.
532
+ # @param [String] creative_id
533
+ # The creative ID to watch for status changes.
534
+ # Specify "-" to watch all creatives under the above account.
535
+ # If both creative-level and account-level notifications are
536
+ # sent, only a single notification will be sent to the
537
+ # creative-level notification topic.
538
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_request_object
518
539
  # @param [String] quota_user
519
540
  # Available to use for quota purposes for server-side applications. Can be any
520
541
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -524,34 +545,32 @@ module Google
524
545
  # Request-specific options
525
546
  #
526
547
  # @yield [result, err] Result & error if block supplied
527
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse] parsed result object
548
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
528
549
  # @yieldparam err [StandardError] error object if request failed
529
550
  #
530
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse]
551
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
531
552
  #
532
553
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
533
554
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
534
555
  # @raise [Google::Apis::AuthorizationError] Authorization is required
535
- def list_account_filter_sets(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
536
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets', options)
537
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse::Representation
538
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse
556
+ def watch_creative(account_id, creative_id, watch_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
557
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options)
558
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation
559
+ command.request_object = watch_creative_request_object
560
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
561
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
539
562
  command.params['accountId'] = account_id unless account_id.nil?
540
- command.query['pageToken'] = page_token unless page_token.nil?
541
- command.query['pageSize'] = page_size unless page_size.nil?
563
+ command.params['creativeId'] = creative_id unless creative_id.nil?
542
564
  command.query['quotaUser'] = quota_user unless quota_user.nil?
543
565
  command.query['fields'] = fields unless fields.nil?
544
566
  execute_or_queue_command(command, &block)
545
567
  end
546
568
 
547
- # Creates the specified filter set for the account with the given account ID.
548
- # @param [Fixnum] account_id
549
- # Account ID of the buyer.
550
- # @param [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] filter_set_object
551
- # @param [Boolean] is_transient
552
- # Whether the filter set is transient, or should be persisted indefinitely.
553
- # By default, filter sets are not transient.
554
- # If transient, it will be available for at least 1 hour after creation.
569
+ # Gets a creative.
570
+ # @param [String] account_id
571
+ # The account the creative belongs to.
572
+ # @param [String] creative_id
573
+ # The ID of the creative to retrieve.
555
574
  # @param [String] quota_user
556
575
  # Available to use for quota purposes for server-side applications. Can be any
557
576
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -561,43 +580,37 @@ module Google
561
580
  # Request-specific options
562
581
  #
563
582
  # @yield [result, err] Result & error if block supplied
564
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] parsed result object
583
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
565
584
  # @yieldparam err [StandardError] error object if request failed
566
585
  #
567
- # @return [Google::Apis::Adexchangebuyer2V2beta1::FilterSet]
586
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
568
587
  #
569
588
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
570
589
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
571
590
  # @raise [Google::Apis::AuthorizationError] Authorization is required
572
- def create_account_filter_set(account_id, filter_set_object = nil, is_transient: nil, quota_user: nil, fields: nil, options: nil, &block)
573
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/filterSets', options)
574
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
575
- command.request_object = filter_set_object
576
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
577
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::FilterSet
591
+ def get_account_creative(account_id, creative_id, quota_user: nil, fields: nil, options: nil, &block)
592
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
593
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
594
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
578
595
  command.params['accountId'] = account_id unless account_id.nil?
579
- command.query['isTransient'] = is_transient unless is_transient.nil?
596
+ command.params['creativeId'] = creative_id unless creative_id.nil?
580
597
  command.query['quotaUser'] = quota_user unless quota_user.nil?
581
598
  command.query['fields'] = fields unless fields.nil?
582
599
  execute_or_queue_command(command, &block)
583
600
  end
584
601
 
585
- # List all reasons for which bids were filtered, with the number of bids
586
- # filtered for each reason.
587
- # @param [Fixnum] account_id
588
- # Account ID of the buyer.
589
- # @param [Fixnum] filter_set_id
590
- # The ID of the filter set to apply.
591
- # @param [String] page_token
592
- # A token identifying a page of results the server should return.
593
- # Typically, this is the value of
594
- # ListFilteredBidsResponse.nextPageToken
595
- # returned from the previous call to the
596
- # accounts.filterSets.filteredBids.list
602
+ # Updates a creative.
603
+ # @param [String] account_id
604
+ # The account that this creative belongs to.
605
+ # Can be used to filter the response of the
606
+ # creatives.list
597
607
  # method.
598
- # @param [Fixnum] page_size
599
- # Requested page size. The server may return fewer than requested.
600
- # If unspecified, the server will pick an appropriate default.
608
+ # @param [String] creative_id
609
+ # The buyer-defined creative ID of this creative.
610
+ # Can be used to filter the response of the
611
+ # creatives.list
612
+ # method.
613
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
601
614
  # @param [String] quota_user
602
615
  # Available to use for quota purposes for server-side applications. Can be any
603
616
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -607,49 +620,57 @@ module Google
607
620
  # Request-specific options
608
621
  #
609
622
  # @yield [result, err] Result & error if block supplied
610
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse] parsed result object
623
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
611
624
  # @yieldparam err [StandardError] error object if request failed
612
625
  #
613
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse]
626
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
614
627
  #
615
628
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
616
629
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
617
630
  # @raise [Google::Apis::AuthorizationError] Authorization is required
618
- def list_account_filter_set_filtered_bids(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
619
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids', options)
620
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse::Representation
621
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse
631
+ def update_account_creative(account_id, creative_id, creative_object = nil, quota_user: nil, fields: nil, options: nil, &block)
632
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
633
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
634
+ command.request_object = creative_object
635
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
636
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
622
637
  command.params['accountId'] = account_id unless account_id.nil?
623
- command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
624
- command.query['pageToken'] = page_token unless page_token.nil?
625
- command.query['pageSize'] = page_size unless page_size.nil?
638
+ command.params['creativeId'] = creative_id unless creative_id.nil?
626
639
  command.query['quotaUser'] = quota_user unless quota_user.nil?
627
640
  command.query['fields'] = fields unless fields.nil?
628
641
  execute_or_queue_command(command, &block)
629
642
  end
630
643
 
631
- # List all creatives associated with a specific reason for which bids were
632
- # filtered, with the number of bids filtered for each creative.
633
- # @param [Fixnum] account_id
634
- # Account ID of the buyer.
635
- # @param [Fixnum] filter_set_id
636
- # The ID of the filter set to apply.
637
- # @param [Fixnum] creative_status_id
638
- # The ID of the creative status for which to retrieve a breakdown by
639
- # creative.
640
- # See
641
- # [creative-status-codes](https://developers.google.com/ad-exchange/rtb/
642
- # downloads/creative-status-codes).
644
+ # Lists creatives.
645
+ # @param [String] account_id
646
+ # The account to list the creatives from.
647
+ # Specify "-" to list all creatives the current user has access to.
643
648
  # @param [String] page_token
644
649
  # A token identifying a page of results the server should return.
645
650
  # Typically, this is the value of
646
- # ListCreativeStatusBreakdownByCreativeResponse.nextPageToken
647
- # returned from the previous call to the
648
- # accounts.filterSets.filteredBids.creatives.list
649
- # method.
651
+ # ListCreativesResponse.next_page_token
652
+ # returned from the previous call to 'ListCreatives' method.
650
653
  # @param [Fixnum] page_size
651
- # Requested page size. The server may return fewer than requested.
652
- # If unspecified, the server will pick an appropriate default.
654
+ # Requested page size. The server may return fewer creatives than requested
655
+ # (due to timeout constraint) even if more are available via another call.
656
+ # If unspecified, server will pick an appropriate default.
657
+ # Acceptable values are 1 to 1000, inclusive.
658
+ # @param [String] query
659
+ # An optional query string to filter creatives. If no filter is specified,
660
+ # all active creatives will be returned.
661
+ # Supported queries are:
662
+ # <ul>
663
+ # <li>accountId=<i>account_id_string</i>
664
+ # <li>creativeId=<i>creative_id_string</i>
665
+ # <li>dealsStatus: `approved, conditionally_approved, disapproved,
666
+ # not_checked`
667
+ # <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
668
+ # not_checked`
669
+ # <li>attribute: `a numeric attribute from the list of attributes`
670
+ # <li>disapprovalReason: `a reason from DisapprovalReason
671
+ # </ul>
672
+ # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
673
+ # unacceptable_content) OR attribute:47'
653
674
  # @param [String] quota_user
654
675
  # Available to use for quota purposes for server-side applications. Can be any
655
676
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -659,52 +680,56 @@ module Google
659
680
  # Request-specific options
660
681
  #
661
682
  # @yield [result, err] Result & error if block supplied
662
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse] parsed result object
683
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
663
684
  # @yieldparam err [StandardError] error object if request failed
664
685
  #
665
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse]
686
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
666
687
  #
667
688
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
668
689
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
669
690
  # @raise [Google::Apis::AuthorizationError] Authorization is required
670
- def list_account_filter_set_filtered_bid_creatives(account_id, filter_set_id, creative_status_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
671
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives', options)
672
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse::Representation
673
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse
691
+ def list_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
692
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
693
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
694
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
674
695
  command.params['accountId'] = account_id unless account_id.nil?
675
- command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
676
- command.params['creativeStatusId'] = creative_status_id unless creative_status_id.nil?
677
696
  command.query['pageToken'] = page_token unless page_token.nil?
678
697
  command.query['pageSize'] = page_size unless page_size.nil?
698
+ command.query['query'] = query unless query.nil?
679
699
  command.query['quotaUser'] = quota_user unless quota_user.nil?
680
700
  command.query['fields'] = fields unless fields.nil?
681
701
  execute_or_queue_command(command, &block)
682
702
  end
683
703
 
684
- # List all details associated with a specific reason for which bids were
685
- # filtered and a specific creative that was filtered for that reason, with
686
- # the number of bids filtered for each detail.
687
- # @param [Fixnum] account_id
688
- # Account ID of the buyer.
689
- # @param [Fixnum] filter_set_id
690
- # The ID of the filter set to apply.
691
- # @param [Fixnum] creative_status_id
692
- # The ID of the creative status for which to retrieve a breakdown by detail.
693
- # See
694
- # [creative-status-codes](https://developers.google.com/ad-exchange/rtb/
695
- # downloads/creative-status-codes).
704
+ # List all creative-deal associations.
705
+ # @param [String] account_id
706
+ # The account to list the associations from.
707
+ # Specify "-" to list all creatives the current user has access to.
696
708
  # @param [String] creative_id
697
- # The creative ID for which to retrieve a breakdown by detail.
709
+ # The creative ID to list the associations from.
710
+ # Specify "-" to list all creatives under the above account.
698
711
  # @param [String] page_token
699
712
  # A token identifying a page of results the server should return.
700
713
  # Typically, this is the value of
701
- # ListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToken
702
- # returned from the previous call to the
703
- # accounts.filterSets.filteredBids.creatives.details.list
704
- # method.
714
+ # ListDealAssociationsResponse.next_page_token
715
+ # returned from the previous call to 'ListDealAssociations' method.
705
716
  # @param [Fixnum] page_size
706
- # Requested page size. The server may return fewer than requested.
707
- # If unspecified, the server will pick an appropriate default.
717
+ # Requested page size. Server may return fewer associations than requested.
718
+ # If unspecified, server will pick an appropriate default.
719
+ # @param [String] query
720
+ # An optional query string to filter deal associations. If no filter is
721
+ # specified, all associations will be returned.
722
+ # Supported queries are:
723
+ # <ul>
724
+ # <li>accountId=<i>account_id_string</i>
725
+ # <li>creativeId=<i>creative_id_string</i>
726
+ # <li>dealsId=<i>deals_id_string</i>
727
+ # <li>dealsStatus:`approved, conditionally_approved, disapproved,
728
+ # not_checked`
729
+ # <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
730
+ # not_checked`
731
+ # </ul>
732
+ # Example: 'dealsId=12345 AND dealsStatus:disapproved'
708
733
  # @param [String] quota_user
709
734
  # Available to use for quota purposes for server-side applications. Can be any
710
735
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -714,50 +739,34 @@ module Google
714
739
  # Request-specific options
715
740
  #
716
741
  # @yield [result, err] Result & error if block supplied
717
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusAndCreativeBreakdownByDetailResponse] parsed result object
742
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
718
743
  # @yieldparam err [StandardError] error object if request failed
719
744
  #
720
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusAndCreativeBreakdownByDetailResponse]
745
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
721
746
  #
722
747
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
723
748
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
724
749
  # @raise [Google::Apis::AuthorizationError] Authorization is required
725
- def list_account_filter_set_filtered_bid_creative_details(account_id, filter_set_id, creative_status_id, creative_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
726
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives/{creativeId}/details', options)
727
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusAndCreativeBreakdownByDetailResponse::Representation
728
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusAndCreativeBreakdownByDetailResponse
750
+ def list_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
751
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
752
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
753
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
729
754
  command.params['accountId'] = account_id unless account_id.nil?
730
- command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
731
- command.params['creativeStatusId'] = creative_status_id unless creative_status_id.nil?
732
755
  command.params['creativeId'] = creative_id unless creative_id.nil?
733
756
  command.query['pageToken'] = page_token unless page_token.nil?
734
757
  command.query['pageSize'] = page_size unless page_size.nil?
758
+ command.query['query'] = query unless query.nil?
735
759
  command.query['quotaUser'] = quota_user unless quota_user.nil?
736
760
  command.query['fields'] = fields unless fields.nil?
737
761
  execute_or_queue_command(command, &block)
738
762
  end
739
763
 
740
- # List all details associated with a specific reason for which bids were
741
- # filtered, with the number of bids filtered for each detail.
742
- # @param [Fixnum] account_id
743
- # Account ID of the buyer.
744
- # @param [Fixnum] filter_set_id
745
- # The ID of the filter set to apply.
746
- # @param [Fixnum] creative_status_id
747
- # The ID of the creative status for which to retrieve a breakdown by detail.
748
- # See
749
- # [creative-status-codes](https://developers.google.com/ad-exchange/rtb/
750
- # downloads/creative-status-codes).
751
- # @param [String] page_token
752
- # A token identifying a page of results the server should return.
753
- # Typically, this is the value of
754
- # ListCreativeStatusBreakdownByDetailResponse.nextPageToken
755
- # returned from the previous call to the
756
- # accounts.filterSets.filteredBids.details.list
757
- # method.
758
- # @param [Fixnum] page_size
759
- # Requested page size. The server may return fewer than requested.
760
- # If unspecified, the server will pick an appropriate default.
764
+ # Remove the association between a deal and a creative.
765
+ # @param [String] account_id
766
+ # The account the creative belongs to.
767
+ # @param [String] creative_id
768
+ # The ID of the creative associated with the deal.
769
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_request_object
761
770
  # @param [String] quota_user
762
771
  # Available to use for quota purposes for server-side applications. Can be any
763
772
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -767,45 +776,33 @@ module Google
767
776
  # Request-specific options
768
777
  #
769
778
  # @yield [result, err] Result & error if block supplied
770
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse] parsed result object
779
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
771
780
  # @yieldparam err [StandardError] error object if request failed
772
781
  #
773
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse]
782
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
774
783
  #
775
784
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
776
785
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
777
786
  # @raise [Google::Apis::AuthorizationError] Authorization is required
778
- def list_account_filter_set_filtered_bid_details(account_id, filter_set_id, creative_status_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
779
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/details', options)
780
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse::Representation
781
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse
787
+ def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
788
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
789
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
790
+ command.request_object = remove_deal_association_request_object
791
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
792
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
782
793
  command.params['accountId'] = account_id unless account_id.nil?
783
- command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
784
- command.params['creativeStatusId'] = creative_status_id unless creative_status_id.nil?
785
- command.query['pageToken'] = page_token unless page_token.nil?
786
- command.query['pageSize'] = page_size unless page_size.nil?
794
+ command.params['creativeId'] = creative_id unless creative_id.nil?
787
795
  command.query['quotaUser'] = quota_user unless quota_user.nil?
788
796
  command.query['fields'] = fields unless fields.nil?
789
797
  execute_or_queue_command(command, &block)
790
798
  end
791
799
 
792
- # List all reasons that caused an impression to be filtered (i.e. not
793
- # considered as an inventory match), with the number of impressions that were
794
- # filtered for each reason.
795
- # @param [Fixnum] account_id
796
- # Account ID of the buyer.
797
- # @param [Fixnum] filter_set_id
798
- # The ID of the filter set to apply.
799
- # @param [String] page_token
800
- # A token identifying a page of results the server should return.
801
- # Typically, this is the value of
802
- # ListFilteredImpressionsResponse.nextPageToken
803
- # returned from the previous call to the
804
- # accounts.filterSets.filteredImpressions.list
805
- # method.
806
- # @param [Fixnum] page_size
807
- # Requested page size. The server may return fewer than requested.
808
- # If unspecified, the server will pick an appropriate default.
800
+ # Associate an existing deal with a creative.
801
+ # @param [String] account_id
802
+ # The account the creative belongs to.
803
+ # @param [String] creative_id
804
+ # The ID of the creative associated with the deal.
805
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_request_object
809
806
  # @param [String] quota_user
810
807
  # Available to use for quota purposes for server-side applications. Can be any
811
808
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -815,43 +812,33 @@ module Google
815
812
  # Request-specific options
816
813
  #
817
814
  # @yield [result, err] Result & error if block supplied
818
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredImpressionsResponse] parsed result object
815
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
819
816
  # @yieldparam err [StandardError] error object if request failed
820
817
  #
821
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredImpressionsResponse]
818
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
822
819
  #
823
820
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
824
821
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
825
822
  # @raise [Google::Apis::AuthorizationError] Authorization is required
826
- def list_account_filter_set_filtered_impressions(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
827
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredImpressions', options)
828
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredImpressionsResponse::Representation
829
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredImpressionsResponse
823
+ def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
824
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
825
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
826
+ command.request_object = add_deal_association_request_object
827
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
828
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
830
829
  command.params['accountId'] = account_id unless account_id.nil?
831
- command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
832
- command.query['pageToken'] = page_token unless page_token.nil?
833
- command.query['pageSize'] = page_size unless page_size.nil?
830
+ command.params['creativeId'] = creative_id unless creative_id.nil?
834
831
  command.query['quotaUser'] = quota_user unless quota_user.nil?
835
832
  command.query['fields'] = fields unless fields.nil?
836
833
  execute_or_queue_command(command, &block)
837
- end
838
-
839
- # List all reasons for which bids lost in the auction, with the number of
840
- # bids that lost for each reason.
841
- # @param [Fixnum] account_id
842
- # Account ID of the buyer.
843
- # @param [Fixnum] filter_set_id
844
- # The ID of the filter set to apply.
845
- # @param [String] page_token
846
- # A token identifying a page of results the server should return.
847
- # Typically, this is the value of
848
- # ListLosingBidsResponse.nextPageToken
849
- # returned from the previous call to the
850
- # accounts.filterSets.losingBids.list
851
- # method.
852
- # @param [Fixnum] page_size
853
- # Requested page size. The server may return fewer than requested.
854
- # If unspecified, the server will pick an appropriate default.
834
+ end
835
+
836
+ # Deletes the requested filter set from the account with the given account
837
+ # ID.
838
+ # @param [Fixnum] account_id
839
+ # Account ID of the buyer.
840
+ # @param [Fixnum] filter_set_id
841
+ # The ID of the filter set to delete.
855
842
  # @param [String] quota_user
856
843
  # Available to use for quota purposes for server-side applications. Can be any
857
844
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -861,41 +848,37 @@ module Google
861
848
  # Request-specific options
862
849
  #
863
850
  # @yield [result, err] Result & error if block supplied
864
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse] parsed result object
851
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
865
852
  # @yieldparam err [StandardError] error object if request failed
866
853
  #
867
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse]
854
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
868
855
  #
869
856
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
870
857
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
871
858
  # @raise [Google::Apis::AuthorizationError] Authorization is required
872
- def list_account_filter_set_losing_bids(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
873
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/losingBids', options)
874
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse::Representation
875
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse
859
+ def delete_account_filter_set(account_id, filter_set_id, quota_user: nil, fields: nil, options: nil, &block)
860
+ command = make_simple_command(:delete, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}', options)
861
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
862
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
876
863
  command.params['accountId'] = account_id unless account_id.nil?
877
864
  command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
878
- command.query['pageToken'] = page_token unless page_token.nil?
879
- command.query['pageSize'] = page_size unless page_size.nil?
880
865
  command.query['quotaUser'] = quota_user unless quota_user.nil?
881
866
  command.query['fields'] = fields unless fields.nil?
882
867
  execute_or_queue_command(command, &block)
883
868
  end
884
869
 
885
- # Lists all metrics that are measured in terms of number of impressions.
870
+ # Lists all filter sets for the account with the given account ID.
886
871
  # @param [Fixnum] account_id
887
872
  # Account ID of the buyer.
888
- # @param [Fixnum] filter_set_id
889
- # The ID of the filter set to apply.
890
873
  # @param [String] page_token
891
874
  # A token identifying a page of results the server should return.
892
875
  # Typically, this is the value of
893
- # ListImpressionMetricsResponse.nextPageToken
876
+ # ListFilterSetsResponse.nextPageToken
894
877
  # returned from the previous call to the
895
- # accounts.filterSets.impressionMetrics.list
878
+ # accounts.filterSets.list
896
879
  # method.
897
880
  # @param [Fixnum] page_size
898
- # Requested page size. The server may return fewer than requested.
881
+ # Requested page size. The server may return fewer results than requested.
899
882
  # If unspecified, the server will pick an appropriate default.
900
883
  # @param [String] quota_user
901
884
  # Available to use for quota purposes for server-side applications. Can be any
@@ -906,20 +889,19 @@ module Google
906
889
  # Request-specific options
907
890
  #
908
891
  # @yield [result, err] Result & error if block supplied
909
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse] parsed result object
892
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse] parsed result object
910
893
  # @yieldparam err [StandardError] error object if request failed
911
894
  #
912
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse]
895
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse]
913
896
  #
914
897
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
915
898
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
916
899
  # @raise [Google::Apis::AuthorizationError] Authorization is required
917
- def list_account_filter_set_impression_metrics(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
918
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/impressionMetrics', options)
919
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse::Representation
920
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse
900
+ def list_account_filter_sets(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
901
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets', options)
902
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse::Representation
903
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse
921
904
  command.params['accountId'] = account_id unless account_id.nil?
922
- command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
923
905
  command.query['pageToken'] = page_token unless page_token.nil?
924
906
  command.query['pageSize'] = page_size unless page_size.nil?
925
907
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -927,21 +909,12 @@ module Google
927
909
  execute_or_queue_command(command, &block)
928
910
  end
929
911
 
930
- # Lists all metrics that are measured in terms of number of bids.
912
+ # Retrieves the requested filter set for the account with the given account
913
+ # ID.
931
914
  # @param [Fixnum] account_id
932
915
  # Account ID of the buyer.
933
916
  # @param [Fixnum] filter_set_id
934
- # The ID of the filter set to apply.
935
- # @param [String] page_token
936
- # A token identifying a page of results the server should return.
937
- # Typically, this is the value of
938
- # ListBidMetricsResponse.nextPageToken
939
- # returned from the previous call to the
940
- # accounts.filterSets.bidMetrics.list
941
- # method.
942
- # @param [Fixnum] page_size
943
- # Requested page size. The server may return fewer than requested.
944
- # If unspecified, the server will pick an appropriate default.
917
+ # The ID of the filter set to get.
945
918
  # @param [String] quota_user
946
919
  # Available to use for quota purposes for server-side applications. Can be any
947
920
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -951,43 +924,33 @@ module Google
951
924
  # Request-specific options
952
925
  #
953
926
  # @yield [result, err] Result & error if block supplied
954
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse] parsed result object
927
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] parsed result object
955
928
  # @yieldparam err [StandardError] error object if request failed
956
929
  #
957
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse]
930
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::FilterSet]
958
931
  #
959
932
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
960
933
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
961
934
  # @raise [Google::Apis::AuthorizationError] Authorization is required
962
- def list_account_filter_set_bid_metrics(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
963
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidMetrics', options)
964
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse::Representation
965
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse
935
+ def get_account_filter_set(account_id, filter_set_id, quota_user: nil, fields: nil, options: nil, &block)
936
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}', options)
937
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
938
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::FilterSet
966
939
  command.params['accountId'] = account_id unless account_id.nil?
967
940
  command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
968
- command.query['pageToken'] = page_token unless page_token.nil?
969
- command.query['pageSize'] = page_size unless page_size.nil?
970
941
  command.query['quotaUser'] = quota_user unless quota_user.nil?
971
942
  command.query['fields'] = fields unless fields.nil?
972
943
  execute_or_queue_command(command, &block)
973
944
  end
974
945
 
975
- # List all errors that occurred in bid responses, with the number of bid
976
- # responses affected for each reason.
946
+ # Creates the specified filter set for the account with the given account ID.
977
947
  # @param [Fixnum] account_id
978
948
  # Account ID of the buyer.
979
- # @param [Fixnum] filter_set_id
980
- # The ID of the filter set to apply.
981
- # @param [String] page_token
982
- # A token identifying a page of results the server should return.
983
- # Typically, this is the value of
984
- # ListBidResponseErrorsResponse.nextPageToken
985
- # returned from the previous call to the
986
- # accounts.filterSets.bidResponseErrors.list
987
- # method.
988
- # @param [Fixnum] page_size
989
- # Requested page size. The server may return fewer than requested.
990
- # If unspecified, the server will pick an appropriate default.
949
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] filter_set_object
950
+ # @param [Boolean] is_transient
951
+ # Whether the filter set is transient, or should be persisted indefinitely.
952
+ # By default, filter sets are not transient.
953
+ # If transient, it will be available for at least 1 hour after creation.
991
954
  # @param [String] quota_user
992
955
  # Available to use for quota purposes for server-side applications. Can be any
993
956
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -997,29 +960,28 @@ module Google
997
960
  # Request-specific options
998
961
  #
999
962
  # @yield [result, err] Result & error if block supplied
1000
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse] parsed result object
963
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] parsed result object
1001
964
  # @yieldparam err [StandardError] error object if request failed
1002
965
  #
1003
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse]
966
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::FilterSet]
1004
967
  #
1005
968
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1006
969
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1007
970
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1008
- def list_account_filter_set_bid_response_errors(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1009
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidResponseErrors', options)
1010
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse::Representation
1011
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse
971
+ def create_account_filter_set(account_id, filter_set_object = nil, is_transient: nil, quota_user: nil, fields: nil, options: nil, &block)
972
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/filterSets', options)
973
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
974
+ command.request_object = filter_set_object
975
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
976
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::FilterSet
1012
977
  command.params['accountId'] = account_id unless account_id.nil?
1013
- command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1014
- command.query['pageToken'] = page_token unless page_token.nil?
1015
- command.query['pageSize'] = page_size unless page_size.nil?
978
+ command.query['isTransient'] = is_transient unless is_transient.nil?
1016
979
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1017
980
  command.query['fields'] = fields unless fields.nil?
1018
981
  execute_or_queue_command(command, &block)
1019
982
  end
1020
983
 
1021
- # List all reasons for which bid responses were considered to have no
1022
- # applicable bids, with the number of bid responses affected for each reason.
984
+ # Lists all metrics that are measured in terms of number of bids.
1023
985
  # @param [Fixnum] account_id
1024
986
  # Account ID of the buyer.
1025
987
  # @param [Fixnum] filter_set_id
@@ -1027,12 +989,12 @@ module Google
1027
989
  # @param [String] page_token
1028
990
  # A token identifying a page of results the server should return.
1029
991
  # Typically, this is the value of
1030
- # ListBidResponsesWithoutBidsResponse.nextPageToken
992
+ # ListBidMetricsResponse.nextPageToken
1031
993
  # returned from the previous call to the
1032
- # accounts.filterSets.bidResponsesWithoutBids.list
994
+ # accounts.filterSets.bidMetrics.list
1033
995
  # method.
1034
996
  # @param [Fixnum] page_size
1035
- # Requested page size. The server may return fewer than requested.
997
+ # Requested page size. The server may return fewer results than requested.
1036
998
  # If unspecified, the server will pick an appropriate default.
1037
999
  # @param [String] quota_user
1038
1000
  # Available to use for quota purposes for server-side applications. Can be any
@@ -1043,18 +1005,18 @@ module Google
1043
1005
  # Request-specific options
1044
1006
  #
1045
1007
  # @yield [result, err] Result & error if block supplied
1046
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse] parsed result object
1008
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse] parsed result object
1047
1009
  # @yieldparam err [StandardError] error object if request failed
1048
1010
  #
1049
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse]
1011
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse]
1050
1012
  #
1051
1013
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1052
1014
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1053
1015
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1054
- def list_account_filter_set_bid_responses_without_bids(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1055
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidResponsesWithoutBids', options)
1056
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse::Representation
1057
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse
1016
+ def list_account_filter_set_bid_metrics(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1017
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidMetrics', options)
1018
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse::Representation
1019
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse
1058
1020
  command.params['accountId'] = account_id unless account_id.nil?
1059
1021
  command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1060
1022
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1064,8 +1026,7 @@ module Google
1064
1026
  execute_or_queue_command(command, &block)
1065
1027
  end
1066
1028
 
1067
- # List all reasons that caused a bid request not to be sent for an
1068
- # impression, with the number of bid requests not sent for each reason.
1029
+ # Lists all metrics that are measured in terms of number of impressions.
1069
1030
  # @param [Fixnum] account_id
1070
1031
  # Account ID of the buyer.
1071
1032
  # @param [Fixnum] filter_set_id
@@ -1073,12 +1034,12 @@ module Google
1073
1034
  # @param [String] page_token
1074
1035
  # A token identifying a page of results the server should return.
1075
1036
  # Typically, this is the value of
1076
- # ListFilteredBidRequestsResponse.nextPageToken
1037
+ # ListImpressionMetricsResponse.nextPageToken
1077
1038
  # returned from the previous call to the
1078
- # accounts.filterSets.filteredBidRequests.list
1039
+ # accounts.filterSets.impressionMetrics.list
1079
1040
  # method.
1080
1041
  # @param [Fixnum] page_size
1081
- # Requested page size. The server may return fewer than requested.
1042
+ # Requested page size. The server may return fewer results than requested.
1082
1043
  # If unspecified, the server will pick an appropriate default.
1083
1044
  # @param [String] quota_user
1084
1045
  # Available to use for quota purposes for server-side applications. Can be any
@@ -1089,18 +1050,18 @@ module Google
1089
1050
  # Request-specific options
1090
1051
  #
1091
1052
  # @yield [result, err] Result & error if block supplied
1092
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse] parsed result object
1053
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse] parsed result object
1093
1054
  # @yieldparam err [StandardError] error object if request failed
1094
1055
  #
1095
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse]
1056
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse]
1096
1057
  #
1097
1058
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1098
1059
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1099
1060
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1100
- def list_account_filter_set_filtered_bid_requests(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1101
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBidRequests', options)
1102
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse::Representation
1103
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse
1061
+ def list_account_filter_set_impression_metrics(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1062
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/impressionMetrics', options)
1063
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse::Representation
1064
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse
1104
1065
  command.params['accountId'] = account_id unless account_id.nil?
1105
1066
  command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1106
1067
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1110,50 +1071,21 @@ module Google
1110
1071
  execute_or_queue_command(command, &block)
1111
1072
  end
1112
1073
 
1113
- # Gets a client buyer with a given client account ID.
1114
- # @param [Fixnum] account_id
1115
- # Numerical account ID of the client's sponsor buyer. (required)
1116
- # @param [Fixnum] client_account_id
1117
- # Numerical account ID of the client buyer to retrieve. (required)
1118
- # @param [String] quota_user
1119
- # Available to use for quota purposes for server-side applications. Can be any
1120
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1121
- # @param [String] fields
1122
- # Selector specifying which fields to include in a partial response.
1123
- # @param [Google::Apis::RequestOptions] options
1124
- # Request-specific options
1125
- #
1126
- # @yield [result, err] Result & error if block supplied
1127
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
1128
- # @yieldparam err [StandardError] error object if request failed
1129
- #
1130
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
1131
- #
1132
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1133
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1134
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1135
- def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
1136
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
1137
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
1138
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
1139
- command.params['accountId'] = account_id unless account_id.nil?
1140
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
1141
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1142
- command.query['fields'] = fields unless fields.nil?
1143
- execute_or_queue_command(command, &block)
1144
- end
1145
-
1146
- # Lists all the clients for the current sponsor buyer.
1074
+ # List all errors that occurred in bid responses, with the number of bid
1075
+ # responses affected for each reason.
1147
1076
  # @param [Fixnum] account_id
1148
- # Unique numerical account ID of the sponsor buyer to list the clients for.
1077
+ # Account ID of the buyer.
1078
+ # @param [Fixnum] filter_set_id
1079
+ # The ID of the filter set to apply.
1149
1080
  # @param [String] page_token
1150
1081
  # A token identifying a page of results the server should return.
1151
1082
  # Typically, this is the value of
1152
- # ListClientsResponse.nextPageToken
1083
+ # ListBidResponseErrorsResponse.nextPageToken
1153
1084
  # returned from the previous call to the
1154
- # accounts.clients.list method.
1085
+ # accounts.filterSets.bidResponseErrors.list
1086
+ # method.
1155
1087
  # @param [Fixnum] page_size
1156
- # Requested page size. The server may return fewer clients than requested.
1088
+ # Requested page size. The server may return fewer results than requested.
1157
1089
  # If unspecified, the server will pick an appropriate default.
1158
1090
  # @param [String] quota_user
1159
1091
  # Available to use for quota purposes for server-side applications. Can be any
@@ -1164,19 +1096,20 @@ module Google
1164
1096
  # Request-specific options
1165
1097
  #
1166
1098
  # @yield [result, err] Result & error if block supplied
1167
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
1099
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse] parsed result object
1168
1100
  # @yieldparam err [StandardError] error object if request failed
1169
1101
  #
1170
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
1102
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse]
1171
1103
  #
1172
1104
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1173
1105
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1174
1106
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1175
- def list_account_clients(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1176
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
1177
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
1178
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
1107
+ def list_account_filter_set_bid_response_errors(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1108
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidResponseErrors', options)
1109
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse::Representation
1110
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse
1179
1111
  command.params['accountId'] = account_id unless account_id.nil?
1112
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1180
1113
  command.query['pageToken'] = page_token unless page_token.nil?
1181
1114
  command.query['pageSize'] = page_size unless page_size.nil?
1182
1115
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1184,48 +1117,22 @@ module Google
1184
1117
  execute_or_queue_command(command, &block)
1185
1118
  end
1186
1119
 
1187
- # Updates an existing client buyer.
1188
- # @param [Fixnum] account_id
1189
- # Unique numerical account ID for the buyer of which the client buyer
1190
- # is a customer; the sponsor buyer to update a client for. (required)
1191
- # @param [Fixnum] client_account_id
1192
- # Unique numerical account ID of the client to update. (required)
1193
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
1194
- # @param [String] quota_user
1195
- # Available to use for quota purposes for server-side applications. Can be any
1196
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1197
- # @param [String] fields
1198
- # Selector specifying which fields to include in a partial response.
1199
- # @param [Google::Apis::RequestOptions] options
1200
- # Request-specific options
1201
- #
1202
- # @yield [result, err] Result & error if block supplied
1203
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
1204
- # @yieldparam err [StandardError] error object if request failed
1205
- #
1206
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
1207
- #
1208
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1209
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1210
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1211
- def update_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1212
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
1213
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
1214
- command.request_object = client_object
1215
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
1216
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
1217
- command.params['accountId'] = account_id unless account_id.nil?
1218
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
1219
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1220
- command.query['fields'] = fields unless fields.nil?
1221
- execute_or_queue_command(command, &block)
1222
- end
1223
-
1224
- # Creates a new client buyer.
1120
+ # List all reasons for which bid responses were considered to have no
1121
+ # applicable bids, with the number of bid responses affected for each reason.
1225
1122
  # @param [Fixnum] account_id
1226
- # Unique numerical account ID for the buyer of which the client buyer
1227
- # is a customer; the sponsor buyer to create a client for. (required)
1228
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
1123
+ # Account ID of the buyer.
1124
+ # @param [Fixnum] filter_set_id
1125
+ # The ID of the filter set to apply.
1126
+ # @param [String] page_token
1127
+ # A token identifying a page of results the server should return.
1128
+ # Typically, this is the value of
1129
+ # ListBidResponsesWithoutBidsResponse.nextPageToken
1130
+ # returned from the previous call to the
1131
+ # accounts.filterSets.bidResponsesWithoutBids.list
1132
+ # method.
1133
+ # @param [Fixnum] page_size
1134
+ # Requested page size. The server may return fewer results than requested.
1135
+ # If unspecified, the server will pick an appropriate default.
1229
1136
  # @param [String] quota_user
1230
1137
  # Available to use for quota purposes for server-side applications. Can be any
1231
1138
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -1235,34 +1142,43 @@ module Google
1235
1142
  # Request-specific options
1236
1143
  #
1237
1144
  # @yield [result, err] Result & error if block supplied
1238
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
1145
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse] parsed result object
1239
1146
  # @yieldparam err [StandardError] error object if request failed
1240
1147
  #
1241
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
1148
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse]
1242
1149
  #
1243
1150
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1244
1151
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1245
1152
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1246
- def create_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1247
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
1248
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
1249
- command.request_object = client_object
1250
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
1251
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
1153
+ def list_account_filter_set_bid_responses_without_bids(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1154
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidResponsesWithoutBids', options)
1155
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse::Representation
1156
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse
1252
1157
  command.params['accountId'] = account_id unless account_id.nil?
1158
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1159
+ command.query['pageToken'] = page_token unless page_token.nil?
1160
+ command.query['pageSize'] = page_size unless page_size.nil?
1253
1161
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1254
1162
  command.query['fields'] = fields unless fields.nil?
1255
1163
  execute_or_queue_command(command, &block)
1256
1164
  end
1257
1165
 
1258
- # Retrieves an existing client user invitation.
1166
+ # List all reasons that caused a bid request not to be sent for an
1167
+ # impression, with the number of bid requests not sent for each reason.
1259
1168
  # @param [Fixnum] account_id
1260
- # Numerical account ID of the client's sponsor buyer. (required)
1261
- # @param [Fixnum] client_account_id
1262
- # Numerical account ID of the client buyer that the user invitation
1263
- # to be retrieved is associated with. (required)
1264
- # @param [Fixnum] invitation_id
1265
- # Numerical identifier of the user invitation to retrieve. (required)
1169
+ # Account ID of the buyer.
1170
+ # @param [Fixnum] filter_set_id
1171
+ # The ID of the filter set to apply.
1172
+ # @param [String] page_token
1173
+ # A token identifying a page of results the server should return.
1174
+ # Typically, this is the value of
1175
+ # ListFilteredBidRequestsResponse.nextPageToken
1176
+ # returned from the previous call to the
1177
+ # accounts.filterSets.filteredBidRequests.list
1178
+ # method.
1179
+ # @param [Fixnum] page_size
1180
+ # Requested page size. The server may return fewer results than requested.
1181
+ # If unspecified, the server will pick an appropriate default.
1266
1182
  # @param [String] quota_user
1267
1183
  # Available to use for quota purposes for server-side applications. Can be any
1268
1184
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -1272,47 +1188,43 @@ module Google
1272
1188
  # Request-specific options
1273
1189
  #
1274
1190
  # @yield [result, err] Result & error if block supplied
1275
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
1191
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse] parsed result object
1276
1192
  # @yieldparam err [StandardError] error object if request failed
1277
1193
  #
1278
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
1194
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse]
1279
1195
  #
1280
1196
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1281
1197
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1282
1198
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1283
- def get_account_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
1284
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
1285
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
1286
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
1199
+ def list_account_filter_set_filtered_bid_requests(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1200
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBidRequests', options)
1201
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse::Representation
1202
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse
1287
1203
  command.params['accountId'] = account_id unless account_id.nil?
1288
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
1289
- command.params['invitationId'] = invitation_id unless invitation_id.nil?
1204
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1205
+ command.query['pageToken'] = page_token unless page_token.nil?
1206
+ command.query['pageSize'] = page_size unless page_size.nil?
1290
1207
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1291
1208
  command.query['fields'] = fields unless fields.nil?
1292
1209
  execute_or_queue_command(command, &block)
1293
1210
  end
1294
1211
 
1295
- # Lists all the client users invitations for a client
1296
- # with a given account ID.
1212
+ # List all reasons for which bids were filtered, with the number of bids
1213
+ # filtered for each reason.
1297
1214
  # @param [Fixnum] account_id
1298
- # Numerical account ID of the client's sponsor buyer. (required)
1299
- # @param [String] client_account_id
1300
- # Numerical account ID of the client buyer to list invitations for.
1301
- # (required)
1302
- # You must either specify a string representation of a
1303
- # numerical account identifier or the `-` character
1304
- # to list all the invitations for all the clients
1305
- # of a given sponsor buyer.
1306
- # @param [Fixnum] page_size
1307
- # Requested page size. Server may return fewer clients than requested.
1308
- # If unspecified, server will pick an appropriate default.
1215
+ # Account ID of the buyer.
1216
+ # @param [Fixnum] filter_set_id
1217
+ # The ID of the filter set to apply.
1309
1218
  # @param [String] page_token
1310
1219
  # A token identifying a page of results the server should return.
1311
1220
  # Typically, this is the value of
1312
- # ListClientUserInvitationsResponse.nextPageToken
1221
+ # ListFilteredBidsResponse.nextPageToken
1313
1222
  # returned from the previous call to the
1314
- # clients.invitations.list
1223
+ # accounts.filterSets.filteredBids.list
1315
1224
  # method.
1225
+ # @param [Fixnum] page_size
1226
+ # Requested page size. The server may return fewer results than requested.
1227
+ # If unspecified, the server will pick an appropriate default.
1316
1228
  # @param [String] quota_user
1317
1229
  # Available to use for quota purposes for server-side applications. Can be any
1318
1230
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -1322,35 +1234,49 @@ module Google
1322
1234
  # Request-specific options
1323
1235
  #
1324
1236
  # @yield [result, err] Result & error if block supplied
1325
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
1237
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse] parsed result object
1326
1238
  # @yieldparam err [StandardError] error object if request failed
1327
1239
  #
1328
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
1240
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse]
1329
1241
  #
1330
1242
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1331
1243
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1332
1244
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1333
- def list_account_client_invitations(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
1334
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
1335
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
1336
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
1245
+ def list_account_filter_set_filtered_bids(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1246
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids', options)
1247
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse::Representation
1248
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse
1337
1249
  command.params['accountId'] = account_id unless account_id.nil?
1338
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
1339
- command.query['pageSize'] = page_size unless page_size.nil?
1250
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1340
1251
  command.query['pageToken'] = page_token unless page_token.nil?
1252
+ command.query['pageSize'] = page_size unless page_size.nil?
1341
1253
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1342
1254
  command.query['fields'] = fields unless fields.nil?
1343
1255
  execute_or_queue_command(command, &block)
1344
1256
  end
1345
1257
 
1346
- # Creates and sends out an email invitation to access
1347
- # an Ad Exchange client buyer account.
1258
+ # List all creatives associated with a specific reason for which bids were
1259
+ # filtered, with the number of bids filtered for each creative.
1348
1260
  # @param [Fixnum] account_id
1349
- # Numerical account ID of the client's sponsor buyer. (required)
1350
- # @param [Fixnum] client_account_id
1351
- # Numerical account ID of the client buyer that the user
1352
- # should be associated with. (required)
1353
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
1261
+ # Account ID of the buyer.
1262
+ # @param [Fixnum] filter_set_id
1263
+ # The ID of the filter set to apply.
1264
+ # @param [Fixnum] creative_status_id
1265
+ # The ID of the creative status for which to retrieve a breakdown by
1266
+ # creative.
1267
+ # See
1268
+ # [creative-status-codes](https://developers.google.com/ad-exchange/rtb/
1269
+ # downloads/creative-status-codes).
1270
+ # @param [String] page_token
1271
+ # A token identifying a page of results the server should return.
1272
+ # Typically, this is the value of
1273
+ # ListCreativeStatusBreakdownByCreativeResponse.nextPageToken
1274
+ # returned from the previous call to the
1275
+ # accounts.filterSets.filteredBids.creatives.list
1276
+ # method.
1277
+ # @param [Fixnum] page_size
1278
+ # Requested page size. The server may return fewer results than requested.
1279
+ # If unspecified, the server will pick an appropriate default.
1354
1280
  # @param [String] quota_user
1355
1281
  # Available to use for quota purposes for server-side applications. Can be any
1356
1282
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -1360,47 +1286,50 @@ module Google
1360
1286
  # Request-specific options
1361
1287
  #
1362
1288
  # @yield [result, err] Result & error if block supplied
1363
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
1289
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse] parsed result object
1364
1290
  # @yieldparam err [StandardError] error object if request failed
1365
1291
  #
1366
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
1292
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse]
1367
1293
  #
1368
1294
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1369
1295
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1370
1296
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1371
- def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1372
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
1373
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
1374
- command.request_object = client_user_invitation_object
1375
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
1376
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
1297
+ def list_account_filter_set_filtered_bid_creatives(account_id, filter_set_id, creative_status_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1298
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives', options)
1299
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse::Representation
1300
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse
1377
1301
  command.params['accountId'] = account_id unless account_id.nil?
1378
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
1302
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1303
+ command.params['creativeStatusId'] = creative_status_id unless creative_status_id.nil?
1304
+ command.query['pageToken'] = page_token unless page_token.nil?
1305
+ command.query['pageSize'] = page_size unless page_size.nil?
1379
1306
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1380
1307
  command.query['fields'] = fields unless fields.nil?
1381
1308
  execute_or_queue_command(command, &block)
1382
1309
  end
1383
1310
 
1384
- # Lists all the known client users for a specified
1385
- # sponsor buyer account ID.
1311
+ # List all details associated with a specific reason for which bids were
1312
+ # filtered, with the number of bids filtered for each detail.
1386
1313
  # @param [Fixnum] account_id
1387
- # Numerical account ID of the sponsor buyer of the client to list users for.
1388
- # (required)
1389
- # @param [String] client_account_id
1390
- # The account ID of the client buyer to list users for. (required)
1391
- # You must specify either a string representation of a
1392
- # numerical account identifier or the `-` character
1393
- # to list all the client users for all the clients
1394
- # of a given sponsor buyer.
1395
- # @param [Fixnum] page_size
1396
- # Requested page size. The server may return fewer clients than requested.
1397
- # If unspecified, the server will pick an appropriate default.
1314
+ # Account ID of the buyer.
1315
+ # @param [Fixnum] filter_set_id
1316
+ # The ID of the filter set to apply.
1317
+ # @param [Fixnum] creative_status_id
1318
+ # The ID of the creative status for which to retrieve a breakdown by detail.
1319
+ # See
1320
+ # [creative-status-codes](https://developers.google.com/ad-exchange/rtb/
1321
+ # downloads/creative-status-codes).
1322
+ # Details are only available for statuses 14, 15, 17, 18, 19, 86, and 87.
1398
1323
  # @param [String] page_token
1399
1324
  # A token identifying a page of results the server should return.
1400
1325
  # Typically, this is the value of
1401
- # ListClientUsersResponse.nextPageToken
1326
+ # ListCreativeStatusBreakdownByDetailResponse.nextPageToken
1402
1327
  # returned from the previous call to the
1403
- # accounts.clients.users.list method.
1328
+ # accounts.filterSets.filteredBids.details.list
1329
+ # method.
1330
+ # @param [Fixnum] page_size
1331
+ # Requested page size. The server may return fewer results than requested.
1332
+ # If unspecified, the server will pick an appropriate default.
1404
1333
  # @param [String] quota_user
1405
1334
  # Available to use for quota purposes for server-side applications. Can be any
1406
1335
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -1410,35 +1339,44 @@ module Google
1410
1339
  # Request-specific options
1411
1340
  #
1412
1341
  # @yield [result, err] Result & error if block supplied
1413
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
1342
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse] parsed result object
1414
1343
  # @yieldparam err [StandardError] error object if request failed
1415
1344
  #
1416
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
1345
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse]
1417
1346
  #
1418
1347
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1419
1348
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1420
1349
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1421
- def list_account_client_users(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
1422
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
1423
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
1424
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
1350
+ def list_account_filter_set_filtered_bid_details(account_id, filter_set_id, creative_status_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1351
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/details', options)
1352
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse::Representation
1353
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse
1425
1354
  command.params['accountId'] = account_id unless account_id.nil?
1426
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
1427
- command.query['pageSize'] = page_size unless page_size.nil?
1355
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1356
+ command.params['creativeStatusId'] = creative_status_id unless creative_status_id.nil?
1428
1357
  command.query['pageToken'] = page_token unless page_token.nil?
1358
+ command.query['pageSize'] = page_size unless page_size.nil?
1429
1359
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1430
1360
  command.query['fields'] = fields unless fields.nil?
1431
1361
  execute_or_queue_command(command, &block)
1432
1362
  end
1433
1363
 
1434
- # Retrieves an existing client user.
1364
+ # List all reasons for which winning bids were not billable, with the number
1365
+ # of bids not billed for each reason.
1435
1366
  # @param [Fixnum] account_id
1436
- # Numerical account ID of the client's sponsor buyer. (required)
1437
- # @param [Fixnum] client_account_id
1438
- # Numerical account ID of the client buyer
1439
- # that the user to be retrieved is associated with. (required)
1440
- # @param [Fixnum] user_id
1441
- # Numerical identifier of the user to retrieve. (required)
1367
+ # Account ID of the buyer.
1368
+ # @param [Fixnum] filter_set_id
1369
+ # The ID of the filter set to apply.
1370
+ # @param [String] page_token
1371
+ # A token identifying a page of results the server should return.
1372
+ # Typically, this is the value of
1373
+ # ListNonBillableWinningBidsResponse.nextPageToken
1374
+ # returned from the previous call to the
1375
+ # accounts.filterSets.nonBillableWinningBids.list
1376
+ # method.
1377
+ # @param [Fixnum] page_size
1378
+ # Requested page size. The server may return fewer results than requested.
1379
+ # If unspecified, the server will pick an appropriate default.
1442
1380
  # @param [String] quota_user
1443
1381
  # Available to use for quota purposes for server-side applications. Can be any
1444
1382
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -1448,36 +1386,43 @@ module Google
1448
1386
  # Request-specific options
1449
1387
  #
1450
1388
  # @yield [result, err] Result & error if block supplied
1451
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
1389
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse] parsed result object
1452
1390
  # @yieldparam err [StandardError] error object if request failed
1453
1391
  #
1454
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
1392
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse]
1455
1393
  #
1456
1394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1457
1395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1458
1396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1459
- def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
1460
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
1461
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
1462
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
1397
+ def list_account_filter_set_non_billable_winning_bids(account_id, filter_set_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1398
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/nonBillableWinningBids', options)
1399
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse::Representation
1400
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse
1463
1401
  command.params['accountId'] = account_id unless account_id.nil?
1464
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
1465
- command.params['userId'] = user_id unless user_id.nil?
1402
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1403
+ command.query['pageToken'] = page_token unless page_token.nil?
1404
+ command.query['pageSize'] = page_size unless page_size.nil?
1466
1405
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1467
1406
  command.query['fields'] = fields unless fields.nil?
1468
1407
  execute_or_queue_command(command, &block)
1469
1408
  end
1470
1409
 
1471
- # Updates an existing client user.
1472
- # Only the user status can be changed on update.
1410
+ # List all reasons for which bids lost in the auction, with the number of
1411
+ # bids that lost for each reason.
1473
1412
  # @param [Fixnum] account_id
1474
- # Numerical account ID of the client's sponsor buyer. (required)
1475
- # @param [Fixnum] client_account_id
1476
- # Numerical account ID of the client buyer that the user to be retrieved
1477
- # is associated with. (required)
1478
- # @param [Fixnum] user_id
1479
- # Numerical identifier of the user to retrieve. (required)
1480
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
1413
+ # Account ID of the buyer.
1414
+ # @param [Fixnum] filter_set_id
1415
+ # The ID of the filter set to apply.
1416
+ # @param [Fixnum] page_size
1417
+ # Requested page size. The server may return fewer results than requested.
1418
+ # If unspecified, the server will pick an appropriate default.
1419
+ # @param [String] page_token
1420
+ # A token identifying a page of results the server should return.
1421
+ # Typically, this is the value of
1422
+ # ListLosingBidsResponse.nextPageToken
1423
+ # returned from the previous call to the
1424
+ # accounts.filterSets.losingBids.list
1425
+ # method.
1481
1426
  # @param [String] quota_user
1482
1427
  # Available to use for quota purposes for server-side applications. Can be any
1483
1428
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -1487,23 +1432,22 @@ module Google
1487
1432
  # Request-specific options
1488
1433
  #
1489
1434
  # @yield [result, err] Result & error if block supplied
1490
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
1435
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse] parsed result object
1491
1436
  # @yieldparam err [StandardError] error object if request failed
1492
1437
  #
1493
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
1438
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse]
1494
1439
  #
1495
1440
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1496
1441
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1497
1442
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1498
- def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1499
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
1500
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
1501
- command.request_object = client_user_object
1502
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
1503
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
1443
+ def list_account_filter_set_losing_bids(account_id, filter_set_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
1444
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/losingBids', options)
1445
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse::Representation
1446
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse
1504
1447
  command.params['accountId'] = account_id unless account_id.nil?
1505
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
1506
- command.params['userId'] = user_id unless user_id.nil?
1448
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1449
+ command.query['pageSize'] = page_size unless page_size.nil?
1450
+ command.query['pageToken'] = page_token unless page_token.nil?
1507
1451
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1508
1452
  command.query['fields'] = fields unless fields.nil?
1509
1453
  execute_or_queue_command(command, &block)