google-api-client 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/api_names.yaml +945 -41609
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  13. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  14. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  17. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  21. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  22. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  23. data/generated/google/apis/analytics_v3/service.rb +82 -82
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
  25. data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
  26. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  30. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  33. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  34. data/generated/google/apis/appengine_v1.rb +4 -4
  35. data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
  36. data/generated/google/apis/appengine_v1/representations.rb +362 -343
  37. data/generated/google/apis/appengine_v1/service.rb +220 -220
  38. data/generated/google/apis/appstate_v1.rb +1 -1
  39. data/generated/google/apis/bigquery_v2.rb +1 -1
  40. data/generated/google/apis/bigquery_v2/classes.rb +5 -5
  41. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  42. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  43. data/generated/google/apis/blogger_v3/service.rb +3 -3
  44. data/generated/google/apis/books_v1/classes.rb +55 -55
  45. data/generated/google/apis/books_v1/representations.rb +67 -67
  46. data/generated/google/apis/books_v1/service.rb +82 -82
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  49. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  50. data/generated/google/apis/calendar_v3/service.rb +2 -2
  51. data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
  52. data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
  53. data/generated/google/apis/civicinfo_v2/service.rb +12 -12
  54. data/generated/google/apis/classroom_v1.rb +7 -7
  55. data/generated/google/apis/classroom_v1/classes.rb +1013 -991
  56. data/generated/google/apis/classroom_v1/representations.rb +207 -204
  57. data/generated/google/apis/classroom_v1/service.rb +709 -709
  58. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  59. data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
  60. data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
  61. data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
  62. data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
  63. data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
  64. data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
  67. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
  68. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
  69. data/generated/google/apis/cloudkms_v1.rb +1 -1
  70. data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
  71. data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
  72. data/generated/google/apis/cloudkms_v1/service.rb +267 -267
  73. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  74. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
  75. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
  76. data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
  77. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
  81. data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +163 -15
  84. data/generated/google/apis/compute_beta/representations.rb +54 -14
  85. data/generated/google/apis/compute_beta/service.rb +2258 -482
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +465 -13
  88. data/generated/google/apis/compute_v1/representations.rb +202 -16
  89. data/generated/google/apis/compute_v1/service.rb +573 -309
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +635 -589
  92. data/generated/google/apis/container_v1/representations.rb +139 -111
  93. data/generated/google/apis/container_v1/service.rb +272 -227
  94. data/generated/google/apis/content_v2.rb +1 -1
  95. data/generated/google/apis/content_v2/classes.rb +86 -74
  96. data/generated/google/apis/content_v2/representations.rb +107 -105
  97. data/generated/google/apis/content_v2/service.rb +131 -130
  98. data/generated/google/apis/customsearch_v1.rb +2 -2
  99. data/generated/google/apis/customsearch_v1/classes.rb +0 -6
  100. data/generated/google/apis/customsearch_v1/representations.rb +0 -1
  101. data/generated/google/apis/customsearch_v1/service.rb +2 -5
  102. data/generated/google/apis/dataflow_v1b3.rb +7 -4
  103. data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
  104. data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
  105. data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +543 -691
  108. data/generated/google/apis/dataproc_v1/representations.rb +129 -185
  109. data/generated/google/apis/dataproc_v1/service.rb +347 -347
  110. data/generated/google/apis/datastore_v1.rb +4 -4
  111. data/generated/google/apis/datastore_v1/classes.rb +833 -833
  112. data/generated/google/apis/datastore_v1/representations.rb +182 -182
  113. data/generated/google/apis/datastore_v1/service.rb +45 -45
  114. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  115. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  116. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  117. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  118. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  119. data/generated/google/apis/discovery_v1/service.rb +1 -1
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +3 -3
  122. data/generated/google/apis/dns_v1/representations.rb +6 -6
  123. data/generated/google/apis/dns_v1/service.rb +12 -12
  124. data/generated/google/apis/dns_v2beta1.rb +1 -1
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +1 -1
  129. data/generated/google/apis/drive_v2/service.rb +1 -1
  130. data/generated/google/apis/drive_v3.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
  136. data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
  137. data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
  138. data/generated/google/apis/firebaserules_v1/service.rb +103 -103
  139. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  140. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  141. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  142. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  143. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  144. data/generated/google/apis/games_management_v1management.rb +1 -1
  145. data/generated/google/apis/games_v1.rb +1 -1
  146. data/generated/google/apis/games_v1/classes.rb +23 -23
  147. data/generated/google/apis/games_v1/representations.rb +43 -43
  148. data/generated/google/apis/games_v1/service.rb +72 -72
  149. data/generated/google/apis/genomics_v1.rb +1 -1
  150. data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
  151. data/generated/google/apis/genomics_v1/representations.rb +291 -291
  152. data/generated/google/apis/genomics_v1/service.rb +821 -821
  153. data/generated/google/apis/gmail_v1.rb +1 -1
  154. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  155. data/generated/google/apis/groupssettings_v1.rb +1 -1
  156. data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
  157. data/generated/google/apis/groupssettings_v1/service.rb +3 -0
  158. data/generated/google/apis/iam_v1/classes.rb +338 -338
  159. data/generated/google/apis/iam_v1/representations.rb +98 -98
  160. data/generated/google/apis/iam_v1/service.rb +35 -35
  161. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  162. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  163. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  164. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  165. data/generated/google/apis/language_v1.rb +1 -1
  166. data/generated/google/apis/language_v1/classes.rb +374 -374
  167. data/generated/google/apis/language_v1/representations.rb +97 -97
  168. data/generated/google/apis/language_v1/service.rb +16 -16
  169. data/generated/google/apis/language_v1beta1.rb +1 -1
  170. data/generated/google/apis/language_v1beta1/classes.rb +441 -441
  171. data/generated/google/apis/language_v1beta1/representations.rb +108 -108
  172. data/generated/google/apis/language_v1beta1/service.rb +30 -30
  173. data/generated/google/apis/licensing_v1/service.rb +2 -2
  174. data/generated/google/apis/logging_v2.rb +1 -1
  175. data/generated/google/apis/logging_v2/classes.rb +712 -712
  176. data/generated/google/apis/logging_v2/representations.rb +109 -109
  177. data/generated/google/apis/logging_v2/service.rb +543 -539
  178. data/generated/google/apis/logging_v2beta1.rb +1 -1
  179. data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
  180. data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
  181. data/generated/google/apis/logging_v2beta1/service.rb +257 -256
  182. data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
  183. data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
  184. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  185. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  186. data/generated/google/apis/mirror_v1/service.rb +20 -20
  187. data/generated/google/apis/ml_v1.rb +1 -1
  188. data/generated/google/apis/ml_v1/classes.rb +1830 -1210
  189. data/generated/google/apis/ml_v1/representations.rb +342 -120
  190. data/generated/google/apis/ml_v1/service.rb +365 -258
  191. data/generated/google/apis/monitoring_v3.rb +4 -4
  192. data/generated/google/apis/monitoring_v3/classes.rb +889 -889
  193. data/generated/google/apis/monitoring_v3/representations.rb +174 -174
  194. data/generated/google/apis/monitoring_v3/service.rb +119 -119
  195. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  196. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  197. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  198. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  199. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  200. data/generated/google/apis/partners_v2.rb +1 -1
  201. data/generated/google/apis/partners_v2/classes.rb +550 -536
  202. data/generated/google/apis/partners_v2/representations.rb +118 -116
  203. data/generated/google/apis/partners_v2/service.rb +439 -439
  204. data/generated/google/apis/people_v1.rb +4 -4
  205. data/generated/google/apis/people_v1/classes.rb +414 -413
  206. data/generated/google/apis/people_v1/representations.rb +85 -85
  207. data/generated/google/apis/people_v1/service.rb +111 -18
  208. data/generated/google/apis/plus_domains_v1.rb +1 -1
  209. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  210. data/generated/google/apis/plus_v1.rb +1 -1
  211. data/generated/google/apis/plus_v1/service.rb +1 -1
  212. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  213. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  214. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
  215. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
  216. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
  217. data/generated/google/apis/pubsub_v1/classes.rb +249 -249
  218. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  219. data/generated/google/apis/pubsub_v1/service.rb +415 -415
  220. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  221. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  222. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  223. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  226. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  227. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  228. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  230. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  231. data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
  232. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  233. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  234. data/generated/google/apis/script_v1.rb +17 -17
  235. data/generated/google/apis/script_v1/classes.rb +27 -27
  236. data/generated/google/apis/script_v1/representations.rb +5 -5
  237. data/generated/google/apis/script_v1/service.rb +4 -4
  238. data/generated/google/apis/searchconsole_v1.rb +1 -1
  239. data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
  240. data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
  241. data/generated/google/apis/searchconsole_v1/service.rb +4 -4
  242. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  243. data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
  244. data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
  245. data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
  246. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  247. data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
  248. data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
  249. data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
  250. data/generated/google/apis/serviceuser_v1.rb +1 -1
  251. data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
  252. data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
  253. data/generated/google/apis/serviceuser_v1/service.rb +37 -37
  254. data/generated/google/apis/sheets_v4.rb +1 -1
  255. data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
  256. data/generated/google/apis/sheets_v4/representations.rb +994 -824
  257. data/generated/google/apis/sheets_v4/service.rb +80 -80
  258. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  259. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  260. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  261. data/generated/google/apis/slides_v1.rb +1 -1
  262. data/generated/google/apis/slides_v1/classes.rb +2885 -2885
  263. data/generated/google/apis/slides_v1/representations.rb +310 -310
  264. data/generated/google/apis/slides_v1/service.rb +54 -54
  265. data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
  266. data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
  267. data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
  268. data/generated/google/apis/spanner_v1.rb +1 -1
  269. data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
  270. data/generated/google/apis/spanner_v1/representations.rb +174 -174
  271. data/generated/google/apis/spanner_v1/service.rb +497 -497
  272. data/generated/google/apis/speech_v1beta1.rb +1 -1
  273. data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
  274. data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
  275. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  276. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  277. data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
  278. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
  279. data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
  280. data/generated/google/apis/storage_v1.rb +1 -1
  281. data/generated/google/apis/storage_v1/classes.rb +40 -6
  282. data/generated/google/apis/storage_v1/representations.rb +20 -4
  283. data/generated/google/apis/storage_v1/service.rb +61 -46
  284. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  285. data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
  286. data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
  287. data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
  288. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  289. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  290. data/generated/google/apis/translate_v2/classes.rb +12 -12
  291. data/generated/google/apis/translate_v2/representations.rb +10 -10
  292. data/generated/google/apis/translate_v2/service.rb +62 -62
  293. data/generated/google/apis/vision_v1.rb +1 -1
  294. data/generated/google/apis/vision_v1/classes.rb +1267 -1267
  295. data/generated/google/apis/vision_v1/representations.rb +200 -200
  296. data/generated/google/apis/vision_v1/service.rb +10 -10
  297. data/generated/google/apis/webmasters_v3.rb +1 -1
  298. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  299. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  300. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  301. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  302. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  303. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  304. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  305. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  306. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  307. data/generated/google/apis/youtube_v3/service.rb +80 -80
  308. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  309. data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
  310. data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
  311. data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
  312. data/lib/google/apis/generator/annotator.rb +2 -2
  313. data/lib/google/apis/generator/model.rb +2 -2
  314. data/lib/google/apis/version.rb +1 -1
  315. metadata +2 -2
