google-api-client 0.10.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60ad26d9f6301f810fafac7ab4c02160704cc3a8
4
- data.tar.gz: 9c40bbcddf475bed3e3210b0eb626d6a43ab9898
3
+ metadata.gz: 6ac171a5bd13e1c4ad76f2b2e59716befe9b738a
4
+ data.tar.gz: e4a298e406249f0560df19239242da6f16e5a290
5
5
  SHA512:
6
- metadata.gz: 3761382b6c1305a00bca23bb8f57ab687867cfc38bbc0ea9f0b1133b7f6581febc96a3173eeb7d092b294b39ad4a7e1598c5c9ec894a7d7443cc3b1ec4dd5a25
7
- data.tar.gz: 7a4c0da75b4d12e06dc9b1dbd256ac79518689b13e615fdcc3a54d09b8bcde32145e44e73bd62425ed051078984a684ee24efe3d7d5d094cc5b128786241ce31
6
+ metadata.gz: 115bc993d362a6d0b08b3b2883c0ed6d94c840eb0b73441b6d40a7fb31b5bb32c1d0e9742051e1dfdff26039c0cf56b965a6d7dfc3de3c800d6ae3334fadf7fb
7
+ data.tar.gz: c3aee2312e8157b86fd156822f62400322d51c8a7c5ca7de8b88152d2af02a350d63f9c66708150162165a206deabaf62cb18bdd26fc54555651cada2d105cb4
@@ -1,27 +1,21 @@
1
1
  language: ruby
2
+ sudo: false
2
3
  rvm:
3
- - 2.3.0
4
- - 2.2
5
- - 2.1
4
+ - 2.3.1
5
+ - 2.2.5
6
6
  - 2.0.0
7
- - jruby-9000
7
+ - 2.1
8
+ - jruby-9.0.5.0
8
9
  env:
9
- global:
10
- - JRUBY_OPTS='-X-C -J-Xmx1024m -J-XX:+UseConcMarkSweepGC'
11
- matrix:
12
- - RAILS_VERSION="~>3.2"
13
- - RAILS_VERSION="~>4.0.0"
14
- - RAILS_VERSION="~>4.1.0"
15
- - RAILS_VERSION="~>4.2.0"
10
+ - RAILS_VERSION="~>4.2.0"
11
+ - RAILS_VERSION="~>5.0.0"
16
12
  matrix:
17
13
  exclude:
18
- - rvm: 2.0.0
19
- env: RAILS_VERSION="~>4.2.0"
20
- script: "bundle exec rake spec:all"
21
- before_install:
22
- - sudo apt-get update
23
- - sudo apt-get install idn
24
- - gem update bundler
14
+ - env: RAILS_VERSION="~>5.0.0"
15
+ rvm: 2.0.0
16
+ - env: RAILS_VERSION="~>5.0.0"
17
+ rvm: 2.1
18
+ before_install: gem install bundler
25
19
  notifications:
26
20
  email:
27
21
  recipients:
@@ -1,7 +1,27 @@
1
+ # 0.11.0
2
+ * *Breaking change* - Fix handling of large numbers during code generation. Previously the
3
+ uint64/int64 formats were passed through as strings. They are now coerced to/from Fixnum/Bignum types.
4
+ Affected APIs:
5
+ * *Breaking change* - No longer normalize unicode strings in URI templates. Mostly affects
6
+ Cloud Storage, but other APIs with unicode strings in paths may be affected. Old behavior
7
+ can be restored using the `normalize_unicode` request option.
8
+ * *Breaking change* -- Moved timeout options from `RequestOptions` to `ClientOptions`
9
+ * Remove Hurley as dependency. May cause minor breaking changes if directly accessing the underlying
10
+ client connection.
11
+ * Drop compatibility with Rails 3.x since that is no longer supported by the Rails community.
12
+ * Upgrade mime-types to 3.0
13
+ * Move Thor & ActiveSupport to development dependencies. Using the code gengerator
14
+ now requires using the Bundle file or install the gem with dev dependencies.
15
+ * Treat 429 status codes as rate limit errors
16
+ * Fix a potential download corruption if download interrupted and retried against a URL
17
+ that does not return partial content.
18
+ * Updated dependencies
19
+ * Regen APIs, add appsmarketplace:v2
20
+
1
21
  # 0.10.3
2
22
  * Regenerate APIs
3
23
  * Enable additional API:
4
- * `acceleratedmobilepageurl:v1``
24
+ * `acceleratedmobilepageurl:v1`
5
25
  * `appengine:v1`
6
26
  * `clouderrorreporting:v1beta1`
7
27
  * `cloudfunctions:v1`
@@ -22,6 +42,7 @@
22
42
  * `toolresults:v1beta3`
23
43
  * `tracing:v1`
24
44
  * `webfonts:v1`
45
+ * Fix `teamdrives` inflection
25
46
 
26
47
  # 0.10.2
27
48
  * Regenerate APIs
@@ -102,7 +123,6 @@
102
123
  * Reduce memory footprint used by mimetypes library
103
124
  * Fix bug with pagination when items collection is nil
104
125
 
105
-
106
126
  # 0.9.9
107
127
  * Add monitoring v3, regenerate APIs
108
128
  * Add samples for sheets, bigquery
data/Gemfile CHANGED
@@ -6,22 +6,20 @@ gemspec
6
6
 
7
7
  group :development do
8
8
  gem 'bundler', '~> 1.7'
9
- gem 'rake', '~> 10.0'
9
+ gem 'rake', '~> 11.2'
10
10
  gem 'rspec', '~> 3.1'
11
11
  gem 'json_spec', '~> 1.1'
12
- gem 'webmock', '~> 1.21'
13
- gem 'simplecov', '~> 0.9'
14
- gem 'coveralls', '~> 0.7.11'
15
- gem 'rubocop', '~> 0.29'
12
+ gem 'webmock', '~> 2.1'
13
+ gem 'simplecov', '~> 0.12'
14
+ gem 'coveralls', '~> 0.8'
15
+ gem 'rubocop', '~> 0.42.0'
16
16
  gem 'launchy', '~> 2.4'
17
17
  gem 'dotenv', '~> 2.0'
18
18
  gem 'fakefs', '~> 0.6', require: "fakefs/safe"
19
19
  gem 'google-id-token', '~> 1.3'
20
20
  gem 'os', '~> 0.9'
21
21
  gem 'rmail', '~> 1.1'
22
- gem 'sinatra', '~> 1.4'
23
22
  gem 'redis', '~> 3.2'
24
- gem 'activesupport', '>= 3.2', '< 5.0'
25
23
  end
26
24
 
27
25
  platforms :jruby do
@@ -1,3 +1,36 @@
1
+ # Migrating from version`0.10` to `0.11`
2
+
3
+ ## Unicode normalization
4
+
5
+ The client no longer normalizes unicode strings in path parameters. This may affect
6
+ some applications using multibyte strings that were previously normalized.:
7
+ To restore the previous behavior, set the following option prior to creating a service.
8
+
9
+ ```ruby
10
+ ClientOptions.default.normalize_unicode = true
11
+ ```
12
+
13
+ ## Type change for large numbers
14
+
15
+ Previously, types declared as 64 bit numbers were mapped to strings. These are now mapped to
16
+ `Fixednum`/`Bignum`.
17
+
18
+ ## Timeouts
19
+
20
+ Timeout options have been moved from `RequestOptions` to `ClientOptions`.
21
+
22
+ Old | New
23
+ ----------------------------------|-----------------
24
+ `RequestOptions.open_timeout_sec` | `ClentOptions.open_timeout_sec`
25
+ `RequestOptions.timeout_sec` | `ClentOptions.read_timeout_sec`
26
+ `RequestOptions.timeout_sec` | `ClentOptions.send_timeout_sec`
27
+
28
+ ## Batch requests across services no longer supported
29
+
30
+ It is no longer possible to combine multiple services (e.g. Gail & Drive)
31
+ in a batch request. If batching requests that span services, group
32
+ requests for each service in their own batch request.
33
+
1
34
  # Migrating from version `0.9.x` to `0.10`
2
35
 
3
36
  Only one minor breaking change was introduced in the `to_json` method due to a version bump for the `representable` gem from `2.3` to `3.0`. If you used the `skip_undefined` in `to_json`, you should replace that with `user_options: { skip_undefined: true }`.
data/README.md CHANGED
@@ -14,7 +14,7 @@ See [MIGRATING](MIGRATING.md) for additional details on how to migrate to the la
14
14
  Add this line to your application's Gemfile:
15
15
 
16
16
  ```ruby
17
- gem 'google-api-client', '~> 0.10'
17
+ gem 'google-api-client', '~> 0.11'
18
18
 
