lemboy-google-api-client 0.9.26

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