@@ -48,788 +48,1464 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Gets a client buyer with a given client account ID.
52
- # @param [Fixnum] account_id
53
- # Numerical account ID of the client's sponsor buyer. (required)
54
- # @param [Fixnum] client_account_id
55
- # Numerical account ID of the client buyer to retrieve. (required)
56
- # @param [String] fields
57
- # Selector specifying which fields to include in a partial response.
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
58
63
  # @param [String] quota_user
59
64
  # Available to use for quota purposes for server-side applications. Can be any
60
65
  # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # @param [String] fields
67
+ # Selector specifying which fields to include in a partial response.
61
68
  # @param [Google::Apis::RequestOptions] options
62
69
  # Request-specific options
63
70
  #
64
71
  # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
72
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
66
73
  # @yieldparam err [StandardError] error object if request failed
67
74
  #
68
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
75
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
69
76
  #
70
77
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
78
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
79
  # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def get_account_client(account_id, client_account_id, fields: nil, quota_user: nil, options: nil, &block)
74
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
75
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
76
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
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
77
86
  command.params['accountId'] = account_id unless account_id.nil?
78
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
79
- command.query['fields'] = fields unless fields.nil?
87
+ command.params['creativeId'] = creative_id unless creative_id.nil?
80
88
  command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ command.query['fields'] = fields unless fields.nil?
81
90
  execute_or_queue_command(command, &block)
82
91
  end
83
92
 
84
- # Lists all the clients for the current sponsor buyer.
85
- # @param [Fixnum] account_id
86
- # Unique numerical account ID of the sponsor buyer to list the clients for.
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.
87
97
  # @param [String] page_token
88
98
  # A token identifying a page of results the server should return.
89
99
  # Typically, this is the value of
90
- # ListClientsResponse.nextPageToken
91
- # returned from the previous call to the
92
- # accounts.clients.list method.
100
+ # ListCreativesResponse.next_page_token
101
+ # returned from the previous call to 'ListCreatives' method.
93
102
  # @param [Fixnum] page_size
94
- # Requested page size. The server may return fewer clients than requested.
95
- # If unspecified, the server will pick an appropriate default.
96
- # @param [String] fields
97
- # Selector specifying which fields to include in a partial response.
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'
98
123
  # @param [String] quota_user
99
124
  # Available to use for quota purposes for server-side applications. Can be any
100
125
  # arbitrary string assigned to a user, but should not exceed 40 characters.
126
+ # @param [String] fields
127
+ # Selector specifying which fields to include in a partial response.
101
128
  # @param [Google::Apis::RequestOptions] options
102
129
  # Request-specific options
103
130
  #
104
131
  # @yield [result, err] Result & error if block supplied
105
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
132
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
106
133
  # @yieldparam err [StandardError] error object if request failed
107
134
  #
108
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
135
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
109
136
  #
110
137
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
138
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
139
  # @raise [Google::Apis::AuthorizationError] Authorization is required
113
- def list_account_clients(account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
114
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
115
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
116
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
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
117
144
  command.params['accountId'] = account_id unless account_id.nil?
118
145
  command.query['pageToken'] = page_token unless page_token.nil?
119
146
  command.query['pageSize'] = page_size unless page_size.nil?
120
- command.query['fields'] = fields unless fields.nil?
147
+ command.query['query'] = query unless query.nil?
121
148
  command.query['quotaUser'] = quota_user unless quota_user.nil?
149
+ command.query['fields'] = fields unless fields.nil?
122
150
  execute_or_queue_command(command, &block)
123
151
  end
124
152
 
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
132
- # @param [String] fields
133
- # Selector specifying which fields to include in a partial response.
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).
134
163
  # @param [String] quota_user