19
19
  ```
20
20
 
@@ -191,6 +191,14 @@ file = drive.create_file(file) # Raises ArgumentError: unknown keywords: id, tit
191
191
  file = drive.create_file(file, {}) # Returns a Drive::File instance
192
192
  ```
193
193
 
194
+ ### Using raw JSON
195
+
196
+ To handle JSON serialization or deserialization in the application, set `skip_serialization` or
197
+ or `skip_deserializaton` options respectively. When setting `skip_serialization` in a request,
198
+ the body object must be a string representing the serialized JSON.
199
+
200
+ When setting `skip_deserialization` to true, the response from the API will likewise
201
+ be a string containing the raw JSON from the server.
194
202
 
195
203
  ## Authorization
196
204
 
@@ -283,7 +291,7 @@ The second is to set the environment variable `GOOGLE_API_USE_RAILS_LOGGER` to a
283
291
 
284
292
  ## Samples
285
293
 
286
- See the [samples](samples) for examples on how to use the client library for various
294
+ See the [samples](https://github.com/google/google-api-ruby-client/tree/master/samples) for examples on how to use the client library for various
287
295
  services.
288
296
 
289
297
  Contributions for additional samples are welcome. See [CONTRIBUTING](CONTRIBUTING.md).
data/Rakefile CHANGED
@@ -1,2 +1,3 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
+ task default: :spec
@@ -1,6 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'thor'
3
+ begin
4
+ require 'thor'
5
+ rescue LoadError => e
6
+ puts "Thor is required. Please install the gem with development dependencies."
7
+ exit 1
8
+ end
9
+
4
10
  require 'open-uri'
5
11
  require 'google/apis/discovery_v1'
6
12
  require 'logger'
data/dl.rb ADDED
File without changes
@@ -86,11 +86,6 @@ module Google
86
86
  class AmpUrlError
87
87
  include Google::Apis::Core::Hashable
88
88
 
89
- # An optional descriptive error message.
90
- # Corresponds to the JSON property `errorMessage`
91
- # @return [String]
92
- attr_accessor :error_message
93
-
94
89
  # The error code of an API call.
95
90
  # Corresponds to the JSON property `errorCode`
96
91
  # @return [String]
@@ -101,15 +96,20 @@ module Google
101
96
  # @return [String]
102
97
  attr_accessor :original_url
103
98
 
99
+ # An optional descriptive error message.
100
+ # Corresponds to the JSON property `errorMessage`
101
+ # @return [String]
102
+ attr_accessor :error_message
103
+
104
104
  def initialize(**args)
105
105
  update!(**args)
106
106
  end
107
107
 
108
108
  # Update properties of this object
109
109
  def update!(**args)
110
- @error_message = args[:error_message] if args.key?(:error_message)
111
110
  @error_code = args[:error_code] if args.key?(:error_code)
112
111
  @original_url = args[:original_url] if args.key?(:original_url)
112
+ @error_message = args[:error_message] if args.key?(:error_message)
113
113
  end
114
114
  end
115
115
 
@@ -68,9 +68,9 @@ module Google
68
68
  class AmpUrlError
69
69
  # @private
70
70
  class Representation < Google::Apis::Core::JsonRepresentation
71
- property :error_message, as: 'errorMessage'
72
71
  property :error_code, as: 'errorCode'
73
72
  property :original_url, as: 'originalUrl'
73
+ property :error_message, as: 'errorMessage'
74
74
  end
75
75
  end
76
76
 
@@ -45,6 +45,7 @@ module Google
45
45
 
46
46
  def initialize
47
47
  super('https://acceleratedmobilepageurl.googleapis.com/', '')
48
+ @batch_path = 'batch'
48
49
  end
49
50
 
50
51
  # Returns AMP URL(s) and equivalent
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
27
27
  module Adexchangebuyer2V2beta1
28
28
  VERSION = 'V2beta1'
29
- REVISION = '20170330'
29
+ REVISION = '20170331'
30
30
 
31
31
  # Manage your Ad Exchange buyer account configuration
32
32
  AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -22,24 +22,14 @@ module Google
22
22
  module Apis
23
23
  module Adexchangebuyer2V2beta1
24
24
 
25
- # The association between a creative and a deal.
26
- class CreativeDealAssociation
25
+ # Video content for a creative.
26
+ class VideoContent
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The externalDealId for the deal associated with the creative.
30
- # Corresponds to the JSON property `dealsId`
31
- # @return [String]
32
- attr_accessor :deals_id
33
-
34
- # The account the creative belongs to.
35
- # Corresponds to the JSON property `accountId`
36
- # @return [String]
37
- attr_accessor :account_id
38
-
39
- # The ID of the creative associated with the deal.
40
- # Corresponds to the JSON property `creativeId`
29
+ # The URL to fetch a video ad.
30
+ # Corresponds to the JSON property `videoUrl`
41
31
  # @return [String]
42
- attr_accessor :creative_id
32
+ attr_accessor :video_url
43
33
 
44
34
  def initialize(**args)
45
35
  update!(**args)
@@ -47,178 +37,35 @@ module Google
47
37
 
48
38
  # Update properties of this object
49
39
  def update!(**args)
50
- @deals_id = args[:deals_id] if args.key?(:deals_id)
51
- @account_id = args[:account_id] if args.key?(:account_id)
52
- @creative_id = args[:creative_id] if args.key?(:creative_id)
40
+ @video_url = args[:video_url] if args.key?(:video_url)
53
41
  end
54
42
  end
55
43
 
56
- # A creative and its classification data.
57
- class Creative
44
+ # An invitation for a new client user to get access to the Ad Exchange
45
+ # Buyer UI.
46
+ # All fields are required unless otherwise specified.
47
+ class ClientUserInvitation
58
48
  include Google::Apis::Core::Hashable
59
49
 
60
- # The account that this creative belongs to.
61
- # Can be used to filter the response of the
62
- # creatives.list
63
- # method.
64
- # Corresponds to the JSON property `accountId`
65
- # @return [String]
66
- attr_accessor :account_id
67
-
68
- # Native content for a creative.
69
- # Corresponds to the JSON property `native`
70
- # @return [Google::Apis::Adexchangebuyer2V2beta1::NativeContent]
71
- attr_accessor :native
72
-
73
- # @OutputOnly The granular status of this ad in specific contexts.
74
- # A context here relates to where something ultimately serves (for example,
75
- # a physical location, a platform, an HTTPS vs HTTP request, or the type
76
- # of auction).
77
- # Corresponds to the JSON property `servingRestrictions`
78
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction>]
79
- attr_accessor :serving_restrictions
80
-
81
- # Video content for a creative.
82
- # Corresponds to the JSON property `video`
83
- # @return [Google::Apis::Adexchangebuyer2V2beta1::VideoContent]
84
- attr_accessor :video
85
-
86
- # The agency ID for this creative.
87
- # Corresponds to the JSON property `agencyId`
88
- # @return [String]
89
- attr_accessor :agency_id
90
-
91
- # The set of destination URLs for the creative.
92
- # Corresponds to the JSON property `clickThroughUrls`
93
- # @return [Array<String>]
94
- attr_accessor :click_through_urls
95
-
96
- # The link to AdChoices destination page.
97
- # Corresponds to the JSON property `adChoicesDestinationUrl`
50
+ # The email address to which the invitation is sent. Email
51
+ # addresses should be unique among all client users under each sponsor
52
+ # buyer.
53
+ # Corresponds to the JSON property `email`
98
54
  # @return [String]
99
- attr_accessor :ad_choices_destination_url
100
-
101
- # @OutputOnly Detected sensitive categories, if any.
102
- # See the ad-sensitive-categories.txt file in the technical documentation for
103
- # a list of IDs. You should use these IDs along with the
104
- # excluded-sensitive-category field in the bid request to filter your bids.
105
- # Corresponds to the JSON property `detectedSensitiveCategories`
106
- # @return [Array<Fixnum>]
107
- attr_accessor :detected_sensitive_categories
108
-
109
- # All restricted categories for the ads that may be shown from this creative.
110
- # Corresponds to the JSON property `restrictedCategories`
111
- # @return [Array<String>]
112
- attr_accessor :restricted_categories
113
-
114
- # @OutputOnly Shows any corrections that were applied to this creative.
115
- # Corresponds to the JSON property `corrections`
116
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Correction>]
117
- attr_accessor :corrections
55
+ attr_accessor :email
118
56
 
119
- # @OutputOnly The version of this creative.
120
- # Corresponds to the JSON property `version`
57
+ # Numerical account ID of the client buyer
58
+ # that the invited user is associated with.
59
+ # The value of this field is ignored in create operations.
60
+ # Corresponds to the JSON property `clientAccountId`
121
61
  # @return [Fixnum]
