google-api-client 0.8.7 → 0.9.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  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 +21 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +6 -3
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +28 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +158 -150
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +872 -0
  15. data/api_names_out.yaml +20843 -0
  16. data/bin/generate-api +93 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1124 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +375 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +893 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +682 -0
  25. data/generated/google/apis/admin_directory_v1.rb +89 -0
  26. data/generated/google/apis/admin_directory_v1/classes.rb +2389 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +780 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +2805 -0
  29. data/generated/google/apis/admin_reports_v1.rb +38 -0
  30. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  31. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  32. data/generated/google/apis/admin_reports_v1/service.rb +341 -0
  33. data/generated/google/apis/adsense_v1_4.rb +38 -0
  34. data/generated/google/apis/adsense_v1_4/classes.rb +1279 -0
  35. data/generated/google/apis/adsense_v1_4/representations.rb +493 -0
  36. data/generated/google/apis/adsense_v1_4/service.rb +1752 -0
  37. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  38. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  39. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  40. data/generated/google/apis/adsensehost_v4_1/service.rb +1190 -0
  41. data/generated/google/apis/analytics_v3.rb +49 -0
  42. data/generated/google/apis/analytics_v3/classes.rb +5113 -0
  43. data/generated/google/apis/analytics_v3/representations.rb +1661 -0
  44. data/generated/google/apis/analytics_v3/service.rb +3600 -0
  45. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  46. data/generated/google/apis/androidenterprise_v1/classes.rb +1162 -0
  47. data/generated/google/apis/androidenterprise_v1/representations.rb +431 -0
  48. data/generated/google/apis/androidenterprise_v1/service.rb +1979 -0
  49. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +1374 -0
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +630 -0
  52. data/generated/google/apis/androidpublisher_v2/service.rb +2390 -0
  53. data/generated/google/apis/appsactivity_v1.rb +46 -0
  54. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  55. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  56. data/generated/google/apis/appsactivity_v1/service.rb +129 -0
  57. data/generated/google/apis/appstate_v1.rb +34 -0
  58. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  59. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  60. data/generated/google/apis/appstate_v1/service.rb +265 -0
  61. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  62. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  63. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  64. data/generated/google/apis/autoscaler_v1beta2/service.rb +488 -0
  65. data/generated/google/apis/bigquery_v2.rb +49 -0
  66. data/generated/google/apis/bigquery_v2/classes.rb +2255 -0
  67. data/generated/google/apis/bigquery_v2/representations.rb +754 -0
  68. data/generated/google/apis/bigquery_v2/service.rb +1003 -0
  69. data/generated/google/apis/blogger_v3.rb +37 -0
  70. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  71. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  72. data/generated/google/apis/blogger_v3/service.rb +1620 -0
  73. data/generated/google/apis/books_v1.rb +34 -0
  74. data/generated/google/apis/books_v1/classes.rb +3515 -0
  75. data/generated/google/apis/books_v1/representations.rb +1361 -0
  76. data/generated/google/apis/books_v1/service.rb +2170 -0
  77. data/generated/google/apis/calendar_v3.rb +37 -0
  78. data/generated/google/apis/calendar_v3/classes.rb +1702 -0
  79. data/generated/google/apis/calendar_v3/representations.rb +566 -0
  80. data/generated/google/apis/calendar_v3/service.rb +1943 -0
  81. data/generated/google/apis/civicinfo_v2.rb +31 -0
  82. data/generated/google/apis/civicinfo_v2/classes.rb +1057 -0
  83. data/generated/google/apis/civicinfo_v2/representations.rb +374 -0
  84. data/generated/google/apis/civicinfo_v2/service.rb +284 -0
  85. data/generated/google/apis/cloudmonitoring_v2beta2.rb +34 -0
  86. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  87. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  88. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +458 -0
  89. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  90. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +139 -0
  91. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +65 -0
  92. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +301 -0
  93. data/generated/google/apis/compute_v1.rb +49 -0
  94. data/generated/google/apis/compute_v1/classes.rb +6391 -0
  95. data/generated/google/apis/compute_v1/representations.rb +2209 -0
  96. data/generated/google/apis/compute_v1/service.rb +6352 -0
  97. data/generated/google/apis/container_v1beta1.rb +35 -0
  98. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  99. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  100. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  101. data/generated/google/apis/content_v2.rb +35 -0
  102. data/generated/google/apis/content_v2/classes.rb +3780 -0
  103. data/generated/google/apis/content_v2/representations.rb +1456 -0
  104. data/generated/google/apis/content_v2/service.rb +1706 -0
  105. data/generated/google/apis/coordinate_v1.rb +37 -0
  106. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  107. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  108. data/generated/google/apis/coordinate_v1/service.rb +687 -0
  109. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  110. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  111. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  112. data/generated/google/apis/customsearch_v1/service.rb +208 -0
  113. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  114. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  115. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  116. data/generated/google/apis/datastore_v1beta2/service.rb +300 -0
  117. data/generated/google/apis/deploymentmanager_v2beta2.rb +41 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +820 -0
  119. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +303 -0
  120. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +647 -0
  121. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  122. data/generated/google/apis/dfareporting_v2_1/classes.rb +10755 -0
  123. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +8775 -0
  125. data/generated/google/apis/discovery_v1.rb +32 -0
  126. data/generated/google/apis/discovery_v1/classes.rb +947 -0
  127. data/generated/google/apis/discovery_v1/representations.rb +355 -0
  128. data/generated/google/apis/discovery_v1/service.rb +144 -0
  129. data/generated/google/apis/dns_v1.rb +41 -0
  130. data/generated/google/apis/dns_v1/classes.rb +406 -0
  131. data/generated/google/apis/dns_v1/representations.rb +151 -0
  132. data/generated/google/apis/dns_v1/service.rb +460 -0
  133. data/{spec/google/api_client/request_spec.rb → generated/google/apis/doubleclickbidmanager_v1.rb} +15 -13
  134. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +709 -0
  135. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +297 -0
  136. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +349 -0
  137. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  138. data/generated/google/apis/doubleclicksearch_v2/classes.rb +947 -0
  139. data/generated/google/apis/doubleclicksearch_v2/representations.rb +315 -0
  140. data/generated/google/apis/doubleclicksearch_v2/service.rb +490 -0
  141. data/generated/google/apis/drive_v2.rb +55 -0
  142. data/generated/google/apis/drive_v2/classes.rb +2519 -0
  143. data/generated/google/apis/drive_v2/representations.rb +781 -0
  144. data/generated/google/apis/drive_v2/service.rb +2685 -0
  145. data/generated/google/apis/fitness_v1.rb +49 -0
  146. data/generated/google/apis/fitness_v1/classes.rb +809 -0
  147. data/generated/google/apis/fitness_v1/representations.rb +295 -0
  148. data/generated/google/apis/fitness_v1/service.rb +684 -0
  149. data/generated/google/apis/fusiontables_v2.rb +37 -0
  150. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  151. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  152. data/generated/google/apis/fusiontables_v2/service.rb +1496 -0
  153. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  154. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  155. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  156. data/generated/google/apis/games_configuration_v1configuration/service.rb +578 -0
  157. data/generated/google/apis/games_v1.rb +40 -0
  158. data/generated/google/apis/games_v1/classes.rb +4578 -0
  159. data/generated/google/apis/games_v1/representations.rb +1570 -0
  160. data/generated/google/apis/games_v1/service.rb +2306 -0
  161. data/generated/google/apis/gan_v1beta1.rb +31 -0
  162. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  163. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  164. data/generated/google/apis/gan_v1beta1/service.rb +692 -0
  165. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  166. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  167. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  168. data/generated/google/apis/genomics_v1beta2/service.rb +2356 -0
  169. data/generated/google/apis/gmail_v1.rb +49 -0
  170. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  171. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  172. data/generated/google/apis/gmail_v1/service.rb +1502 -0
  173. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  174. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  175. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  176. data/generated/google/apis/groupsmigration_v1/service.rb +111 -0
  177. data/generated/google/apis/groupssettings_v1.rb +34 -0
  178. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  179. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  180. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  181. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  182. data/generated/google/apis/identitytoolkit_v3/classes.rb +1229 -0
  183. data/generated/google/apis/identitytoolkit_v3/representations.rb +422 -0
  184. data/generated/google/apis/identitytoolkit_v3/service.rb +491 -0
  185. data/generated/google/apis/licensing_v1.rb +34 -0
  186. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  187. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  188. data/generated/google/apis/licensing_v1/service.rb +376 -0
  189. data/generated/google/apis/logging_v1beta3.rb +35 -0
  190. data/generated/google/apis/logging_v1beta3/classes.rb +505 -0
  191. data/generated/google/apis/logging_v1beta3/representations.rb +222 -0
  192. data/generated/google/apis/logging_v1beta3/service.rb +670 -0
  193. data/generated/google/apis/manager_v1beta2.rb +50 -0
  194. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  195. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  196. data/generated/google/apis/manager_v1beta2/service.rb +380 -0
  197. data/generated/google/apis/mapsengine_v1.rb +38 -0
  198. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  199. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  200. data/generated/google/apis/mapsengine_v1/service.rb +3465 -0
  201. data/generated/google/apis/mirror_v1.rb +37 -0
  202. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  203. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  204. data/generated/google/apis/mirror_v1/service.rb +1001 -0
  205. data/generated/google/apis/oauth2_v2.rb +43 -0
  206. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  207. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  208. data/generated/google/apis/oauth2_v2/service.rb +203 -0
  209. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  210. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  211. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  212. data/generated/google/apis/pagespeedonline_v2/service.rb +120 -0
  213. data/generated/google/apis/plus_domains_v1.rb +61 -0
  214. data/generated/google/apis/plus_domains_v1/classes.rb +2402 -0
  215. data/generated/google/apis/plus_domains_v1/representations.rb +873 -0
  216. data/generated/google/apis/plus_domains_v1/service.rb +924 -0
  217. data/generated/google/apis/plus_v1.rb +43 -0
  218. data/generated/google/apis/plus_v1/classes.rb +2384 -0
  219. data/generated/google/apis/plus_v1/representations.rb +812 -0
  220. data/generated/google/apis/plus_v1/service.rb +616 -0
  221. data/generated/google/apis/prediction_v1_6.rb +44 -0
  222. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  223. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  224. data/generated/google/apis/prediction_v1_6/service.rb +388 -0
  225. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  226. data/generated/google/apis/pubsub_v1beta2/classes.rb +824 -0
  227. data/generated/google/apis/pubsub_v1beta2/representations.rb +366 -0
  228. data/generated/google/apis/pubsub_v1beta2/service.rb +778 -0
  229. data/generated/google/apis/qpx_express_v1.rb +31 -0
  230. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  231. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  232. data/generated/google/apis/qpx_express_v1/service.rb +101 -0
  233. data/generated/google/apis/replicapool_v1beta2.rb +41 -0
  234. data/generated/google/apis/replicapool_v1beta2/classes.rb +621 -0
  235. data/generated/google/apis/replicapool_v1beta2/representations.rb +235 -0
  236. data/generated/google/apis/replicapool_v1beta2/service.rb +620 -0
  237. data/generated/google/apis/replicapoolupdater_v1beta1.rb +41 -0
  238. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +682 -0
  239. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +247 -0
  240. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +472 -0
  241. data/generated/google/apis/reseller_v1.rb +37 -0
  242. data/generated/google/apis/reseller_v1/classes.rb +502 -0
  243. data/generated/google/apis/reseller_v1/representations.rb +199 -0
  244. data/generated/google/apis/reseller_v1/service.rb +637 -0
  245. data/generated/google/apis/resourceviews_v1beta2.rb +47 -0
  246. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  247. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  248. data/generated/google/apis/resourceviews_v1beta2/service.rb +574 -0
  249. data/generated/google/apis/site_verification_v1.rb +37 -0
  250. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  251. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  252. data/generated/google/apis/site_verification_v1/service.rb +322 -0
  253. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  254. data/generated/google/apis/sqladmin_v1beta4/classes.rb +1817 -0
  255. data/generated/google/apis/sqladmin_v1beta4/representations.rb +688 -0
  256. data/generated/google/apis/sqladmin_v1beta4/service.rb +1534 -0
  257. data/generated/google/apis/storage_v1.rb +43 -0
  258. data/generated/google/apis/storage_v1/classes.rb +1177 -0
  259. data/generated/google/apis/storage_v1/representations.rb +427 -0
  260. data/generated/google/apis/storage_v1/service.rb +1920 -0
  261. data/generated/google/apis/tagmanager_v1.rb +52 -0
  262. data/generated/google/apis/tagmanager_v1/classes.rb +1226 -0
  263. data/generated/google/apis/tagmanager_v1/representations.rb +461 -0
  264. data/generated/google/apis/tagmanager_v1/service.rb +1978 -0
  265. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  266. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  267. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  268. data/generated/google/apis/taskqueue_v1beta2/service.rb +416 -0
  269. data/generated/google/apis/tasks_v1.rb +37 -0
  270. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  271. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  272. data/generated/google/apis/tasks_v1/service.rb +657 -0
  273. data/generated/google/apis/translate_v2.rb +31 -0
  274. data/generated/google/apis/translate_v2/classes.rb +168 -0
  275. data/generated/google/apis/translate_v2/representations.rb +109 -0
  276. data/generated/google/apis/translate_v2/service.rb +185 -0
  277. data/generated/google/apis/urlshortener_v1.rb +34 -0
  278. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  279. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  280. data/generated/google/apis/urlshortener_v1/service.rb +179 -0
  281. data/generated/google/apis/webmasters_v3.rb +37 -0
  282. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  283. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  284. data/generated/google/apis/webmasters_v3/service.rb +587 -0
  285. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  286. data/generated/google/apis/youtube_analytics_v1/classes.rb +540 -0
  287. data/generated/google/apis/youtube_analytics_v1/representations.rb +242 -0
  288. data/generated/google/apis/youtube_analytics_v1/service.rb +567 -0
  289. data/generated/google/apis/youtube_v3.rb +49 -0
  290. data/generated/google/apis/youtube_v3/classes.rb +7225 -0
  291. data/generated/google/apis/youtube_v3/representations.rb +2529 -0
  292. data/generated/google/apis/youtube_v3/service.rb +4051 -0
  293. data/google-api-client.gemspec +27 -39
  294. data/lib/google/api_client/auth/storage.rb +3 -2
  295. data/lib/google/api_client/auth/storages/file_store.rb +1 -3
  296. data/lib/google/api_client/auth/storages/redis_store.rb +6 -2
  297. data/lib/google/apis.rb +48 -0
  298. data/lib/google/apis/core/api_command.rb +128 -0
  299. data/lib/google/apis/core/base_service.rb +314 -0
  300. data/lib/google/apis/core/batch.rb +222 -0
  301. data/lib/google/apis/core/download.rb +94 -0
  302. data/lib/google/apis/core/hashable.rb +44 -0
  303. data/lib/google/apis/core/http_command.rb +275 -0
  304. data/lib/google/apis/core/json_representation.rb +122 -0
  305. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  306. data/lib/google/apis/core/multipart.rb +173 -0
  307. data/lib/google/apis/core/upload.rb +275 -0
  308. data/lib/google/{api_client → apis}/errors.rb +32 -28
  309. data/lib/google/apis/generator.rb +70 -0
  310. data/lib/google/apis/generator/annotator.rb +271 -0
  311. data/lib/google/apis/generator/helpers.rb +74 -0
  312. data/lib/google/apis/generator/model.rb +130 -0
  313. data/lib/google/apis/generator/template.rb +124 -0
  314. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  315. data/lib/google/apis/generator/templates/_method.tmpl +90 -0
  316. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  317. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  318. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  319. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  320. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  321. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  322. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  323. data/lib/google/apis/options.rb +79 -0
  324. data/lib/google/apis/version.rb +39 -0
  325. data/rakelib/metrics.rake +22 -0
  326. data/rakelib/rubocop.rake +10 -0
  327. data/rakelib/spec.rake +11 -0
  328. data/rakelib/yard.rake +11 -0
  329. data/samples/calendar/calendar.rb +43 -0
  330. data/samples/drive/drive.rb +40 -0
  331. data/samples/pubsub/pubsub.rb +52 -0
  332. data/{lib/google/api_client/discovery.rb → samples/translate/translate.rb} +14 -5
  333. data/script/generate +79 -0
  334. data/script/package +8 -0
  335. data/script/release +15 -0
  336. data/spec/fixtures/files/api_names.yaml +3 -0
  337. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  338. data/spec/fixtures/files/client_secrets.json +1 -0
  339. data/spec/fixtures/files/test.blah +1 -0
  340. data/spec/fixtures/files/test.txt +1 -0
  341. data/spec/fixtures/files/test_api.json +440 -0
  342. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  343. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  344. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  345. data/spec/google/apis/core/api_command_spec.rb +170 -0
  346. data/spec/google/apis/core/batch_spec.rb +128 -0
  347. data/spec/google/apis/core/download_spec.rb +90 -0
  348. data/spec/google/apis/core/hashable_spec.rb +60 -0
  349. data/spec/google/apis/core/http_command_spec.rb +238 -0
  350. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  351. data/spec/google/apis/core/service_spec.rb +247 -0
  352. data/spec/google/apis/core/upload_spec.rb +238 -0
  353. data/{lib/google/api_client/service_account.rb → spec/google/apis/generated_spec.rb} +14 -8
  354. data/spec/google/apis/generator/generator_spec.rb +272 -0
  355. data/spec/google/apis/logging_spec.rb +45 -0
  356. data/spec/google/apis/options_spec.rb +40 -0
  357. data/spec/integration_tests/drive_spec.rb +35 -0
  358. data/spec/integration_tests/pubsub_spec.rb +48 -0
  359. data/spec/integration_tests/url_shortener_spec.rb +31 -0
  360. data/spec/spec_helper.rb +102 -46
  361. metadata +433 -178
  362. data/lib/compat/multi_json.rb +0 -19
  363. data/lib/google/api_client.rb +0 -750
  364. data/lib/google/api_client/auth/file_storage.rb +0 -59
  365. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  366. data/lib/google/api_client/auth/key_utils.rb +0 -93
  367. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  368. data/lib/google/api_client/batch.rb +0 -326
  369. data/lib/google/api_client/charset.rb +0 -33
  370. data/lib/google/api_client/discovery/api.rb +0 -310
  371. data/lib/google/api_client/discovery/media.rb +0 -77
  372. data/lib/google/api_client/discovery/method.rb +0 -363
  373. data/lib/google/api_client/discovery/resource.rb +0 -156
  374. data/lib/google/api_client/discovery/schema.rb +0 -117
  375. data/lib/google/api_client/environment.rb +0 -42
  376. data/lib/google/api_client/gzip.rb +0 -28
  377. data/lib/google/api_client/logging.rb +0 -32
  378. data/lib/google/api_client/media.rb +0 -259
  379. data/lib/google/api_client/railtie.rb +0 -18
  380. data/lib/google/api_client/request.rb +0 -350
  381. data/lib/google/api_client/result.rb +0 -255
  382. data/lib/google/api_client/service.rb +0 -233
  383. data/lib/google/api_client/service/batch.rb +0 -110
  384. data/lib/google/api_client/service/request.rb +0 -144
  385. data/lib/google/api_client/service/resource.rb +0 -40
  386. data/lib/google/api_client/service/result.rb +0 -162
  387. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  388. data/lib/google/api_client/service/stub_generator.rb +0 -61
  389. data/spec/google/api_client/batch_spec.rb +0 -248
  390. data/spec/google/api_client/discovery_spec.rb +0 -708
  391. data/spec/google/api_client/gzip_spec.rb +0 -98
  392. data/spec/google/api_client/media_spec.rb +0 -178
  393. data/spec/google/api_client/result_spec.rb +0 -207
  394. data/spec/google/api_client/service_account_spec.rb +0 -169
  395. data/spec/google/api_client/service_spec.rb +0 -618
  396. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  397. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,375 @@
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 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module AdexchangebuyerV1_3
24
+
25
+ class Account
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ class BidderLocation
29
+ class Representation < Google::Apis::Core::JsonRepresentation; end
30
+ end
31
+ end
32
+
33
+ class AccountsList
34
+ class Representation < Google::Apis::Core::JsonRepresentation; end
35
+ end
36
+
37
+ class BillingInfo
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+ end
40
+
41
+ class BillingInfoList
42
+ class Representation < Google::Apis::Core::JsonRepresentation; end
43
+ end
44
+
45
+ class Budget
46
+ class Representation < Google::Apis::Core::JsonRepresentation; end
47
+ end
48
+
49
+ class Creative
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ class Correction
53
+ class Representation < Google::Apis::Core::JsonRepresentation; end
54
+ end
55
+
56
+ class DisapprovalReason
57
+ class Representation < Google::Apis::Core::JsonRepresentation; end
58
+ end
59
+
60
+ class FilteringReasons
61
+ class Representation < Google::Apis::Core::JsonRepresentation; end
62
+
63
+ class Reason
64
+ class Representation < Google::Apis::Core::JsonRepresentation; end
65
+ end
66
+ end
67
+ end
68
+
69
+ class CreativesList
70
+ class Representation < Google::Apis::Core::JsonRepresentation; end
71
+ end
72
+
73
+ class DirectDeal
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+ end
76
+
77
+ class DirectDealsList
78
+ class Representation < Google::Apis::Core::JsonRepresentation; end
79
+ end
80
+
81
+ class PerformanceReport
82
+ class Representation < Google::Apis::Core::JsonRepresentation; end
83
+ end
84
+
85
+ class PerformanceReportList
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+ end
88
+
89
+ class PretargetingConfig
90
+ class Representation < Google::Apis::Core::JsonRepresentation; end
91
+
92
+ class Dimension
93
+ class Representation < Google::Apis::Core::JsonRepresentation; end
94
+ end
95
+
96
+ class ExcludedPlacement
97
+ class Representation < Google::Apis::Core::JsonRepresentation; end
98
+ end
99
+
100
+ class Placement
101
+ class Representation < Google::Apis::Core::JsonRepresentation; end
102
+ end
103
+ end
104
+
105
+ class PretargetingConfigList
106
+ class Representation < Google::Apis::Core::JsonRepresentation; end
107
+ end
108
+
109
+ class Account
110
+ # @private
111
+ class Representation < Google::Apis::Core::JsonRepresentation
112
+ collection :bidder_location, as: 'bidderLocation', class: Google::Apis::AdexchangebuyerV1_3::Account::BidderLocation, decorator: Google::Apis::AdexchangebuyerV1_3::Account::BidderLocation::Representation
113
+
114
+ property :cookie_matching_nid, as: 'cookieMatchingNid'
115
+ property :cookie_matching_url, as: 'cookieMatchingUrl'
116
+ property :id, as: 'id'
117
+ property :kind, as: 'kind'
118
+ property :maximum_active_creatives, as: 'maximumActiveCreatives'
119
+ property :maximum_total_qps, as: 'maximumTotalQps'
120
+ property :number_active_creatives, as: 'numberActiveCreatives'
121
+ end
122
+
123
+ class BidderLocation
124
+ # @private
125
+ class Representation < Google::Apis::Core::JsonRepresentation
126
+ property :maximum_qps, as: 'maximumQps'
127
+ property :region, as: 'region'
128
+ property :url, as: 'url'
129
+ end
130
+ end
131
+ end
132
+
133
+ class AccountsList
134
+ # @private
135
+ class Representation < Google::Apis::Core::JsonRepresentation
136
+ collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_3::Account, decorator: Google::Apis::AdexchangebuyerV1_3::Account::Representation
137
+
138
+ property :kind, as: 'kind'
139
+ end
140
+ end
141
+
142
+ class BillingInfo
143
+ # @private
144
+ class Representation < Google::Apis::Core::JsonRepresentation
145
+ property :account_id, as: 'accountId'
146
+ property :account_name, as: 'accountName'
147
+ collection :billing_id, as: 'billingId'
148
+ property :kind, as: 'kind'
149
+ end
150
+ end
151
+
152
+ class BillingInfoList
153
+ # @private
154
+ class Representation < Google::Apis::Core::JsonRepresentation
155
+ collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_3::BillingInfo, decorator: Google::Apis::AdexchangebuyerV1_3::BillingInfo::Representation
156
+
157
+ property :kind, as: 'kind'
158
+ end
159
+ end
160
+
161
+ class Budget
162
+ # @private
163
+ class Representation < Google::Apis::Core::JsonRepresentation
164
+ property :account_id, as: 'accountId'
165
+ property :billing_id, as: 'billingId'
166
+ property :budget_amount, as: 'budgetAmount'
167
+ property :currency_code, as: 'currencyCode'
168
+ property :id, as: 'id'
169
+ property :kind, as: 'kind'
170
+ end
171
+ end
172
+
173
+ class Creative
174
+ # @private
175
+ class Representation < Google::Apis::Core::JsonRepresentation
176
+ property :html_snippet, as: 'HTMLSnippet'
177
+ property :account_id, as: 'accountId'
178
+ collection :advertiser_id, as: 'advertiserId'
179
+ property :advertiser_name, as: 'advertiserName'
180
+ property :agency_id, as: 'agencyId'
181
+ collection :attribute, as: 'attribute'
182
+ property :buyer_creative_id, as: 'buyerCreativeId'
183
+ collection :click_through_url, as: 'clickThroughUrl'
184
+ collection :corrections, as: 'corrections', class: Google::Apis::AdexchangebuyerV1_3::Creative::Correction, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::Correction::Representation
185
+
186
+ collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::AdexchangebuyerV1_3::Creative::DisapprovalReason, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::DisapprovalReason::Representation
187
+
188
+ property :filtering_reasons, as: 'filteringReasons', class: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons::Representation
189
+
190
+ property :height, as: 'height'
191
+ property :kind, as: 'kind'
192
+ collection :product_categories, as: 'productCategories'
193
+ collection :restricted_categories, as: 'restrictedCategories'
194
+ collection :sensitive_categories, as: 'sensitiveCategories'
195
+ property :status, as: 'status'
196
+ collection :vendor_type, as: 'vendorType'
197
+ property :video_url, as: 'videoURL'
198
+ property :width, as: 'width'
199
+ end
200
+
201
+ class Correction
202
+ # @private
203
+ class Representation < Google::Apis::Core::JsonRepresentation
204
+ collection :details, as: 'details'
205
+ property :reason, as: 'reason'
206
+ end
207
+ end
208
+
209
+ class DisapprovalReason
210
+ # @private
211
+ class Representation < Google::Apis::Core::JsonRepresentation
212
+ collection :details, as: 'details'
213
+ property :reason, as: 'reason'
214
+ end
215
+ end
216
+
217
+ class FilteringReasons
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ property :date, as: 'date'
221
+ collection :reasons, as: 'reasons', class: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons::Reason, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons::Reason::Representation
222
+
223
+ end
224
+
225
+ class Reason
226
+ # @private
227
+ class Representation < Google::Apis::Core::JsonRepresentation
228
+ property :filtering_count, as: 'filteringCount'
229
+ property :filtering_status, as: 'filteringStatus'
230
+ end
231
+ end
232
+ end
233
+ end
234
+
235
+ class CreativesList
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_3::Creative, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::Representation
239
+
240
+ property :kind, as: 'kind'
241
+ property :next_page_token, as: 'nextPageToken'
242
+ end
243
+ end
244
+
245
+ class DirectDeal
246
+ # @private
247
+ class Representation < Google::Apis::Core::JsonRepresentation
248
+ property :account_id, as: 'accountId'
249
+ property :advertiser, as: 'advertiser'
250
+ property :currency_code, as: 'currencyCode'
251
+ property :end_time, as: 'endTime'
252
+ property :fixed_cpm, as: 'fixedCpm'
253
+ property :id, as: 'id'
254
+ property :kind, as: 'kind'
255
+ property :name, as: 'name'
256
+ property :private_exchange_min_cpm, as: 'privateExchangeMinCpm'
257
+ property :publisher_blocks_overriden, as: 'publisherBlocksOverriden'
258
+ property :seller_network, as: 'sellerNetwork'
259
+ property :start_time, as: 'startTime'
260
+ end
261
+ end
262
+
263
+ class DirectDealsList
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ collection :direct_deals, as: 'directDeals', class: Google::Apis::AdexchangebuyerV1_3::DirectDeal, decorator: Google::Apis::AdexchangebuyerV1_3::DirectDeal::Representation
267
+
268
+ property :kind, as: 'kind'
269
+ end
270
+ end
271
+
272
+ class PerformanceReport
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ property :bid_rate, as: 'bidRate'
276
+ property :bid_request_rate, as: 'bidRequestRate'
277
+ collection :callout_status_rate, as: 'calloutStatusRate'
278
+ collection :cookie_matcher_status_rate, as: 'cookieMatcherStatusRate'
279
+ collection :creative_status_rate, as: 'creativeStatusRate'
280
+ property :filtered_bid_rate, as: 'filteredBidRate'
281
+ collection :hosted_match_status_rate, as: 'hostedMatchStatusRate'
282
+ property :inventory_match_rate, as: 'inventoryMatchRate'
283
+ property :kind, as: 'kind'
284
+ property :latency_50th_percentile, as: 'latency50thPercentile'
285
+ property :latency_85th_percentile, as: 'latency85thPercentile'
286
+ property :latency_95th_percentile, as: 'latency95thPercentile'
287
+ property :no_quota_in_region, as: 'noQuotaInRegion'
288
+ property :out_of_quota, as: 'outOfQuota'
289
+ property :pixel_match_requests, as: 'pixelMatchRequests'
290
+ property :pixel_match_responses, as: 'pixelMatchResponses'
291
+ property :quota_configured_limit, as: 'quotaConfiguredLimit'
292
+ property :quota_throttled_limit, as: 'quotaThrottledLimit'
293
+ property :region, as: 'region'
294
+ property :successful_request_rate, as: 'successfulRequestRate'
295
+ property :timestamp, as: 'timestamp'
296
+ property :unsuccessful_request_rate, as: 'unsuccessfulRequestRate'
297
+ end
298
+ end
299
+
300
+ class PerformanceReportList
301
+ # @private
302
+ class Representation < Google::Apis::Core::JsonRepresentation
303
+ property :kind, as: 'kind'
304
+ collection :performance_report, as: 'performanceReport', class: Google::Apis::AdexchangebuyerV1_3::PerformanceReport, decorator: Google::Apis::AdexchangebuyerV1_3::PerformanceReport::Representation
305
+
306
+ end
307
+ end
308
+
309
+ class PretargetingConfig
310
+ # @private
311
+ class Representation < Google::Apis::Core::JsonRepresentation
312
+ property :billing_id, as: 'billingId'
313
+ property :config_id, as: 'configId'
314
+ property :config_name, as: 'configName'
315
+ collection :creative_type, as: 'creativeType'
316
+ collection :dimensions, as: 'dimensions', class: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Dimension, decorator: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Dimension::Representation
317
+
318
+ collection :excluded_content_labels, as: 'excludedContentLabels'
319
+ collection :excluded_geo_criteria_ids, as: 'excludedGeoCriteriaIds'
320
+ collection :excluded_placements, as: 'excludedPlacements', class: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::ExcludedPlacement, decorator: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::ExcludedPlacement::Representation
321
+
322
+ collection :excluded_user_lists, as: 'excludedUserLists'
323
+ collection :excluded_verticals, as: 'excludedVerticals'
324
+ collection :geo_criteria_ids, as: 'geoCriteriaIds'
325
+ property :is_active, as: 'isActive'
326
+ property :kind, as: 'kind'
327
+ collection :languages, as: 'languages'
328
+ collection :mobile_carriers, as: 'mobileCarriers'
329
+ collection :mobile_devices, as: 'mobileDevices'
330
+ collection :mobile_operating_system_versions, as: 'mobileOperatingSystemVersions'
331
+ collection :placements, as: 'placements', class: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Placement, decorator: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Placement::Representation
332
+
333
+ collection :platforms, as: 'platforms'
334
+ collection :supported_creative_attributes, as: 'supportedCreativeAttributes'
335
+ collection :user_lists, as: 'userLists'
336
+ collection :vendor_types, as: 'vendorTypes'
337
+ collection :verticals, as: 'verticals'
338
+ end
339
+
340
+ class Dimension
341
+ # @private
342
+ class Representation < Google::Apis::Core::JsonRepresentation
343
+ property :height, as: 'height'
344
+ property :width, as: 'width'
345
+ end
346
+ end
347
+
348
+ class ExcludedPlacement
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ property :token, as: 'token'
352
+ property :type, as: 'type'
353
+ end
354
+ end
355
+
356
+ class Placement
357
+ # @private
358
+ class Representation < Google::Apis::Core::JsonRepresentation
359
+ property :token, as: 'token'
360
+ property :type, as: 'type'
361
+ end
362
+ end
363
+ end
364
+
365
+ class PretargetingConfigList
366
+ # @private
367
+ class Representation < Google::Apis::Core::JsonRepresentation
368
+ collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig, decorator: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
369
+
370
+ property :kind, as: 'kind'
371
+ end
372
+ end
373
+ end
374
+ end
375
+ end
@@ -0,0 +1,893 @@
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_3
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_3'
30
+ #
31
+ # Adexchangebuyer = Google::Apis::AdexchangebuyerV1_3 # 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.3/')
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_3::Account] parsed result object
73
+ # @yieldparam err [StandardError] error object if request failed
74
+ #
75
+ # @return [Google::Apis::AdexchangebuyerV1_3::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
+ path = 'accounts/{id}'
82
+ command = make_simple_command(:get, path, options)
83
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
84
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::Account
85
+ command.params['id'] = id unless id.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ command.query['userIp'] = user_ip unless user_ip.nil?
89
+ execute_or_queue_command(command, &block)
90
+ end
91
+
92
+ # Retrieves the authenticated user's list of accounts.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # Overrides userIp if both are provided.
99
+ # @param [String] user_ip
100
+ # IP address of the site where the request originates. Use this if you want to
101
+ # enforce per-user limits.
102
+ # @param [Google::Apis::RequestOptions] options
103
+ # Request-specific options
104
+ #
105
+ # @yield [result, err] Result & error if block supplied
106
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::AccountsList] parsed result object
107
+ # @yieldparam err [StandardError] error object if request failed
108
+ #
109
+ # @return [Google::Apis::AdexchangebuyerV1_3::AccountsList]
110
+ #
111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
114
+ def list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
115
+ path = 'accounts'
116
+ command = make_simple_command(:get, path, options)
117
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::AccountsList::Representation
118
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::AccountsList
119
+ command.query['fields'] = fields unless fields.nil?
120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
121
+ command.query['userIp'] = user_ip unless user_ip.nil?
122
+ execute_or_queue_command(command, &block)
123
+ end
124
+
125
+ # Updates an existing account. This method supports patch semantics.
126
+ # @param [Fixnum] id
127
+ # The account id
128
+ # @param [Google::Apis::AdexchangebuyerV1_3::Account] account_object
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_3::Account] parsed result object
143
+ # @yieldparam err [StandardError] error object if request failed
144
+ #
145
+ # @return [Google::Apis::AdexchangebuyerV1_3::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, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
151
+ path = 'accounts/{id}'
152
+ command = make_simple_command(:patch, path, options)
153
+ command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
154
+ command.request_object = account_object
155
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
156
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::Account
157
+ command.params['id'] = id unless id.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_3::Account] account_object
168
+ # @param [String] fields
169
+ # Selector specifying which fields to include in a partial response.
170
+ # @param [String] quota_user
171
+ # Available to use for quota purposes for server-side applications. Can be any
172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
173
+ # Overrides userIp if both are provided.
174
+ # @param [String] user_ip
175
+ # IP address of the site where the request originates. Use this if you want to
176
+ # enforce per-user limits.
177
+ # @param [Google::Apis::RequestOptions] options
178
+ # Request-specific options
179
+ #
180
+ # @yield [result, err] Result & error if block supplied
181
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Account] parsed result object
182
+ # @yieldparam err [StandardError] error object if request failed
183
+ #
184
+ # @return [Google::Apis::AdexchangebuyerV1_3::Account]
185
+ #
186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
189
+ def update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
190
+ path = 'accounts/{id}'
191
+ command = make_simple_command(:put, path, options)
192
+ command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
193
+ command.request_object = account_object
194
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
195
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::Account
196
+ command.params['id'] = id unless id.nil?
197
+ command.query['fields'] = fields unless fields.nil?
198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
199
+ command.query['userIp'] = user_ip unless user_ip.nil?
200
+ execute_or_queue_command(command, &block)
201
+ end
202
+
203
+ # Returns the billing information for one account specified by account ID.
204
+ # @param [Fixnum] account_id
205
+ # The account id.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [String] quota_user
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
211
+ # Overrides userIp if both are provided.
212
+ # @param [String] user_ip
213
+ # IP address of the site where the request originates. Use this if you want to
214
+ # enforce per-user limits.
215
+ # @param [Google::Apis::RequestOptions] options
216
+ # Request-specific options
217
+ #
218
+ # @yield [result, err] Result & error if block supplied
219
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::BillingInfo] parsed result object
220
+ # @yieldparam err [StandardError] error object if request failed
221
+ #
222
+ # @return [Google::Apis::AdexchangebuyerV1_3::BillingInfo]
223
+ #
224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
227
+ def get_billing_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
228
+ path = 'billinginfo/{accountId}'
229
+ command = make_simple_command(:get, path, options)
230
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfo::Representation
231
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfo
232
+ command.params['accountId'] = account_id unless account_id.nil?
233
+ command.query['fields'] = fields unless fields.nil?
234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
235
+ command.query['userIp'] = user_ip unless user_ip.nil?
236
+ execute_or_queue_command(command, &block)
237
+ end
238
+
239
+ # Retrieves a list of billing information for all accounts of the authenticated
240
+ # user.
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
243
+ # @param [String] quota_user
244
+ # Available to use for quota purposes for server-side applications. Can be any
245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
246
+ # Overrides userIp if both are provided.
247
+ # @param [String] user_ip
248
+ # IP address of the site where the request originates. Use this if you want to
249
+ # enforce per-user limits.
250
+ # @param [Google::Apis::RequestOptions] options
251
+ # Request-specific options
252
+ #
253
+ # @yield [result, err] Result & error if block supplied
254
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::BillingInfoList] parsed result object
255
+ # @yieldparam err [StandardError] error object if request failed
256
+ #
257
+ # @return [Google::Apis::AdexchangebuyerV1_3::BillingInfoList]
258
+ #
259
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
260
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
261
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
262
+ def list_billing_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
263
+ path = 'billinginfo'
264
+ command = make_simple_command(:get, path, options)
265
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfoList::Representation
266
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::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_3::Budget] parsed result object
293
+ # @yieldparam err [StandardError] error object if request failed
294
+ #
295
+ # @return [Google::Apis::AdexchangebuyerV1_3::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
+ path = 'billinginfo/{accountId}/{billingId}'
302
+ command = make_simple_command(:get, path, options)
303
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
304
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget
305
+ command.params['accountId'] = account_id unless account_id.nil?
306
+ command.params['billingId'] = billing_id unless billing_id.nil?
307
+ command.query['fields'] = fields unless fields.nil?
308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
309
+ command.query['userIp'] = user_ip unless user_ip.nil?
310
+ execute_or_queue_command(command, &block)
311
+ end
312
+
313
+ # Updates the budget amount for the budget of the adgroup specified by the
314
+ # accountId and billingId, with the budget amount in the request. This method
315
+ # supports patch semantics.
316
+ # @param [String] account_id
317
+ # The account id associated with the budget being updated.
318
+ # @param [String] billing_id
319
+ # The billing id associated with the budget being updated.
320
+ # @param [Google::Apis::AdexchangebuyerV1_3::Budget] budget_object
321
+ # @param [String] fields
322
+ # Selector specifying which fields to include in a partial response.
323
+ # @param [String] quota_user
324
+ # Available to use for quota purposes for server-side applications. Can be any
325
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
326
+ # Overrides userIp if both are provided.
327
+ # @param [String] user_ip
328
+ # IP address of the site where the request originates. Use this if you want to
329
+ # enforce per-user limits.
330
+ # @param [Google::Apis::RequestOptions] options
331
+ # Request-specific options
332
+ #
333
+ # @yield [result, err] Result & error if block supplied
334
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Budget] parsed result object
335
+ # @yieldparam err [StandardError] error object if request failed
336
+ #
337
+ # @return [Google::Apis::AdexchangebuyerV1_3::Budget]
338
+ #
339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
342
+ def patch_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
343
+ path = 'billinginfo/{accountId}/{billingId}'
344
+ command = make_simple_command(:patch, path, options)
345
+ command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
346
+ command.request_object = budget_object
347
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
348
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget
349
+ command.params['accountId'] = account_id unless account_id.nil?
350
+ command.params['billingId'] = billing_id unless billing_id.nil?
351
+ command.query['fields'] = fields unless fields.nil?
352
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
353
+ command.query['userIp'] = user_ip unless user_ip.nil?
354
+ execute_or_queue_command(command, &block)
355
+ end
356
+
357
+ # Updates the budget amount for the budget of the adgroup specified by the
358
+ # accountId and billingId, with the budget amount in the request.
359
+ # @param [String] account_id
360
+ # The account id associated with the budget being updated.
361
+ # @param [String] billing_id
362
+ # The billing id associated with the budget being updated.
363
+ # @param [Google::Apis::AdexchangebuyerV1_3::Budget] budget_object
364
+ # @param [String] fields
365
+ # Selector specifying which fields to include in a partial response.
366
+ # @param [String] quota_user
367
+ # Available to use for quota purposes for server-side applications. Can be any
368
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
369
+ # Overrides userIp if both are provided.
370
+ # @param [String] user_ip
371
+ # IP address of the site where the request originates. Use this if you want to
372
+ # enforce per-user limits.
373
+ # @param [Google::Apis::RequestOptions] options
374
+ # Request-specific options
375
+ #
376
+ # @yield [result, err] Result & error if block supplied
377
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Budget] parsed result object
378
+ # @yieldparam err [StandardError] error object if request failed
379
+ #
380
+ # @return [Google::Apis::AdexchangebuyerV1_3::Budget]
381
+ #
382
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
383
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
384
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
385
+ def update_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
386
+ path = 'billinginfo/{accountId}/{billingId}'
387
+ command = make_simple_command(:put, path, options)
388
+ command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
389
+ command.request_object = budget_object
390
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
391
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget
392
+ command.params['accountId'] = account_id unless account_id.nil?
393
+ command.params['billingId'] = billing_id unless billing_id.nil?
394
+ command.query['fields'] = fields unless fields.nil?
395
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
396
+ command.query['userIp'] = user_ip unless user_ip.nil?
397
+ execute_or_queue_command(command, &block)
398
+ end
399
+
400
+ # Gets the status for a single creative. A creative will be available 30-40
401
+ # minutes after submission.
402
+ # @param [Fixnum] account_id
403
+ # The id for the account that will serve this creative.
404
+ # @param [String] buyer_creative_id
405
+ # The buyer-specific id for this creative.
406
+ # @param [String] fields
407
+ # Selector specifying which fields to include in a partial response.
408
+ # @param [String] quota_user
409
+ # Available to use for quota purposes for server-side applications. Can be any
410
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
411
+ # Overrides userIp if both are provided.
412
+ # @param [String] user_ip
413
+ # IP address of the site where the request originates. Use this if you want to
414
+ # enforce per-user limits.
415
+ # @param [Google::Apis::RequestOptions] options
416
+ # Request-specific options
417
+ #
418
+ # @yield [result, err] Result & error if block supplied
419
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Creative] parsed result object
420
+ # @yieldparam err [StandardError] error object if request failed
421
+ #
422
+ # @return [Google::Apis::AdexchangebuyerV1_3::Creative]
423
+ #
424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
427
+ def get_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
428
+ path = 'creatives/{accountId}/{buyerCreativeId}'
429
+ command = make_simple_command(:get, path, options)
430
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
431
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::Creative
432
+ command.params['accountId'] = account_id unless account_id.nil?
433
+ command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil?
434
+ command.query['fields'] = fields unless fields.nil?
435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
436
+ command.query['userIp'] = user_ip unless user_ip.nil?
437
+ execute_or_queue_command(command, &block)
438
+ end
439
+
440
+ # Submit a new creative.
441
+ # @param [Google::Apis::AdexchangebuyerV1_3::Creative] creative_object
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_3::Creative] parsed result object
456
+ # @yieldparam err [StandardError] error object if request failed
457
+ #
458
+ # @return [Google::Apis::AdexchangebuyerV1_3::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 insert_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
464
+ path = 'creatives'
465
+ command = make_simple_command(:post, path, options)
466
+ command.request_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
467
+ command.request_object = creative_object
468
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
469
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::Creative
470
+ command.query['fields'] = fields unless fields.nil?
471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
472
+ command.query['userIp'] = user_ip unless user_ip.nil?
473
+ execute_or_queue_command(command, &block)
474
+ end
475
+
476
+ # Retrieves a list of the authenticated user's active creatives. A creative will
477
+ # be available 30-40 minutes after submission.
478
+ # @param [Array<Fixnum>, Fixnum] account_id
479
+ # When specified, only creatives for the given account ids are returned.
480
+ # @param [Array<String>, String] buyer_creative_id
481
+ # When specified, only creatives for the given buyer creative ids are returned.
482
+ # @param [Fixnum] max_results
483
+ # Maximum number of entries returned on one result page. If not set, the default
484
+ # is 100. Optional.
485
+ # @param [String] page_token
486
+ # A continuation token, used to page through ad clients. To retrieve the next
487
+ # page, set this parameter to the value of "nextPageToken" from the previous
488
+ # response. Optional.
489
+ # @param [String] status_filter
490
+ # When specified, only creatives having the given status are returned.
491
+ # @param [String] fields
492
+ # Selector specifying which fields to include in a partial response.
493
+ # @param [String] quota_user
494
+ # Available to use for quota purposes for server-side applications. Can be any
495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
496
+ # Overrides userIp if both are provided.
497
+ # @param [String] user_ip
498
+ # IP address of the site where the request originates. Use this if you want to
499
+ # enforce per-user limits.
500
+ # @param [Google::Apis::RequestOptions] options
501
+ # Request-specific options
502
+ #
503
+ # @yield [result, err] Result & error if block supplied
504
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::CreativesList] parsed result object
505
+ # @yieldparam err [StandardError] error object if request failed
506
+ #
507
+ # @return [Google::Apis::AdexchangebuyerV1_3::CreativesList]
508
+ #
509
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
512
+ def list_creatives(account_id: nil, buyer_creative_id: nil, max_results: nil, page_token: nil, status_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
513
+ path = 'creatives'
514
+ command = make_simple_command(:get, path, options)
515
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::CreativesList::Representation
516
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::CreativesList
517
+ command.query['accountId'] = account_id unless account_id.nil?
518
+ command.query['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil?
519
+ command.query['maxResults'] = max_results unless max_results.nil?
520
+ command.query['pageToken'] = page_token unless page_token.nil?
521
+ command.query['statusFilter'] = status_filter unless status_filter.nil?
522
+ command.query['fields'] = fields unless fields.nil?
523
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
524
+ command.query['userIp'] = user_ip unless user_ip.nil?
525
+ execute_or_queue_command(command, &block)
526
+ end
527
+
528
+ # Gets one direct deal by ID.
529
+ # @param [String] id
530
+ # The direct deal id
531
+ # @param [String] fields
532
+ # Selector specifying which fields to include in a partial response.
533
+ # @param [String] quota_user
534
+ # Available to use for quota purposes for server-side applications. Can be any
535
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
536
+ # Overrides userIp if both are provided.
537
+ # @param [String] user_ip
538
+ # IP address of the site where the request originates. Use this if you want to
539
+ # enforce per-user limits.
540
+ # @param [Google::Apis::RequestOptions] options
541
+ # Request-specific options
542
+ #
543
+ # @yield [result, err] Result & error if block supplied
544
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::DirectDeal] parsed result object
545
+ # @yieldparam err [StandardError] error object if request failed
546
+ #
547
+ # @return [Google::Apis::AdexchangebuyerV1_3::DirectDeal]
548
+ #
549
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
550
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
551
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
552
+ def get_direct_deal(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
553
+ path = 'directdeals/{id}'
554
+ command = make_simple_command(:get, path, options)
555
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDeal::Representation
556
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDeal
557
+ command.params['id'] = id unless id.nil?
558
+ command.query['fields'] = fields unless fields.nil?
559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
560
+ command.query['userIp'] = user_ip unless user_ip.nil?
561
+ execute_or_queue_command(command, &block)
562
+ end
563
+
564
+ # Retrieves the authenticated user's list of direct deals.
565
+ # @param [String] fields
566
+ # Selector specifying which fields to include in a partial response.
567
+ # @param [String] quota_user
568
+ # Available to use for quota purposes for server-side applications. Can be any
569
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
570
+ # Overrides userIp if both are provided.
571
+ # @param [String] user_ip
572
+ # IP address of the site where the request originates. Use this if you want to
573
+ # enforce per-user limits.
574
+ # @param [Google::Apis::RequestOptions] options
575
+ # Request-specific options
576
+ #
577
+ # @yield [result, err] Result & error if block supplied
578
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::DirectDealsList] parsed result object
579
+ # @yieldparam err [StandardError] error object if request failed
580
+ #
581
+ # @return [Google::Apis::AdexchangebuyerV1_3::DirectDealsList]
582
+ #
583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
586
+ def list_direct_deals(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
587
+ path = 'directdeals'
588
+ command = make_simple_command(:get, path, options)
589
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDealsList::Representation
590
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDealsList
591
+ command.query['fields'] = fields unless fields.nil?
592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
593
+ command.query['userIp'] = user_ip unless user_ip.nil?
594
+ execute_or_queue_command(command, &block)
595
+ end
596
+
597
+ # Retrieves the authenticated user's list of performance metrics.
598
+ # @param [String] account_id
599
+ # The account id to get the reports.
600
+ # @param [String] end_date_time
601
+ # The end time of the report in ISO 8601 timestamp format using UTC.
602
+ # @param [Fixnum] max_results
603
+ # Maximum number of entries returned on one result page. If not set, the default
604
+ # is 100. Optional.
605
+ # @param [String] page_token
606
+ # A continuation token, used to page through performance reports. To retrieve
607
+ # the next page, set this parameter to the value of "nextPageToken" from the
608
+ # previous response. Optional.
609
+ # @param [String] start_date_time
610
+ # The start time of the report in ISO 8601 timestamp format using UTC.
611
+ # @param [String] fields
612
+ # Selector specifying which fields to include in a partial response.
613
+ # @param [String] quota_user
614
+ # Available to use for quota purposes for server-side applications. Can be any
615
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
616
+ # Overrides userIp if both are provided.
617
+ # @param [String] user_ip
618
+ # IP address of the site where the request originates. Use this if you want to
619
+ # enforce per-user limits.
620
+ # @param [Google::Apis::RequestOptions] options
621
+ # Request-specific options
622
+ #
623
+ # @yield [result, err] Result & error if block supplied
624
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PerformanceReportList] parsed result object
625
+ # @yieldparam err [StandardError] error object if request failed
626
+ #
627
+ # @return [Google::Apis::AdexchangebuyerV1_3::PerformanceReportList]
628
+ #
629
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
630
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
631
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
632
+ def list_performance_reports(account_id: nil, end_date_time: nil, max_results: nil, page_token: nil, start_date_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
633
+ path = 'performancereport'
634
+ command = make_simple_command(:get, path, options)
635
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList::Representation
636
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList
637
+ command.query['accountId'] = account_id unless account_id.nil?
638
+ command.query['endDateTime'] = end_date_time unless end_date_time.nil?
639
+ command.query['maxResults'] = max_results unless max_results.nil?
640
+ command.query['pageToken'] = page_token unless page_token.nil?
641
+ command.query['startDateTime'] = start_date_time unless start_date_time.nil?
642
+ command.query['fields'] = fields unless fields.nil?
643
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
644
+ command.query['userIp'] = user_ip unless user_ip.nil?
645
+ execute_or_queue_command(command, &block)
646
+ end
647
+
648
+ # Deletes an existing pretargeting config.
649
+ # @param [String] account_id
650
+ # The account id to delete the pretargeting config for.
651
+ # @param [String] config_id
652
+ # The specific id of the configuration to delete.
653
+ # @param [String] fields
654
+ # Selector specifying which fields to include in a partial response.
655
+ # @param [String] quota_user
656
+ # Available to use for quota purposes for server-side applications. Can be any
657
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
658
+ # Overrides userIp if both are provided.
659
+ # @param [String] user_ip
660
+ # IP address of the site where the request originates. Use this if you want to
661
+ # enforce per-user limits.
662
+ # @param [Google::Apis::RequestOptions] options
663
+ # Request-specific options
664
+ #
665
+ # @yield [result, err] Result & error if block supplied
666
+ # @yieldparam result [NilClass] No result returned for this method
667
+ # @yieldparam err [StandardError] error object if request failed
668
+ #
669
+ # @return [void]
670
+ #
671
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
672
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
673
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
674
+ def delete_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
675
+ path = 'pretargetingconfigs/{accountId}/{configId}'
676
+ command = make_simple_command(:delete, path, options)
677
+ command.params['accountId'] = account_id unless account_id.nil?
678
+ command.params['configId'] = config_id unless config_id.nil?
679
+ command.query['fields'] = fields unless fields.nil?
680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
681
+ command.query['userIp'] = user_ip unless user_ip.nil?
682
+ execute_or_queue_command(command, &block)
683
+ end
684
+
685
+ # Gets a specific pretargeting configuration
686
+ # @param [String] account_id
687
+ # The account id to get the pretargeting config for.
688
+ # @param [String] config_id
689
+ # The specific id of the configuration to retrieve.
690
+ # @param [String] fields
691
+ # Selector specifying which fields to include in a partial response.
692
+ # @param [String] quota_user
693
+ # Available to use for quota purposes for server-side applications. Can be any
694
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
695
+ # Overrides userIp if both are provided.
696
+ # @param [String] user_ip
697
+ # IP address of the site where the request originates. Use this if you want to
698
+ # enforce per-user limits.
699
+ # @param [Google::Apis::RequestOptions] options
700
+ # Request-specific options
701
+ #
702
+ # @yield [result, err] Result & error if block supplied
703
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] parsed result object
704
+ # @yieldparam err [StandardError] error object if request failed
705
+ #
706
+ # @return [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig]
707
+ #
708
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
709
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
710
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
711
+ def get_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
712
+ path = 'pretargetingconfigs/{accountId}/{configId}'
713
+ command = make_simple_command(:get, path, options)
714
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
715
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
716
+ command.params['accountId'] = account_id unless account_id.nil?
717
+ command.params['configId'] = config_id unless config_id.nil?
718
+ command.query['fields'] = fields unless fields.nil?
719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
720
+ command.query['userIp'] = user_ip unless user_ip.nil?
721
+ execute_or_queue_command(command, &block)
722
+ end
723
+
724
+ # Inserts a new pretargeting configuration.
725
+ # @param [String] account_id
726
+ # The account id to insert the pretargeting config for.
727
+ # @param [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] pretargeting_config_object
728
+ # @param [String] fields
729
+ # Selector specifying which fields to include in a partial response.
730
+ # @param [String] quota_user
731
+ # Available to use for quota purposes for server-side applications. Can be any
732
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
733
+ # Overrides userIp if both are provided.
734
+ # @param [String] user_ip
735
+ # IP address of the site where the request originates. Use this if you want to
736
+ # enforce per-user limits.
737
+ # @param [Google::Apis::RequestOptions] options
738
+ # Request-specific options
739
+ #
740
+ # @yield [result, err] Result & error if block supplied
741
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] parsed result object
742
+ # @yieldparam err [StandardError] error object if request failed
743
+ #
744
+ # @return [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig]
745
+ #
746
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
749
+ def insert_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
750
+ path = 'pretargetingconfigs/{accountId}'
751
+ command = make_simple_command(:post, path, options)
752
+ command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
753
+ command.request_object = pretargeting_config_object
754
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
755
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
756
+ command.params['accountId'] = account_id unless account_id.nil?
757
+ command.query['fields'] = fields unless fields.nil?
758
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
759
+ command.query['userIp'] = user_ip unless user_ip.nil?
760
+ execute_or_queue_command(command, &block)
761
+ end
762
+
763
+ # Retrieves a list of the authenticated user's pretargeting configurations.
764
+ # @param [String] account_id
765
+ # The account id to get the pretargeting configs for.
766
+ # @param [String] fields
767
+ # Selector specifying which fields to include in a partial response.
768
+ # @param [String] quota_user
769
+ # Available to use for quota purposes for server-side applications. Can be any
770
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
771
+ # Overrides userIp if both are provided.
772
+ # @param [String] user_ip
773
+ # IP address of the site where the request originates. Use this if you want to
774
+ # enforce per-user limits.
775
+ # @param [Google::Apis::RequestOptions] options
776
+ # Request-specific options
777
+ #
778
+ # @yield [result, err] Result & error if block supplied
779
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList] parsed result object
780
+ # @yieldparam err [StandardError] error object if request failed
781
+ #
782
+ # @return [Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList]
783
+ #
784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
787
+ def list_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
788
+ path = 'pretargetingconfigs/{accountId}'
789
+ command = make_simple_command(:get, path, options)
790
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList::Representation
791
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList
792
+ command.params['accountId'] = account_id unless account_id.nil?
793
+ command.query['fields'] = fields unless fields.nil?
794
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
795
+ command.query['userIp'] = user_ip unless user_ip.nil?
796
+ execute_or_queue_command(command, &block)
797
+ end
798
+
799
+ # Updates an existing pretargeting config. This method supports patch semantics.
800
+ # @param [String] account_id
801
+ # The account id to update the pretargeting config for.
802
+ # @param [String] config_id
803
+ # The specific id of the configuration to update.
804
+ # @param [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] pretargeting_config_object
805
+ # @param [String] fields
806
+ # Selector specifying which fields to include in a partial response.
807
+ # @param [String] quota_user
808
+ # Available to use for quota purposes for server-side applications. Can be any
809
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
810
+ # Overrides userIp if both are provided.
811
+ # @param [String] user_ip
812
+ # IP address of the site where the request originates. Use this if you want to
813
+ # enforce per-user limits.
814
+ # @param [Google::Apis::RequestOptions] options
815
+ # Request-specific options
816
+ #
817
+ # @yield [result, err] Result & error if block supplied
818
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] parsed result object
819
+ # @yieldparam err [StandardError] error object if request failed
820
+ #
821
+ # @return [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig]
822
+ #
823
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
824
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
825
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
826
+ def patch_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
827
+ path = 'pretargetingconfigs/{accountId}/{configId}'
828
+ command = make_simple_command(:patch, path, options)
829
+ command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
830
+ command.request_object = pretargeting_config_object
831
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
832
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
833
+ command.params['accountId'] = account_id unless account_id.nil?
834
+ command.params['configId'] = config_id unless config_id.nil?
835
+ command.query['fields'] = fields unless fields.nil?
836
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
837
+ command.query['userIp'] = user_ip unless user_ip.nil?
838
+ execute_or_queue_command(command, &block)
839
+ end
840
+
841
+ # Updates an existing pretargeting config.
842
+ # @param [String] account_id
843
+ # The account id to update the pretargeting config for.
844
+ # @param [String] config_id
845
+ # The specific id of the configuration to update.
846
+ # @param [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] pretargeting_config_object
847
+ # @param [String] fields
848
+ # Selector specifying which fields to include in a partial response.
849
+ # @param [String] quota_user
850
+ # Available to use for quota purposes for server-side applications. Can be any
851
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
852
+ # Overrides userIp if both are provided.
853
+ # @param [String] user_ip
854
+ # IP address of the site where the request originates. Use this if you want to
855
+ # enforce per-user limits.
856
+ # @param [Google::Apis::RequestOptions] options
857
+ # Request-specific options
858
+ #
859
+ # @yield [result, err] Result & error if block supplied
860
+ # @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] parsed result object
861
+ # @yieldparam err [StandardError] error object if request failed
862
+ #
863
+ # @return [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig]
864
+ #
865
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
866
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
867
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
868
+ def update_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
869
+ path = 'pretargetingconfigs/{accountId}/{configId}'
870
+ command = make_simple_command(:put, path, options)
871
+ command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
872
+ command.request_object = pretargeting_config_object
873
+ command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
874
+ command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
875
+ command.params['accountId'] = account_id unless account_id.nil?
876
+ command.params['configId'] = config_id unless config_id.nil?
877
+ command.query['fields'] = fields unless fields.nil?
878
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
879
+ command.query['userIp'] = user_ip unless user_ip.nil?
880
+ execute_or_queue_command(command, &block)
881
+ end
882
+
883
+ protected
884
+
885
+ def apply_command_defaults(command)
886
+ command.query['key'] = key unless key.nil?
887
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
888
+ command.query['userIp'] = user_ip unless user_ip.nil?
889
+ end
890
+ end
891
+ end
892
+ end
893
+ end