135
164
  # Available to use for quota purposes for server-side applications. Can be any
136
165
  # arbitrary string assigned to a user, but should not exceed 40 characters.
166
+ # @param [String] fields
167
+ # Selector specifying which fields to include in a partial response.
137
168
  # @param [Google::Apis::RequestOptions] options
138
169
  # Request-specific options
139
170
  #
140
171
  # @yield [result, err] Result & error if block supplied
141
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
172
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
142
173
  # @yieldparam err [StandardError] error object if request failed
143
174
  #
144
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
175
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
145
176
  #
146
177
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
178
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
179
  # @raise [Google::Apis::AuthorizationError] Authorization is required
149
- def update_account_client(account_id, client_account_id, client_object = nil, fields: nil, quota_user: 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
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
155
186
  command.params['accountId'] = account_id unless account_id.nil?
156
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
157
- command.query['fields'] = fields unless fields.nil?
187
+ command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
158
188
  command.query['quotaUser'] = quota_user unless quota_user.nil?
189
+ command.query['fields'] = fields unless fields.nil?
159
190
  execute_or_queue_command(command, &block)
160
191
  end
161
192
 
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
167
- # @param [String] fields
168
- # Selector specifying which fields to include in a partial response.
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
169
201
  # @param [String] quota_user
170
202
  # Available to use for quota purposes for server-side applications. Can be any
171
203
  # arbitrary string assigned to a user, but should not exceed 40 characters.
204
+ # @param [String] fields
205
+ # Selector specifying which fields to include in a partial response.
172
206
  # @param [Google::Apis::RequestOptions] options
173
207
  # Request-specific options
174
208
  #
175
209
  # @yield [result, err] Result & error if block supplied
176
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
210
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
177
211
  # @yieldparam err [StandardError] error object if request failed
178
212
  #
179
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
213
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
180
214
  #
181
215
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
182
216
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
183
217
  # @raise [Google::Apis::AuthorizationError] Authorization is required
184
- def create_account_client(account_id, client_object = nil, fields: nil, quota_user: 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
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
190
224
  command.params['accountId'] = account_id unless account_id.nil?
191
- command.query['fields'] = fields unless fields.nil?
225
+ command.params['creativeId'] = creative_id unless creative_id.nil?
192
226
  command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ command.query['fields'] = fields unless fields.nil?
193
228
  execute_or_queue_command(command, &block)
194
229
  end
195
230
 
196
- # Retrieves an existing client user invitation.
197
- # @param [Fixnum] account_id
198
- # Numerical account ID of the client's sponsor buyer. (required)
199
- # @param [Fixnum] client_account_id
200
- # Numerical account ID of the client buyer that the user invitation
201
- # to be retrieved is associated with. (required)
202
- # @param [Fixnum] invitation_id
203
- # Numerical identifier of the user invitation to retrieve. (required)
204
- # @param [String] fields
205
- # Selector specifying which fields to include in a partial response.
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
206
242
  # @param [String] quota_user
207
243
  # Available to use for quota purposes for server-side applications. Can be any
208
244
  # arbitrary string assigned to a user, but should not exceed 40 characters.
245
+ # @param [String] fields
246
+ # Selector specifying which fields to include in a partial response.
209
247
  # @param [Google::Apis::RequestOptions] options
210
248
  # Request-specific options
211
249
  #
212
250
  # @yield [result, err] Result & error if block supplied
213
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
251
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
214
252
  # @yieldparam err [StandardError] error object if request failed
215
253
  #
216
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
254
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
217
255
  #
218
256
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
219
257
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
220
258
  # @raise [Google::Apis::AuthorizationError] Authorization is required
221
- def get_account_client_invitation(account_id, client_account_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block)
222
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
223
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
224
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
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
225
265
  command.params['accountId'] = account_id unless account_id.nil?
226
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
227
- command.params['invitationId'] = invitation_id unless invitation_id.nil?
228
- command.query['fields'] = fields unless fields.nil?
266
+ command.params['creativeId'] = creative_id unless creative_id.nil?
229
267
  command.query['quotaUser'] = quota_user unless quota_user.nil?
268
+ command.query['fields'] = fields unless fields.nil?
230
269
  execute_or_queue_command(command, &block)
231
270
  end
232
271
 
233
- # Lists all the client users invitations for a client
234
- # with a given account ID.
235
- # @param [Fixnum] account_id
236
- # Numerical account ID of the client's sponsor buyer. (required)
237
- # @param [String] client_account_id
238
- # Numerical account ID of the client buyer to list invitations for.
239
- # (required)
240
- # You must either specify a string representation of a
241
- # numerical account identifier or the `-` character
242
- # to list all the invitations for all the clients
243
- # of a given sponsor buyer.
244
- # @param [String] page_token
245
- # A token identifying a page of results the server should return.
246
- # Typically, this is the value of
247
- # ListClientUserInvitationsResponse.nextPageToken
248
- # returned from the previous call to the
249
- # clients.invitations.list
250
- # method.
251
- # @param [Fixnum] page_size
252
- # Requested page size. Server may return fewer clients than requested.
253
- # If unspecified, server will pick an appropriate default.
254
- # @param [String] fields
255
- # Selector specifying which fields to include in a partial response.
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.
256
277
  # @param [String] quota_user
257
278
  # Available to use for quota purposes for server-side applications. Can be any
258
279
  # arbitrary string assigned to a user, but should not exceed 40 characters.
280
+ # @param [String] fields
281
+ # Selector specifying which fields to include in a partial response.
259
282
  # @param [Google::Apis::RequestOptions] options
260
283
  # Request-specific options
261
284
  #
262
285
  # @yield [result, err] Result & error if block supplied
263
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
286
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
264
287
  # @yieldparam err [StandardError] error object if request failed
265
288
  #
266
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
289
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
267
290
  #
268
291
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
269
292
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
270
293
  # @raise [Google::Apis::AuthorizationError] Authorization is required
271
- def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
272
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
273
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
274
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
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
275
298
  command.params['accountId'] = account_id unless account_id.nil?
276
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
277
- command.query['pageToken'] = page_token unless page_token.nil?
278
- command.query['pageSize'] = page_size unless page_size.nil?
279
- command.query['fields'] = fields unless fields.nil?
299
+ command.params['creativeId'] = creative_id unless creative_id.nil?
280
300
  command.query['quotaUser'] = quota_user unless quota_user.nil?
301
+ command.query['fields'] = fields unless fields.nil?
281
302
  execute_or_queue_command(command, &block)
282
303
  end
283
304
 
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] fields
293
- # Selector specifying which fields to include in a partial response.
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.
312
+ # @param [String] page_token
313
+ # A token identifying a page of results the server should return.
314
+ # Typically, this is the value of
315
+ # ListDealAssociationsResponse.next_page_token
316
+ # returned from the previous call to 'ListDealAssociations' method.
317
+ # @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'
294
334
  # @param [String] quota_user
295
335
  # Available to use for quota purposes for server-side applications. Can be any
296
336
  # arbitrary string assigned to a user, but should not exceed 40 characters.
337
+ # @param [String] fields
338
+ # Selector specifying which fields to include in a partial response.
297
339
  # @param [Google::Apis::RequestOptions] options
298
340
  # Request-specific options
299
341
  #
300
342
  # @yield [result, err] Result & error if block supplied
301
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
343
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
302
344
  # @yieldparam err [StandardError] error object if request failed
303
345
  #
304
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
346
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
305
347
  #
306
348
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
307
349
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
308
350
  # @raise [Google::Apis::AuthorizationError] Authorization is required
309
- def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, fields: nil, quota_user: 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
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
315
355
  command.params['accountId'] = account_id unless account_id.nil?
316
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
317
- command.query['fields'] = fields unless fields.nil?
356
+ command.params['creativeId'] = creative_id unless creative_id.nil?
357
+ command.query['pageToken'] = page_token unless page_token.nil?
358
+ command.query['pageSize'] = page_size unless page_size.nil?
359
+ command.query['query'] = query unless query.nil?
318
360
  command.query['quotaUser'] = quota_user unless quota_user.nil?
361
+ command.query['fields'] = fields unless fields.nil?
319
362
  execute_or_queue_command(command, &block)
320
363
  end
321
364
 
322
- # Lists all the known client users for a specified
323
- # sponsor buyer account ID.
324
- # @param [Fixnum] account_id
325
- # Numerical account ID of the sponsor buyer of the client to list users for.
326
- # (required)
327
- # @param [String] client_account_id
328
- # The account ID of the client buyer to list users for. (required)
329
- # You must specify either a string representation of a
330
- # numerical account identifier or the `-` character
331
- # to list all the client users for all the clients
332
- # of a given sponsor buyer.
333
- # @param [String] page_token
334
- # A token identifying a page of results the server should return.
335
- # Typically, this is the value of
336
- # ListClientUsersResponse.nextPageToken
337
- # returned from the previous call to the
338
- # accounts.clients.users.list method.
339
- # @param [Fixnum] page_size
340
- # Requested page size. The server may return fewer clients than requested.
341
- # If unspecified, the server will pick an appropriate default.
342
- # @param [String] fields
343
- # Selector specifying which fields to include in a partial response.
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
344
371
  # @param [String] quota_user
345
372
  # Available to use for quota purposes for server-side applications. Can be any
346
373
  # arbitrary string assigned to a user, but should not exceed 40 characters.
374
+ # @param [String] fields
375
+ # Selector specifying which fields to include in a partial response.
347
376
  # @param [Google::Apis::RequestOptions] options
348
377
  # Request-specific options
349
378
  #
350
379
  # @yield [result, err] Result & error if block supplied
351
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
380
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
352
381
  # @yieldparam err [StandardError] error object if request failed
353
382
  #
354
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
383
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
355
384
  #
356
385
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
357
386
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
358
387
  # @raise [Google::Apis::AuthorizationError] Authorization is required
359
- def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
360
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
361
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
362
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
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
363
394
  command.params['accountId'] = account_id unless account_id.nil?
364
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
365
- command.query['pageToken'] = page_token unless page_token.nil?
366
- command.query['pageSize'] = page_size unless page_size.nil?
367
- command.query['fields'] = fields unless fields.nil?
395
+ command.params['creativeId'] = creative_id unless creative_id.nil?
368
396
  command.query['quotaUser'] = quota_user unless quota_user.nil?
397
+ command.query['fields'] = fields unless fields.nil?
369
398
  execute_or_queue_command(command, &block)
370
399
  end
371
400
 
372
- # Retrieves an existing client user.
373
- # @param [Fixnum] account_id
374
- # Numerical account ID of the client's sponsor buyer. (required)
375
- # @param [Fixnum] client_account_id
376
- # Numerical account ID of the client buyer
377
- # that the user to be retrieved is associated with. (required)
378
- # @param [Fixnum] user_id
379
- # Numerical identifier of the user to retrieve. (required)
380
- # @param [String] fields
381
- # Selector specifying which fields to include in a partial response.
401
+ # Remove the association between a deal and a creative.
402
+ # @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
382
407
  # @param [String] quota_user
383
408
  # Available to use for quota purposes for server-side applications. Can be any
384
409
  # arbitrary string assigned to a user, but should not exceed 40 characters.
410
+ # @param [String] fields
411
+ # Selector specifying which fields to include in a partial response.
385
412
  # @param [Google::Apis::RequestOptions] options
386
413
  # Request-specific options
387
414
  #
388
415
  # @yield [result, err] Result & error if block supplied
389
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
416
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
390
417
  # @yieldparam err [StandardError] error object if request failed
391
418
  #
392
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
419
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
393
420
  #
394
421
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
422
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
423
  # @raise [Google::Apis::AuthorizationError] Authorization is required
397
- def get_account_client_user(account_id, client_account_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
398
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
399
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
400
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
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
401
430
  command.params['accountId'] = account_id unless account_id.nil?
402
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
403
- command.params['userId'] = user_id unless user_id.nil?
404
- command.query['fields'] = fields unless fields.nil?
431
+ command.params['creativeId'] = creative_id unless creative_id.nil?
405
432
  command.query['quotaUser'] = quota_user unless quota_user.nil?
433
+ command.query['fields'] = fields unless fields.nil?
406
434
  execute_or_queue_command(command, &block)
407
435
  end
408
436
 
409
- # Updates an existing client user.
410
- # Only the user status can be changed on update.
437
+ # Deletes the requested filter set from the account with the given account
438
+ # ID.
411
439
  # @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
419
- # @param [String] fields
420
- # Selector specifying which fields to include in a partial response.
440
+ # Account ID of the buyer.
441
+ # @param [Fixnum] filter_set_id
442
+ # The ID of the filter set to delete.
421
443
  # @param [String] quota_user
422
444
  # Available to use for quota purposes for server-side applications. Can be any
423
445
  # arbitrary string assigned to a user, but should not exceed 40 characters.
446
+ # @param [String] fields
447
+ # Selector specifying which fields to include in a partial response.
424
448
  # @param [Google::Apis::RequestOptions] options
425
449
  # Request-specific options
426
450
  #
427
451
  # @yield [result, err] Result & error if block supplied
428
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
452
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
429
453
  # @yieldparam err [StandardError] error object if request failed
430
454
  #
431
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
455
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
432
456
  #
433
457
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
434
458
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
435
459
  # @raise [Google::Apis::AuthorizationError] Authorization is required
436
- def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, fields: nil, quota_user: 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
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)
462
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
463
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
442
464
  command.params['accountId'] = account_id unless account_id.nil?
443
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
444
- command.params['userId'] = user_id unless user_id.nil?
445
- command.query['fields'] = fields unless fields.nil?
465
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
446
466
  command.query['quotaUser'] = quota_user unless quota_user.nil?
467
+ command.query['fields'] = fields unless fields.nil?
447
468
  execute_or_queue_command(command, &block)
448
469
  end
449
470
 
450
- # Creates a creative.
451
- # @param [String] account_id
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).
460
- # @param [String] fields
461
- # Selector specifying which fields to include in a partial response.
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.
462
477
  # @param [String] quota_user