122
- attr_accessor :version
123
-
124
- # All vendor IDs for the ads that may be shown from this creative.
125
- # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
126
- # for possible values.
127
- # Corresponds to the JSON property `vendorIds`
128
- # @return [Array<Fixnum>]
129
- attr_accessor :vendor_ids
130
-
131
- # The set of URLs to be called to record an impression.
132
- # Corresponds to the JSON property `impressionTrackingUrls`
133
- # @return [Array<String>]
134
- attr_accessor :impression_tracking_urls
135
-
136
- # HTML content for a creative.
137
- # Corresponds to the JSON property `html`
138
- # @return [Google::Apis::Adexchangebuyer2V2beta1::HtmlContent]
139
- attr_accessor :html
140
-
141
- # @OutputOnly Detected product categories, if any.
142
- # See the ad-product-categories.txt file in the technical documentation
143
- # for a list of IDs.
144
- # Corresponds to the JSON property `detectedProductCategories`
145
- # @return [Array<Fixnum>]
146
- attr_accessor :detected_product_categories
147
-
148
- # @OutputOnly The top-level deals status of this creative.
149
- # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
150
- # serving_restrictions will also exist. Note
151
- # that this may be nuanced with other contextual restrictions, in which case,
152
- # it may be preferable to read from serving_restrictions directly.
153
- # Can be used to filter the response of the
154
- # creatives.list
155
- # method.
156
- # Corresponds to the JSON property `dealsStatus`
157
- # @return [String]
158
- attr_accessor :deals_status
159
-
160
- # @OutputOnly The top-level open auction status of this creative.
161
- # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
162
- # serving_restrictions will also exist. Note
163
- # that this may be nuanced with other contextual restrictions, in which case,
164
- # it may be preferable to read from serving_restrictions directly.
165
- # Can be used to filter the response of the
166
- # creatives.list
167
- # method.
168
- # Corresponds to the JSON property `openAuctionStatus`
169
- # @return [String]
170
- attr_accessor :open_auction_status
171
-
172
- # The name of the company being advertised in the creative.
173
- # Corresponds to the JSON property `advertiserName`
174
- # @return [String]
175
- attr_accessor :advertiser_name
176
-
177
- # @OutputOnly Detected advertiser IDs, if any.
178
- # Corresponds to the JSON property `detectedAdvertiserIds`
179
- # @return [Array<String>]
180
- attr_accessor :detected_advertiser_ids
181
-
182
- # @OutputOnly
183
- # The detected domains for this creative.
184
- # Corresponds to the JSON property `detectedDomains`
185
- # @return [Array<String>]
186
- attr_accessor :detected_domains
187
-
188
- # @OutputOnly Filtering reasons for this creative during a period of a single
189
- # day (from midnight to midnight Pacific).
190
- # Corresponds to the JSON property `filteringStats`
191
- # @return [Google::Apis::Adexchangebuyer2V2beta1::FilteringStats]
192
- attr_accessor :filtering_stats
193
-
194
- # All attributes for the ads that may be shown from this creative.
195
- # Can be used to filter the response of the
196
- # creatives.list
197
- # method.
198
- # Corresponds to the JSON property `attributes`
199
- # @return [Array<String>]
200
- attr_accessor :attributes
201
-
202
- # @OutputOnly The last update timestamp of the creative via API.
203
- # Corresponds to the JSON property `apiUpdateTime`
204
- # @return [String]
205
- attr_accessor :api_update_time
206
-
207
- # @OutputOnly
208
- # The detected languages for this creative. The order is arbitrary. The codes
209
- # are 2 or 5 characters and are documented at
210
- # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
211
- # Corresponds to the JSON property `detectedLanguages`
212
- # @return [Array<String>]
213
- attr_accessor :detected_languages
62
+ attr_accessor :client_account_id
214
63
 
215
- # The buyer-defined creative ID of this creative.
216
- # Can be used to filter the response of the
217
- # creatives.list
218
- # method.
219
- # Corresponds to the JSON property `creativeId`
220
- # @return [String]
221
- attr_accessor :creative_id
64
+ # The unique numerical ID of the invitation that is sent to the user.
65
+ # The value of this field is ignored in create operations.
66
+ # Corresponds to the JSON property `invitationId`
67
+ # @return [Fixnum]
68
+ attr_accessor :invitation_id
222
69
 
223
70
  def initialize(**args)
224
71
  update!(**args)
@@ -226,54 +73,20 @@ module Google
226
73
 
227
74
  # Update properties of this object
228
75
  def update!(**args)
229
- @account_id = args[:account_id] if args.key?(:account_id)
230
- @native = args[:native] if args.key?(:native)
231
- @serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions)
232
- @video = args[:video] if args.key?(:video)
233
- @agency_id = args[:agency_id] if args.key?(:agency_id)
234
- @click_through_urls = args[:click_through_urls] if args.key?(:click_through_urls)
235
- @ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url)
236
- @detected_sensitive_categories = args[:detected_sensitive_categories] if args.key?(:detected_sensitive_categories)
237
- @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
238
- @corrections = args[:corrections] if args.key?(:corrections)
239
- @version = args[:version] if args.key?(:version)
240
- @vendor_ids = args[:vendor_ids] if args.key?(:vendor_ids)
241
- @impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls)
242
- @html = args[:html] if args.key?(:html)
243
- @detected_product_categories = args[:detected_product_categories] if args.key?(:detected_product_categories)
244
- @deals_status = args[:deals_status] if args.key?(:deals_status)
245
- @open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
246
- @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
247
- @detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids)
248
- @detected_domains = args[:detected_domains] if args.key?(:detected_domains)
249
- @filtering_stats = args[:filtering_stats] if args.key?(:filtering_stats)
250
- @attributes = args[:attributes] if args.key?(:attributes)
251
- @api_update_time = args[:api_update_time] if args.key?(:api_update_time)
252
- @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
253
- @creative_id = args[:creative_id] if args.key?(:creative_id)
76
+ @email = args[:email] if args.key?(:email)
77
+ @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
78
+ @invitation_id = args[:invitation_id] if args.key?(:invitation_id)
254
79
  end
255
80
  end
256
81
 
257
- # @OutputOnly Filtering reasons for this creative during a period of a single
258
- # day (from midnight to midnight Pacific).
259
- class FilteringStats
82
+ # @OutputOnly The auction type the restriction applies to.
83
+ class AuctionContext
260
84
  include Google::Apis::Core::Hashable
261
85
 
262
- # The set of filtering reasons for this date.
263
- # Corresponds to the JSON property `reasons`
264
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Reason>]
265
- attr_accessor :reasons
266
-
267
- # Represents a whole calendar date, e.g. date of birth. The time of day and
268
- # time zone are either specified elsewhere or are not significant. The date
269
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
270
- # represent a year and month where the day is not significant, e.g. credit card
271
- # expiration date. The year may be 0 to represent a month and day independent
272
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
273
- # and `google.protobuf.Timestamp`.
274
- # Corresponds to the JSON property `date`
275
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Date]
276
- attr_accessor :date
86
+ # The auction types this restriction applies to.
87
+ # Corresponds to the JSON property `auctionTypes`
88
+ # @return [Array<String>]
89
+ attr_accessor :auction_types
277
90
 
278
91
  def initialize(**args)
279
92
  update!(**args)
@@ -281,19 +94,29 @@ module Google
281
94
 
282
95
  # Update properties of this object
283
96
  def update!(**args)
284
- @reasons = args[:reasons] if args.key?(:reasons)
285
- @date = args[:date] if args.key?(:date)
97
+ @auction_types = args[:auction_types] if args.key?(:auction_types)
286
98
  end
287
99
  end
288
100
 
289
- # A request for removing the association between a deal and a creative.
290
- class RemoveDealAssociationRequest
101
+ #
102
+ class ListClientUserInvitationsResponse
291
103
  include Google::Apis::Core::Hashable
292
104
 
293
- # The association between a creative and a deal.
294
- # Corresponds to the JSON property `association`
295
- # @return [Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation]
296
- attr_accessor :association
105
+ # A token to retrieve the next page of results.
106
+ # Pass this value in the
107
+ # ListClientUserInvitationsRequest.pageToken
108
+ # field in the subsequent call to the
109
+ # clients.invitations.list
110
+ # method to retrieve the next
111
+ # page of results.
112
+ # Corresponds to the JSON property `nextPageToken`
113
+ # @return [String]
114
+ attr_accessor :next_page_token
115
+
116
+ # The returned list of client users.
117
+ # Corresponds to the JSON property `invitations`
118
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation>]
119
+ attr_accessor :invitations
297
120
 
