google-api-client 0.8.3 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (497) 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 +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +52 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +35 -1
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  21. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  24. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  25. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  26. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  27. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  28. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  29. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  30. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  31. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  32. data/generated/google/apis/admin_directory_v1.rb +113 -0
  33. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  34. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  35. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  36. data/generated/google/apis/admin_reports_v1.rb +38 -0
  37. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  38. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  39. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  40. data/generated/google/apis/adsense_v1_4.rb +38 -0
  41. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  42. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  43. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  44. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  45. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  46. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  47. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  48. data/generated/google/apis/analytics_v3.rb +49 -0
  49. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  50. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  51. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  52. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  53. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  54. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  55. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  56. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  57. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  58. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  59. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  60. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  61. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  62. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  63. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  64. data/generated/google/apis/appsactivity_v1.rb +46 -0
  65. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  66. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  67. data/generated/google/apis/appstate_v1/service.rb +260 -0
  68. data/generated/google/apis/appstate_v1.rb +34 -0
  69. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  70. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  71. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  72. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  73. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  74. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  75. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  76. data/generated/google/apis/bigquery_v2.rb +52 -0
  77. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  78. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  79. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  80. data/generated/google/apis/blogger_v3.rb +37 -0
  81. data/generated/google/apis/books_v1/classes.rb +3956 -0
  82. data/generated/google/apis/books_v1/representations.rb +1538 -0
  83. data/generated/google/apis/books_v1/service.rb +2290 -0
  84. data/generated/google/apis/books_v1.rb +34 -0
  85. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  86. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  87. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  88. data/generated/google/apis/calendar_v3.rb +37 -0
  89. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  90. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  91. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  92. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  93. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  94. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  95. data/generated/google/apis/classroom_v1/service.rb +970 -0
  96. data/generated/google/apis/classroom_v1.rb +49 -0
  97. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  98. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  99. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  100. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  101. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  102. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  103. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  104. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  105. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  106. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  107. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  108. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  117. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  118. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  119. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  120. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  121. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  122. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  123. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  124. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  125. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  126. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  127. data/generated/google/apis/compute_beta/service.rb +10154 -0
  128. data/generated/google/apis/compute_beta.rb +49 -0
  129. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  130. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  131. data/generated/google/apis/compute_v1/service.rb +9252 -0
  132. data/generated/google/apis/compute_v1.rb +49 -0
  133. data/generated/google/apis/container_v1/classes.rb +463 -0
  134. data/generated/google/apis/container_v1/representations.rb +175 -0
  135. data/generated/google/apis/container_v1/service.rb +367 -0
  136. data/generated/google/apis/container_v1.rb +35 -0
  137. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  138. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  139. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  140. data/generated/google/apis/container_v1beta1.rb +35 -0
  141. data/generated/google/apis/content_v2/classes.rb +5986 -0
  142. data/generated/google/apis/content_v2/representations.rb +2288 -0
  143. data/generated/google/apis/content_v2/service.rb +2338 -0
  144. data/generated/google/apis/content_v2.rb +35 -0
  145. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  146. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  147. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  148. data/generated/google/apis/coordinate_v1.rb +37 -0
  149. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  150. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  151. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  152. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  153. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  154. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  155. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  156. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  157. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  158. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  159. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  160. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  165. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  166. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  167. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  168. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  169. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  170. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  171. data/generated/google/apis/discovery_v1/service.rb +142 -0
  172. data/generated/google/apis/discovery_v1.rb +32 -0
  173. data/generated/google/apis/dns_v1/classes.rb +406 -0
  174. data/generated/google/apis/dns_v1/representations.rb +151 -0
  175. data/generated/google/apis/dns_v1/service.rb +454 -0
  176. data/generated/google/apis/dns_v1.rb +44 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  181. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  182. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  183. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  184. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  185. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  186. data/generated/google/apis/drive_v2/representations.rb +795 -0
  187. data/generated/google/apis/drive_v2/service.rb +2696 -0
  188. data/generated/google/apis/drive_v2.rb +58 -0
  189. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  190. data/generated/google/apis/drive_v3/representations.rb +497 -0
  191. data/generated/google/apis/drive_v3/service.rb +1541 -0
  192. data/generated/google/apis/drive_v3.rb +55 -0
  193. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  194. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  195. data/generated/google/apis/fitness_v1/service.rb +675 -0
  196. data/generated/google/apis/fitness_v1.rb +49 -0
  197. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  198. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  199. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  200. data/generated/google/apis/fusiontables_v2.rb +37 -0
  201. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  202. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  203. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  204. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  205. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  206. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  207. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  208. data/generated/google/apis/games_management_v1management.rb +37 -0
  209. data/generated/google/apis/games_v1/classes.rb +4617 -0
  210. data/generated/google/apis/games_v1/representations.rb +1584 -0
  211. data/generated/google/apis/games_v1/service.rb +2290 -0
  212. data/generated/google/apis/games_v1.rb +40 -0
  213. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  214. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  215. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  216. data/generated/google/apis/gan_v1beta1.rb +31 -0
  217. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  218. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  219. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  220. data/generated/google/apis/genomics_v1.rb +49 -0
  221. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  222. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  223. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  224. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  225. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  226. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  227. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  228. data/generated/google/apis/gmail_v1.rb +52 -0
  229. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  230. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  231. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  232. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  233. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  234. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  235. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  236. data/generated/google/apis/groupssettings_v1.rb +34 -0
  237. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  238. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  239. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  240. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  241. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  242. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  243. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  244. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  245. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  246. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  247. data/generated/google/apis/licensing_v1/service.rb +369 -0
  248. data/generated/google/apis/licensing_v1.rb +34 -0
  249. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  250. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  251. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  252. data/generated/google/apis/logging_v1beta3.rb +47 -0
  253. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  254. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  255. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  256. data/generated/google/apis/manager_v1beta2.rb +53 -0
  257. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  258. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  259. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  260. data/generated/google/apis/mapsengine_v1.rb +38 -0
  261. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  262. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  263. data/generated/google/apis/mirror_v1/service.rb +977 -0
  264. data/generated/google/apis/mirror_v1.rb +37 -0
  265. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  266. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  267. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  268. data/generated/google/apis/oauth2_v2.rb +43 -0
  269. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  270. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  271. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  272. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  273. data/generated/google/apis/partners_v2/classes.rb +942 -0
  274. data/generated/google/apis/partners_v2/representations.rb +402 -0
  275. data/generated/google/apis/partners_v2/service.rb +400 -0
  276. data/generated/google/apis/partners_v2.rb +32 -0
  277. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  278. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  279. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  280. data/generated/google/apis/plus_domains_v1.rb +61 -0
  281. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  282. data/generated/google/apis/plus_v1/representations.rb +805 -0
  283. data/generated/google/apis/plus_v1/service.rb +470 -0
  284. data/generated/google/apis/plus_v1.rb +43 -0
  285. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  286. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  287. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  288. data/generated/google/apis/prediction_v1_6.rb +44 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  293. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  294. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  295. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  296. data/generated/google/apis/pubsub_v1.rb +37 -0
  297. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  298. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  299. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  300. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  301. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  302. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  303. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  304. data/generated/google/apis/qpx_express_v1.rb +31 -0
  305. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  306. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  307. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  308. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  313. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  314. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  315. data/generated/google/apis/reseller_v1/service.rb +623 -0
  316. data/generated/google/apis/reseller_v1.rb +37 -0
  317. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  318. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  319. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  320. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  321. data/generated/google/apis/script_v1/classes.rb +259 -0
  322. data/generated/google/apis/script_v1/representations.rb +106 -0
  323. data/generated/google/apis/script_v1/service.rb +98 -0
  324. data/generated/google/apis/script_v1.rb +61 -0
  325. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  326. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  327. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  328. data/generated/google/apis/site_verification_v1.rb +37 -0
  329. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  330. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  331. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  332. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  333. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  334. data/generated/google/apis/storage_v1/representations.rb +445 -0
  335. data/generated/google/apis/storage_v1/service.rb +1903 -0
  336. data/generated/google/apis/storage_v1.rb +46 -0
  337. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  338. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  339. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  340. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  341. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  342. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  343. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  344. data/generated/google/apis/tagmanager_v1.rb +52 -0
  345. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  346. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  347. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  348. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  349. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  350. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  351. data/generated/google/apis/tasks_v1/service.rb +643 -0
  352. data/generated/google/apis/tasks_v1.rb +37 -0
  353. data/generated/google/apis/translate_v2/classes.rb +168 -0
  354. data/generated/google/apis/translate_v2/representations.rb +109 -0
  355. data/generated/google/apis/translate_v2/service.rb +182 -0
  356. data/generated/google/apis/translate_v2.rb +31 -0
  357. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  358. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  359. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  360. data/generated/google/apis/urlshortener_v1.rb +34 -0
  361. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  362. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  363. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  364. data/generated/google/apis/webmasters_v3.rb +37 -0
  365. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  366. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  367. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  368. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  369. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  370. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  371. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  372. data/generated/google/apis/youtube_v3.rb +49 -0
  373. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  374. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  375. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  376. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +12 -11
  380. data/lib/google/api_client/auth/storage.rb +5 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis/core/api_command.rb +135 -0
  385. data/lib/google/apis/core/base_service.rb +317 -0
  386. data/lib/google/apis/core/batch.rb +239 -0
  387. data/lib/google/apis/core/download.rb +94 -0
  388. data/lib/google/apis/core/hashable.rb +44 -0
  389. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  390. data/lib/google/apis/core/http_command.rb +312 -0
  391. data/lib/google/apis/core/json_representation.rb +127 -0
  392. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  393. data/lib/google/apis/core/multipart.rb +187 -0
  394. data/lib/google/apis/core/upload.rb +288 -0
  395. data/lib/google/{api_client → apis}/errors.rb +39 -28
  396. data/lib/google/apis/generator/annotator.rb +295 -0
  397. data/lib/google/apis/generator/helpers.rb +74 -0
  398. data/lib/google/apis/generator/model.rb +143 -0
  399. data/lib/google/apis/generator/template.rb +124 -0
  400. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  401. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  402. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  403. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  404. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  405. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  406. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  407. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  408. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  409. data/lib/google/apis/generator.rb +70 -0
  410. data/lib/google/apis/options.rb +85 -0
  411. data/lib/google/apis/version.rb +39 -0
  412. data/lib/google/apis.rb +48 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper/load_path_spec.rb +33 -0
  460. data/spec/spec_helper.rb +131 -44
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -170
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client/auth/file_storage.rb +0 -59
  465. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  466. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  467. data/lib/google/api_client/batch.rb +0 -325
  468. data/lib/google/api_client/charset.rb +0 -33
  469. data/lib/google/api_client/discovery/api.rb +0 -300
  470. data/lib/google/api_client/discovery/media.rb +0 -77
  471. data/lib/google/api_client/discovery/method.rb +0 -363
  472. data/lib/google/api_client/discovery/resource.rb +0 -156
  473. data/lib/google/api_client/discovery/schema.rb +0 -119
  474. data/lib/google/api_client/environment.rb +0 -42
  475. data/lib/google/api_client/gzip.rb +0 -28
  476. data/lib/google/api_client/logging.rb +0 -32
  477. data/lib/google/api_client/media.rb +0 -259
  478. data/lib/google/api_client/railtie.rb +0 -18
  479. data/lib/google/api_client/request.rb +0 -350
  480. data/lib/google/api_client/result.rb +0 -255
  481. data/lib/google/api_client/service/batch.rb +0 -110
  482. data/lib/google/api_client/service/request.rb +0 -144
  483. data/lib/google/api_client/service/resource.rb +0 -40
  484. data/lib/google/api_client/service/result.rb +0 -162
  485. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  486. data/lib/google/api_client/service/stub_generator.rb +0 -61
  487. data/lib/google/api_client/service.rb +0 -233
  488. data/lib/google/api_client.rb +0 -750
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -662
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,1335 @@
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
+ # Configuration data for an Ad Exchange buyer account.
26
+ class Account
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Your bidder locations that have distinct URLs.
30
+ # Corresponds to the JSON property `bidderLocation`
31
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::Account::BidderLocation>]
32
+ attr_accessor :bidder_location
33
+
34
+ # The nid parameter value used in cookie match requests. Please contact your
35
+ # technical account manager if you need to change this.
36
+ # Corresponds to the JSON property `cookieMatchingNid`
37
+ # @return [String]
38
+ attr_accessor :cookie_matching_nid
39
+
40
+ # The base URL used in cookie match requests.
41
+ # Corresponds to the JSON property `cookieMatchingUrl`
42
+ # @return [String]
43
+ attr_accessor :cookie_matching_url
44
+
45
+ # Account id.
46
+ # Corresponds to the JSON property `id`
47
+ # @return [Fixnum]
48
+ attr_accessor :id
49
+
50
+ # Resource type.
51
+ # Corresponds to the JSON property `kind`
52
+ # @return [String]
53
+ attr_accessor :kind
54
+
55
+ # The maximum number of active creatives that an account can have, where a
56
+ # creative is active if it was inserted or bid with in the last 30 days. Please
57
+ # contact your technical account manager if you need to change this.
58
+ # Corresponds to the JSON property `maximumActiveCreatives`
59
+ # @return [Fixnum]
60
+ attr_accessor :maximum_active_creatives
61
+
62
+ # The sum of all bidderLocation.maximumQps values cannot exceed this. Please
63
+ # contact your technical account manager if you need to change this.
64
+ # Corresponds to the JSON property `maximumTotalQps`
65
+ # @return [Fixnum]
66
+ attr_accessor :maximum_total_qps
67
+
68
+ # The number of creatives that this account inserted or bid with in the last 30
69
+ # days.
70
+ # Corresponds to the JSON property `numberActiveCreatives`
71
+ # @return [Fixnum]
72
+ attr_accessor :number_active_creatives
73
+
74
+ def initialize(**args)
75
+ update!(**args)
76
+ end
77
+
78
+ # Update properties of this object
79
+ def update!(**args)
80
+ @bidder_location = args[:bidder_location] unless args[:bidder_location].nil?
81
+ @cookie_matching_nid = args[:cookie_matching_nid] unless args[:cookie_matching_nid].nil?
82
+ @cookie_matching_url = args[:cookie_matching_url] unless args[:cookie_matching_url].nil?
83
+ @id = args[:id] unless args[:id].nil?
84
+ @kind = args[:kind] unless args[:kind].nil?
85
+ @maximum_active_creatives = args[:maximum_active_creatives] unless args[:maximum_active_creatives].nil?
86
+ @maximum_total_qps = args[:maximum_total_qps] unless args[:maximum_total_qps].nil?
87
+ @number_active_creatives = args[:number_active_creatives] unless args[:number_active_creatives].nil?
88
+ end
89
+
90
+ #
91
+ class BidderLocation
92
+ include Google::Apis::Core::Hashable
93
+
94
+ # The maximum queries per second the Ad Exchange will send.
95
+ # Corresponds to the JSON property `maximumQps`
96
+ # @return [Fixnum]
97
+ attr_accessor :maximum_qps
98
+
99
+ # The geographical region the Ad Exchange should send requests from. Only used
100
+ # by some quota systems, but always setting the value is recommended. Allowed
101
+ # values:
102
+ # - ASIA
103
+ # - EUROPE
104
+ # - US_EAST
105
+ # - US_WEST
106
+ # Corresponds to the JSON property `region`
107
+ # @return [String]
108
+ attr_accessor :region
109
+
110
+ # The URL to which the Ad Exchange will send bid requests.
111
+ # Corresponds to the JSON property `url`
112
+ # @return [String]
113
+ attr_accessor :url
114
+
115
+ def initialize(**args)
116
+ update!(**args)
117
+ end
118
+
119
+ # Update properties of this object
120
+ def update!(**args)
121
+ @maximum_qps = args[:maximum_qps] unless args[:maximum_qps].nil?
122
+ @region = args[:region] unless args[:region].nil?
123
+ @url = args[:url] unless args[:url].nil?
124
+ end
125
+ end
126
+ end
127
+
128
+ # An account feed lists Ad Exchange buyer accounts that the user has access to.
129
+ # Each entry in the feed corresponds to a single buyer account.
130
+ class AccountsList
131
+ include Google::Apis::Core::Hashable
132
+
133
+ # A list of accounts.
134
+ # Corresponds to the JSON property `items`
135
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::Account>]
136
+ attr_accessor :items
137
+
138
+ # Resource type.
139
+ # Corresponds to the JSON property `kind`
140
+ # @return [String]
141
+ attr_accessor :kind
142
+
143
+ def initialize(**args)
144
+ update!(**args)
145
+ end
146
+
147
+ # Update properties of this object
148
+ def update!(**args)
149
+ @items = args[:items] unless args[:items].nil?
150
+ @kind = args[:kind] unless args[:kind].nil?
151
+ end
152
+ end
153
+
154
+ # The configuration data for an Ad Exchange billing info.
155
+ class BillingInfo
156
+ include Google::Apis::Core::Hashable
157
+
158
+ # Account id.
159
+ # Corresponds to the JSON property `accountId`
160
+ # @return [Fixnum]
161
+ attr_accessor :account_id
162
+
163
+ # Account name.
164
+ # Corresponds to the JSON property `accountName`
165
+ # @return [String]
166
+ attr_accessor :account_name
167
+
168
+ # A list of adgroup IDs associated with this particular account. These IDs may
169
+ # show up as part of a realtime bidding BidRequest, which indicates a bid
170
+ # request for this account.
171
+ # Corresponds to the JSON property `billingId`
172
+ # @return [Array<String>]
173
+ attr_accessor :billing_id
174
+
175
+ # Resource type.
176
+ # Corresponds to the JSON property `kind`
177
+ # @return [String]
178
+ attr_accessor :kind
179
+
180
+ def initialize(**args)
181
+ update!(**args)
182
+ end
183
+
184
+ # Update properties of this object
185
+ def update!(**args)
186
+ @account_id = args[:account_id] unless args[:account_id].nil?
187
+ @account_name = args[:account_name] unless args[:account_name].nil?
188
+ @billing_id = args[:billing_id] unless args[:billing_id].nil?
189
+ @kind = args[:kind] unless args[:kind].nil?
190
+ end
191
+ end
192
+
193
+ # A billing info feed lists Billing Info the Ad Exchange buyer account has
194
+ # access to. Each entry in the feed corresponds to a single billing info.
195
+ class BillingInfoList
196
+ include Google::Apis::Core::Hashable
197
+
198
+ # A list of billing info relevant for your account.
199
+ # Corresponds to the JSON property `items`
200
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::BillingInfo>]
201
+ attr_accessor :items
202
+
203
+ # Resource type.
204
+ # Corresponds to the JSON property `kind`
205
+ # @return [String]
206
+ attr_accessor :kind
207
+
208
+ def initialize(**args)
209
+ update!(**args)
210
+ end
211
+
212
+ # Update properties of this object
213
+ def update!(**args)
214
+ @items = args[:items] unless args[:items].nil?
215
+ @kind = args[:kind] unless args[:kind].nil?
216
+ end
217
+ end
218
+
219
+ # The configuration data for Ad Exchange RTB - Budget API.
220
+ class Budget
221
+ include Google::Apis::Core::Hashable
222
+
223
+ # The id of the account. This is required for get and update requests.
224
+ # Corresponds to the JSON property `accountId`
225
+ # @return [String]
226
+ attr_accessor :account_id
227
+
228
+ # The billing id to determine which adgroup to provide budget information for.
229
+ # This is required for get and update requests.
230
+ # Corresponds to the JSON property `billingId`
231
+ # @return [String]
232
+ attr_accessor :billing_id
233
+
234
+ # The daily budget amount in unit amount of the account currency to apply for
235
+ # the billingId provided. This is required for update requests.
236
+ # Corresponds to the JSON property `budgetAmount`
237
+ # @return [String]
238
+ attr_accessor :budget_amount
239
+
240
+ # The currency code for the buyer. This cannot be altered here.
241
+ # Corresponds to the JSON property `currencyCode`
242
+ # @return [String]
243
+ attr_accessor :currency_code
244
+
245
+ # The unique id that describes this item.
246
+ # Corresponds to the JSON property `id`
247
+ # @return [String]
248
+ attr_accessor :id
249
+
250
+ # The kind of the resource, i.e. "adexchangebuyer#budget".
251
+ # Corresponds to the JSON property `kind`
252
+ # @return [String]
253
+ attr_accessor :kind
254
+
255
+ def initialize(**args)
256
+ update!(**args)
257
+ end
258
+
259
+ # Update properties of this object
260
+ def update!(**args)
261
+ @account_id = args[:account_id] unless args[:account_id].nil?
262
+ @billing_id = args[:billing_id] unless args[:billing_id].nil?
263
+ @budget_amount = args[:budget_amount] unless args[:budget_amount].nil?
264
+ @currency_code = args[:currency_code] unless args[:currency_code].nil?
265
+ @id = args[:id] unless args[:id].nil?
266
+ @kind = args[:kind] unless args[:kind].nil?
267
+ end
268
+ end
269
+
270
+ # A creative and its classification data.
271
+ class Creative
272
+ include Google::Apis::Core::Hashable
273
+
274
+ # The HTML snippet that displays the ad when inserted in the web page. If set,
275
+ # videoURL should not be set.
276
+ # Corresponds to the JSON property `HTMLSnippet`
277
+ # @return [String]
278
+ attr_accessor :html_snippet
279
+
280
+ # Account id.
281
+ # Corresponds to the JSON property `accountId`
282
+ # @return [Fixnum]
283
+ attr_accessor :account_id
284
+
285
+ # Detected advertiser id, if any. Read-only. This field should not be set in
286
+ # requests.
287
+ # Corresponds to the JSON property `advertiserId`
288
+ # @return [Array<String>]
289
+ attr_accessor :advertiser_id
290
+
291
+ # The name of the company being advertised in the creative.
292
+ # Corresponds to the JSON property `advertiserName`
293
+ # @return [String]
294
+ attr_accessor :advertiser_name
295
+
296
+ # The agency id for this creative.
297
+ # Corresponds to the JSON property `agencyId`
298
+ # @return [String]
299
+ attr_accessor :agency_id
300
+
301
+ # The last upload timestamp of this creative if it was uploaded via API. Read-
302
+ # only. The value of this field is generated, and will be ignored for uploads. (
303
+ # formatted RFC 3339 timestamp).
304
+ # Corresponds to the JSON property `apiUploadTimestamp`
305
+ # @return [DateTime]
306
+ attr_accessor :api_upload_timestamp
307
+
308
+ # All attributes for the ads that may be shown from this snippet.
309
+ # Corresponds to the JSON property `attribute`
310
+ # @return [Array<Fixnum>]
311
+ attr_accessor :attribute
312
+
313
+ # A buyer-specific id identifying the creative in this ad.
314
+ # Corresponds to the JSON property `buyerCreativeId`
315
+ # @return [String]
316
+ attr_accessor :buyer_creative_id
317
+
318
+ # The set of destination urls for the snippet.
319
+ # Corresponds to the JSON property `clickThroughUrl`
320
+ # @return [Array<String>]
321
+ attr_accessor :click_through_url
322
+
323
+ # Shows any corrections that were applied to this creative. Read-only. This
324
+ # field should not be set in requests.
325
+ # Corresponds to the JSON property `corrections`
326
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::Creative::Correction>]
327
+ attr_accessor :corrections
328
+
329
+ # The reasons for disapproval, if any. Note that not all disapproval reasons may
330
+ # be categorized, so it is possible for the creative to have a status of
331
+ # DISAPPROVED with an empty list for disapproval_reasons. In this case, please
332
+ # reach out to your TAM to help debug the issue. Read-only. This field should
333
+ # not be set in requests.
334
+ # Corresponds to the JSON property `disapprovalReasons`
335
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::Creative::DisapprovalReason>]
336
+ attr_accessor :disapproval_reasons
337
+
338
+ # The filtering reasons for the creative. Read-only. This field should not be
339
+ # set in requests.
340
+ # Corresponds to the JSON property `filteringReasons`
341
+ # @return [Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons]
342
+ attr_accessor :filtering_reasons
343
+
344
+ # Ad height.
345
+ # Corresponds to the JSON property `height`
346
+ # @return [Fixnum]
347
+ attr_accessor :height
348
+
349
+ # The set of urls to be called to record an impression.
350
+ # Corresponds to the JSON property `impressionTrackingUrl`
351
+ # @return [Array<String>]
352
+ attr_accessor :impression_tracking_url
353
+
354
+ # Resource type.
355
+ # Corresponds to the JSON property `kind`
356
+ # @return [String]
357
+ attr_accessor :kind
358
+
359
+ # If nativeAd is set, HTMLSnippet and videoURL should not be set.
360
+ # Corresponds to the JSON property `nativeAd`
361
+ # @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd]
362
+ attr_accessor :native_ad
363
+
364
+ # Detected product categories, if any. Read-only. This field should not be set
365
+ # in requests.
366
+ # Corresponds to the JSON property `productCategories`
367
+ # @return [Array<Fixnum>]
368
+ attr_accessor :product_categories
369
+
370
+ # All restricted categories for the ads that may be shown from this snippet.
371
+ # Corresponds to the JSON property `restrictedCategories`
372
+ # @return [Array<Fixnum>]
373
+ attr_accessor :restricted_categories
374
+
375
+ # Detected sensitive categories, if any. Read-only. This field should not be set
376
+ # in requests.
377
+ # Corresponds to the JSON property `sensitiveCategories`
378
+ # @return [Array<Fixnum>]
379
+ attr_accessor :sensitive_categories
380
+
381
+ # Creative serving status. Read-only. This field should not be set in requests.
382
+ # Corresponds to the JSON property `status`
383
+ # @return [String]
384
+ attr_accessor :status
385
+
386
+ # All vendor types for the ads that may be shown from this snippet.
387
+ # Corresponds to the JSON property `vendorType`
388
+ # @return [Array<Fixnum>]
389
+ attr_accessor :vendor_type
390
+
391
+ # The version for this creative. Read-only. This field should not be set in
392
+ # requests.
393
+ # Corresponds to the JSON property `version`
394
+ # @return [Fixnum]
395
+ attr_accessor :version
396
+
397
+ # The url to fetch a video ad. If set, HTMLSnippet should not be set.
398
+ # Corresponds to the JSON property `videoURL`
399
+ # @return [String]
400
+ attr_accessor :video_url
401
+
402
+ # Ad width.
403
+ # Corresponds to the JSON property `width`
404
+ # @return [Fixnum]
405
+ attr_accessor :width
406
+
407
+ def initialize(**args)
408
+ update!(**args)
409
+ end
410
+
411
+ # Update properties of this object
412
+ def update!(**args)
413
+ @html_snippet = args[:html_snippet] unless args[:html_snippet].nil?
414
+ @account_id = args[:account_id] unless args[:account_id].nil?
415
+ @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
416
+ @advertiser_name = args[:advertiser_name] unless args[:advertiser_name].nil?
417
+ @agency_id = args[:agency_id] unless args[:agency_id].nil?
418
+ @api_upload_timestamp = args[:api_upload_timestamp] unless args[:api_upload_timestamp].nil?
419
+ @attribute = args[:attribute] unless args[:attribute].nil?
420
+ @buyer_creative_id = args[:buyer_creative_id] unless args[:buyer_creative_id].nil?
421
+ @click_through_url = args[:click_through_url] unless args[:click_through_url].nil?
422
+ @corrections = args[:corrections] unless args[:corrections].nil?
423
+ @disapproval_reasons = args[:disapproval_reasons] unless args[:disapproval_reasons].nil?
424
+ @filtering_reasons = args[:filtering_reasons] unless args[:filtering_reasons].nil?
425
+ @height = args[:height] unless args[:height].nil?
426
+ @impression_tracking_url = args[:impression_tracking_url] unless args[:impression_tracking_url].nil?
427
+ @kind = args[:kind] unless args[:kind].nil?
428
+ @native_ad = args[:native_ad] unless args[:native_ad].nil?
429
+ @product_categories = args[:product_categories] unless args[:product_categories].nil?
430
+ @restricted_categories = args[:restricted_categories] unless args[:restricted_categories].nil?
431
+ @sensitive_categories = args[:sensitive_categories] unless args[:sensitive_categories].nil?
432
+ @status = args[:status] unless args[:status].nil?
433
+ @vendor_type = args[:vendor_type] unless args[:vendor_type].nil?
434
+ @version = args[:version] unless args[:version].nil?
435
+ @video_url = args[:video_url] unless args[:video_url].nil?
436
+ @width = args[:width] unless args[:width].nil?
437
+ end
438
+
439
+ #
440
+ class Correction
441
+ include Google::Apis::Core::Hashable
442
+
443
+ # Additional details about the correction.
444
+ # Corresponds to the JSON property `details`
445
+ # @return [Array<String>]
446
+ attr_accessor :details
447
+
448
+ # The type of correction that was applied to the creative.
449
+ # Corresponds to the JSON property `reason`
450
+ # @return [String]
451
+ attr_accessor :reason
452
+
453
+ def initialize(**args)
454
+ update!(**args)
455
+ end
456
+
457
+ # Update properties of this object
458
+ def update!(**args)
459
+ @details = args[:details] unless args[:details].nil?
460
+ @reason = args[:reason] unless args[:reason].nil?
461
+ end
462
+ end
463
+
464
+ #
465
+ class DisapprovalReason
466
+ include Google::Apis::Core::Hashable
467
+
468
+ # Additional details about the reason for disapproval.
469
+ # Corresponds to the JSON property `details`
470
+ # @return [Array<String>]
471
+ attr_accessor :details
472
+
473
+ # The categorized reason for disapproval.
474
+ # Corresponds to the JSON property `reason`
475
+ # @return [String]
476
+ attr_accessor :reason
477
+
478
+ def initialize(**args)
479
+ update!(**args)
480
+ end
481
+
482
+ # Update properties of this object
483
+ def update!(**args)
484
+ @details = args[:details] unless args[:details].nil?
485
+ @reason = args[:reason] unless args[:reason].nil?
486
+ end
487
+ end
488
+
489
+ # The filtering reasons for the creative. Read-only. This field should not be
490
+ # set in requests.
491
+ class FilteringReasons
492
+ include Google::Apis::Core::Hashable
493
+
494
+ # The date in ISO 8601 format for the data. The data is collected from 00:00:00
495
+ # to 23:59:59 in PST.
496
+ # Corresponds to the JSON property `date`
497
+ # @return [String]
498
+ attr_accessor :date
499
+
500
+ # The filtering reasons.
501
+ # Corresponds to the JSON property `reasons`
502
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons::Reason>]
503
+ attr_accessor :reasons
504
+
505
+ def initialize(**args)
506
+ update!(**args)
507
+ end
508
+
509
+ # Update properties of this object
510
+ def update!(**args)
511
+ @date = args[:date] unless args[:date].nil?
512
+ @reasons = args[:reasons] unless args[:reasons].nil?
513
+ end
514
+
515
+ #
516
+ class Reason
517
+ include Google::Apis::Core::Hashable
518
+
519
+ # The number of times the creative was filtered for the status. The count is
520
+ # aggregated across all publishers on the exchange.
521
+ # Corresponds to the JSON property `filteringCount`
522
+ # @return [String]
523
+ attr_accessor :filtering_count
524
+
525
+ # The filtering status code. Please refer to the creative-status-codes.txt file
526
+ # for different statuses.
527
+ # Corresponds to the JSON property `filteringStatus`
528
+ # @return [Fixnum]
529
+ attr_accessor :filtering_status
530
+
531
+ def initialize(**args)
532
+ update!(**args)
533
+ end
534
+
535
+ # Update properties of this object
536
+ def update!(**args)
537
+ @filtering_count = args[:filtering_count] unless args[:filtering_count].nil?
538
+ @filtering_status = args[:filtering_status] unless args[:filtering_status].nil?
539
+ end
540
+ end
541
+ end
542
+
543
+ # If nativeAd is set, HTMLSnippet and videoURL should not be set.
544
+ class NativeAd
545
+ include Google::Apis::Core::Hashable
546
+
547
+ #
548
+ # Corresponds to the JSON property `advertiser`
549
+ # @return [String]
550
+ attr_accessor :advertiser
551
+
552
+ # The app icon, for app download ads.
553
+ # Corresponds to the JSON property `appIcon`
554
+ # @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon]
555
+ attr_accessor :app_icon
556
+
557
+ # A long description of the ad.
558
+ # Corresponds to the JSON property `body`
559
+ # @return [String]
560
+ attr_accessor :body
561
+
562
+ # A label for the button that the user is supposed to click.
563
+ # Corresponds to the JSON property `callToAction`
564
+ # @return [String]
565
+ attr_accessor :call_to_action
566
+
567
+ # The URL to use for click tracking.
568
+ # Corresponds to the JSON property `clickTrackingUrl`
569
+ # @return [String]
570
+ attr_accessor :click_tracking_url
571
+
572
+ # A short title for the ad.
573
+ # Corresponds to the JSON property `headline`
574
+ # @return [String]
575
+ attr_accessor :headline
576
+
577
+ # A large image.
578
+ # Corresponds to the JSON property `image`
579
+ # @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image]
580
+ attr_accessor :image
581
+
582
+ # The URLs are called when the impression is rendered.
583
+ # Corresponds to the JSON property `impressionTrackingUrl`
584
+ # @return [Array<String>]
585
+ attr_accessor :impression_tracking_url
586
+
587
+ # A smaller image, for the advertiser logo.
588
+ # Corresponds to the JSON property `logo`
589
+ # @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo]
590
+ attr_accessor :logo
591
+
592
+ # The price of the promoted app including the currency info.
593
+ # Corresponds to the JSON property `price`
594
+ # @return [String]
595
+ attr_accessor :price
596
+
597
+ # The app rating in the app store. Must be in the range [0-5].
598
+ # Corresponds to the JSON property `starRating`
599
+ # @return [Float]
600
+ attr_accessor :star_rating
601
+
602
+ # The URL to the app store to purchase/download the promoted app.
603
+ # Corresponds to the JSON property `store`
604
+ # @return [String]
605
+ attr_accessor :store
606
+
607
+ def initialize(**args)
608
+ update!(**args)
609
+ end
610
+
611
+ # Update properties of this object
612
+ def update!(**args)
613
+ @advertiser = args[:advertiser] unless args[:advertiser].nil?
614
+ @app_icon = args[:app_icon] unless args[:app_icon].nil?
615
+ @body = args[:body] unless args[:body].nil?
616
+ @call_to_action = args[:call_to_action] unless args[:call_to_action].nil?
617
+ @click_tracking_url = args[:click_tracking_url] unless args[:click_tracking_url].nil?
618
+ @headline = args[:headline] unless args[:headline].nil?
619
+ @image = args[:image] unless args[:image].nil?
620
+ @impression_tracking_url = args[:impression_tracking_url] unless args[:impression_tracking_url].nil?
621
+ @logo = args[:logo] unless args[:logo].nil?
622
+ @price = args[:price] unless args[:price].nil?
623
+ @star_rating = args[:star_rating] unless args[:star_rating].nil?
624
+ @store = args[:store] unless args[:store].nil?
625
+ end
626
+
627
+ # The app icon, for app download ads.
628
+ class AppIcon
629
+ include Google::Apis::Core::Hashable
630
+
631
+ #
632
+ # Corresponds to the JSON property `height`
633
+ # @return [Fixnum]
634
+ attr_accessor :height
635
+
636
+ #
637
+ # Corresponds to the JSON property `url`
638
+ # @return [String]
639
+ attr_accessor :url
640
+
641
+ #
642
+ # Corresponds to the JSON property `width`
643
+ # @return [Fixnum]
644
+ attr_accessor :width
645
+
646
+ def initialize(**args)
647
+ update!(**args)
648
+ end
649
+
650
+ # Update properties of this object
651
+ def update!(**args)
652
+ @height = args[:height] unless args[:height].nil?
653
+ @url = args[:url] unless args[:url].nil?
654
+ @width = args[:width] unless args[:width].nil?
655
+ end
656
+ end
657
+
658
+ # A large image.
659
+ class Image
660
+ include Google::Apis::Core::Hashable
661
+
662
+ #
663
+ # Corresponds to the JSON property `height`
664
+ # @return [Fixnum]
665
+ attr_accessor :height
666
+
667
+ #
668
+ # Corresponds to the JSON property `url`
669
+ # @return [String]
670
+ attr_accessor :url
671
+
672
+ #
673
+ # Corresponds to the JSON property `width`
674
+ # @return [Fixnum]
675
+ attr_accessor :width
676
+
677
+ def initialize(**args)
678
+ update!(**args)
679
+ end
680
+
681
+ # Update properties of this object
682
+ def update!(**args)
683
+ @height = args[:height] unless args[:height].nil?
684
+ @url = args[:url] unless args[:url].nil?
685
+ @width = args[:width] unless args[:width].nil?
686
+ end
687
+ end
688
+
689
+ # A smaller image, for the advertiser logo.
690
+ class Logo
691
+ include Google::Apis::Core::Hashable
692
+
693
+ #
694
+ # Corresponds to the JSON property `height`
695
+ # @return [Fixnum]
696
+ attr_accessor :height
697
+
698
+ #
699
+ # Corresponds to the JSON property `url`
700
+ # @return [String]
701
+ attr_accessor :url
702
+
703
+ #
704
+ # Corresponds to the JSON property `width`
705
+ # @return [Fixnum]
706
+ attr_accessor :width
707
+
708
+ def initialize(**args)
709
+ update!(**args)
710
+ end
711
+
712
+ # Update properties of this object
713
+ def update!(**args)
714
+ @height = args[:height] unless args[:height].nil?
715
+ @url = args[:url] unless args[:url].nil?
716
+ @width = args[:width] unless args[:width].nil?
717
+ end
718
+ end
719
+ end
720
+ end
721
+
722
+ # The creatives feed lists the active creatives for the Ad Exchange buyer
723
+ # accounts that the user has access to. Each entry in the feed corresponds to a
724
+ # single creative.
725
+ class CreativesList
726
+ include Google::Apis::Core::Hashable
727
+
728
+ # A list of creatives.
729
+ # Corresponds to the JSON property `items`
730
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::Creative>]
731
+ attr_accessor :items
732
+
733
+ # Resource type.
734
+ # Corresponds to the JSON property `kind`
735
+ # @return [String]
736
+ attr_accessor :kind
737
+
738
+ # Continuation token used to page through creatives. To retrieve the next page
739
+ # of results, set the next request's "pageToken" value to this.
740
+ # Corresponds to the JSON property `nextPageToken`
741
+ # @return [String]
742
+ attr_accessor :next_page_token
743
+
744
+ def initialize(**args)
745
+ update!(**args)
746
+ end
747
+
748
+ # Update properties of this object
749
+ def update!(**args)
750
+ @items = args[:items] unless args[:items].nil?
751
+ @kind = args[:kind] unless args[:kind].nil?
752
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
753
+ end
754
+ end
755
+
756
+ # The configuration data for an Ad Exchange direct deal.
757
+ class DirectDeal
758
+ include Google::Apis::Core::Hashable
759
+
760
+ # The account id of the buyer this deal is for.
761
+ # Corresponds to the JSON property `accountId`
762
+ # @return [Fixnum]
763
+ attr_accessor :account_id
764
+
765
+ # The name of the advertiser this deal is for.
766
+ # Corresponds to the JSON property `advertiser`
767
+ # @return [String]
768
+ attr_accessor :advertiser
769
+
770
+ # The currency code that applies to the fixed_cpm value. If not set then assumed
771
+ # to be USD.
772
+ # Corresponds to the JSON property `currencyCode`
773
+ # @return [String]
774
+ attr_accessor :currency_code
775
+
776
+ # The deal type such as programmatic reservation or fixed price and so on.
777
+ # Corresponds to the JSON property `dealTier`
778
+ # @return [String]
779
+ attr_accessor :deal_tier
780
+
781
+ # End time for when this deal stops being active. If not set then this deal is
782
+ # valid until manually disabled by the publisher. In seconds since the epoch.
783
+ # Corresponds to the JSON property `endTime`
784
+ # @return [String]
785
+ attr_accessor :end_time
786
+
787
+ # The fixed price for this direct deal. In cpm micros of currency according to
788
+ # currency_code. If set, then this deal is eligible for the fixed price tier of
789
+ # buying (highest priority, pay exactly the configured fixed price).
790
+ # Corresponds to the JSON property `fixedCpm`
791
+ # @return [String]
792
+ attr_accessor :fixed_cpm
793
+
794
+ # Deal id.
795
+ # Corresponds to the JSON property `id`
796
+ # @return [String]
797
+ attr_accessor :id
798
+
799
+ # Resource type.
800
+ # Corresponds to the JSON property `kind`
801
+ # @return [String]
802
+ attr_accessor :kind
803
+
804
+ # Deal name.
805
+ # Corresponds to the JSON property `name`
806
+ # @return [String]
807
+ attr_accessor :name
808
+
809
+ # The minimum price for this direct deal. In cpm micros of currency according to
810
+ # currency_code. If set, then this deal is eligible for the private exchange
811
+ # tier of buying (below fixed price priority, run as a second price auction).
812
+ # Corresponds to the JSON property `privateExchangeMinCpm`
813
+ # @return [String]
814
+ attr_accessor :private_exchange_min_cpm
815
+
816
+ # If true, the publisher has opted to have their blocks ignored when a creative
817
+ # is bid with for this deal.
818
+ # Corresponds to the JSON property `publisherBlocksOverriden`
819
+ # @return [Boolean]
820
+ attr_accessor :publisher_blocks_overriden
821
+ alias_method :publisher_blocks_overriden?, :publisher_blocks_overriden
822
+
823
+ # The name of the publisher offering this direct deal.
824
+ # Corresponds to the JSON property `sellerNetwork`
825
+ # @return [String]
826
+ attr_accessor :seller_network
827
+
828
+ # Start time for when this deal becomes active. If not set then this deal is
829
+ # active immediately upon creation. In seconds since the epoch.
830
+ # Corresponds to the JSON property `startTime`
831
+ # @return [String]
832
+ attr_accessor :start_time
833
+
834
+ def initialize(**args)
835
+ update!(**args)
836
+ end
837
+
838
+ # Update properties of this object
839
+ def update!(**args)
840
+ @account_id = args[:account_id] unless args[:account_id].nil?
841
+ @advertiser = args[:advertiser] unless args[:advertiser].nil?
842
+ @currency_code = args[:currency_code] unless args[:currency_code].nil?
843
+ @deal_tier = args[:deal_tier] unless args[:deal_tier].nil?
844
+ @end_time = args[:end_time] unless args[:end_time].nil?
845
+ @fixed_cpm = args[:fixed_cpm] unless args[:fixed_cpm].nil?
846
+ @id = args[:id] unless args[:id].nil?
847
+ @kind = args[:kind] unless args[:kind].nil?
848
+ @name = args[:name] unless args[:name].nil?
849
+ @private_exchange_min_cpm = args[:private_exchange_min_cpm] unless args[:private_exchange_min_cpm].nil?
850
+ @publisher_blocks_overriden = args[:publisher_blocks_overriden] unless args[:publisher_blocks_overriden].nil?
851
+ @seller_network = args[:seller_network] unless args[:seller_network].nil?
852
+ @start_time = args[:start_time] unless args[:start_time].nil?
853
+ end
854
+ end
855
+
856
+ # A direct deals feed lists Direct Deals the Ad Exchange buyer account has
857
+ # access to. This includes direct deals set up for the buyer account as well as
858
+ # its merged stream seats.
859
+ class DirectDealsList
860
+ include Google::Apis::Core::Hashable
861
+
862
+ # A list of direct deals relevant for your account.
863
+ # Corresponds to the JSON property `directDeals`
864
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::DirectDeal>]
865
+ attr_accessor :direct_deals
866
+
867
+ # Resource type.
868
+ # Corresponds to the JSON property `kind`
869
+ # @return [String]
870
+ attr_accessor :kind
871
+
872
+ def initialize(**args)
873
+ update!(**args)
874
+ end
875
+
876
+ # Update properties of this object
877
+ def update!(**args)
878
+ @direct_deals = args[:direct_deals] unless args[:direct_deals].nil?
879
+ @kind = args[:kind] unless args[:kind].nil?
880
+ end
881
+ end
882
+
883
+ # The configuration data for an Ad Exchange performance report list.
884
+ class PerformanceReport
885
+ include Google::Apis::Core::Hashable
886
+
887
+ # The number of bid responses with an ad.
888
+ # Corresponds to the JSON property `bidRate`
889
+ # @return [Float]
890
+ attr_accessor :bid_rate
891
+
892
+ # The number of bid requests sent to your bidder.
893
+ # Corresponds to the JSON property `bidRequestRate`
894
+ # @return [Float]
895
+ attr_accessor :bid_request_rate
896
+
897
+ # Rate of various prefiltering statuses per match. Please refer to the callout-
898
+ # status-codes.txt file for different statuses.
899
+ # Corresponds to the JSON property `calloutStatusRate`
900
+ # @return [Array<Object>]
901
+ attr_accessor :callout_status_rate
902
+
903
+ # Average QPS for cookie matcher operations.
904
+ # Corresponds to the JSON property `cookieMatcherStatusRate`
905
+ # @return [Array<Object>]
906
+ attr_accessor :cookie_matcher_status_rate
907
+
908
+ # Rate of ads with a given status. Please refer to the creative-status-codes.txt
909
+ # file for different statuses.
910
+ # Corresponds to the JSON property `creativeStatusRate`
911
+ # @return [Array<Object>]
912
+ attr_accessor :creative_status_rate
913
+
914
+ # The number of bid responses that were filtered due to a policy violation or
915
+ # other errors.
916
+ # Corresponds to the JSON property `filteredBidRate`
917
+ # @return [Float]
918
+ attr_accessor :filtered_bid_rate
919
+
920
+ # Average QPS for hosted match operations.
921
+ # Corresponds to the JSON property `hostedMatchStatusRate`
922
+ # @return [Array<Object>]
923
+ attr_accessor :hosted_match_status_rate
924
+
925
+ # The number of potential queries based on your pretargeting settings.
926
+ # Corresponds to the JSON property `inventoryMatchRate`
927
+ # @return [Float]
928
+ attr_accessor :inventory_match_rate
929
+
930
+ # Resource type.
931
+ # Corresponds to the JSON property `kind`
932
+ # @return [String]
933
+ attr_accessor :kind
934
+
935
+ # The 50th percentile round trip latency(ms) as perceived from Google servers
936
+ # for the duration period covered by the report.
937
+ # Corresponds to the JSON property `latency50thPercentile`
938
+ # @return [Float]
939
+ attr_accessor :latency_50th_percentile
940
+
941
+ # The 85th percentile round trip latency(ms) as perceived from Google servers
942
+ # for the duration period covered by the report.
943
+ # Corresponds to the JSON property `latency85thPercentile`
944
+ # @return [Float]
945
+ attr_accessor :latency_85th_percentile
946
+
947
+ # The 95th percentile round trip latency(ms) as perceived from Google servers
948
+ # for the duration period covered by the report.
949
+ # Corresponds to the JSON property `latency95thPercentile`
950
+ # @return [Float]
951
+ attr_accessor :latency_95th_percentile
952
+
953
+ # Rate of various quota account statuses per quota check.
954
+ # Corresponds to the JSON property `noQuotaInRegion`
955
+ # @return [Float]
956
+ attr_accessor :no_quota_in_region
957
+
958
+ # Rate of various quota account statuses per quota check.
959
+ # Corresponds to the JSON property `outOfQuota`
960
+ # @return [Float]
961
+ attr_accessor :out_of_quota
962
+
963
+ # Average QPS for pixel match requests from clients.
964
+ # Corresponds to the JSON property `pixelMatchRequests`
965
+ # @return [Float]
966
+ attr_accessor :pixel_match_requests
967
+
968
+ # Average QPS for pixel match responses from clients.
969
+ # Corresponds to the JSON property `pixelMatchResponses`
970
+ # @return [Float]
971
+ attr_accessor :pixel_match_responses
972
+
973
+ # The configured quota limits for this account.
974
+ # Corresponds to the JSON property `quotaConfiguredLimit`
975
+ # @return [Float]
976
+ attr_accessor :quota_configured_limit
977
+
978
+ # The throttled quota limits for this account.
979
+ # Corresponds to the JSON property `quotaThrottledLimit`
980
+ # @return [Float]
981
+ attr_accessor :quota_throttled_limit
982
+
983
+ # The trading location of this data.
984
+ # Corresponds to the JSON property `region`
985
+ # @return [String]
986
+ attr_accessor :region
987
+
988
+ # The number of properly formed bid responses received by our servers within the
989
+ # deadline.
990
+ # Corresponds to the JSON property `successfulRequestRate`
991
+ # @return [Float]
992
+ attr_accessor :successful_request_rate
993
+
994
+ # The unix timestamp of the starting time of this performance data.
995
+ # Corresponds to the JSON property `timestamp`
996
+ # @return [String]
997
+ attr_accessor :timestamp
998
+
999
+ # The number of bid responses that were unsuccessful due to timeouts, incorrect
1000
+ # formatting, etc.
1001
+ # Corresponds to the JSON property `unsuccessfulRequestRate`
1002
+ # @return [Float]
1003
+ attr_accessor :unsuccessful_request_rate
1004
+
1005
+ def initialize(**args)
1006
+ update!(**args)
1007
+ end
1008
+
1009
+ # Update properties of this object
1010
+ def update!(**args)
1011
+ @bid_rate = args[:bid_rate] unless args[:bid_rate].nil?
1012
+ @bid_request_rate = args[:bid_request_rate] unless args[:bid_request_rate].nil?
1013
+ @callout_status_rate = args[:callout_status_rate] unless args[:callout_status_rate].nil?
1014
+ @cookie_matcher_status_rate = args[:cookie_matcher_status_rate] unless args[:cookie_matcher_status_rate].nil?
1015
+ @creative_status_rate = args[:creative_status_rate] unless args[:creative_status_rate].nil?
1016
+ @filtered_bid_rate = args[:filtered_bid_rate] unless args[:filtered_bid_rate].nil?
1017
+ @hosted_match_status_rate = args[:hosted_match_status_rate] unless args[:hosted_match_status_rate].nil?
1018
+ @inventory_match_rate = args[:inventory_match_rate] unless args[:inventory_match_rate].nil?
1019
+ @kind = args[:kind] unless args[:kind].nil?
1020
+ @latency_50th_percentile = args[:latency_50th_percentile] unless args[:latency_50th_percentile].nil?
1021
+ @latency_85th_percentile = args[:latency_85th_percentile] unless args[:latency_85th_percentile].nil?
1022
+ @latency_95th_percentile = args[:latency_95th_percentile] unless args[:latency_95th_percentile].nil?
1023
+ @no_quota_in_region = args[:no_quota_in_region] unless args[:no_quota_in_region].nil?
1024
+ @out_of_quota = args[:out_of_quota] unless args[:out_of_quota].nil?
1025
+ @pixel_match_requests = args[:pixel_match_requests] unless args[:pixel_match_requests].nil?
1026
+ @pixel_match_responses = args[:pixel_match_responses] unless args[:pixel_match_responses].nil?
1027
+ @quota_configured_limit = args[:quota_configured_limit] unless args[:quota_configured_limit].nil?
1028
+ @quota_throttled_limit = args[:quota_throttled_limit] unless args[:quota_throttled_limit].nil?
1029
+ @region = args[:region] unless args[:region].nil?
1030
+ @successful_request_rate = args[:successful_request_rate] unless args[:successful_request_rate].nil?
1031
+ @timestamp = args[:timestamp] unless args[:timestamp].nil?
1032
+ @unsuccessful_request_rate = args[:unsuccessful_request_rate] unless args[:unsuccessful_request_rate].nil?
1033
+ end
1034
+ end
1035
+
1036
+ # The configuration data for an Ad Exchange performance report list. https://
1037
+ # sites.google.com/a/google.com/adx-integration/Home/engineering/binary-releases/
1038
+ # rtb-api-release https://cs.corp.google.com/#piper///depot/google3/contentads/
1039
+ # adx/tools/rtb_api/adxrtb.py
1040
+ class PerformanceReportList
1041
+ include Google::Apis::Core::Hashable
1042
+
1043
+ # Resource type.
1044
+ # Corresponds to the JSON property `kind`
1045
+ # @return [String]
1046
+ attr_accessor :kind
1047
+
1048
+ # A list of performance reports relevant for the account.
1049
+ # Corresponds to the JSON property `performanceReport`
1050
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::PerformanceReport>]
1051
+ attr_accessor :performance_report
1052
+
1053
+ def initialize(**args)
1054
+ update!(**args)
1055
+ end
1056
+
1057
+ # Update properties of this object
1058
+ def update!(**args)
1059
+ @kind = args[:kind] unless args[:kind].nil?
1060
+ @performance_report = args[:performance_report] unless args[:performance_report].nil?
1061
+ end
1062
+ end
1063
+
1064
+ #
1065
+ class PretargetingConfig
1066
+ include Google::Apis::Core::Hashable
1067
+
1068
+ # The id for billing purposes, provided for reference. Leave this field blank
1069
+ # for insert requests; the id will be generated automatically.
1070
+ # Corresponds to the JSON property `billingId`
1071
+ # @return [String]
1072
+ attr_accessor :billing_id
1073
+
1074
+ # The config id; generated automatically. Leave this field blank for insert
1075
+ # requests.
1076
+ # Corresponds to the JSON property `configId`
1077
+ # @return [String]
1078
+ attr_accessor :config_id
1079
+
1080
+ # The name of the config. Must be unique. Required for all requests.
1081
+ # Corresponds to the JSON property `configName`
1082
+ # @return [String]
1083
+ attr_accessor :config_name
1084
+
1085
+ # List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or
1086
+ # PRETARGETING_CREATIVE_TYPE_VIDEO.
1087
+ # Corresponds to the JSON property `creativeType`
1088
+ # @return [Array<String>]
1089
+ attr_accessor :creative_type
1090
+
1091
+ # Requests which allow one of these (width, height) pairs will match. All pairs
1092
+ # must be supported ad dimensions.
1093
+ # Corresponds to the JSON property `dimensions`
1094
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Dimension>]
1095
+ attr_accessor :dimensions
1096
+
1097
+ # Requests with any of these content labels will not match. Values are from
1098
+ # content-labels.txt in the downloadable files section.
1099
+ # Corresponds to the JSON property `excludedContentLabels`
1100
+ # @return [Array<String>]
1101
+ attr_accessor :excluded_content_labels
1102
+
1103
+ # Requests containing any of these geo criteria ids will not match.
1104
+ # Corresponds to the JSON property `excludedGeoCriteriaIds`
1105
+ # @return [Array<String>]
1106
+ attr_accessor :excluded_geo_criteria_ids
1107
+
1108
+ # Requests containing any of these placements will not match.
1109
+ # Corresponds to the JSON property `excludedPlacements`
1110
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::ExcludedPlacement>]
1111
+ attr_accessor :excluded_placements
1112
+
1113
+ # Requests containing any of these users list ids will not match.
1114
+ # Corresponds to the JSON property `excludedUserLists`
1115
+ # @return [Array<String>]
1116
+ attr_accessor :excluded_user_lists
1117
+
1118
+ # Requests containing any of these vertical ids will not match. Values are from
1119
+ # the publisher-verticals.txt file in the downloadable files section.
1120
+ # Corresponds to the JSON property `excludedVerticals`
1121
+ # @return [Array<String>]
1122
+ attr_accessor :excluded_verticals
1123
+
1124
+ # Requests containing any of these geo criteria ids will match.
1125
+ # Corresponds to the JSON property `geoCriteriaIds`
1126
+ # @return [Array<String>]
1127
+ attr_accessor :geo_criteria_ids
1128
+
1129
+ # Whether this config is active. Required for all requests.
1130
+ # Corresponds to the JSON property `isActive`
1131
+ # @return [Boolean]
1132
+ attr_accessor :is_active
1133
+ alias_method :is_active?, :is_active
1134
+
1135
+ # The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig".
1136
+ # Corresponds to the JSON property `kind`
1137
+ # @return [String]
1138
+ attr_accessor :kind
1139
+
1140
+ # Request containing any of these language codes will match.
1141
+ # Corresponds to the JSON property `languages`
1142
+ # @return [Array<String>]
1143
+ attr_accessor :languages
1144
+
1145
+ # Requests containing any of these mobile carrier ids will match. Values are
1146
+ # from mobile-carriers.csv in the downloadable files section.
1147
+ # Corresponds to the JSON property `mobileCarriers`
1148
+ # @return [Array<String>]
1149
+ attr_accessor :mobile_carriers
1150
+
1151
+ # Requests containing any of these mobile device ids will match. Values are from
1152
+ # mobile-devices.csv in the downloadable files section.
1153
+ # Corresponds to the JSON property `mobileDevices`
1154
+ # @return [Array<String>]
1155
+ attr_accessor :mobile_devices
1156
+
1157
+ # Requests containing any of these mobile operating system version ids will
1158
+ # match. Values are from mobile-os.csv in the downloadable files section.
1159
+ # Corresponds to the JSON property `mobileOperatingSystemVersions`
1160
+ # @return [Array<String>]
1161
+ attr_accessor :mobile_operating_system_versions
1162
+
1163
+ # Requests containing any of these placements will match.
1164
+ # Corresponds to the JSON property `placements`
1165
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Placement>]
1166
+ attr_accessor :placements
1167
+
1168
+ # Requests matching any of these platforms will match. Possible values are
1169
+ # PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and
1170
+ # PRETARGETING_PLATFORM_TABLET.
1171
+ # Corresponds to the JSON property `platforms`
1172
+ # @return [Array<String>]
1173
+ attr_accessor :platforms
1174
+
1175
+ # Creative attributes should be declared here if all creatives corresponding to
1176
+ # this pretargeting configuration have that creative attribute. Values are from
1177
+ # pretargetable-creative-attributes.txt in the downloadable files section.
1178
+ # Corresponds to the JSON property `supportedCreativeAttributes`
1179
+ # @return [Array<String>]
1180
+ attr_accessor :supported_creative_attributes
1181
+
1182
+ # Requests containing any of these user list ids will match.
1183
+ # Corresponds to the JSON property `userLists`
1184
+ # @return [Array<String>]
1185
+ attr_accessor :user_lists
1186
+
1187
+ # Requests that allow any of these vendor ids will match. Values are from
1188
+ # vendors.txt in the downloadable files section.
1189
+ # Corresponds to the JSON property `vendorTypes`
1190
+ # @return [Array<String>]
1191
+ attr_accessor :vendor_types
1192
+
1193
+ # Requests containing any of these vertical ids will match.
1194
+ # Corresponds to the JSON property `verticals`
1195
+ # @return [Array<String>]
1196
+ attr_accessor :verticals
1197
+
1198
+ def initialize(**args)
1199
+ update!(**args)
1200
+ end
1201
+
1202
+ # Update properties of this object
1203
+ def update!(**args)
1204
+ @billing_id = args[:billing_id] unless args[:billing_id].nil?
1205
+ @config_id = args[:config_id] unless args[:config_id].nil?
1206
+ @config_name = args[:config_name] unless args[:config_name].nil?
1207
+ @creative_type = args[:creative_type] unless args[:creative_type].nil?
1208
+ @dimensions = args[:dimensions] unless args[:dimensions].nil?
1209
+ @excluded_content_labels = args[:excluded_content_labels] unless args[:excluded_content_labels].nil?
1210
+ @excluded_geo_criteria_ids = args[:excluded_geo_criteria_ids] unless args[:excluded_geo_criteria_ids].nil?
1211
+ @excluded_placements = args[:excluded_placements] unless args[:excluded_placements].nil?
1212
+ @excluded_user_lists = args[:excluded_user_lists] unless args[:excluded_user_lists].nil?
1213
+ @excluded_verticals = args[:excluded_verticals] unless args[:excluded_verticals].nil?
1214
+ @geo_criteria_ids = args[:geo_criteria_ids] unless args[:geo_criteria_ids].nil?
1215
+ @is_active = args[:is_active] unless args[:is_active].nil?
1216
+ @kind = args[:kind] unless args[:kind].nil?
1217
+ @languages = args[:languages] unless args[:languages].nil?
1218
+ @mobile_carriers = args[:mobile_carriers] unless args[:mobile_carriers].nil?
1219
+ @mobile_devices = args[:mobile_devices] unless args[:mobile_devices].nil?
1220
+ @mobile_operating_system_versions = args[:mobile_operating_system_versions] unless args[:mobile_operating_system_versions].nil?
1221
+ @placements = args[:placements] unless args[:placements].nil?
1222
+ @platforms = args[:platforms] unless args[:platforms].nil?
1223
+ @supported_creative_attributes = args[:supported_creative_attributes] unless args[:supported_creative_attributes].nil?
1224
+ @user_lists = args[:user_lists] unless args[:user_lists].nil?
1225
+ @vendor_types = args[:vendor_types] unless args[:vendor_types].nil?
1226
+ @verticals = args[:verticals] unless args[:verticals].nil?
1227
+ end
1228
+
1229
+ #
1230
+ class Dimension
1231
+ include Google::Apis::Core::Hashable
1232
+
1233
+ # Height in pixels.
1234
+ # Corresponds to the JSON property `height`
1235
+ # @return [String]
1236
+ attr_accessor :height
1237
+
1238
+ # Width in pixels.
1239
+ # Corresponds to the JSON property `width`
1240
+ # @return [String]
1241
+ attr_accessor :width
1242
+
1243
+ def initialize(**args)
1244
+ update!(**args)
1245
+ end
1246
+
1247
+ # Update properties of this object
1248
+ def update!(**args)
1249
+ @height = args[:height] unless args[:height].nil?
1250
+ @width = args[:width] unless args[:width].nil?
1251
+ end
1252
+ end
1253
+
1254
+ #
1255
+ class ExcludedPlacement
1256
+ include Google::Apis::Core::Hashable
1257
+
1258
+ # The value of the placement. Interpretation depends on the placement type, e.g.
1259
+ # URL for a site placement, channel name for a channel placement, app id for a
1260
+ # mobile app placement.
1261
+ # Corresponds to the JSON property `token`
1262
+ # @return [String]
1263
+ attr_accessor :token
1264
+
1265
+ # The type of the placement.
1266
+ # Corresponds to the JSON property `type`
1267
+ # @return [String]
1268
+ attr_accessor :type
1269
+
1270
+ def initialize(**args)
1271
+ update!(**args)
1272
+ end
1273
+
1274
+ # Update properties of this object
1275
+ def update!(**args)
1276
+ @token = args[:token] unless args[:token].nil?
1277
+ @type = args[:type] unless args[:type].nil?
1278
+ end
1279
+ end
1280
+
1281
+ #
1282
+ class Placement
1283
+ include Google::Apis::Core::Hashable
1284
+
1285
+ # The value of the placement. Interpretation depends on the placement type, e.g.
1286
+ # URL for a site placement, channel name for a channel placement, app id for a
1287
+ # mobile app placement.
1288
+ # Corresponds to the JSON property `token`
1289
+ # @return [String]
1290
+ attr_accessor :token
1291
+
1292
+ # The type of the placement.
1293
+ # Corresponds to the JSON property `type`
1294
+ # @return [String]
1295
+ attr_accessor :type
1296
+
1297
+ def initialize(**args)
1298
+ update!(**args)
1299
+ end
1300
+
1301
+ # Update properties of this object
1302
+ def update!(**args)
1303
+ @token = args[:token] unless args[:token].nil?
1304
+ @type = args[:type] unless args[:type].nil?
1305
+ end
1306
+ end
1307
+ end
1308
+
1309
+ #
1310
+ class PretargetingConfigList
1311
+ include Google::Apis::Core::Hashable
1312
+
1313
+ # A list of pretargeting configs
1314
+ # Corresponds to the JSON property `items`
1315
+ # @return [Array<Google::Apis::AdexchangebuyerV1_3::PretargetingConfig>]
1316
+ attr_accessor :items
1317
+
1318
+ # Resource type.
1319
+ # Corresponds to the JSON property `kind`
1320
+ # @return [String]
1321
+ attr_accessor :kind
1322
+
1323
+ def initialize(**args)
1324
+ update!(**args)
1325
+ end
1326
+
1327
+ # Update properties of this object
1328
+ def update!(**args)
1329
+ @items = args[:items] unless args[:items].nil?
1330
+ @kind = args[:kind] unless args[:kind].nil?
1331
+ end
1332
+ end
1333
+ end
1334
+ end
1335
+ end