463
478
  # Available to use for quota purposes for server-side applications. Can be any
464
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.
465
482
  # @param [Google::Apis::RequestOptions] options
466
483
  # Request-specific options
467
484
  #
468
485
  # @yield [result, err] Result & error if block supplied
469
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
486
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] parsed result object
470
487
  # @yieldparam err [StandardError] error object if request failed
471
488
  #
472
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
489
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::FilterSet]
473
490
  #
474
491
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
475
492
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
476
493
  # @raise [Google::Apis::AuthorizationError] Authorization is required
477
- def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, fields: nil, quota_user: 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
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
483
498
  command.params['accountId'] = account_id unless account_id.nil?
484
- command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
485
- command.query['fields'] = fields unless fields.nil?
499
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
486
500
  command.query['quotaUser'] = quota_user unless quota_user.nil?
501
+ command.query['fields'] = fields unless fields.nil?
487
502
  execute_or_queue_command(command, &block)
488
503
  end
489
504
 
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
498
- # @param [String] fields
499
- # Selector specifying which fields to include in a partial response.
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.
500
518
  # @param [String] quota_user
501
519
  # Available to use for quota purposes for server-side applications. Can be any
502
520
  # arbitrary string assigned to a user, but should not exceed 40 characters.
521
+ # @param [String] fields
522
+ # Selector specifying which fields to include in a partial response.
503
523
  # @param [Google::Apis::RequestOptions] options