298
121
  def initialize(**args)
299
122
  update!(**args)
@@ -301,82 +124,30 @@ module Google
301
124
 
302
125
  # Update properties of this object
303
126
  def update!(**args)
304
- @association = args[:association] if args.key?(:association)
127
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
128
+ @invitations = args[:invitations] if args.key?(:invitations)
305
129
  end
306
130
  end
307
131
 
308
- # A client resource represents a client buyer&mdash;an agency,
309
- # a brand, or an advertiser customer of the sponsor buyer.
310
- # Users associated with the client buyer have restricted access to
311
- # the Ad Exchange Marketplace and certain other sections
312
- # of the Ad Exchange Buyer UI based on the role
313
- # granted to the client buyer.
314
- # All fields are required unless otherwise specified.
315
- class Client
132
+ #
133
+ class ListClientUsersResponse
316
134
  include Google::Apis::Core::Hashable
317
135
 
318
- # Whether the client buyer will be visible to sellers.
319
- # Corresponds to the JSON property `visibleToSeller`
320
- # @return [Boolean]
321
- attr_accessor :visible_to_seller
322
- alias_method :visible_to_seller?, :visible_to_seller
323
-
324
- # Numerical identifier of the client entity.
325
- # The entity can be an advertiser, a brand, or an agency.
326
- # This identifier is unique among all the entities with the same type.
327
- # A list of all known advertisers with their identifiers is available in the
328
- # [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/
329
- # advertisers.txt)
330
- # file.
331
- # A list of all known brands with their identifiers is available in the
332
- # [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt)
333
- # file.
334
- # A list of all known agencies with their identifiers is available in the
335
- # [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies.
336
- # txt)
337
- # file.
338
- # Corresponds to the JSON property `entityId`
339
- # @return [String]
340
- attr_accessor :entity_id
341
-
342
- # The globally-unique numerical ID of the client.
343
- # The value of this field is ignored in create and update operations.
344
- # Corresponds to the JSON property `clientAccountId`
345
- # @return [String]
346
- attr_accessor :client_account_id
347
-
348
- # The name of the entity. This field is automatically fetched based on
349
- # the type and ID.
350
- # The value of this field is ignored in create and update operations.
351
- # Corresponds to the JSON property `entityName`
352
- # @return [String]
353
- attr_accessor :entity_name
354
-
355
- # The status of the client buyer.
356
- # Corresponds to the JSON property `status`
357
- # @return [String]
358
- attr_accessor :status
359
-
360
- # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`.
361
- # Corresponds to the JSON property `entityType`
362
- # @return [String]
363
- attr_accessor :entity_type
364
-
365
- # Name used to represent this client to publishers.
366
- # You may have multiple clients that map to the same entity,
367
- # but for each client the combination of `clientName` and entity
368
- # must be unique.
369
- # You can specify this field as empty.
370
- # Corresponds to the JSON property `clientName`
136
+ # A token to retrieve the next page of results.
137
+ # Pass this value in the
138
+ # ListClientUsersRequest.pageToken
139
+ # field in the subsequent call to the
140
+ # clients.invitations.list
141
+ # method to retrieve the next
142
+ # page of results.
143
+ # Corresponds to the JSON property `nextPageToken`
371
144
  # @return [String]
372
- attr_accessor :client_name
145
+ attr_accessor :next_page_token
373
146
 
374
- # The role which is assigned to the client buyer. Each role implies a set of
375
- # permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`,
376
- # `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`.
377
- # Corresponds to the JSON property `role`
378
- # @return [String]
379
- attr_accessor :role
147
+ # The returned list of client users.
148
+ # Corresponds to the JSON property `users`
149
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUser>]
150
+ attr_accessor :users
380
151
 
381
152
  def initialize(**args)
382
153
  update!(**args)
@@ -384,35 +155,23 @@ module Google
384
155
 
385
156
  # Update properties of this object
386
157
  def update!(**args)
387
- @visible_to_seller = args[:visible_to_seller] if args.key?(:visible_to_seller)
388
- @entity_id = args[:entity_id] if args.key?(:entity_id)
389
- @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
390
- @entity_name = args[:entity_name] if args.key?(:entity_name)
391
- @status = args[:status] if args.key?(:status)
392
- @entity_type = args[:entity_type] if args.key?(:entity_type)
393
- @client_name = args[:client_name] if args.key?(:client_name)
394
- @role = args[:role] if args.key?(:role)
158
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
159
+ @users = args[:users] if args.key?(:users)
395
160
  end
396
161
  end
397
162
 
398
- # @OutputOnly Shows any corrections that were applied to this creative.
399
- class Correction
163
+ # @OutputOnly The Geo criteria the restriction applies to.
164
+ class LocationContext
400
165
  include Google::Apis::Core::Hashable
401
166
 
402
- # Additional details about what was corrected.
403
- # Corresponds to the JSON property `details`
404
- # @return [Array<String>]
405
- attr_accessor :details
406
-
407
- # The type of correction that was applied to the creative.
408
- # Corresponds to the JSON property `type`
409
- # @return [String]
410
- attr_accessor :type
411
-
412
- # The contexts for the correction.
413
- # Corresponds to the JSON property `contexts`
414
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
415
- attr_accessor :contexts
167
+ # IDs representing the geo location for this context.
168
+ # Please refer to the
169
+ # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.
170
+ # csv)
171
+ # file for different geo criteria IDs.
172
+ # Corresponds to the JSON property `geoCriteriaIds`
173
+ # @return [Array<Fixnum>]
174
+ attr_accessor :geo_criteria_ids
416
175
 
417
176
  def initialize(**args)
418
177
  update!(**args)
@@ -420,20 +179,18 @@ module Google
420
179
 
421
180
  # Update properties of this object
422
181
  def update!(**args)
423
- @details = args[:details] if args.key?(:details)
424
- @type = args[:type] if args.key?(:type)
425
- @contexts = args[:contexts] if args.key?(:contexts)
182
+ @geo_criteria_ids = args[:geo_criteria_ids] if args.key?(:geo_criteria_ids)
426
183
  end
427
184
  end
428
185
 
429
- # A request for associating a deal and a creative.
430
- class AddDealAssociationRequest
186
+ # @OutputOnly The type of platform the restriction applies to.
187
+ class PlatformContext
431
188
  include Google::Apis::Core::Hashable
432
189
 
433
- # The association between a creative and a deal.
434
- # Corresponds to the JSON property `association`
435
- # @return [Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation]
436
- attr_accessor :association
190
+ # The platforms this restriction applies to.
191
+ # Corresponds to the JSON property `platforms`
192
+ # @return [Array<String>]
193
+ attr_accessor :platforms
437
194
 
438
195
  def initialize(**args)
439
196
  update!(**args)
@@ -441,27 +198,48 @@ module Google
441
198
 
442
199
  # Update properties of this object
443
200
  def update!(**args)
444
- @association = args[:association] if args.key?(:association)
201
+ @platforms = args[:platforms] if args.key?(:platforms)
445
202
  end
446
203
  end
447
204
 
448
- # A response for listing creative and deal associations
449
- class ListDealAssociationsResponse
205
+ # A client user is created under a client buyer and has restricted access to
206
+ # the Ad Exchange Marketplace and certain other sections
207
+ # of the Ad Exchange Buyer UI based on the role
208
+ # granted to the associated client buyer.
209
+ # The only way a new client user can be created is via accepting an
210
+ # email invitation
211
+ # (see the
212
+ # accounts.clients.invitations.create
213
+ # method).
214
+ # All fields are required unless otherwise specified.
215
+ class ClientUser
450
216
  include Google::Apis::Core::Hashable
451
217
 
452
- # A token to retrieve the next page of results.
453
- # Pass this value in the
454
- # ListDealAssociationsRequest.page_token
455
- # field in the subsequent call to 'ListDealAssociation' method to retrieve
456
- # the next page of results.
457
- # Corresponds to the JSON property `nextPageToken`
218
+ # The status of the client user.
219
+ # Corresponds to the JSON property `status`
458
220
  # @return [String]
459
- attr_accessor :next_page_token
221
+ attr_accessor :status
460
222
 