504
524
  # Request-specific options
505
525
  #
506
526
  # @yield [result, err] Result & error if block supplied
507
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
527
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse] parsed result object
508
528
  # @yieldparam err [StandardError] error object if request failed
509
529
  #
510
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
530
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse]
511
531
  #
512
532
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
513
533
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
514
534
  # @raise [Google::Apis::AuthorizationError] Authorization is required
515
- def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, fields: nil, quota_user: 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
519
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
520
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
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
521
539
  command.params['accountId'] = account_id unless account_id.nil?
522
- command.params['creativeId'] = creative_id unless creative_id.nil?
523
- command.query['fields'] = fields unless fields.nil?
540
+ command.query['pageToken'] = page_token unless page_token.nil?
541
+ command.query['pageSize'] = page_size unless page_size.nil?
524
542
  command.query['quotaUser'] = quota_user unless quota_user.nil?
543
+ command.query['fields'] = fields unless fields.nil?
525
544
  execute_or_queue_command(command, &block)
526
545
  end
527
546
 
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
539
- # @param [String] fields
540
- # Selector specifying which fields to include in a partial response.
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.
541
555
  # @param [String] quota_user
542
556
  # Available to use for quota purposes for server-side applications. Can be any
543
557
  # arbitrary string assigned to a user, but should not exceed 40 characters.
558
+ # @param [String] fields
559
+ # Selector specifying which fields to include in a partial response.
544
560
  # @param [Google::Apis::RequestOptions] options
545
561
  # Request-specific options
546
562
  #
547
563
  # @yield [result, err] Result & error if block supplied
548
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
564
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] parsed result object
549
565
  # @yieldparam err [StandardError] error object if request failed
550
566
  #
551
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
567
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::FilterSet]
552
568
  #
553
569
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
554
570
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
555
571
  # @raise [Google::Apis::AuthorizationError] Authorization is required
556
- def watch_creative(account_id, creative_id, watch_creative_request_object = nil, fields: nil, quota_user: 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
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
562
578
  command.params['accountId'] = account_id unless account_id.nil?
563
- command.params['creativeId'] = creative_id unless creative_id.nil?
564
- command.query['fields'] = fields unless fields.nil?
579
+ command.query['isTransient'] = is_transient unless is_transient.nil?
565
580
  command.query['quotaUser'] = quota_user unless quota_user.nil?
581
+ command.query['fields'] = fields unless fields.nil?
566
582
  execute_or_queue_command(command, &block)
567
583
  end
568
584
 
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.
574
- # @param [String] fields
575
- # Selector specifying which fields to include in a partial response.
576
- # @param [String] quota_user
577
- # Available to use for quota purposes for server-side applications. Can be any
578
- # arbitrary string assigned to a user, but should not exceed 40 characters.
579
- # @param [Google::Apis::RequestOptions] options
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
597
+ # 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.
601
+ # @param [String] quota_user
602
+ # Available to use for quota purposes for server-side applications. Can be any
603
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
604
+ # @param [String] fields
605
+ # Selector specifying which fields to include in a partial response.
606
+ # @param [Google::Apis::RequestOptions] options
580
607
  # Request-specific options
581
608
  #
582
609
  # @yield [result, err] Result & error if block supplied
583
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
610
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse] parsed result object
584
611
  # @yieldparam err [StandardError] error object if request failed
585
612
  #
586
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
613
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse]
587
614
  #
588
615
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
589
616
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
590
617
  # @raise [Google::Apis::AuthorizationError] Authorization is required
591
- def get_account_creative(account_id, creative_id, fields: nil, quota_user: 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
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
595
622
  command.params['accountId'] = account_id unless account_id.nil?
596
- command.params['creativeId'] = creative_id unless creative_id.nil?
597
- command.query['fields'] = fields unless fields.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?
598
626
  command.query['quotaUser'] = quota_user unless quota_user.nil?
627
+ command.query['fields'] = fields unless fields.nil?
599
628
  execute_or_queue_command(command, &block)
600
629
  end
601
630
 
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
607
- # method.
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
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).
643
+ # @param [String] page_token
644
+ # A token identifying a page of results the server should return.
645
+ # Typically, this is the value of
646
+ # ListCreativeStatusBreakdownByCreativeResponse.nextPageToken
647
+ # returned from the previous call to the
648
+ # accounts.filterSets.filteredBids.creatives.list
612
649
  # method.
613
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
650
+ # @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.
653
+ # @param [String] quota_user
654
+ # Available to use for quota purposes for server-side applications. Can be any
655
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
614
656
  # @param [String] fields
615
657
  # Selector specifying which fields to include in a partial response.
658
+ # @param [Google::Apis::RequestOptions] options
659
+ # Request-specific options
660
+ #
661
+ # @yield [result, err] Result & error if block supplied
662
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse] parsed result object
663
+ # @yieldparam err [StandardError] error object if request failed
664
+ #
665
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse]
666
+ #
667
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
668
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
669
+ # @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
674
+ 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
+ command.query['pageToken'] = page_token unless page_token.nil?
678
+ command.query['pageSize'] = page_size unless page_size.nil?
679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
680
+ command.query['fields'] = fields unless fields.nil?
681
+ execute_or_queue_command(command, &block)
682
+ end
683
+
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).
696
+ # @param [String] creative_id
697
+ # The creative ID for which to retrieve a breakdown by detail.
698
+ # @param [String] page_token
699
+ # A token identifying a page of results the server should return.
700
+ # 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.
705
+ # @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.
616
708
  # @param [String] quota_user
617
709
  # Available to use for quota purposes for server-side applications. Can be any
618
710
  # arbitrary string assigned to a user, but should not exceed 40 characters.
711
+ # @param [String] fields
712
+ # Selector specifying which fields to include in a partial response.
619
713
  # @param [Google::Apis::RequestOptions] options
620
714
  # Request-specific options
621
715
  #
622
716
  # @yield [result, err] Result & error if block supplied
623
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
717
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusAndCreativeBreakdownByDetailResponse] parsed result object
624
718
  # @yieldparam err [StandardError] error object if request failed
625
719
  #
626
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
720
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusAndCreativeBreakdownByDetailResponse]
627
721
  #
628
722
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629
723
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630
724
  # @raise [Google::Apis::AuthorizationError] Authorization is required
631
- def update_account_creative(account_id, creative_id, creative_object = nil, fields: nil, quota_user: 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
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
637
729
  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?
638
732
  command.params['creativeId'] = creative_id unless creative_id.nil?
639
- command.query['fields'] = fields unless fields.nil?
733
+ command.query['pageToken'] = page_token unless page_token.nil?
734
+ command.query['pageSize'] = page_size unless page_size.nil?
640
735
  command.query['quotaUser'] = quota_user unless quota_user.nil?
736
+ command.query['fields'] = fields unless fields.nil?
641
737
  execute_or_queue_command(command, &block)
642
738
  end
643
739
 
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.
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).
648
751
  # @param [String] page_token
649
752
  # A token identifying a page of results the server should return.
650
753
  # Typically, this is the value of
651
- # ListCreativesResponse.next_page_token
652
- # returned from the previous call to 'ListCreatives' method.
754
+ # ListCreativeStatusBreakdownByDetailResponse.nextPageToken
755
+ # returned from the previous call to the
756
+ # accounts.filterSets.filteredBids.details.list
757
+ # method.
653
758
  # @param [Fixnum] page_size
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'
674
- # @param [String] fields
675
- # Selector specifying which fields to include in a partial response.
759
+ # Requested page size. The server may return fewer than requested.
760
+ # If unspecified, the server will pick an appropriate default.
676
761
  # @param [String] quota_user
677
762
  # Available to use for quota purposes for server-side applications. Can be any
678
763
  # arbitrary string assigned to a user, but should not exceed 40 characters.
764
+ # @param [String] fields
765
+ # Selector specifying which fields to include in a partial response.
679
766
  # @param [Google::Apis::RequestOptions] options
680
767
  # Request-specific options
681
768
  #
682
769
  # @yield [result, err] Result & error if block supplied
683
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
770
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse] parsed result object
684
771
  # @yieldparam err [StandardError] error object if request failed
685
772
  #
686
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
773
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse]
687
774
  #
688
775
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
689
776
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
690
777
  # @raise [Google::Apis::AuthorizationError] Authorization is required
691
- def list_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: 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
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
695
782
  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?
696
785
  command.query['pageToken'] = page_token unless page_token.nil?
697
786
  command.query['pageSize'] = page_size unless page_size.nil?
698
- command.query['query'] = query unless query.nil?
699
- command.query['fields'] = fields unless fields.nil?
700
787
  command.query['quotaUser'] = quota_user unless quota_user.nil?
788
+ command.query['fields'] = fields unless fields.nil?
701
789
  execute_or_queue_command(command, &block)
702
790
  end
703
791
 
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.
708
- # @param [String] creative_id
709
- # The creative ID to list the associations from.
710
- # Specify "-" to list all creatives under the above account.
711
- # @param [String] query
712
- # An optional query string to filter deal associations. If no filter is
713
- # specified, all associations will be returned.
714
- # Supported queries are:
715
- # <ul>
716
- # <li>accountId=<i>account_id_string</i>
717
- # <li>creativeId=<i>creative_id_string</i>
718
- # <li>dealsId=<i>deals_id_string</i>
719
- # <li>dealsStatus:`approved, conditionally_approved, disapproved,
720
- # not_checked`
721
- # <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
722
- # not_checked`
723
- # </ul>
724
- # Example: 'dealsId=12345 AND dealsStatus:disapproved'
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.
725
799
  # @param [String] page_token
726
800
  # A token identifying a page of results the server should return.
727
801
  # Typically, this is the value of
728
- # ListDealAssociationsResponse.next_page_token
729
- # returned from the previous call to 'ListDealAssociations' method.
802
+ # ListFilteredImpressionsResponse.nextPageToken
803
+ # returned from the previous call to the
804
+ # accounts.filterSets.filteredImpressions.list
805
+ # method.
730
806
  # @param [Fixnum] page_size
731
- # Requested page size. Server may return fewer associations than requested.
732
- # If unspecified, server will pick an appropriate default.
733
- # @param [String] fields
734
- # Selector specifying which fields to include in a partial response.
807
+ # Requested page size. The server may return fewer than requested.
808
+ # If unspecified, the server will pick an appropriate default.
735
809
  # @param [String] quota_user
736
810
  # Available to use for quota purposes for server-side applications. Can be any
737
811
  # arbitrary string assigned to a user, but should not exceed 40 characters.
812
+ # @param [String] fields
813
+ # Selector specifying which fields to include in a partial response.
738
814
  # @param [Google::Apis::RequestOptions] options
739
815
  # Request-specific options
740
816
  #
741
817
  # @yield [result, err] Result & error if block supplied
742
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
818
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredImpressionsResponse] parsed result object
743
819
  # @yieldparam err [StandardError] error object if request failed
744
820
  #
745
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
821
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredImpressionsResponse]
746
822
  #
747
823
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
748
824
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
749
825
  # @raise [Google::Apis::AuthorizationError] Authorization is required
750
- def list_account_creative_deal_associations(account_id, creative_id, query: nil, page_token: nil, page_size: nil, fields: nil, quota_user: 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
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
754
830
  command.params['accountId'] = account_id unless account_id.nil?
755
- command.params['creativeId'] = creative_id unless creative_id.nil?
756
- command.query['query'] = query unless query.nil?
831
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
757
832
  command.query['pageToken'] = page_token unless page_token.nil?
758
833
  command.query['pageSize'] = page_size unless page_size.nil?
759
- command.query['fields'] = fields unless fields.nil?
760
834
  command.query['quotaUser'] = quota_user unless quota_user.nil?
835
+ command.query['fields'] = fields unless fields.nil?
761
836
  execute_or_queue_command(command, &block)
762
837
  end
763
838
 
764
- # Associate an existing deal with 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::AddDealAssociationRequest] add_deal_association_request_object
770
- # @param [String] fields
771
- # Selector specifying which fields to include in a partial response.
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.
772
855
  # @param [String] quota_user
773
856
  # Available to use for quota purposes for server-side applications. Can be any
774
857
  # arbitrary string assigned to a user, but should not exceed 40 characters.
858
+ # @param [String] fields
859
+ # Selector specifying which fields to include in a partial response.
775
860
  # @param [Google::Apis::RequestOptions] options
776
861
  # Request-specific options
777
862
  #
778
863
  # @yield [result, err] Result & error if block supplied
779
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
864
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse] parsed result object
780
865
  # @yieldparam err [StandardError] error object if request failed
781
866
  #
782
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
867
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse]
783
868
  #
784
869
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
785
870
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
786
871
  # @raise [Google::Apis::AuthorizationError] Authorization is required
787
- def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
788
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
789
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
790
- command.request_object = add_deal_association_request_object
791
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
792
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
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
793
876
  command.params['accountId'] = account_id unless account_id.nil?
794
- command.params['creativeId'] = creative_id unless creative_id.nil?
795
- command.query['fields'] = fields unless fields.nil?
877
+ 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?
796
880
  command.query['quotaUser'] = quota_user unless quota_user.nil?
881
+ command.query['fields'] = fields unless fields.nil?
797
882
  execute_or_queue_command(command, &block)
798
883
  end
799
884
 
800
- # Remove the association between a deal and 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::RemoveDealAssociationRequest] remove_deal_association_request_object
885
+ # Lists all metrics that are measured in terms of number of impressions.
886
+ # @param [Fixnum] account_id
887
+ # Account ID of the buyer.
888
+ # @param [Fixnum] filter_set_id
889
+ # The ID of the filter set to apply.
890
+ # @param [String] page_token
891
+ # A token identifying a page of results the server should return.
892
+ # Typically, this is the value of
893
+ # ListImpressionMetricsResponse.nextPageToken
894
+ # returned from the previous call to the
895
+ # accounts.filterSets.impressionMetrics.list
896
+ # method.
897
+ # @param [Fixnum] page_size
898
+ # Requested page size. The server may return fewer than requested.
899
+ # If unspecified, the server will pick an appropriate default.
900
+ # @param [String] quota_user
901
+ # Available to use for quota purposes for server-side applications. Can be any
902
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
806
903
  # @param [String] fields