461
- # The list of associations.
462
- # Corresponds to the JSON property `associations`
463
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation>]
464
- attr_accessor :associations
223
+ # The unique numerical ID of the client user
224
+ # that has accepted an invitation.
225
+ # The value of this field is ignored in an update operation.
226
+ # Corresponds to the JSON property `userId`
227
+ # @return [Fixnum]
228
+ attr_accessor :user_id
229
+
230
+ # User's email address. The value of this field
231
+ # is ignored in an update operation.
232
+ # Corresponds to the JSON property `email`
233
+ # @return [String]
234
+ attr_accessor :email
235
+
236
+ # Numerical account ID of the client buyer
237
+ # with which the user is associated; the
238
+ # buyer must be a client of the current sponsor buyer.
239
+ # The value of this field is ignored in an update operation.
240
+ # Corresponds to the JSON property `clientAccountId`
241
+ # @return [Fixnum]
242
+ attr_accessor :client_account_id
465
243
 
466
244
  def initialize(**args)
467
245
  update!(**args)
@@ -469,24 +247,31 @@ module Google
469
247
 
470
248
  # Update properties of this object
471
249
  def update!(**args)
472
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
473
- @associations = args[:associations] if args.key?(:associations)
250
+ @status = args[:status] if args.key?(:status)
251
+ @user_id = args[:user_id] if args.key?(:user_id)
252
+ @email = args[:email] if args.key?(:email)
253
+ @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
474
254
  end
475
255
  end
476
256
 
477
- # @OutputOnly The reason and details for a disapproval.
478
- class Disapproval
257
+ # The association between a creative and a deal.
258
+ class CreativeDealAssociation
479
259
  include Google::Apis::Core::Hashable
480
260
 
481
- # Additional details about the reason for disapproval.
482
- # Corresponds to the JSON property `details`
483
- # @return [Array<String>]
484
- attr_accessor :details
261
+ # The ID of the creative associated with the deal.
262
+ # Corresponds to the JSON property `creativeId`
263
+ # @return [String]
264
+ attr_accessor :creative_id
485
265
 
486
- # The categorized reason for disapproval.
487
- # Corresponds to the JSON property `reason`
266
+ # The externalDealId for the deal associated with the creative.
267
+ # Corresponds to the JSON property `dealsId`
268
+ # @return [String]
269
+ attr_accessor :deals_id
270
+
271
+ # The account the creative belongs to.
272
+ # Corresponds to the JSON property `accountId`
488
273
  # @return [String]
489
- attr_accessor :reason
274
+ attr_accessor :account_id
490
275
 
491
276
  def initialize(**args)
492
277
  update!(**args)
@@ -494,89 +279,210 @@ module Google
494
279
 
495
280
  # Update properties of this object
496
281
  def update!(**args)
497
- @details = args[:details] if args.key?(:details)
498
- @reason = args[:reason] if args.key?(:reason)
282
+ @creative_id = args[:creative_id] if args.key?(:creative_id)
283
+ @deals_id = args[:deals_id] if args.key?(:deals_id)
284
+ @account_id = args[:account_id] if args.key?(:account_id)
499
285
  end
500
286
  end
501
287
 
502
- # A request for stopping notifications for changes to creative Status.
503
- class StopWatchingCreativeRequest
288
+ # @OutputOnly Filtering reasons for this creative during a period of a single
289
+ # day (from midnight to midnight Pacific).
290
+ class FilteringStats
504
291
  include Google::Apis::Core::Hashable
505
292
 
293
+ # The set of filtering reasons for this date.
294
+ # Corresponds to the JSON property `reasons`
295
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Reason>]
296
+ attr_accessor :reasons
297
+
298
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
299
+ # time zone are either specified elsewhere or are not significant. The date
300
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
301
+ # represent a year and month where the day is not significant, e.g. credit card
302
+ # expiration date. The year may be 0 to represent a month and day independent
303
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
304
+ # and `google.protobuf.Timestamp`.
305
+ # Corresponds to the JSON property `date`
306
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Date]
307
+ attr_accessor :date
308
+
506
309
  def initialize(**args)
507
310
  update!(**args)
508
311
  end
509
312
 
510
313
  # Update properties of this object
511
314
  def update!(**args)
315
+ @reasons = args[:reasons] if args.key?(:reasons)
316
+ @date = args[:date] if args.key?(:date)
512
317
  end
513
318
  end
514
319
 
515
- # @OutputOnly A representation of the status of an ad in a
516
- # specific context. A context here relates to where something ultimately serves
517
- # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
518
- # or the type of auction).
519
- class ServingRestriction
320
+ # A creative and its classification data.
321
+ class Creative
520
322
  include Google::Apis::Core::Hashable
521
323
 
522
- # Any disapprovals bound to this restriction.
523
- # Only present if status=DISAPPROVED.
324
+ # The set of destination URLs for the creative.
325
+ # Corresponds to the JSON property `clickThroughUrls`
326
+ # @return [Array<String>]
327
+ attr_accessor :click_through_urls
328
+
329
+ # @OutputOnly Detected sensitive categories, if any.
330
+ # See the ad-sensitive-categories.txt file in the technical documentation for
331
+ # a list of IDs. You should use these IDs along with the
332
+ # excluded-sensitive-category field in the bid request to filter your bids.
333
+ # Corresponds to the JSON property `detectedSensitiveCategories`
334
+ # @return [Array<Fixnum>]
335
+ attr_accessor :detected_sensitive_categories
336
+
337
+ # The link to AdChoices destination page.
338
+ # Corresponds to the JSON property `adChoicesDestinationUrl`
339
+ # @return [String]
340
+ attr_accessor :ad_choices_destination_url
341
+
342
+ # All restricted categories for the ads that may be shown from this creative.
343
+ # Corresponds to the JSON property `restrictedCategories`
344
+ # @return [Array<String>]
345
+ attr_accessor :restricted_categories
346
+
347
+ # @OutputOnly Shows any corrections that were applied to this creative.
348
+ # Corresponds to the JSON property `corrections`
349
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Correction>]
350
+ attr_accessor :corrections
351
+
352
+ # @OutputOnly The version of this creative.
353
+ # Corresponds to the JSON property `version`
354
+ # @return [Fixnum]
355
+ attr_accessor :version
356
+
357
+ # All vendor IDs for the ads that may be shown from this creative.
358
+ # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
359
+ # for possible values.
360
+ # Corresponds to the JSON property `vendorIds`
361
+ # @return [Array<Fixnum>]
362
+ attr_accessor :vendor_ids
363
+
364
+ # The set of URLs to be called to record an impression.
365
+ # Corresponds to the JSON property `impressionTrackingUrls`
366
+ # @return [Array<String>]
367
+ attr_accessor :impression_tracking_urls
368
+
369
+ # HTML content for a creative.
370
+ # Corresponds to the JSON property `html`
371
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::HtmlContent]
372
+ attr_accessor :html
373
+
374
+ # @OutputOnly The top-level deals status of this creative.
375
+ # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
376
+ # serving_restrictions will also exist. Note
377
+ # that this may be nuanced with other contextual restrictions, in which case,
378
+ # it may be preferable to read from serving_restrictions directly.
524
379
  # Can be used to filter the response of the
525
380
  # creatives.list
526
381
  # method.
527
- # Corresponds to the JSON property `disapprovalReasons`
528
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Disapproval>]
529
- attr_accessor :disapproval_reasons
382
+ # Corresponds to the JSON property `dealsStatus`
383
+ # @return [String]
384
+ attr_accessor :deals_status
530
385
 
531
- # The contexts for the restriction.
532
- # Corresponds to the JSON property `contexts`
533
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
534
- attr_accessor :contexts
386
+ # @OutputOnly Detected product categories, if any.
387
+ # See the ad-product-categories.txt file in the technical documentation
388
+ # for a list of IDs.
389
+ # Corresponds to the JSON property `detectedProductCategories`
390
+ # @return [Array<Fixnum>]
391
+ attr_accessor :detected_product_categories
535
392
 
536
- # The status of the creative in this context (for example, it has been
537
- # explicitly disapproved or is pending review).
538
- # Corresponds to the JSON property `status`
393
+ # @OutputOnly The top-level open auction status of this creative.
394
+ # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
395
+ # serving_restrictions will also exist. Note
396
+ # that this may be nuanced with other contextual restrictions, in which case,
397
+ # it may be preferable to read from serving_restrictions directly.
398
+ # Can be used to filter the response of the
399
+ # creatives.list
400
+ # method.
401
+ # Corresponds to the JSON property `openAuctionStatus`
539
402
  # @return [String]
540
- attr_accessor :status
403
+ attr_accessor :open_auction_status
541
404
 
542
- def initialize(**args)
543
- update!(**args)
544
- end
405
+ # The name of the company being advertised in the creative.
406
+ # Corresponds to the JSON property `advertiserName`
407
+ # @return [String]
408
+ attr_accessor :advertiser_name
545
409
 