807
904
  # Selector specifying which fields to include in a partial response.
905
+ # @param [Google::Apis::RequestOptions] options
906
+ # Request-specific options
907
+ #
908
+ # @yield [result, err] Result & error if block supplied
909
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse] parsed result object
910
+ # @yieldparam err [StandardError] error object if request failed
911
+ #
912
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse]
913
+ #
914
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
915
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
916
+ # @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
921
+ command.params['accountId'] = account_id unless account_id.nil?
922
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
923
+ command.query['pageToken'] = page_token unless page_token.nil?
924
+ command.query['pageSize'] = page_size unless page_size.nil?
925
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
926
+ command.query['fields'] = fields unless fields.nil?
927
+ execute_or_queue_command(command, &block)
928
+ end
929
+
930
+ # Lists all metrics that are measured in terms of number of bids.
931
+ # @param [Fixnum] account_id
932
+ # Account ID of the buyer.
933
+ # @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.
808
945
  # @param [String] quota_user
809
946
  # Available to use for quota purposes for server-side applications. Can be any
810
947
  # arbitrary string assigned to a user, but should not exceed 40 characters.
948
+ # @param [String] fields
949
+ # Selector specifying which fields to include in a partial response.
811
950
  # @param [Google::Apis::RequestOptions] options
812
951
  # Request-specific options
813
952
  #
814
953
  # @yield [result, err] Result & error if block supplied
815
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
954
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse] parsed result object
816
955
  # @yieldparam err [StandardError] error object if request failed
817
956
  #
818
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
957
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse]
819
958
  #
820
959
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
821
960
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
822
961
  # @raise [Google::Apis::AuthorizationError] Authorization is required
823
- def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
824
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
825
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
826
- command.request_object = remove_deal_association_request_object
827
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
828
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
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
829
966
  command.params['accountId'] = account_id unless account_id.nil?
830
- command.params['creativeId'] = creative_id unless creative_id.nil?
831
- command.query['fields'] = fields unless fields.nil?
967
+ 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?
832
970
  command.query['quotaUser'] = quota_user unless quota_user.nil?