546
- # Update properties of this object
547
- def update!(**args)
548
- @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons)
549
- @contexts = args[:contexts] if args.key?(:contexts)
550
- @status = args[:status] if args.key?(:status)
551
- end
552
- end
410
+ # @OutputOnly Detected advertiser IDs, if any.
411
+ # Corresponds to the JSON property `detectedAdvertiserIds`
412
+ # @return [Array<Fixnum>]
413
+ attr_accessor :detected_advertiser_ids
553
414
 
554
- # Represents a whole calendar date, e.g. date of birth. The time of day and
555
- # time zone are either specified elsewhere or are not significant. The date
556
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
557
- # represent a year and month where the day is not significant, e.g. credit card
558
- # expiration date. The year may be 0 to represent a month and day independent
559
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
560
- # and `google.protobuf.Timestamp`.
561
- class Date
562
- include Google::Apis::Core::Hashable
415
+ # @OutputOnly
416
+ # The detected domains for this creative.
417
+ # Corresponds to the JSON property `detectedDomains`
418
+ # @return [Array<String>]
419
+ attr_accessor :detected_domains
563
420
 
564
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
565
- # a year.
566
- # Corresponds to the JSON property `year`
567
- # @return [Fixnum]
568
- attr_accessor :year
421
+ # @OutputOnly Filtering reasons for this creative during a period of a single
422
+ # day (from midnight to midnight Pacific).
423
+ # Corresponds to the JSON property `filteringStats`
424
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::FilteringStats]
425
+ attr_accessor :filtering_stats
569
426
 
570
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
571
- # if specifying a year/month where the day is not significant.
572
- # Corresponds to the JSON property `day`
573
- # @return [Fixnum]
574
- attr_accessor :day
427
+ # All attributes for the ads that may be shown from this creative.
428
+ # Can be used to filter the response of the
429
+ # creatives.list
430
+ # method.
431
+ # Corresponds to the JSON property `attributes`
432
+ # @return [Array<String>]
433
+ attr_accessor :attributes
575
434
 
576
- # Month of year. Must be from 1 to 12.
577
- # Corresponds to the JSON property `month`
435
+ # @OutputOnly The last update timestamp of the creative via API.
436
+ # Corresponds to the JSON property `apiUpdateTime`
437
+ # @return [String]
438
+ attr_accessor :api_update_time
439
+
440
+ # @OutputOnly
441
+ # The detected languages for this creative. The order is arbitrary. The codes
442
+ # are 2 or 5 characters and are documented at
443
+ # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
444
+ # Corresponds to the JSON property `detectedLanguages`
445
+ # @return [Array<String>]
446
+ attr_accessor :detected_languages
447
+
448
+ # The buyer-defined creative ID of this creative.
449
+ # Can be used to filter the response of the
450
+ # creatives.list
451
+ # method.
452
+ # Corresponds to the JSON property `creativeId`
453
+ # @return [String]
454
+ attr_accessor :creative_id
455
+
456
+ # The account that this creative belongs to.
457
+ # Can be used to filter the response of the
458
+ # creatives.list
459
+ # method.
460
+ # Corresponds to the JSON property `accountId`
461
+ # @return [String]
462
+ attr_accessor :account_id
463
+
464
+ # Native content for a creative.
465
+ # Corresponds to the JSON property `native`
466
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::NativeContent]
467
+ attr_accessor :native
468
+
469
+ # @OutputOnly The granular status of this ad in specific contexts.
470
+ # A context here relates to where something ultimately serves (for example,
471
+ # a physical location, a platform, an HTTPS vs HTTP request, or the type
472
+ # of auction).
473
+ # Corresponds to the JSON property `servingRestrictions`
474
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction>]
475
+ attr_accessor :serving_restrictions
476
+
477
+ # Video content for a creative.
478
+ # Corresponds to the JSON property `video`
479
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::VideoContent]
480
+ attr_accessor :video
481
+
482
+ # The agency ID for this creative.
483
+ # Corresponds to the JSON property `agencyId`
578
484
  # @return [Fixnum]
579
- attr_accessor :month
485
+ attr_accessor :agency_id
580
486
 
581
487
  def initialize(**args)
582
488
  update!(**args)
@@ -584,43 +490,125 @@ module Google
584
490
 
585
491
  # Update properties of this object
586
492
  def update!(**args)
587
- @year = args[:year] if args.key?(:year)
588
- @day = args[:day] if args.key?(:day)
589
- @month = args[:month] if args.key?(:month)
493
+ @click_through_urls = args[:click_through_urls] if args.key?(:click_through_urls)
494
+ @detected_sensitive_categories = args[:detected_sensitive_categories] if args.key?(:detected_sensitive_categories)
495
+ @ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url)
496
+ @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
497
+ @corrections = args[:corrections] if args.key?(:corrections)
498
+ @version = args[:version] if args.key?(:version)
499
+ @vendor_ids = args[:vendor_ids] if args.key?(:vendor_ids)
500
+ @impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls)
501
+ @html = args[:html] if args.key?(:html)
502
+ @deals_status = args[:deals_status] if args.key?(:deals_status)
503
+ @detected_product_categories = args[:detected_product_categories] if args.key?(:detected_product_categories)
504
+ @open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
505
+ @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
506
+ @detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids)
507
+ @detected_domains = args[:detected_domains] if args.key?(:detected_domains)
508
+ @filtering_stats = args[:filtering_stats] if args.key?(:filtering_stats)
509
+ @attributes = args[:attributes] if args.key?(:attributes)
510
+ @api_update_time = args[:api_update_time] if args.key?(:api_update_time)
511
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
512
+ @creative_id = args[:creative_id] if args.key?(:creative_id)
513
+ @account_id = args[:account_id] if args.key?(:account_id)
514
+ @native = args[:native] if args.key?(:native)
515
+ @serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions)
516
+ @video = args[:video] if args.key?(:video)
517
+ @agency_id = args[:agency_id] if args.key?(:agency_id)
590
518
  end
591
519
  end
592
520
 
593
- # A generic empty message that you can re-use to avoid defining duplicated
594
- # empty messages in your APIs. A typical example is to use it as the request
595
- # or the response type of an API method. For instance:
596
- # service Foo `
597
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
598
- # `
599
- # The JSON representation for `Empty` is empty JSON object ````.
600
- class Empty
521
+ # A request for removing the association between a deal and a creative.
522
+ class RemoveDealAssociationRequest
601
523
  include Google::Apis::Core::Hashable
602
524
 
525
+ # The association between a creative and a deal.
526
+ # Corresponds to the JSON property `association`
527
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation]
528
+ attr_accessor :association
529
+
603
530
  def initialize(**args)
604
531
  update!(**args)
605
532
  end
606
533
 
607
534
  # Update properties of this object
608
535
  def update!(**args)
536
+ @association = args[:association] if args.key?(:association)
609
537
  end
610
538
  end
611
539
 
612
- # A request for watching changes to creative Status.
613
- class WatchCreativeRequest
540
+ # A client resource represents a client buyer&mdash;an agency,
541
+ # a brand, or an advertiser customer of the sponsor buyer.
542
+ # Users associated with the client buyer have restricted access to
543
+ # the Ad Exchange Marketplace and certain other sections
544
+ # of the Ad Exchange Buyer UI based on the role
545
+ # granted to the client buyer.
546
+ # All fields are required unless otherwise specified.
547
+ class Client
614
548
  include Google::Apis::Core::Hashable
615
549
 
616
- # The Pub/Sub topic to publish notifications to.
617
- # This topic must already exist and must give permission to
618
- # ad-exchange-buyside-reports@google.com to write to the topic.
619
- # This should be the full resource name in
620
- # "projects/`project_id`/topics/`topic_id`" format.
621
- # Corresponds to the JSON property `topic`
550
+ # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`.
551
+ # Corresponds to the JSON property `entityType`
622
552
  # @return [String]
623
- attr_accessor :topic
553
+ attr_accessor :entity_type
554
+
555
+ # Name used to represent this client to publishers.
556
+ # You may have multiple clients that map to the same entity,
557
+ # but for each client the combination of `clientName` and entity
558
+ # must be unique.
559
+ # You can specify this field as empty.
560
+ # Corresponds to the JSON property `clientName`
561
+ # @return [String]
562
+ attr_accessor :client_name
563
+
564
+ # The role which is assigned to the client buyer. Each role implies a set of
565
+ # permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`,
566
+ # `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`.
567
+ # Corresponds to the JSON property `role`
568
+ # @return [String]
569
+ attr_accessor :role
570
+
571
+ # Whether the client buyer will be visible to sellers.
572
+ # Corresponds to the JSON property `visibleToSeller`
573
+ # @return [Boolean]
574
+ attr_accessor :visible_to_seller
575
+ alias_method :visible_to_seller?, :visible_to_seller
576
+
577
+ # Numerical identifier of the client entity.
578
+ # The entity can be an advertiser, a brand, or an agency.
579
+ # This identifier is unique among all the entities with the same type.
580
+ # A list of all known advertisers with their identifiers is available in the
581
+ # [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/
582
+ # advertisers.txt)
583
+ # file.
584
+ # A list of all known brands with their identifiers is available in the
585
+ # [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt)
586
+ # file.
587
+ # A list of all known agencies with their identifiers is available in the
588
+ # [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies.
589
+ # txt)
590
+ # file.
591
+ # Corresponds to the JSON property `entityId`
592
+ # @return [Fixnum]
593
+ attr_accessor :entity_id
594
+
595
+ # The globally-unique numerical ID of the client.
596
+ # The value of this field is ignored in create and update operations.
597
+ # Corresponds to the JSON property `clientAccountId`
598
+ # @return [Fixnum]
599
+ attr_accessor :client_account_id
600
+
601
+ # The name of the entity. This field is automatically fetched based on
602
+ # the type and ID.
603
+ # The value of this field is ignored in create and update operations.
604
+ # Corresponds to the JSON property `entityName`
605
+ # @return [String]
606
+ attr_accessor :entity_name
607
+
608
+ # The status of the client buyer.
609
+ # Corresponds to the JSON property `status`
610
+ # @return [String]
611
+ attr_accessor :status
624
612
 
625
613
  def initialize(**args)
626
614
  update!(**args)
@@ -628,18 +616,35 @@ module Google
628
616
 
629
617
  # Update properties of this object
630
618
  def update!(**args)
631
- @topic = args[:topic] if args.key?(:topic)
619
+ @entity_type = args[:entity_type] if args.key?(:entity_type)
620
+ @client_name = args[:client_name] if args.key?(:client_name)
621
+ @role = args[:role] if args.key?(:role)
622
+ @visible_to_seller = args[:visible_to_seller] if args.key?(:visible_to_seller)
623
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
624
+ @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
625
+ @entity_name = args[:entity_name] if args.key?(:entity_name)
626
+ @status = args[:status] if args.key?(:status)
632
627
  end
633
628
  end
634
629
 
635
- # @OutputOnly The app type the restriction applies to for mobile device.
636
- class AppContext
630
+ # @OutputOnly Shows any corrections that were applied to this creative.
631
+ class Correction
637
632
  include Google::Apis::Core::Hashable
638
633
 
639
- # The app types this restriction applies to.
640
- # Corresponds to the JSON property `appTypes`
634
+ # The type of correction that was applied to the creative.
635
+ # Corresponds to the JSON property `type`
636
+ # @return [String]
637
+ attr_accessor :type
638
+
639
+ # The contexts for the correction.
640
+ # Corresponds to the JSON property `contexts`
641
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
642
+ attr_accessor :contexts
643
+
644
+ # Additional details about what was corrected.
645
+ # Corresponds to the JSON property `details`
641
646
  # @return [Array<String>]
642
- attr_accessor :app_types
647
+ attr_accessor :details
643
648
 
644
649
  def initialize(**args)
645
650
  update!(**args)
@@ -647,170 +652,124 @@ module Google
647
652
 
648
653
  # Update properties of this object
649
654
  def update!(**args)
650
- @app_types = args[:app_types] if args.key?(:app_types)
655
+ @type = args[:type] if args.key?(:type)
656
+ @contexts = args[:contexts] if args.key?(:contexts)
657
+ @details = args[:details] if args.key?(:details)
651
658
  end
652
659
  end
653
660
 
654
- #
655
- class ListClientsResponse
661
+ # A response for listing creative and deal associations
662
+ class ListDealAssociationsResponse
656
663
  include Google::Apis::Core::Hashable
657
664
 
665
+ # The list of associations.
666
+ # Corresponds to the JSON property `associations`
667
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation>]
668
+ attr_accessor :associations
669
+
658
670
  # A token to retrieve the next page of results.
659
671
  # Pass this value in the
660
- # ListClientsRequest.pageToken
661
- # field in the subsequent call to the
662
- # accounts.clients.list method
663
- # to retrieve the next page of results.
672
+ # ListDealAssociationsRequest.page_token
673
+ # field in the subsequent call to 'ListDealAssociation' method to retrieve
674
+ # the next page of results.
664
675
  # Corresponds to the JSON property `nextPageToken`
665
676
  # @return [String]
666
677
  attr_accessor :next_page_token
667
678
 
668
- # The returned list of clients.
669
- # Corresponds to the JSON property `clients`
670
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Client>]
671
- attr_accessor :clients
672
-
673
679
  def initialize(**args)
674
680
  update!(**args)
675
681
  end
676
682
 
677
683
  # Update properties of this object
678
684
  def update!(**args)
685
+ @associations = args[:associations] if args.key?(:associations)
679
686
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
680
- @clients = args[:clients] if args.key?(:clients)
681
687
  end
682
688
  end
683
689
 
684
- # Native content for a creative.
685
- class NativeContent
690
+ # A request for associating a deal and a creative.
691
+ class AddDealAssociationRequest
686
692
  include Google::Apis::Core::Hashable
687
693
 
688
- # A long description of the ad.
689
- # Corresponds to the JSON property `body`
690
- # @return [String]
691
- attr_accessor :body
692
-
693
- # The app rating in the app store. Must be in the range [0-5].
694
- # Corresponds to the JSON property `starRating`
695
- # @return [Float]
696
- attr_accessor :star_rating
697
-
698
- # The URL to fetch a native video ad.
699
- # Corresponds to the JSON property `videoUrl`
700
- # @return [String]
701
- attr_accessor :video_url
702
-
703
- # The URL that the browser/SDK will load when the user clicks the ad.
704
- # Corresponds to the JSON property `clickLinkUrl`
705
- # @return [String]
706
- attr_accessor :click_link_url
707
-
708
- # An image resource. You may provide a larger image than was requested,
709
- # so long as the aspect ratio is preserved.
710
- # Corresponds to the JSON property `logo`
711
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
712
- attr_accessor :logo
713
-
714
- # The price of the promoted app including currency info.
715
- # Corresponds to the JSON property `priceDisplayText`
716
- # @return [String]
717
- attr_accessor :price_display_text
718
-
719
- # The URL to use for click tracking.
720
- # Corresponds to the JSON property `clickTrackingUrl`
721
- # @return [String]
722
- attr_accessor :click_tracking_url
723
-
724
- # An image resource. You may provide a larger image than was requested,
725
- # so long as the aspect ratio is preserved.
726
- # Corresponds to the JSON property `image`
727
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
728
- attr_accessor :image
694
+ # The association between a creative and a deal.
695
+ # Corresponds to the JSON property `association`
696
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation]
697
+ attr_accessor :association
729
698
 
730
- # The name of the advertiser or sponsor, to be displayed in the ad creative.
731
- # Corresponds to the JSON property `advertiserName`
732
- # @return [String]
733
- attr_accessor :advertiser_name
699
+ def initialize(**args)
700
+ update!(**args)
701
+ end
734
702
 
735
- # The URL to the app store to purchase/download the promoted app.
736
- # Corresponds to the JSON property `storeUrl`
737
- # @return [String]
738
- attr_accessor :store_url
703
+ # Update properties of this object
704
+ def update!(**args)
705
+ @association = args[:association] if args.key?(:association)
706
+ end
707
+ end
739
708
 
740
- # A short title for the ad.
741
- # Corresponds to the JSON property `headline`
742
- # @return [String]
743
- attr_accessor :headline
709
+ # @OutputOnly The reason and details for a disapproval.
710
+ class Disapproval
711
+ include Google::Apis::Core::Hashable
744
712
 
745
- # An image resource. You may provide a larger image than was requested,
746
- # so long as the aspect ratio is preserved.
747
- # Corresponds to the JSON property `appIcon`
748
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
749
- attr_accessor :app_icon
713
+ # Additional details about the reason for disapproval.
714
+ # Corresponds to the JSON property `details`
715
+ # @return [Array<String>]
716
+ attr_accessor :details
750
717
 
751
- # A label for the button that the user is supposed to click.
752
- # Corresponds to the JSON property `callToAction`
718
+ # The categorized reason for disapproval.
719
+ # Corresponds to the JSON property `reason`
753
720
  # @return [String]
754
- attr_accessor :call_to_action
721
+ attr_accessor :reason
755
722
 
756
723
  def initialize(**args)
757
724
  update!(**args)
758
725
  end
759
726
 