971
+ command.query['fields'] = fields unless fields.nil?
972
+ execute_or_queue_command(command, &block)
973
+ end
974
+
975
+ # List all errors that occurred in bid responses, with the number of bid
976
+ # responses affected for each reason.
977
+ # @param [Fixnum] account_id
978
+ # 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.
991
+ # @param [String] quota_user
992
+ # Available to use for quota purposes for server-side applications. Can be any
993
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
994
+ # @param [String] fields
995
+ # Selector specifying which fields to include in a partial response.
996
+ # @param [Google::Apis::RequestOptions] options
997
+ # Request-specific options
998
+ #
999
+ # @yield [result, err] Result & error if block supplied
1000
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse] parsed result object
1001
+ # @yieldparam err [StandardError] error object if request failed
1002
+ #
1003
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse]
1004
+ #
1005
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1006
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1007
+ # @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
1012
+ 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?
1016
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1017
+ command.query['fields'] = fields unless fields.nil?
1018
+ execute_or_queue_command(command, &block)
1019
+ end
1020
+
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.
1023
+ # @param [Fixnum] account_id
1024
+ # Account ID of the buyer.
1025
+ # @param [Fixnum] filter_set_id
1026
+ # The ID of the filter set to apply.
1027
+ # @param [String] page_token
1028
+ # A token identifying a page of results the server should return.
1029
+ # Typically, this is the value of
1030
+ # ListBidResponsesWithoutBidsResponse.nextPageToken
1031
+ # returned from the previous call to the
1032
+ # accounts.filterSets.bidResponsesWithoutBids.list
1033
+ # method.
1034
+ # @param [Fixnum] page_size
1035
+ # Requested page size. The server may return fewer than requested.
1036
+ # If unspecified, the server will pick an appropriate default.
1037
+ # @param [String] quota_user
1038
+ # Available to use for quota purposes for server-side applications. Can be any
1039
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1040
+ # @param [String] fields
1041
+ # Selector specifying which fields to include in a partial response.
1042
+ # @param [Google::Apis::RequestOptions] options
1043
+ # Request-specific options
1044
+ #
1045
+ # @yield [result, err] Result & error if block supplied
1046
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse] parsed result object
1047
+ # @yieldparam err [StandardError] error object if request failed
1048
+ #
1049
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse]
1050
+ #
1051
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1052
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1053
+ # @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
1058
+ command.params['accountId'] = account_id unless account_id.nil?
1059
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1060
+ command.query['pageToken'] = page_token unless page_token.nil?
1061
+ command.query['pageSize'] = page_size unless page_size.nil?
1062
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1063
+ command.query['fields'] = fields unless fields.nil?
1064
+ execute_or_queue_command(command, &block)
1065
+ end
1066
+
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.
1069
+ # @param [Fixnum] account_id
1070
+ # Account ID of the buyer.
1071
+ # @param [Fixnum] filter_set_id
1072
+ # The ID of the filter set to apply.
1073
+ # @param [String] page_token
1074
+ # A token identifying a page of results the server should return.
1075
+ # Typically, this is the value of
1076
+ # ListFilteredBidRequestsResponse.nextPageToken
1077
+ # returned from the previous call to the
1078
+ # accounts.filterSets.filteredBidRequests.list
1079
+ # method.
1080
+ # @param [Fixnum] page_size
1081
+ # Requested page size. The server may return fewer than requested.
1082
+ # If unspecified, the server will pick an appropriate default.
1083
+ # @param [String] quota_user
1084
+ # Available to use for quota purposes for server-side applications. Can be any
1085
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1086
+ # @param [String] fields
1087
+ # Selector specifying which fields to include in a partial response.
1088
+ # @param [Google::Apis::RequestOptions] options
1089
+ # Request-specific options
1090
+ #
1091
+ # @yield [result, err] Result & error if block supplied
1092
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse] parsed result object
1093
+ # @yieldparam err [StandardError] error object if request failed
1094
+ #
1095
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse]
1096
+ #
1097
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1098
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1099
+ # @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
1104
+ command.params['accountId'] = account_id unless account_id.nil?
1105
+ command.params['filterSetId'] = filter_set_id unless filter_set_id.nil?
1106
+ command.query['pageToken'] = page_token unless page_token.nil?
1107
+ command.query['pageSize'] = page_size unless page_size.nil?
1108
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1109
+ command.query['fields'] = fields unless fields.nil?
1110
+ execute_or_queue_command(command, &block)
1111
+ end
1112
+
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.
1147
+ # @param [Fixnum] account_id
1148
+ # Unique numerical account ID of the sponsor buyer to list the clients for.
1149
+ # @param [String] page_token
1150
+ # A token identifying a page of results the server should return.
1151
+ # Typically, this is the value of
1152
+ # ListClientsResponse.nextPageToken
1153
+ # returned from the previous call to the
1154
+ # accounts.clients.list method.
1155
+ # @param [Fixnum] page_size
1156
+ # Requested page size. The server may return fewer clients than requested.
1157
+ # If unspecified, the server will pick an appropriate default.
1158
+ # @param [String] quota_user
1159
+ # Available to use for quota purposes for server-side applications. Can be any
1160
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1161
+ # @param [String] fields
1162
+ # Selector specifying which fields to include in a partial response.
1163
+ # @param [Google::Apis::RequestOptions] options
1164
+ # Request-specific options
1165
+ #
1166
+ # @yield [result, err] Result & error if block supplied
1167
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
1168
+ # @yieldparam err [StandardError] error object if request failed
1169
+ #
1170
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
1171
+ #
1172
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1173
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1174
+ # @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
1179
+ command.params['accountId'] = account_id unless account_id.nil?
1180
+ command.query['pageToken'] = page_token unless page_token.nil?
1181
+ command.query['pageSize'] = page_size unless page_size.nil?
1182
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1183
+ command.query['fields'] = fields unless fields.nil?
1184
+ execute_or_queue_command(command, &block)
1185
+ end
1186
+
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.
1225
+ # @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
1229
+ # @param [String] quota_user
1230
+ # Available to use for quota purposes for server-side applications. Can be any
1231
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1232
+ # @param [String] fields
1233
+ # Selector specifying which fields to include in a partial response.
1234
+ # @param [Google::Apis::RequestOptions] options
1235
+ # Request-specific options
1236
+ #
1237
+ # @yield [result, err] Result & error if block supplied
1238
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
1239
+ # @yieldparam err [StandardError] error object if request failed
1240
+ #
1241
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
1242
+ #
1243
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1244
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1245
+ # @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
1252
+ command.params['accountId'] = account_id unless account_id.nil?
1253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1254
+ command.query['fields'] = fields unless fields.nil?
1255
+ execute_or_queue_command(command, &block)
1256
+ end
1257
+
1258
+ # Retrieves an existing client user invitation.
1259
+ # @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)
1266
+ # @param [String] quota_user
1267
+ # Available to use for quota purposes for server-side applications. Can be any
1268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1269
+ # @param [String] fields
1270
+ # Selector specifying which fields to include in a partial response.
1271
+ # @param [Google::Apis::RequestOptions] options
1272
+ # Request-specific options
1273
+ #
1274
+ # @yield [result, err] Result & error if block supplied
1275
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
1276
+ # @yieldparam err [StandardError] error object if request failed
1277
+ #
1278
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
1279
+ #
1280
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1281
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1282
+ # @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
1287
+ 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?
1290
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1291
+ command.query['fields'] = fields unless fields.nil?
1292
+ execute_or_queue_command(command, &block)
1293
+ end
1294
+
1295
+ # Lists all the client users invitations for a client
1296
+ # with a given account ID.
1297
+ # @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.
1309
+ # @param [String] page_token
1310
+ # A token identifying a page of results the server should return.
1311
+ # Typically, this is the value of
1312
+ # ListClientUserInvitationsResponse.nextPageToken
1313
+ # returned from the previous call to the
1314
+ # clients.invitations.list
1315
+ # method.
1316
+ # @param [String] quota_user
1317
+ # Available to use for quota purposes for server-side applications. Can be any
1318
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1319
+ # @param [String] fields
1320
+ # Selector specifying which fields to include in a partial response.
1321
+ # @param [Google::Apis::RequestOptions] options
1322
+ # Request-specific options
1323
+ #
1324
+ # @yield [result, err] Result & error if block supplied
1325
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
1326
+ # @yieldparam err [StandardError] error object if request failed
1327
+ #
1328
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
1329
+ #
1330
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1331
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1332
+ # @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
1337
+ 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?
1340
+ command.query['pageToken'] = page_token unless page_token.nil?
1341
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1342
+ command.query['fields'] = fields unless fields.nil?
1343
+ execute_or_queue_command(command, &block)
1344
+ end
1345
+
1346
+ # Creates and sends out an email invitation to access
1347
+ # an Ad Exchange client buyer account.
1348
+ # @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
1354
+ # @param [String] quota_user
1355
+ # Available to use for quota purposes for server-side applications. Can be any
1356
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1357
+ # @param [String] fields
1358
+ # Selector specifying which fields to include in a partial response.
1359
+ # @param [Google::Apis::RequestOptions] options
1360
+ # Request-specific options
1361
+ #
1362
+ # @yield [result, err] Result & error if block supplied
1363
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
1364
+ # @yieldparam err [StandardError] error object if request failed
1365
+ #
1366
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
1367
+ #
1368
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1369
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1370
+ # @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
1377
+ command.params['accountId'] = account_id unless account_id.nil?
1378
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
1379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1380
+ command.query['fields'] = fields unless fields.nil?
1381
+ execute_or_queue_command(command, &block)
1382
+ end
1383
+
1384
+ # Lists all the known client users for a specified
1385
+ # sponsor buyer account ID.
1386
+ # @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.
1398
+ # @param [String] page_token
1399
+ # A token identifying a page of results the server should return.
1400
+ # Typically, this is the value of
1401
+ # ListClientUsersResponse.nextPageToken
1402
+ # returned from the previous call to the
1403
+ # accounts.clients.users.list method.
1404
+ # @param [String] quota_user
1405
+ # Available to use for quota purposes for server-side applications. Can be any
1406
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1407
+ # @param [String] fields
1408
+ # Selector specifying which fields to include in a partial response.
1409
+ # @param [Google::Apis::RequestOptions] options
1410
+ # Request-specific options
1411
+ #
1412
+ # @yield [result, err] Result & error if block supplied
1413
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
1414
+ # @yieldparam err [StandardError] error object if request failed
1415
+ #
1416
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
1417
+ #
1418
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1419
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1420
+ # @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
1425
+ 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?
1428
+ command.query['pageToken'] = page_token unless page_token.nil?
1429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1430
+ command.query['fields'] = fields unless fields.nil?
1431
+ execute_or_queue_command(command, &block)
1432
+ end
1433
+
1434
+ # Retrieves an existing client user.
1435
+ # @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)
1442
+ # @param [String] quota_user
1443
+ # Available to use for quota purposes for server-side applications. Can be any
1444
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1445
+ # @param [String] fields
1446
+ # Selector specifying which fields to include in a partial response.
1447
+ # @param [Google::Apis::RequestOptions] options
1448
+ # Request-specific options
1449
+ #
1450
+ # @yield [result, err] Result & error if block supplied
1451
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
1452
+ # @yieldparam err [StandardError] error object if request failed
1453
+ #
1454
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
1455
+ #
1456
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1457
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1458
+ # @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
1463
+ 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?
1466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1467
+ command.query['fields'] = fields unless fields.nil?
1468
+ execute_or_queue_command(command, &block)
1469
+ end
1470
+
1471
+ # Updates an existing client user.
1472
+ # Only the user status can be changed on update.
1473
+ # @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
1481
+ # @param [String] quota_user
1482
+ # Available to use for quota purposes for server-side applications. Can be any
1483
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1484
+ # @param [String] fields
1485
+ # Selector specifying which fields to include in a partial response.
1486
+ # @param [Google::Apis::RequestOptions] options
1487
+ # Request-specific options
1488
+ #
1489
+ # @yield [result, err] Result & error if block supplied
1490
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
1491
+ # @yieldparam err [StandardError] error object if request failed
1492
+ #
1493
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
1494
+ #
1495
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1496
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1497
+ # @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
1504
+ 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?
1507
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1508
+ command.query['fields'] = fields unless fields.nil?
833
1509
  execute_or_queue_command(command, &block)
834
1510
  end
835
1511