760
- # Update properties of this object
761
- def update!(**args)
762
- @body = args[:body] if args.key?(:body)
763
- @star_rating = args[:star_rating] if args.key?(:star_rating)
764
- @video_url = args[:video_url] if args.key?(:video_url)
765
- @click_link_url = args[:click_link_url] if args.key?(:click_link_url)
766
- @logo = args[:logo] if args.key?(:logo)
767
- @price_display_text = args[:price_display_text] if args.key?(:price_display_text)
768
- @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
769
- @image = args[:image] if args.key?(:image)
770
- @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
771
- @store_url = args[:store_url] if args.key?(:store_url)
772
- @headline = args[:headline] if args.key?(:headline)
773
- @app_icon = args[:app_icon] if args.key?(:app_icon)
774
- @call_to_action = args[:call_to_action] if args.key?(:call_to_action)
727
+ # Update properties of this object
728
+ def update!(**args)
729
+ @details = args[:details] if args.key?(:details)
730
+ @reason = args[:reason] if args.key?(:reason)
775
731
  end
776
732
  end
777
733
 
778
- # @OutputOnly A security context.
779
- class SecurityContext
734
+ # A request for stopping notifications for changes to creative Status.
735
+ class StopWatchingCreativeRequest
780
736
  include Google::Apis::Core::Hashable
781
737
 
782
- # The security types in this context.
783
- # Corresponds to the JSON property `securities`
784
- # @return [Array<String>]
785
- attr_accessor :securities
786
-
787
738
  def initialize(**args)
788
739
  update!(**args)
789
740
  end
790
741
 
791
742
  # Update properties of this object
792
743
  def update!(**args)
793
- @securities = args[:securities] if args.key?(:securities)
794
744
  end
795
745
  end
796
746
 
797
- # A response for listing creatives.
798
- class ListCreativesResponse
747
+ # @OutputOnly A representation of the status of an ad in a
748
+ # specific context. A context here relates to where something ultimately serves
749
+ # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
750
+ # or the type of auction).
751
+ class ServingRestriction
799
752
  include Google::Apis::Core::Hashable
800
753
 
801
- # The list of creatives.
802
- # Corresponds to the JSON property `creatives`
803
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Creative>]
804
- attr_accessor :creatives
805
-
806
- # A token to retrieve the next page of results.
807
- # Pass this value in the
808
- # ListCreativesRequest.page_token
809
- # field in the subsequent call to `ListCreatives` method to retrieve the next
810
- # page of results.
811
- # Corresponds to the JSON property `nextPageToken`
754
+ # The status of the creative in this context (for example, it has been
755
+ # explicitly disapproved or is pending review).
756
+ # Corresponds to the JSON property `status`
812
757
  # @return [String]
813
- attr_accessor :next_page_token
758
+ attr_accessor :status
759
+
760
+ # Any disapprovals bound to this restriction.
761
+ # Only present if status=DISAPPROVED.
762
+ # Can be used to filter the response of the
763
+ # creatives.list
764
+ # method.
765
+ # Corresponds to the JSON property `disapprovalReasons`
766
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Disapproval>]
767
+ attr_accessor :disapproval_reasons
768
+
769
+ # The contexts for the restriction.
770
+ # Corresponds to the JSON property `contexts`
771
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
772
+ attr_accessor :contexts
814
773
 
815
774
  def initialize(**args)
816
775
  update!(**args)
@@ -818,29 +777,38 @@ module Google
818
777
 
819
778
  # Update properties of this object
820
779
  def update!(**args)
821
- @creatives = args[:creatives] if args.key?(:creatives)
822
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
780
+ @status = args[:status] if args.key?(:status)
781
+ @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons)
782
+ @contexts = args[:contexts] if args.key?(:contexts)
823
783
  end
824
784
  end
825
785
 
826
- # HTML content for a creative.
827
- class HtmlContent
786
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
787
+ # time zone are either specified elsewhere or are not significant. The date
788
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
789
+ # represent a year and month where the day is not significant, e.g. credit card
790
+ # expiration date. The year may be 0 to represent a month and day independent
791
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
792
+ # and `google.protobuf.Timestamp`.
793
+ class Date
828
794
  include Google::Apis::Core::Hashable
829
795
 
830
- # The height of the HTML snippet in pixels.
831
- # Corresponds to the JSON property `height`
796
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
797
+ # a year.
798
+ # Corresponds to the JSON property `year`
832
799
  # @return [Fixnum]
833
- attr_accessor :height
800
+ attr_accessor :year
834
801
 
835
- # The width of the HTML snippet in pixels.
836
- # Corresponds to the JSON property `width`
802
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
803
+ # if specifying a year/month where the day is not significant.
804
+ # Corresponds to the JSON property `day`
837
805
  # @return [Fixnum]
838
- attr_accessor :width
806
+ attr_accessor :day
839
807
 
840
- # The HTML snippet that displays the ad when inserted in the web page.
841
- # Corresponds to the JSON property `snippet`
842
- # @return [String]
843
- attr_accessor :snippet
808
+ # Month of year. Must be from 1 to 12.
809
+ # Corresponds to the JSON property `month`
810
+ # @return [Fixnum]
811
+ attr_accessor :month
844
812
 
845
813
  def initialize(**args)
846
814
  update!(**args)
@@ -848,80 +816,43 @@ module Google
848
816
 
849
817
  # Update properties of this object
850
818
  def update!(**args)
851
- @height = args[:height] if args.key?(:height)
852
- @width = args[:width] if args.key?(:width)
853
- @snippet = args[:snippet] if args.key?(:snippet)
819
+ @year = args[:year] if args.key?(:year)
820
+ @day = args[:day] if args.key?(:day)
821
+ @month = args[:month] if args.key?(:month)
854
822
  end
855
823
  end
856
824
 
857
- # The serving context for this restriction.
858
- class ServingContext
825
+ # A generic empty message that you can re-use to avoid defining duplicated
826
+ # empty messages in your APIs. A typical example is to use it as the request
827
+ # or the response type of an API method. For instance:
828
+ # service Foo `
829
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
830
+ # `
831
+ # The JSON representation for `Empty` is empty JSON object ````.
832
+ class Empty
859
833
  include Google::Apis::Core::Hashable
860
834
 
861
- # @OutputOnly The app type the restriction applies to for mobile device.
862
- # Corresponds to the JSON property `appType`
863
- # @return [Google::Apis::Adexchangebuyer2V2beta1::AppContext]
864
- attr_accessor :app_type
865
-
866
- # @OutputOnly A security context.
867
- # Corresponds to the JSON property `securityType`
868
- # @return [Google::Apis::Adexchangebuyer2V2beta1::SecurityContext]
869
- attr_accessor :security_type
870
-
871
- # @OutputOnly The type of platform the restriction applies to.
872
- # Corresponds to the JSON property `platform`
873
- # @return [Google::Apis::Adexchangebuyer2V2beta1::PlatformContext]
874
- attr_accessor :platform
875
-
876
- # @OutputOnly The Geo criteria the restriction applies to.
877
- # Corresponds to the JSON property `location`
878
- # @return [Google::Apis::Adexchangebuyer2V2beta1::LocationContext]
879
- attr_accessor :location
880
-
881
- # @OutputOnly The auction type the restriction applies to.
882
- # Corresponds to the JSON property `auctionType`
883
- # @return [Google::Apis::Adexchangebuyer2V2beta1::AuctionContext]
884
- attr_accessor :auction_type
885
-
886
- # Matches all contexts.
887
- # Corresponds to the JSON property `all`
888
- # @return [String]
889
- attr_accessor :all
890
-
891
835
  def initialize(**args)
892
836
  update!(**args)
893
837
  end
894
838
 
895
839
  # Update properties of this object
896
840
  def update!(**args)
897
- @app_type = args[:app_type] if args.key?(:app_type)
898
- @security_type = args[:security_type] if args.key?(:security_type)
899
- @platform = args[:platform] if args.key?(:platform)
900
- @location = args[:location] if args.key?(:location)
901
- @auction_type = args[:auction_type] if args.key?(:auction_type)
902
- @all = args[:all] if args.key?(:all)
903
841
  end
904
842
  end
905
843
 
906
- # An image resource. You may provide a larger image than was requested,
907
- # so long as the aspect ratio is preserved.
908
- class Image
844
+ # A request for watching changes to creative Status.
845
+ class WatchCreativeRequest
909
846
  include Google::Apis::Core::Hashable
910
847
 
911
- # Image height in pixels.
912
- # Corresponds to the JSON property `height`
913
- # @return [Fixnum]
914
- attr_accessor :height
915
-
916
- # Image width in pixels.
917
- # Corresponds to the JSON property `width`
918
- # @return [Fixnum]
919
- attr_accessor :width