google-api-client 0.40.0 → 0.41.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (452) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +297 -0
  3. data/bin/generate-api +1 -3
  4. data/generated/google/apis/admin_directory_v1.rb +1 -1
  5. data/generated/google/apis/admin_directory_v1/classes.rb +31 -0
  6. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  7. data/generated/google/apis/admin_directory_v1/service.rb +3 -5
  8. data/generated/google/apis/admob_v1.rb +1 -1
  9. data/generated/google/apis/admob_v1/classes.rb +5 -6
  10. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  11. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +32 -26
  12. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  13. data/generated/google/apis/androidenterprise_v1/classes.rb +547 -724
  14. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -54
  15. data/generated/google/apis/androidenterprise_v1/service.rb +540 -795
  16. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  17. data/generated/google/apis/androidmanagement_v1/classes.rb +117 -0
  18. data/generated/google/apis/androidmanagement_v1/representations.rb +39 -0
  19. data/generated/google/apis/androidpublisher_v3.rb +3 -3
  20. data/generated/google/apis/androidpublisher_v3/classes.rb +499 -684
  21. data/generated/google/apis/androidpublisher_v3/representations.rb +19 -166
  22. data/generated/google/apis/androidpublisher_v3/service.rb +564 -748
  23. data/generated/google/apis/apigee_v1.rb +1 -1
  24. data/generated/google/apis/apigee_v1/classes.rb +144 -48
  25. data/generated/google/apis/apigee_v1/representations.rb +17 -0
  26. data/generated/google/apis/apigee_v1/service.rb +23 -24
  27. data/generated/google/apis/appsmarket_v2.rb +3 -3
  28. data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
  29. data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
  30. data/generated/google/apis/appsmarket_v2/service.rb +24 -39
  31. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  32. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +122 -0
  33. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +62 -0
  34. data/generated/google/apis/bigquery_v2.rb +1 -1
  35. data/generated/google/apis/bigquery_v2/classes.rb +51 -13
  36. data/generated/google/apis/bigquery_v2/representations.rb +4 -0
  37. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  38. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -6
  39. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  40. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -4
  41. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  42. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  43. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  44. data/generated/google/apis/bigtableadmin_v1/classes.rb +5 -10
  45. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  46. data/generated/google/apis/bigtableadmin_v2/classes.rb +45 -37
  47. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -5
  48. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  49. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
  50. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  51. data/generated/google/apis/binaryauthorization_v1/classes.rb +1 -4
  52. data/generated/google/apis/books_v1.rb +1 -1
  53. data/generated/google/apis/books_v1/service.rb +2 -2
  54. data/generated/google/apis/calendar_v3.rb +1 -1
  55. data/generated/google/apis/chat_v1.rb +1 -1
  56. data/generated/google/apis/chat_v1/classes.rb +2 -0
  57. data/generated/google/apis/civicinfo_v2.rb +2 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +12 -800
  59. data/generated/google/apis/civicinfo_v2/representations.rb +0 -295
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -62
  61. data/generated/google/apis/cloudasset_v1.rb +1 -1
  62. data/generated/google/apis/cloudasset_v1/classes.rb +116 -36
  63. data/generated/google/apis/cloudasset_v1/representations.rb +6 -0
  64. data/generated/google/apis/cloudasset_v1/service.rb +18 -15
  65. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  66. data/generated/google/apis/cloudasset_v1beta1/classes.rb +954 -42
  67. data/generated/google/apis/cloudasset_v1beta1/representations.rb +241 -0
  68. data/generated/google/apis/cloudasset_v1beta1/service.rb +8 -8
  69. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  70. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +6 -6
  71. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
  72. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  73. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +40 -23
  74. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +34 -9
  75. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  76. data/generated/google/apis/cloudbilling_v1/classes.rb +38 -6
  77. data/generated/google/apis/cloudbilling_v1/representations.rb +16 -0
  78. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  79. data/generated/google/apis/cloudbuild_v1/classes.rb +287 -15
  80. data/generated/google/apis/cloudbuild_v1/representations.rb +131 -4
  81. data/generated/google/apis/cloudbuild_v1/service.rb +0 -94
  82. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +298 -26
  84. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +136 -9
  85. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -47
  86. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  87. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +298 -26
  88. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +136 -9
  89. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +0 -47
  90. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  91. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +5 -6
  93. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  94. data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -6
  95. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  96. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +7 -1
  98. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  99. data/generated/google/apis/cloudkms_v1.rb +1 -1
  100. data/generated/google/apis/cloudkms_v1/classes.rb +7 -7
  101. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  102. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +22 -18
  103. data/generated/google/apis/cloudresourcemanager_v1/service.rb +21 -14
  104. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  105. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +12 -11
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
  107. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  108. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
  109. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  110. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
  111. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  112. data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
  113. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  114. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
  115. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  116. data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
  117. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  118. data/generated/google/apis/cloudtasks_v2/classes.rb +6 -4
  119. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  120. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +9 -0
  121. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  122. data/generated/google/apis/composer_v1beta1.rb +1 -1
  123. data/generated/google/apis/composer_v1beta1/classes.rb +4 -3
  124. data/generated/google/apis/composer_v1beta1/service.rb +13 -0
  125. data/generated/google/apis/compute_alpha.rb +1 -1
  126. data/generated/google/apis/compute_alpha/classes.rb +801 -219
  127. data/generated/google/apis/compute_alpha/representations.rb +220 -32
  128. data/generated/google/apis/compute_alpha/service.rb +899 -113
  129. data/generated/google/apis/compute_beta.rb +1 -1
  130. data/generated/google/apis/compute_beta/classes.rb +490 -131
  131. data/generated/google/apis/compute_beta/representations.rb +97 -0
  132. data/generated/google/apis/compute_beta/service.rb +308 -33
  133. data/generated/google/apis/compute_v1.rb +1 -1
  134. data/generated/google/apis/compute_v1/classes.rb +706 -76
  135. data/generated/google/apis/compute_v1/representations.rb +200 -0
  136. data/generated/google/apis/compute_v1/service.rb +522 -33
  137. data/generated/google/apis/container_v1.rb +1 -1
  138. data/generated/google/apis/container_v1/classes.rb +123 -5
  139. data/generated/google/apis/container_v1/representations.rb +50 -0
  140. data/generated/google/apis/container_v1beta1.rb +1 -1
  141. data/generated/google/apis/container_v1beta1/classes.rb +142 -24
  142. data/generated/google/apis/container_v1beta1/representations.rb +37 -0
  143. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  144. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -1
  145. data/generated/google/apis/content_v2.rb +1 -1
  146. data/generated/google/apis/content_v2/classes.rb +41 -1
  147. data/generated/google/apis/content_v2/representations.rb +17 -0
  148. data/generated/google/apis/content_v2/service.rb +15 -6
  149. data/generated/google/apis/content_v2_1.rb +1 -1
  150. data/generated/google/apis/content_v2_1/classes.rb +616 -6
  151. data/generated/google/apis/content_v2_1/representations.rb +243 -0
  152. data/generated/google/apis/content_v2_1/service.rb +95 -6
  153. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  154. data/generated/google/apis/datacatalog_v1beta1/classes.rb +34 -10
  155. data/generated/google/apis/datacatalog_v1beta1/representations.rb +13 -0
  156. data/generated/google/apis/datacatalog_v1beta1/service.rb +37 -0
  157. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  158. data/generated/google/apis/dataflow_v1b3/classes.rb +19 -0
  159. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  160. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  161. data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
  162. data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
  163. data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
  164. data/generated/google/apis/dataproc_v1.rb +1 -1
  165. data/generated/google/apis/dataproc_v1/classes.rb +71 -24
  166. data/generated/google/apis/dataproc_v1/representations.rb +17 -0
  167. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  168. data/generated/google/apis/dataproc_v1beta2/classes.rb +65 -23
  169. data/generated/google/apis/dataproc_v1beta2/representations.rb +5 -0
  170. data/generated/google/apis/dialogflow_v2.rb +1 -1
  171. data/generated/google/apis/dialogflow_v2/classes.rb +277 -57
  172. data/generated/google/apis/dialogflow_v2/representations.rb +93 -4
  173. data/generated/google/apis/dialogflow_v2/service.rb +14 -2
  174. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  175. data/generated/google/apis/dialogflow_v2beta1/classes.rb +268 -56
  176. data/generated/google/apis/dialogflow_v2beta1/representations.rb +93 -4
  177. data/generated/google/apis/dialogflow_v2beta1/service.rb +70 -46
  178. data/generated/google/apis/displayvideo_v1.rb +1 -1
  179. data/generated/google/apis/displayvideo_v1/classes.rb +569 -6
  180. data/generated/google/apis/displayvideo_v1/representations.rb +249 -0
  181. data/generated/google/apis/displayvideo_v1/service.rb +1496 -77
  182. data/generated/google/apis/dlp_v2.rb +1 -1
  183. data/generated/google/apis/dlp_v2/classes.rb +8 -6
  184. data/generated/google/apis/dlp_v2/service.rb +170 -64
  185. data/generated/google/apis/dns_v1beta2.rb +4 -4
  186. data/generated/google/apis/dns_v1beta2/classes.rb +325 -171
  187. data/generated/google/apis/dns_v1beta2/service.rb +247 -180
  188. data/generated/google/apis/{dialogflow_v3alpha1.rb → documentai_v1beta2.rb} +11 -13
  189. data/generated/google/apis/documentai_v1beta2/classes.rb +3284 -0
  190. data/generated/google/apis/documentai_v1beta2/representations.rb +1344 -0
  191. data/generated/google/apis/{dialogflow_v3alpha1 → documentai_v1beta2}/service.rb +91 -118
  192. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  193. data/generated/google/apis/doubleclicksearch_v2.rb +4 -4
  194. data/generated/google/apis/doubleclicksearch_v2/classes.rb +127 -111
  195. data/generated/google/apis/doubleclicksearch_v2/representations.rb +4 -6
  196. data/generated/google/apis/doubleclicksearch_v2/service.rb +47 -78
  197. data/generated/google/apis/drive_v2.rb +1 -1
  198. data/generated/google/apis/drive_v2/classes.rb +9 -0
  199. data/generated/google/apis/drive_v2/representations.rb +1 -0
  200. data/generated/google/apis/drive_v2/service.rb +26 -78
  201. data/generated/google/apis/drive_v3.rb +1 -1
  202. data/generated/google/apis/drive_v3/classes.rb +9 -0
  203. data/generated/google/apis/drive_v3/representations.rb +1 -0
  204. data/generated/google/apis/drive_v3/service.rb +18 -54
  205. data/generated/google/apis/fcm_v1.rb +1 -1
  206. data/generated/google/apis/fcm_v1/classes.rb +6 -0
  207. data/generated/google/apis/file_v1.rb +1 -1
  208. data/generated/google/apis/file_v1/classes.rb +0 -1156
  209. data/generated/google/apis/file_v1/representations.rb +0 -381
  210. data/generated/google/apis/file_v1beta1.rb +1 -1
  211. data/generated/google/apis/file_v1beta1/classes.rb +67 -1156
  212. data/generated/google/apis/file_v1beta1/representations.rb +14 -376
  213. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  214. data/generated/google/apis/firebase_v1beta1/classes.rb +7 -6
  215. data/generated/google/apis/firebase_v1beta1/service.rb +53 -49
  216. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  217. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +30 -25
  218. data/generated/google/apis/fitness_v1.rb +1 -1
  219. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  220. data/generated/google/apis/games_v1.rb +1 -1
  221. data/generated/google/apis/gameservices_v1.rb +34 -0
  222. data/generated/google/apis/gameservices_v1/classes.rb +2354 -0
  223. data/generated/google/apis/gameservices_v1/representations.rb +971 -0
  224. data/generated/google/apis/gameservices_v1/service.rb +1472 -0
  225. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  226. data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
  227. data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
  228. data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
  229. data/generated/google/apis/gmail_v1.rb +3 -2
  230. data/generated/google/apis/gmail_v1/classes.rb +263 -200
  231. data/generated/google/apis/gmail_v1/service.rb +551 -743
  232. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +33 -0
  233. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +306 -0
  234. data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +141 -0
  235. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +236 -0
  236. data/generated/google/apis/groupsmigration_v1.rb +3 -2
  237. data/generated/google/apis/groupsmigration_v1/service.rb +10 -17
  238. data/generated/google/apis/healthcare_v1.rb +1 -1
  239. data/generated/google/apis/healthcare_v1/classes.rb +9 -9
  240. data/generated/google/apis/healthcare_v1/service.rb +5 -3
  241. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  242. data/generated/google/apis/healthcare_v1beta1/classes.rb +919 -52
  243. data/generated/google/apis/healthcare_v1beta1/representations.rb +404 -0
  244. data/generated/google/apis/healthcare_v1beta1/service.rb +520 -3
  245. data/generated/google/apis/iam_v1.rb +1 -1
  246. data/generated/google/apis/iam_v1/classes.rb +92 -81
  247. data/generated/google/apis/iam_v1/service.rb +167 -148
  248. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  249. data/generated/google/apis/iamcredentials_v1/classes.rb +4 -3
  250. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  251. data/generated/google/apis/jobs_v3.rb +1 -1
  252. data/generated/google/apis/jobs_v3/classes.rb +4 -2
  253. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  254. data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
  255. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  256. data/generated/google/apis/lifesciences_v2beta/classes.rb +10 -0
  257. data/generated/google/apis/lifesciences_v2beta/representations.rb +1 -0
  258. data/generated/google/apis/logging_v2.rb +1 -1
  259. data/generated/google/apis/logging_v2/classes.rb +69 -21
  260. data/generated/google/apis/managedidentities_v1.rb +1 -1
  261. data/generated/google/apis/managedidentities_v1/classes.rb +54 -10
  262. data/generated/google/apis/managedidentities_v1/representations.rb +15 -0
  263. data/generated/google/apis/managedidentities_v1/service.rb +3 -0
  264. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  265. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +54 -10
  266. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +15 -0
  267. data/generated/google/apis/managedidentities_v1alpha1/service.rb +3 -0
  268. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  269. data/generated/google/apis/managedidentities_v1beta1/classes.rb +54 -10
  270. data/generated/google/apis/managedidentities_v1beta1/representations.rb +15 -0
  271. data/generated/google/apis/managedidentities_v1beta1/service.rb +3 -0
  272. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  273. data/generated/google/apis/memcache_v1beta2/classes.rb +42 -11
  274. data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
  275. data/generated/google/apis/ml_v1.rb +1 -1
  276. data/generated/google/apis/ml_v1/classes.rb +8 -0
  277. data/generated/google/apis/ml_v1/representations.rb +1 -0
  278. data/generated/google/apis/monitoring_v1.rb +1 -1
  279. data/generated/google/apis/monitoring_v1/classes.rb +46 -0
  280. data/generated/google/apis/monitoring_v1/representations.rb +18 -0
  281. data/generated/google/apis/monitoring_v3.rb +1 -1
  282. data/generated/google/apis/monitoring_v3/classes.rb +68 -19
  283. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  284. data/generated/google/apis/osconfig_v1.rb +1 -1
  285. data/generated/google/apis/osconfig_v1/classes.rb +2 -2
  286. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  287. data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
  288. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  289. data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
  290. data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
  291. data/generated/google/apis/people_v1.rb +4 -1
  292. data/generated/google/apis/people_v1/classes.rb +216 -0
  293. data/generated/google/apis/people_v1/representations.rb +82 -0
  294. data/generated/google/apis/people_v1/service.rb +371 -8
  295. data/generated/google/apis/playablelocations_v3.rb +31 -0
  296. data/generated/google/apis/playablelocations_v3/classes.rb +633 -0
  297. data/generated/google/apis/playablelocations_v3/representations.rb +273 -0
  298. data/generated/google/apis/playablelocations_v3/service.rb +157 -0
  299. data/generated/google/apis/playcustomapp_v1.rb +3 -3
  300. data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
  301. data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
  302. data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
  303. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  304. data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
  305. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  306. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
  307. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  308. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +92 -0
  309. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +46 -0
  310. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +507 -0
  311. data/generated/google/apis/pubsub_v1.rb +1 -1
  312. data/generated/google/apis/pubsub_v1/classes.rb +68 -10
  313. data/generated/google/apis/pubsub_v1/representations.rb +28 -0
  314. data/generated/google/apis/pubsub_v1/service.rb +35 -1
  315. data/generated/google/apis/realtimebidding_v1.rb +40 -0
  316. data/generated/google/apis/realtimebidding_v1/classes.rb +1436 -0
  317. data/generated/google/apis/realtimebidding_v1/representations.rb +565 -0
  318. data/generated/google/apis/realtimebidding_v1/service.rb +661 -0
  319. data/generated/google/apis/recommender_v1.rb +34 -0
  320. data/generated/google/apis/recommender_v1/classes.rb +505 -0
  321. data/generated/google/apis/recommender_v1/representations.rb +232 -0
  322. data/generated/google/apis/recommender_v1/service.rb +266 -0
  323. data/generated/google/apis/redis_v1.rb +1 -1
  324. data/generated/google/apis/redis_v1/classes.rb +1 -1
  325. data/generated/google/apis/redis_v1/service.rb +1 -1
  326. data/generated/google/apis/redis_v1beta1.rb +1 -1
  327. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  328. data/generated/google/apis/redis_v1beta1/service.rb +1 -1
  329. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  330. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  331. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  332. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  333. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  334. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  335. data/generated/google/apis/run_v1.rb +1 -1
  336. data/generated/google/apis/run_v1/classes.rb +16 -9
  337. data/generated/google/apis/run_v1/representations.rb +1 -0
  338. data/generated/google/apis/run_v1alpha1.rb +1 -1
  339. data/generated/google/apis/run_v1alpha1/classes.rb +15 -6
  340. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  341. data/generated/google/apis/run_v1beta1.rb +1 -1
  342. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  343. data/generated/google/apis/sasportal_v1alpha1/classes.rb +92 -0
  344. data/generated/google/apis/sasportal_v1alpha1/representations.rb +46 -0
  345. data/generated/google/apis/sasportal_v1alpha1/service.rb +507 -0
  346. data/generated/google/apis/secretmanager_v1.rb +1 -1
  347. data/generated/google/apis/secretmanager_v1/classes.rb +6 -6
  348. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  349. data/generated/google/apis/secretmanager_v1beta1/classes.rb +6 -6
  350. data/generated/google/apis/securitycenter_v1.rb +1 -1
  351. data/generated/google/apis/securitycenter_v1/classes.rb +116 -16
  352. data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
  353. data/generated/google/apis/securitycenter_v1/service.rb +14 -15
  354. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  355. data/generated/google/apis/securitycenter_v1beta1/classes.rb +106 -6
  356. data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
  357. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  358. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
  359. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
  360. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  361. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +116 -16
  362. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
  363. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -15
  364. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  365. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +223 -43
  366. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +33 -1
  367. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  368. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +229 -43
  369. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +34 -1
  370. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  371. data/generated/google/apis/servicecontrol_v1/classes.rb +9 -3
  372. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  373. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  374. data/generated/google/apis/servicemanagement_v1/classes.rb +124 -49
  375. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  376. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  377. data/generated/google/apis/servicenetworking_v1/classes.rb +119 -43
  378. data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
  379. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  380. data/generated/google/apis/servicenetworking_v1beta/classes.rb +119 -43
  381. data/generated/google/apis/servicenetworking_v1beta/representations.rb +0 -1
  382. data/generated/google/apis/serviceusage_v1.rb +1 -1
  383. data/generated/google/apis/serviceusage_v1/classes.rb +221 -43
  384. data/generated/google/apis/serviceusage_v1/representations.rb +34 -1
  385. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  386. data/generated/google/apis/serviceusage_v1beta1/classes.rb +272 -43
  387. data/generated/google/apis/serviceusage_v1beta1/representations.rb +63 -1
  388. data/generated/google/apis/serviceusage_v1beta1/service.rb +71 -0
  389. data/generated/google/apis/sheets_v4.rb +1 -1
  390. data/generated/google/apis/sheets_v4/classes.rb +90 -0
  391. data/generated/google/apis/slides_v1.rb +1 -1
  392. data/generated/google/apis/slides_v1/classes.rb +4 -0
  393. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  394. data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
  395. data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
  396. data/generated/google/apis/spanner_v1.rb +1 -1
  397. data/generated/google/apis/spanner_v1/classes.rb +26 -22
  398. data/generated/google/apis/spanner_v1/service.rb +15 -8
  399. data/generated/google/apis/speech_v1.rb +1 -1
  400. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  401. data/generated/google/apis/sql_v1beta4.rb +1 -1
  402. data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
  403. data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
  404. data/generated/google/apis/storage_v1.rb +1 -1
  405. data/generated/google/apis/storage_v1/service.rb +2 -3
  406. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  407. data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
  408. data/generated/google/apis/testing_v1.rb +1 -1
  409. data/generated/google/apis/testing_v1/classes.rb +2 -1
  410. data/generated/google/apis/texttospeech_v1.rb +1 -1
  411. data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
  412. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  413. data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
  414. data/generated/google/apis/{customsearch_v1.rb → vectortile_v1.rb} +8 -8
  415. data/generated/google/apis/vectortile_v1/classes.rb +881 -0
  416. data/generated/google/apis/vectortile_v1/representations.rb +329 -0
  417. data/generated/google/apis/vectortile_v1/service.rb +268 -0
  418. data/generated/google/apis/videointelligence_v1.rb +1 -1
  419. data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
  420. data/generated/google/apis/videointelligence_v1/service.rb +32 -0
  421. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  422. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
  423. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  424. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
  425. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  426. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
  427. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  428. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
  429. data/generated/google/apis/vision_v1.rb +1 -1
  430. data/generated/google/apis/vision_v1/classes.rb +18 -0
  431. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  432. data/generated/google/apis/vision_v1p1beta1/classes.rb +18 -0
  433. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  434. data/generated/google/apis/vision_v1p2beta1/classes.rb +18 -0
  435. data/generated/google/apis/webfonts_v1.rb +5 -5
  436. data/generated/google/apis/webfonts_v1/classes.rb +4 -3
  437. data/generated/google/apis/webfonts_v1/representations.rb +1 -2
  438. data/generated/google/apis/webfonts_v1/service.rb +14 -21
  439. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  440. data/generated/google/apis/youtube_v3.rb +1 -1
  441. data/generated/google/apis/youtube_v3/classes.rb +38 -0
  442. data/generated/google/apis/youtube_v3/representations.rb +27 -0
  443. data/generated/google/apis/youtube_v3/service.rb +32 -0
  444. data/lib/google/apis/core/api_command.rb +12 -7
  445. data/lib/google/apis/options.rb +5 -1
  446. data/lib/google/apis/version.rb +1 -1
  447. metadata +31 -11
  448. data/generated/google/apis/customsearch_v1/classes.rb +0 -1606
  449. data/generated/google/apis/customsearch_v1/representations.rb +0 -372
  450. data/generated/google/apis/customsearch_v1/service.rb +0 -608
  451. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +0 -5579
  452. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +0 -2295
@@ -118,6 +118,18 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class AssignedInventorySource
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class AssignedLocation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
121
133
  class AssignedTargetingOption
122
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
135
 
@@ -178,6 +190,30 @@ module Google
178
190
  include Google::Apis::Core::JsonObjectSupport
179
191
  end
180
192
 
193
+ class BulkEditAssignedInventorySourcesRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class BulkEditAssignedInventorySourcesResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class BulkEditAssignedLocationsRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class BulkEditAssignedLocationsResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
181
217
  class BulkEditLineItemAssignedTargetingOptionsRequest
182
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
219
 
@@ -190,6 +226,30 @@ module Google
190
226
  include Google::Apis::Core::JsonObjectSupport
191
227
  end
192
228
 
229
+ class BulkEditNegativeKeywordsRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class BulkEditNegativeKeywordsResponse
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class BulkEditSitesRequest
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class BulkEditSitesResponse
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
193
253
  class BulkListAdvertiserAssignedTargetingOptionsResponse
194
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
255
 
@@ -748,6 +808,18 @@ module Google
748
808
  include Google::Apis::Core::JsonObjectSupport
749
809
  end
750
810
 
811
+ class ListAssignedInventorySourcesResponse
812
+ class Representation < Google::Apis::Core::JsonRepresentation; end
813
+
814
+ include Google::Apis::Core::JsonObjectSupport
815
+ end
816
+
817
+ class ListAssignedLocationsResponse
818
+ class Representation < Google::Apis::Core::JsonRepresentation; end
819
+
820
+ include Google::Apis::Core::JsonObjectSupport
821
+ end
822
+
751
823
  class ListCampaignsResponse
752
824
  class Representation < Google::Apis::Core::JsonRepresentation; end
753
825
 
@@ -832,6 +904,18 @@ module Google
832
904
  include Google::Apis::Core::JsonObjectSupport
833
905
  end
834
906
 
907
+ class ListNegativeKeywordsResponse
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
913
+ class ListSitesResponse
914
+ class Representation < Google::Apis::Core::JsonRepresentation; end
915
+
916
+ include Google::Apis::Core::JsonObjectSupport
917
+ end
918
+
835
919
  class ListTargetingOptionsResponse
836
920
  class Representation < Google::Apis::Core::JsonRepresentation; end
837
921
 
@@ -862,6 +946,12 @@ module Google
862
946
  include Google::Apis::Core::JsonObjectSupport
863
947
  end
864
948
 
949
+ class NegativeKeyword
950
+ class Representation < Google::Apis::Core::JsonRepresentation; end
951
+
952
+ include Google::Apis::Core::JsonObjectSupport
953
+ end
954
+
865
955
  class NegativeKeywordList
866
956
  class Representation < Google::Apis::Core::JsonRepresentation; end
867
957
 
@@ -1018,6 +1108,12 @@ module Google
1018
1108
  include Google::Apis::Core::JsonObjectSupport
1019
1109
  end
1020
1110
 
1111
+ class Site
1112
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1113
+
1114
+ include Google::Apis::Core::JsonObjectSupport
1115
+ end
1116
+
1021
1117
  class Status
1022
1118
  class Representation < Google::Apis::Core::JsonRepresentation; end
1023
1119
 
@@ -1284,6 +1380,24 @@ module Google
1284
1380
  end
1285
1381
  end
1286
1382
 
1383
+ class AssignedInventorySource
1384
+ # @private
1385
+ class Representation < Google::Apis::Core::JsonRepresentation
1386
+ property :assigned_inventory_source_id, :numeric_string => true, as: 'assignedInventorySourceId'
1387
+ property :inventory_source_id, as: 'inventorySourceId'
1388
+ property :name, as: 'name'
1389
+ end
1390
+ end
1391
+
1392
+ class AssignedLocation
1393
+ # @private
1394
+ class Representation < Google::Apis::Core::JsonRepresentation
1395
+ property :assigned_location_id, :numeric_string => true, as: 'assignedLocationId'
1396
+ property :name, as: 'name'
1397
+ property :targeting_option_id, as: 'targetingOptionId'
1398
+ end
1399
+ end
1400
+
1287
1401
  class AssignedTargetingOption
1288
1402
  # @private
1289
1403
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1455,6 +1569,42 @@ module Google
1455
1569
  end
1456
1570
  end
1457
1571
 
1572
+ class BulkEditAssignedInventorySourcesRequest
1573
+ # @private
1574
+ class Representation < Google::Apis::Core::JsonRepresentation
1575
+ property :advertiser_id, :numeric_string => true, as: 'advertiserId'
1576
+ collection :created_assigned_inventory_sources, as: 'createdAssignedInventorySources', class: Google::Apis::DisplayvideoV1::AssignedInventorySource, decorator: Google::Apis::DisplayvideoV1::AssignedInventorySource::Representation
1577
+
1578
+ collection :deleted_assigned_inventory_sources, as: 'deletedAssignedInventorySources'
1579
+ property :partner_id, :numeric_string => true, as: 'partnerId'
1580
+ end
1581
+ end
1582
+
1583
+ class BulkEditAssignedInventorySourcesResponse
1584
+ # @private
1585
+ class Representation < Google::Apis::Core::JsonRepresentation
1586
+ collection :assigned_inventory_sources, as: 'assignedInventorySources', class: Google::Apis::DisplayvideoV1::AssignedInventorySource, decorator: Google::Apis::DisplayvideoV1::AssignedInventorySource::Representation
1587
+
1588
+ end
1589
+ end
1590
+
1591
+ class BulkEditAssignedLocationsRequest
1592
+ # @private
1593
+ class Representation < Google::Apis::Core::JsonRepresentation
1594
+ collection :created_assigned_locations, as: 'createdAssignedLocations', class: Google::Apis::DisplayvideoV1::AssignedLocation, decorator: Google::Apis::DisplayvideoV1::AssignedLocation::Representation
1595
+
1596
+ collection :deleted_assigned_locations, as: 'deletedAssignedLocations'
1597
+ end
1598
+ end
1599
+
1600
+ class BulkEditAssignedLocationsResponse
1601
+ # @private
1602
+ class Representation < Google::Apis::Core::JsonRepresentation
1603
+ collection :assigned_locations, as: 'assignedLocations', class: Google::Apis::DisplayvideoV1::AssignedLocation, decorator: Google::Apis::DisplayvideoV1::AssignedLocation::Representation
1604
+
1605
+ end
1606
+ end
1607
+
1458
1608
  class BulkEditLineItemAssignedTargetingOptionsRequest
1459
1609
  # @private
1460
1610
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1473,6 +1623,42 @@ module Google
1473
1623
  end
1474
1624
  end
1475
1625
 
1626
+ class BulkEditNegativeKeywordsRequest
1627
+ # @private
1628
+ class Representation < Google::Apis::Core::JsonRepresentation
1629
+ collection :created_negative_keywords, as: 'createdNegativeKeywords', class: Google::Apis::DisplayvideoV1::NegativeKeyword, decorator: Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
1630
+
1631
+ collection :deleted_negative_keywords, as: 'deletedNegativeKeywords'
1632
+ end
1633
+ end
1634
+
1635
+ class BulkEditNegativeKeywordsResponse
1636
+ # @private
1637
+ class Representation < Google::Apis::Core::JsonRepresentation
1638
+ collection :negative_keywords, as: 'negativeKeywords', class: Google::Apis::DisplayvideoV1::NegativeKeyword, decorator: Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
1639
+
1640
+ end
1641
+ end
1642
+
1643
+ class BulkEditSitesRequest
1644
+ # @private
1645
+ class Representation < Google::Apis::Core::JsonRepresentation
1646
+ property :advertiser_id, :numeric_string => true, as: 'advertiserId'
1647
+ collection :created_sites, as: 'createdSites', class: Google::Apis::DisplayvideoV1::Site, decorator: Google::Apis::DisplayvideoV1::Site::Representation
1648
+
1649
+ collection :deleted_sites, as: 'deletedSites'
1650
+ property :partner_id, :numeric_string => true, as: 'partnerId'
1651
+ end
1652
+ end
1653
+
1654
+ class BulkEditSitesResponse
1655
+ # @private
1656
+ class Representation < Google::Apis::Core::JsonRepresentation
1657
+ collection :sites, as: 'sites', class: Google::Apis::DisplayvideoV1::Site, decorator: Google::Apis::DisplayvideoV1::Site::Representation
1658
+
1659
+ end
1660
+ end
1661
+
1476
1662
  class BulkListAdvertiserAssignedTargetingOptionsResponse
1477
1663
  # @private
1478
1664
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2016,10 +2202,21 @@ module Google
2016
2202
  class FirstAndThirdPartyAudience
2017
2203
  # @private
2018
2204
  class Representation < Google::Apis::Core::JsonRepresentation
2205
+ property :active_display_audience_size, :numeric_string => true, as: 'activeDisplayAudienceSize'
2206
+ property :audience_source, as: 'audienceSource'
2207
+ property :audience_type, as: 'audienceType'
2208
+ property :description, as: 'description'
2209
+ property :display_audience_size, :numeric_string => true, as: 'displayAudienceSize'
2210
+ property :display_desktop_audience_size, :numeric_string => true, as: 'displayDesktopAudienceSize'
2211
+ property :display_mobile_app_audience_size, :numeric_string => true, as: 'displayMobileAppAudienceSize'
2212
+ property :display_mobile_web_audience_size, :numeric_string => true, as: 'displayMobileWebAudienceSize'
2019
2213
  property :display_name, as: 'displayName'
2020
2214
  property :first_and_third_party_audience_id, :numeric_string => true, as: 'firstAndThirdPartyAudienceId'
2021
2215
  property :first_and_third_party_audience_type, as: 'firstAndThirdPartyAudienceType'
2216
+ property :gmail_audience_size, :numeric_string => true, as: 'gmailAudienceSize'
2217
+ property :membership_duration_days, :numeric_string => true, as: 'membershipDurationDays'
2022
2218
  property :name, as: 'name'
2219
+ property :youtube_audience_size, :numeric_string => true, as: 'youtubeAudienceSize'
2023
2220
  end
2024
2221
  end
2025
2222
 
@@ -2413,6 +2610,24 @@ module Google
2413
2610
  end
2414
2611
  end
2415
2612
 
2613
+ class ListAssignedInventorySourcesResponse
2614
+ # @private
2615
+ class Representation < Google::Apis::Core::JsonRepresentation
2616
+ collection :assigned_inventory_sources, as: 'assignedInventorySources', class: Google::Apis::DisplayvideoV1::AssignedInventorySource, decorator: Google::Apis::DisplayvideoV1::AssignedInventorySource::Representation
2617
+
2618
+ property :next_page_token, as: 'nextPageToken'
2619
+ end
2620
+ end
2621
+
2622
+ class ListAssignedLocationsResponse
2623
+ # @private
2624
+ class Representation < Google::Apis::Core::JsonRepresentation
2625
+ collection :assigned_locations, as: 'assignedLocations', class: Google::Apis::DisplayvideoV1::AssignedLocation, decorator: Google::Apis::DisplayvideoV1::AssignedLocation::Representation
2626
+
2627
+ property :next_page_token, as: 'nextPageToken'
2628
+ end
2629
+ end
2630
+
2416
2631
  class ListCampaignsResponse
2417
2632
  # @private
2418
2633
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2539,6 +2754,24 @@ module Google
2539
2754
  end
2540
2755
  end
2541
2756
 
2757
+ class ListNegativeKeywordsResponse
2758
+ # @private
2759
+ class Representation < Google::Apis::Core::JsonRepresentation
2760
+ collection :negative_keywords, as: 'negativeKeywords', class: Google::Apis::DisplayvideoV1::NegativeKeyword, decorator: Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
2761
+
2762
+ property :next_page_token, as: 'nextPageToken'
2763
+ end
2764
+ end
2765
+
2766
+ class ListSitesResponse
2767
+ # @private
2768
+ class Representation < Google::Apis::Core::JsonRepresentation
2769
+ property :next_page_token, as: 'nextPageToken'
2770
+ collection :sites, as: 'sites', class: Google::Apis::DisplayvideoV1::Site, decorator: Google::Apis::DisplayvideoV1::Site::Representation
2771
+
2772
+ end
2773
+ end
2774
+
2542
2775
  class ListTargetingOptionsResponse
2543
2776
  # @private
2544
2777
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2584,6 +2817,14 @@ module Google
2584
2817
  end
2585
2818
  end
2586
2819
 
2820
+ class NegativeKeyword
2821
+ # @private
2822
+ class Representation < Google::Apis::Core::JsonRepresentation
2823
+ property :keyword_value, as: 'keywordValue'
2824
+ property :name, as: 'name'
2825
+ end
2826
+ end
2827
+
2587
2828
  class NegativeKeywordList
2588
2829
  # @private
2589
2830
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2819,6 +3060,14 @@ module Google
2819
3060
  end
2820
3061
  end
2821
3062
 
3063
+ class Site
3064
+ # @private
3065
+ class Representation < Google::Apis::Core::JsonRepresentation
3066
+ property :name, as: 'name'
3067
+ property :url_or_app_id, as: 'urlOrAppId'
3068
+ end
3069
+ end
3070
+
2822
3071
  class Status
2823
3072
  # @private
2824
3073
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -615,6 +615,42 @@ module Google
615
615
  execute_or_queue_command(command, &block)
616
616
  end
617
617
 
618
+ # Creates a new channel. Returns the newly created channel if successful.
619
+ # @param [Fixnum] advertiser_id
620
+ # The ID of the advertiser that owns the created channel.
621
+ # @param [Google::Apis::DisplayvideoV1::Channel] channel_object
622
+ # @param [Fixnum] partner_id
623
+ # The ID of the partner that owns the created channel.
624
+ # @param [String] fields
625
+ # Selector specifying which fields to include in a partial response.
626
+ # @param [String] quota_user
627
+ # Available to use for quota purposes for server-side applications. Can be any
628
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
629
+ # @param [Google::Apis::RequestOptions] options
630
+ # Request-specific options
631
+ #
632
+ # @yield [result, err] Result & error if block supplied
633
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Channel] parsed result object
634
+ # @yieldparam err [StandardError] error object if request failed
635
+ #
636
+ # @return [Google::Apis::DisplayvideoV1::Channel]
637
+ #
638
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
639
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
640
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
641
+ def create_advertiser_channel(advertiser_id, channel_object = nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
642
+ command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/channels', options)
643
+ command.request_representation = Google::Apis::DisplayvideoV1::Channel::Representation
644
+ command.request_object = channel_object
645
+ command.response_representation = Google::Apis::DisplayvideoV1::Channel::Representation
646
+ command.response_class = Google::Apis::DisplayvideoV1::Channel
647
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
648
+ command.query['partnerId'] = partner_id unless partner_id.nil?
649
+ command.query['fields'] = fields unless fields.nil?
650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
651
+ execute_or_queue_command(command, &block)
652
+ end
653
+
618
654
  # Gets a channel for a partner or advertiser.
619
655
  # @param [Fixnum] advertiser_id
620
656
  # The ID of the advertiser that owns the fetched channel.
@@ -719,6 +755,234 @@ module Google
719
755
  execute_or_queue_command(command, &block)
720
756
  end
721
757
 
758
+ # Updates a channel. Returns the updated channel if successful.
759
+ # @param [Fixnum] advertiser_id
760
+ # The ID of the advertiser that owns the created channel.
761
+ # @param [Fixnum] channel_id
762
+ # Output only. The unique ID of the channel. Assigned by the system.
763
+ # @param [Google::Apis::DisplayvideoV1::Channel] channel_object
764
+ # @param [Fixnum] partner_id
765
+ # The ID of the partner that owns the created channel.
766
+ # @param [String] update_mask
767
+ # Required. The mask to control which fields to update.
768
+ # @param [String] fields
769
+ # Selector specifying which fields to include in a partial response.
770
+ # @param [String] quota_user
771
+ # Available to use for quota purposes for server-side applications. Can be any
772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
773
+ # @param [Google::Apis::RequestOptions] options
774
+ # Request-specific options
775
+ #
776
+ # @yield [result, err] Result & error if block supplied
777
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Channel] parsed result object
778
+ # @yieldparam err [StandardError] error object if request failed
779
+ #
780
+ # @return [Google::Apis::DisplayvideoV1::Channel]
781
+ #
782
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
783
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
785
+ def patch_advertiser_channel(advertiser_id, channel_id, channel_object = nil, partner_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
786
+ command = make_simple_command(:patch, 'v1/advertisers/{+advertiserId}/channels/{channelId}', options)
787
+ command.request_representation = Google::Apis::DisplayvideoV1::Channel::Representation
788
+ command.request_object = channel_object
789
+ command.response_representation = Google::Apis::DisplayvideoV1::Channel::Representation
790
+ command.response_class = Google::Apis::DisplayvideoV1::Channel
791
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
792
+ command.params['channelId'] = channel_id unless channel_id.nil?
793
+ command.query['partnerId'] = partner_id unless partner_id.nil?
794
+ command.query['updateMask'] = update_mask unless update_mask.nil?
795
+ command.query['fields'] = fields unless fields.nil?
796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
797
+ execute_or_queue_command(command, &block)
798
+ end
799
+
800
+ # Bulk edits sites under a single channel.
801
+ # The operation will delete the sites provided in
802
+ # BulkEditSitesRequest.deleted_sites and then create the sites
803
+ # provided in BulkEditSitesRequest.created_sites.
804
+ # @param [Fixnum] advertiser_id
805
+ # The ID of the advertiser that owns the parent channel.
806
+ # @param [Fixnum] channel_id
807
+ # Required. The ID of the parent channel to which the sites belong.
808
+ # @param [Google::Apis::DisplayvideoV1::BulkEditSitesRequest] bulk_edit_sites_request_object
809
+ # @param [String] fields
810
+ # Selector specifying which fields to include in a partial response.
811
+ # @param [String] quota_user
812
+ # Available to use for quota purposes for server-side applications. Can be any
813
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
814
+ # @param [Google::Apis::RequestOptions] options
815
+ # Request-specific options
816
+ #
817
+ # @yield [result, err] Result & error if block supplied
818
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditSitesResponse] parsed result object
819
+ # @yieldparam err [StandardError] error object if request failed
820
+ #
821
+ # @return [Google::Apis::DisplayvideoV1::BulkEditSitesResponse]
822
+ #
823
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
824
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
825
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
826
+ def bulk_advertiser_channel_site_edit(advertiser_id, channel_id, bulk_edit_sites_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
827
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/channels/{+channelId}/sites:bulkEdit', options)
828
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditSitesRequest::Representation
829
+ command.request_object = bulk_edit_sites_request_object
830
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditSitesResponse::Representation
831
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditSitesResponse
832
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
833
+ command.params['channelId'] = channel_id unless channel_id.nil?
834
+ command.query['fields'] = fields unless fields.nil?
835
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
836
+ execute_or_queue_command(command, &block)
837
+ end
838
+
839
+ # Creates a site in a channel.
840
+ # @param [Fixnum] advertiser_id
841
+ # The ID of the advertiser that owns the parent channel.
842
+ # @param [Fixnum] channel_id
843
+ # Required. The ID of the parent channel in which the site will be created.
844
+ # @param [Google::Apis::DisplayvideoV1::Site] site_object
845
+ # @param [Fixnum] partner_id
846
+ # The ID of the partner that owns the parent channel.
847
+ # @param [String] fields
848
+ # Selector specifying which fields to include in a partial response.
849
+ # @param [String] quota_user
850
+ # Available to use for quota purposes for server-side applications. Can be any
851
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
852
+ # @param [Google::Apis::RequestOptions] options
853
+ # Request-specific options
854
+ #
855
+ # @yield [result, err] Result & error if block supplied
856
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Site] parsed result object
857
+ # @yieldparam err [StandardError] error object if request failed
858
+ #
859
+ # @return [Google::Apis::DisplayvideoV1::Site]
860
+ #
861
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
862
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
863
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
864
+ def create_advertiser_channel_site(advertiser_id, channel_id, site_object = nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
865
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/channels/{+channelId}/sites', options)
866
+ command.request_representation = Google::Apis::DisplayvideoV1::Site::Representation
867
+ command.request_object = site_object
868
+ command.response_representation = Google::Apis::DisplayvideoV1::Site::Representation
869
+ command.response_class = Google::Apis::DisplayvideoV1::Site
870
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
871
+ command.params['channelId'] = channel_id unless channel_id.nil?
872
+ command.query['partnerId'] = partner_id unless partner_id.nil?
873
+ command.query['fields'] = fields unless fields.nil?
874
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
875
+ execute_or_queue_command(command, &block)
876
+ end
877
+
878
+ # Deletes a site from a channel.
879
+ # @param [Fixnum] advertiser_id
880
+ # The ID of the advertiser that owns the parent channel.
881
+ # @param [Fixnum] channel_id
882
+ # Required. The ID of the parent channel to which the site belongs.
883
+ # @param [String] url_or_app_id
884
+ # Required. The URL or app ID of the site to delete.
885
+ # @param [Fixnum] partner_id
886
+ # The ID of the partner that owns the parent channel.
887
+ # @param [String] fields
888
+ # Selector specifying which fields to include in a partial response.
889
+ # @param [String] quota_user
890
+ # Available to use for quota purposes for server-side applications. Can be any
891
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
892
+ # @param [Google::Apis::RequestOptions] options
893
+ # Request-specific options
894
+ #
895
+ # @yield [result, err] Result & error if block supplied
896
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
897
+ # @yieldparam err [StandardError] error object if request failed
898
+ #
899
+ # @return [Google::Apis::DisplayvideoV1::Empty]
900
+ #
901
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
902
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
903
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
904
+ def delete_advertiser_channel_site(advertiser_id, channel_id, url_or_app_id, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
905
+ command = make_simple_command(:delete, 'v1/advertisers/{advertiserId}/channels/{+channelId}/sites/{+urlOrAppId}', options)
906
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
907
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
908
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
909
+ command.params['channelId'] = channel_id unless channel_id.nil?
910
+ command.params['urlOrAppId'] = url_or_app_id unless url_or_app_id.nil?
911
+ command.query['partnerId'] = partner_id unless partner_id.nil?
912
+ command.query['fields'] = fields unless fields.nil?
913
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
914
+ execute_or_queue_command(command, &block)
915
+ end
916
+
917
+ # Lists sites in a channel.
918
+ # @param [Fixnum] advertiser_id
919
+ # The ID of the advertiser that owns the parent channel.
920
+ # @param [Fixnum] channel_id
921
+ # Required. The ID of the parent channel to which the requested sites belong.
922
+ # @param [String] filter
923
+ # Allows filtering by site fields.
924
+ # Supported syntax:
925
+ # * Filter expressions for site currently can only contain at most one
926
+ # * restriction.
927
+ # * A restriction has the form of ``field` `operator` `value``.
928
+ # * The operator must be `CONTAINS (:)`.
929
+ # * Supported fields:
930
+ # - `urlOrAppId`
931
+ # Examples:
932
+ # * All sites for which the URL or app ID contains "google":
933
+ # `urlOrAppId : "google"`
934
+ # @param [String] order_by
935
+ # Field by which to sort the list.
936
+ # Acceptable values are:
937
+ # * `urlOrAppId` (default)
938
+ # The default sorting order is ascending. To specify descending order for a
939
+ # field, a suffix " desc" should be added to the field name. Example:
940
+ # `urlOrAppId desc`.
941
+ # @param [Fixnum] page_size
942
+ # Requested page size. Must be between `1` and `100`. If unspecified will
943
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
944
+ # is specified.
945
+ # @param [String] page_token
946
+ # A token identifying a page of results the server should return.
947
+ # Typically, this is the value of
948
+ # next_page_token returned from the
949
+ # previous call to `ListSites` method. If not specified, the first page
950
+ # of results will be returned.
951
+ # @param [Fixnum] partner_id
952
+ # The ID of the partner that owns the parent channel.
953
+ # @param [String] fields
954
+ # Selector specifying which fields to include in a partial response.
955
+ # @param [String] quota_user
956
+ # Available to use for quota purposes for server-side applications. Can be any
957
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
958
+ # @param [Google::Apis::RequestOptions] options
959
+ # Request-specific options
960
+ #
961
+ # @yield [result, err] Result & error if block supplied
962
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListSitesResponse] parsed result object
963
+ # @yieldparam err [StandardError] error object if request failed
964
+ #
965
+ # @return [Google::Apis::DisplayvideoV1::ListSitesResponse]
966
+ #
967
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
968
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
969
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
970
+ def list_advertiser_channel_sites(advertiser_id, channel_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
971
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/channels/{+channelId}/sites', options)
972
+ command.response_representation = Google::Apis::DisplayvideoV1::ListSitesResponse::Representation
973
+ command.response_class = Google::Apis::DisplayvideoV1::ListSitesResponse
974
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
975
+ command.params['channelId'] = channel_id unless channel_id.nil?
976
+ command.query['filter'] = filter unless filter.nil?
977
+ command.query['orderBy'] = order_by unless order_by.nil?
978
+ command.query['pageSize'] = page_size unless page_size.nil?
979
+ command.query['pageToken'] = page_token unless page_token.nil?
980
+ command.query['partnerId'] = partner_id unless partner_id.nil?
981
+ command.query['fields'] = fields unless fields.nil?
982
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
983
+ execute_or_queue_command(command, &block)
984
+ end
985
+
722
986
  # Creates a new creative.
723
987
  # Returns the newly created creative if successful.
724
988
  # @param [Fixnum] advertiser_id
@@ -849,6 +1113,7 @@ module Google
849
1113
  # - `approvalStatus`
850
1114
  # - `exchangeReviewStatus`
851
1115
  # - `dynamic`
1116
+ # - `creativeId`
852
1117
  # * The operator must be `HAS (:)` for the following fields:
853
1118
  # - `lineItemIds`
854
1119
  # * For `entityStatus`, `minDuration`, `maxDuration`, and `dynamic` there may
@@ -860,6 +1125,8 @@ module Google
860
1125
  # `"`duration`s"`. Only seconds are supported with millisecond granularity.
861
1126
  # * There may be multiple `lineItemIds` restrictions in order to search
862
1127
  # against multiple possible line item IDs.
1128
+ # * There may be multiple `creativeId` restrictions in order to search
1129
+ # against multiple possible creative IDs.
863
1130
  # Examples:
864
1131
  # * All native creatives: `creativeType="CREATIVE_TYPE_NATIVE"`
865
1132
  # * All active creatives with 300x400 or 50x100 dimensions:
@@ -871,7 +1138,9 @@ module Google
871
1138
  # (exchangeReviewStatus="EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED"
872
1139
  # OR exchangeReviewStatus="EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED")`
873
1140
  # * All video creatives that are associated with line item ID 1 or 2:
874
- # creativeType="CREATIVE_TYPE_VIDEO" AND (lineItemIds:1 OR lineItemIds:2)
1141
+ # `creativeType="CREATIVE_TYPE_VIDEO" AND (lineItemIds:1 OR lineItemIds:2)`
1142
+ # * Find creatives by multiple creative IDs:
1143
+ # `creativeId=1 OR creativeId=2`
875
1144
  # The length of this field should be no more than 500 characters.
876
1145
  # @param [String] order_by
877
1146
  # Field by which to sort the list.
@@ -1715,6 +1984,40 @@ module Google
1715
1984
  execute_or_queue_command(command, &block)
1716
1985
  end
1717
1986
 
1987
+ # Creates a new location list. Returns the newly created location list if
1988
+ # successful.
1989
+ # @param [Fixnum] advertiser_id
1990
+ # Required. The ID of the DV360 advertiser to which the location list belongs.
1991
+ # @param [Google::Apis::DisplayvideoV1::LocationList] location_list_object
1992
+ # @param [String] fields
1993
+ # Selector specifying which fields to include in a partial response.
1994
+ # @param [String] quota_user
1995
+ # Available to use for quota purposes for server-side applications. Can be any
1996
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1997
+ # @param [Google::Apis::RequestOptions] options
1998
+ # Request-specific options
1999
+ #
2000
+ # @yield [result, err] Result & error if block supplied
2001
+ # @yieldparam result [Google::Apis::DisplayvideoV1::LocationList] parsed result object
2002
+ # @yieldparam err [StandardError] error object if request failed
2003
+ #
2004
+ # @return [Google::Apis::DisplayvideoV1::LocationList]
2005
+ #
2006
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2007
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2008
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2009
+ def create_advertiser_location_list(advertiser_id, location_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2010
+ command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/locationLists', options)
2011
+ command.request_representation = Google::Apis::DisplayvideoV1::LocationList::Representation
2012
+ command.request_object = location_list_object
2013
+ command.response_representation = Google::Apis::DisplayvideoV1::LocationList::Representation
2014
+ command.response_class = Google::Apis::DisplayvideoV1::LocationList
2015
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2016
+ command.query['fields'] = fields unless fields.nil?
2017
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2018
+ execute_or_queue_command(command, &block)
2019
+ end
2020
+
1718
2021
  # Gets a location list.
1719
2022
  # @param [Fixnum] advertiser_id
1720
2023
  # Required. The ID of the DV360 advertiser to which the fetched location list
@@ -1817,14 +2120,14 @@ module Google
1817
2120
  execute_or_queue_command(command, &block)
1818
2121
  end
1819
2122
 
1820
- # Gets a negative keyword list given an advertiser ID and a negative keyword
1821
- # list ID.
2123
+ # Updates a location list. Returns the updated location list if successful.
1822
2124
  # @param [Fixnum] advertiser_id
1823
- # Required. The ID of the DV360 advertiser to which the fetched negative keyword
1824
- # list
1825
- # belongs.
1826
- # @param [Fixnum] negative_keyword_list_id
1827
- # Required. The ID of the negative keyword list to fetch.
2125
+ # Required. The ID of the DV360 advertiser to which the location lists belongs.
2126
+ # @param [Fixnum] location_list_id
2127
+ # Output only. The unique ID of the location list. Assigned by the system.
2128
+ # @param [Google::Apis::DisplayvideoV1::LocationList] location_list_object
2129
+ # @param [String] update_mask
2130
+ # Required. The mask to control which fields to update.
1828
2131
  # @param [String] fields
1829
2132
  # Selector specifying which fields to include in a partial response.
1830
2133
  # @param [String] quota_user
@@ -1834,40 +2137,327 @@ module Google
1834
2137
  # Request-specific options
1835
2138
  #
1836
2139
  # @yield [result, err] Result & error if block supplied
1837
- # @yieldparam result [Google::Apis::DisplayvideoV1::NegativeKeywordList] parsed result object
2140
+ # @yieldparam result [Google::Apis::DisplayvideoV1::LocationList] parsed result object
1838
2141
  # @yieldparam err [StandardError] error object if request failed
1839
2142
  #
1840
- # @return [Google::Apis::DisplayvideoV1::NegativeKeywordList]
2143
+ # @return [Google::Apis::DisplayvideoV1::LocationList]
1841
2144
  #
1842
2145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1843
2146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1844
2147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1845
- def get_advertiser_negative_keyword_list(advertiser_id, negative_keyword_list_id, fields: nil, quota_user: nil, options: nil, &block)
1846
- command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}', options)
1847
- command.response_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
1848
- command.response_class = Google::Apis::DisplayvideoV1::NegativeKeywordList
2148
+ def patch_advertiser_location_list(advertiser_id, location_list_id, location_list_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2149
+ command = make_simple_command(:patch, 'v1/advertisers/{+advertiserId}/locationLists/{locationListId}', options)
2150
+ command.request_representation = Google::Apis::DisplayvideoV1::LocationList::Representation
2151
+ command.request_object = location_list_object
2152
+ command.response_representation = Google::Apis::DisplayvideoV1::LocationList::Representation
2153
+ command.response_class = Google::Apis::DisplayvideoV1::LocationList
1849
2154
  command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
1850
- command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2155
+ command.params['locationListId'] = location_list_id unless location_list_id.nil?
2156
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1851
2157
  command.query['fields'] = fields unless fields.nil?
1852
2158
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1853
2159
  execute_or_queue_command(command, &block)
1854
2160
  end
1855
2161
 
1856
- # Lists negative keyword lists based on a given advertiser id.
2162
+ # Bulk edits multiple assignments between locations and a single location
2163
+ # list.
2164
+ # The operation will delete the assigned locations provided in
2165
+ # BulkEditAssignedLocationsRequest.deleted_assigned_locations and then
2166
+ # create the assigned locations provided in
2167
+ # BulkEditAssignedLocationsRequest.created_assigned_locations.
1857
2168
  # @param [Fixnum] advertiser_id
1858
- # Required. The ID of the DV360 advertiser to which the fetched negative keyword
1859
- # lists
1860
- # belong.
1861
- # @param [Fixnum] page_size
1862
- # Requested page size. Must be between `1` and `100`.
1863
- # Defaults to `100` if not set. Returns error code `INVALID_ARGUMENT` if an
1864
- # invalid value is specified.
1865
- # @param [String] page_token
1866
- # A token identifying a page of results the server should return.
1867
- # Typically, this is the value of
1868
- # next_page_token
1869
- # returned from the previous call to `ListNegativeKeywordLists` method.
1870
- # If not specified, the first page of results will be returned.
2169
+ # Required. The ID of the DV360 advertiser to which the location list belongs.
2170
+ # @param [Fixnum] location_list_id
2171
+ # Required. The ID of the location list to which these assignments are assigned.
2172
+ # @param [Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsRequest] bulk_edit_assigned_locations_request_object
2173
+ # @param [String] fields
2174
+ # Selector specifying which fields to include in a partial response.
2175
+ # @param [String] quota_user
2176
+ # Available to use for quota purposes for server-side applications. Can be any
2177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2178
+ # @param [Google::Apis::RequestOptions] options
2179
+ # Request-specific options
2180
+ #
2181
+ # @yield [result, err] Result & error if block supplied
2182
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsResponse] parsed result object
2183
+ # @yieldparam err [StandardError] error object if request failed
2184
+ #
2185
+ # @return [Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsResponse]
2186
+ #
2187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2190
+ def bulk_edit_assigned_locations(advertiser_id, location_list_id, bulk_edit_assigned_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2191
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/locationLists/{+locationListId}/assignedLocations:bulkEdit', options)
2192
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsRequest::Representation
2193
+ command.request_object = bulk_edit_assigned_locations_request_object
2194
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsResponse::Representation
2195
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsResponse
2196
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2197
+ command.params['locationListId'] = location_list_id unless location_list_id.nil?
2198
+ command.query['fields'] = fields unless fields.nil?
2199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2200
+ execute_or_queue_command(command, &block)
2201
+ end
2202
+
2203
+ # Creates an assignment between a location and a location list.
2204
+ # @param [Fixnum] advertiser_id
2205
+ # Required. The ID of the DV360 advertiser to which the location list belongs.
2206
+ # @param [Fixnum] location_list_id
2207
+ # Required. The ID of the location list for which the assignment will be created.
2208
+ # @param [Google::Apis::DisplayvideoV1::AssignedLocation] assigned_location_object
2209
+ # @param [String] fields
2210
+ # Selector specifying which fields to include in a partial response.
2211
+ # @param [String] quota_user
2212
+ # Available to use for quota purposes for server-side applications. Can be any
2213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2214
+ # @param [Google::Apis::RequestOptions] options
2215
+ # Request-specific options
2216
+ #
2217
+ # @yield [result, err] Result & error if block supplied
2218
+ # @yieldparam result [Google::Apis::DisplayvideoV1::AssignedLocation] parsed result object
2219
+ # @yieldparam err [StandardError] error object if request failed
2220
+ #
2221
+ # @return [Google::Apis::DisplayvideoV1::AssignedLocation]
2222
+ #
2223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2226
+ def create_advertiser_location_list_assigned_location(advertiser_id, location_list_id, assigned_location_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2227
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations', options)
2228
+ command.request_representation = Google::Apis::DisplayvideoV1::AssignedLocation::Representation
2229
+ command.request_object = assigned_location_object
2230
+ command.response_representation = Google::Apis::DisplayvideoV1::AssignedLocation::Representation
2231
+ command.response_class = Google::Apis::DisplayvideoV1::AssignedLocation
2232
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2233
+ command.params['locationListId'] = location_list_id unless location_list_id.nil?
2234
+ command.query['fields'] = fields unless fields.nil?
2235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2236
+ execute_or_queue_command(command, &block)
2237
+ end
2238
+
2239
+ # Deletes the assignment between a location and a location list.
2240
+ # @param [Fixnum] advertiser_id
2241
+ # Required. The ID of the DV360 advertiser to which the location list belongs.
2242
+ # @param [Fixnum] location_list_id
2243
+ # Required. The ID of the location list to which this assignment is assigned.
2244
+ # @param [Fixnum] assigned_location_id
2245
+ # Required. The ID of the assigned location to delete.
2246
+ # @param [String] fields
2247
+ # Selector specifying which fields to include in a partial response.
2248
+ # @param [String] quota_user
2249
+ # Available to use for quota purposes for server-side applications. Can be any
2250
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2251
+ # @param [Google::Apis::RequestOptions] options
2252
+ # Request-specific options
2253
+ #
2254
+ # @yield [result, err] Result & error if block supplied
2255
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
2256
+ # @yieldparam err [StandardError] error object if request failed
2257
+ #
2258
+ # @return [Google::Apis::DisplayvideoV1::Empty]
2259
+ #
2260
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2261
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2262
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2263
+ def delete_advertiser_location_list_assigned_location(advertiser_id, location_list_id, assigned_location_id, fields: nil, quota_user: nil, options: nil, &block)
2264
+ command = make_simple_command(:delete, 'v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations/{+assignedLocationId}', options)
2265
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
2266
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
2267
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2268
+ command.params['locationListId'] = location_list_id unless location_list_id.nil?
2269
+ command.params['assignedLocationId'] = assigned_location_id unless assigned_location_id.nil?
2270
+ command.query['fields'] = fields unless fields.nil?
2271
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2272
+ execute_or_queue_command(command, &block)
2273
+ end
2274
+
2275
+ # Lists locations assigned to a location list.
2276
+ # @param [Fixnum] advertiser_id
2277
+ # Required. The ID of the DV360 advertiser to which the location list belongs.
2278
+ # @param [Fixnum] location_list_id
2279
+ # Required. The ID of the location list to which these assignments are assigned.
2280
+ # @param [String] filter
2281
+ # Allows filtering by location list assignment fields.
2282
+ # Supported syntax:
2283
+ # * Filter expressions are made up of one or more restrictions.
2284
+ # * Restrictions can be combined by the logical operator `OR`.
2285
+ # * A restriction has the form of ``field` `operator` `value``.
2286
+ # * The operator must be `EQUALS (=)`.
2287
+ # * Supported fields:
2288
+ # - `assignedLocationId`
2289
+ # The length of this field should be no more than 500 characters.
2290
+ # @param [String] order_by
2291
+ # Field by which to sort the list.
2292
+ # Acceptable values are:
2293
+ # * `assignedLocationId` (default)
2294
+ # The default sorting order is ascending. To specify descending order for a
2295
+ # field, a suffix " desc" should be added to the field name. Example:
2296
+ # `assignedLocationId desc`.
2297
+ # @param [Fixnum] page_size
2298
+ # Requested page size. Must be between `1` and `100`. If unspecified will
2299
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
2300
+ # is specified.
2301
+ # @param [String] page_token
2302
+ # A token identifying a page of results the server should return.
2303
+ # Typically, this is the value of
2304
+ # next_page_token
2305
+ # returned from the previous call to `ListAssignedLocations`
2306
+ # method. If not specified, the first page of results will be returned.
2307
+ # @param [String] fields
2308
+ # Selector specifying which fields to include in a partial response.
2309
+ # @param [String] quota_user
2310
+ # Available to use for quota purposes for server-side applications. Can be any
2311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2312
+ # @param [Google::Apis::RequestOptions] options
2313
+ # Request-specific options
2314
+ #
2315
+ # @yield [result, err] Result & error if block supplied
2316
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListAssignedLocationsResponse] parsed result object
2317
+ # @yieldparam err [StandardError] error object if request failed
2318
+ #
2319
+ # @return [Google::Apis::DisplayvideoV1::ListAssignedLocationsResponse]
2320
+ #
2321
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2322
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2323
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2324
+ def list_advertiser_location_list_assigned_locations(advertiser_id, location_list_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2325
+ command = make_simple_command(:get, 'v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations', options)
2326
+ command.response_representation = Google::Apis::DisplayvideoV1::ListAssignedLocationsResponse::Representation
2327
+ command.response_class = Google::Apis::DisplayvideoV1::ListAssignedLocationsResponse
2328
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2329
+ command.params['locationListId'] = location_list_id unless location_list_id.nil?
2330
+ command.query['filter'] = filter unless filter.nil?
2331
+ command.query['orderBy'] = order_by unless order_by.nil?
2332
+ command.query['pageSize'] = page_size unless page_size.nil?
2333
+ command.query['pageToken'] = page_token unless page_token.nil?
2334
+ command.query['fields'] = fields unless fields.nil?
2335
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2336
+ execute_or_queue_command(command, &block)
2337
+ end
2338
+
2339
+ # Creates a new negative keyword list. Returns the newly created negative
2340
+ # keyword list if successful.
2341
+ # @param [Fixnum] advertiser_id
2342
+ # Required. The ID of the DV360 advertiser to which the negative keyword list
2343
+ # will
2344
+ # belong.
2345
+ # @param [Google::Apis::DisplayvideoV1::NegativeKeywordList] negative_keyword_list_object
2346
+ # @param [String] fields
2347
+ # Selector specifying which fields to include in a partial response.
2348
+ # @param [String] quota_user
2349
+ # Available to use for quota purposes for server-side applications. Can be any
2350
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2351
+ # @param [Google::Apis::RequestOptions] options
2352
+ # Request-specific options
2353
+ #
2354
+ # @yield [result, err] Result & error if block supplied
2355
+ # @yieldparam result [Google::Apis::DisplayvideoV1::NegativeKeywordList] parsed result object
2356
+ # @yieldparam err [StandardError] error object if request failed
2357
+ #
2358
+ # @return [Google::Apis::DisplayvideoV1::NegativeKeywordList]
2359
+ #
2360
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2361
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2362
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2363
+ def create_advertiser_negative_keyword_list(advertiser_id, negative_keyword_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2364
+ command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/negativeKeywordLists', options)
2365
+ command.request_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
2366
+ command.request_object = negative_keyword_list_object
2367
+ command.response_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
2368
+ command.response_class = Google::Apis::DisplayvideoV1::NegativeKeywordList
2369
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2370
+ command.query['fields'] = fields unless fields.nil?
2371
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2372
+ execute_or_queue_command(command, &block)
2373
+ end
2374
+
2375
+ # Deletes a negative keyword list given an advertiser ID and a negative
2376
+ # keyword list ID.
2377
+ # @param [Fixnum] advertiser_id
2378
+ # Required. The ID of the DV360 advertiser to which the negative keyword list
2379
+ # belongs.
2380
+ # @param [Fixnum] negative_keyword_list_id
2381
+ # Required. The ID of the negative keyword list to delete.
2382
+ # @param [String] fields
2383
+ # Selector specifying which fields to include in a partial response.
2384
+ # @param [String] quota_user
2385
+ # Available to use for quota purposes for server-side applications. Can be any
2386
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2387
+ # @param [Google::Apis::RequestOptions] options
2388
+ # Request-specific options
2389
+ #
2390
+ # @yield [result, err] Result & error if block supplied
2391
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
2392
+ # @yieldparam err [StandardError] error object if request failed
2393
+ #
2394
+ # @return [Google::Apis::DisplayvideoV1::Empty]
2395
+ #
2396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2399
+ def delete_advertiser_negative_keyword_list(advertiser_id, negative_keyword_list_id, fields: nil, quota_user: nil, options: nil, &block)
2400
+ command = make_simple_command(:delete, 'v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}', options)
2401
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
2402
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
2403
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2404
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2405
+ command.query['fields'] = fields unless fields.nil?
2406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2407
+ execute_or_queue_command(command, &block)
2408
+ end
2409
+
2410
+ # Gets a negative keyword list given an advertiser ID and a negative keyword
2411
+ # list ID.
2412
+ # @param [Fixnum] advertiser_id
2413
+ # Required. The ID of the DV360 advertiser to which the fetched negative keyword
2414
+ # list
2415
+ # belongs.
2416
+ # @param [Fixnum] negative_keyword_list_id
2417
+ # Required. The ID of the negative keyword list to fetch.
2418
+ # @param [String] fields
2419
+ # Selector specifying which fields to include in a partial response.
2420
+ # @param [String] quota_user
2421
+ # Available to use for quota purposes for server-side applications. Can be any
2422
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2423
+ # @param [Google::Apis::RequestOptions] options
2424
+ # Request-specific options
2425
+ #
2426
+ # @yield [result, err] Result & error if block supplied
2427
+ # @yieldparam result [Google::Apis::DisplayvideoV1::NegativeKeywordList] parsed result object
2428
+ # @yieldparam err [StandardError] error object if request failed
2429
+ #
2430
+ # @return [Google::Apis::DisplayvideoV1::NegativeKeywordList]
2431
+ #
2432
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2433
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2434
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2435
+ def get_advertiser_negative_keyword_list(advertiser_id, negative_keyword_list_id, fields: nil, quota_user: nil, options: nil, &block)
2436
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}', options)
2437
+ command.response_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
2438
+ command.response_class = Google::Apis::DisplayvideoV1::NegativeKeywordList
2439
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2440
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2441
+ command.query['fields'] = fields unless fields.nil?
2442
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2443
+ execute_or_queue_command(command, &block)
2444
+ end
2445
+
2446
+ # Lists negative keyword lists based on a given advertiser id.
2447
+ # @param [Fixnum] advertiser_id
2448
+ # Required. The ID of the DV360 advertiser to which the fetched negative keyword
2449
+ # lists
2450
+ # belong.
2451
+ # @param [Fixnum] page_size
2452
+ # Requested page size. Must be between `1` and `100`.
2453
+ # Defaults to `100` if not set. Returns error code `INVALID_ARGUMENT` if an
2454
+ # invalid value is specified.
2455
+ # @param [String] page_token
2456
+ # A token identifying a page of results the server should return.
2457
+ # Typically, this is the value of
2458
+ # next_page_token
2459
+ # returned from the previous call to `ListNegativeKeywordLists` method.
2460
+ # If not specified, the first page of results will be returned.
1871
2461
  # @param [String] fields
1872
2462
  # Selector specifying which fields to include in a partial response.
1873
2463
  # @param [String] quota_user
@@ -1897,6 +2487,245 @@ module Google
1897
2487
  execute_or_queue_command(command, &block)
1898
2488
  end
1899
2489
 
2490
+ # Updates a negative keyword list. Returns the updated negative keyword list
2491
+ # if successful.
2492
+ # @param [Fixnum] advertiser_id
2493
+ # Required. The ID of the DV360 advertiser to which the negative keyword list
2494
+ # belongs.
2495
+ # @param [Fixnum] negative_keyword_list_id
2496
+ # Output only. The unique ID of the negative keyword list. Assigned by the
2497
+ # system.
2498
+ # @param [Google::Apis::DisplayvideoV1::NegativeKeywordList] negative_keyword_list_object
2499
+ # @param [String] update_mask
2500
+ # Required. The mask to control which fields to update.
2501
+ # @param [String] fields
2502
+ # Selector specifying which fields to include in a partial response.
2503
+ # @param [String] quota_user
2504
+ # Available to use for quota purposes for server-side applications. Can be any
2505
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2506
+ # @param [Google::Apis::RequestOptions] options
2507
+ # Request-specific options
2508
+ #
2509
+ # @yield [result, err] Result & error if block supplied
2510
+ # @yieldparam result [Google::Apis::DisplayvideoV1::NegativeKeywordList] parsed result object
2511
+ # @yieldparam err [StandardError] error object if request failed
2512
+ #
2513
+ # @return [Google::Apis::DisplayvideoV1::NegativeKeywordList]
2514
+ #
2515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2518
+ def patch_advertiser_negative_keyword_list(advertiser_id, negative_keyword_list_id, negative_keyword_list_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2519
+ command = make_simple_command(:patch, 'v1/advertisers/{+advertiserId}/negativeKeywordLists/{negativeKeywordListId}', options)
2520
+ command.request_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
2521
+ command.request_object = negative_keyword_list_object
2522
+ command.response_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
2523
+ command.response_class = Google::Apis::DisplayvideoV1::NegativeKeywordList
2524
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2525
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2526
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2527
+ command.query['fields'] = fields unless fields.nil?
2528
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2529
+ execute_or_queue_command(command, &block)
2530
+ end
2531
+
2532
+ # Bulk edits negative keywords in a single negative keyword list.
2533
+ # The operation will delete the negative keywords provided in
2534
+ # BulkEditNegativeKeywordsRequest.deleted_negative_keywords and then
2535
+ # create the negative keywords provided in
2536
+ # BulkEditNegativeKeywordsRequest.created_negative_keywords.
2537
+ # This operation is guaranteed to be atomic and will never result in a
2538
+ # partial success or partial failure.
2539
+ # @param [Fixnum] advertiser_id
2540
+ # Required. The ID of the DV360 advertiser to which the parent negative keyword
2541
+ # list
2542
+ # belongs.
2543
+ # @param [Fixnum] negative_keyword_list_id
2544
+ # Required. The ID of the parent negative keyword list to which the negative
2545
+ # keywords
2546
+ # belong.
2547
+ # @param [Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsRequest] bulk_edit_negative_keywords_request_object
2548
+ # @param [String] fields
2549
+ # Selector specifying which fields to include in a partial response.
2550
+ # @param [String] quota_user
2551
+ # Available to use for quota purposes for server-side applications. Can be any
2552
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2553
+ # @param [Google::Apis::RequestOptions] options
2554
+ # Request-specific options
2555
+ #
2556
+ # @yield [result, err] Result & error if block supplied
2557
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsResponse] parsed result object
2558
+ # @yieldparam err [StandardError] error object if request failed
2559
+ #
2560
+ # @return [Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsResponse]
2561
+ #
2562
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2563
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2564
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2565
+ def bulk_edit_negative_keywords(advertiser_id, negative_keyword_list_id, bulk_edit_negative_keywords_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2566
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:bulkEdit', options)
2567
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsRequest::Representation
2568
+ command.request_object = bulk_edit_negative_keywords_request_object
2569
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsResponse::Representation
2570
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsResponse
2571
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2572
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2573
+ command.query['fields'] = fields unless fields.nil?
2574
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2575
+ execute_or_queue_command(command, &block)
2576
+ end
2577
+
2578
+ # Creates a negative keyword in a negative keyword list.
2579
+ # @param [Fixnum] advertiser_id
2580
+ # Required. The ID of the DV360 advertiser to which the parent negative keyword
2581
+ # list
2582
+ # belongs.
2583
+ # @param [Fixnum] negative_keyword_list_id
2584
+ # Required. The ID of the parent negative keyword list in which the negative
2585
+ # keyword
2586
+ # will be created.
2587
+ # @param [Google::Apis::DisplayvideoV1::NegativeKeyword] negative_keyword_object
2588
+ # @param [String] fields
2589
+ # Selector specifying which fields to include in a partial response.
2590
+ # @param [String] quota_user
2591
+ # Available to use for quota purposes for server-side applications. Can be any
2592
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2593
+ # @param [Google::Apis::RequestOptions] options
2594
+ # Request-specific options
2595
+ #
2596
+ # @yield [result, err] Result & error if block supplied
2597
+ # @yieldparam result [Google::Apis::DisplayvideoV1::NegativeKeyword] parsed result object
2598
+ # @yieldparam err [StandardError] error object if request failed
2599
+ #
2600
+ # @return [Google::Apis::DisplayvideoV1::NegativeKeyword]
2601
+ #
2602
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2603
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2604
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2605
+ def create_advertiser_negative_keyword_list_negative_keyword(advertiser_id, negative_keyword_list_id, negative_keyword_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2606
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords', options)
2607
+ command.request_representation = Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
2608
+ command.request_object = negative_keyword_object
2609
+ command.response_representation = Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
2610
+ command.response_class = Google::Apis::DisplayvideoV1::NegativeKeyword
2611
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2612
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2613
+ command.query['fields'] = fields unless fields.nil?
2614
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2615
+ execute_or_queue_command(command, &block)
2616
+ end
2617
+
2618
+ # Deletes a negative keyword from a negative keyword list.
2619
+ # @param [Fixnum] advertiser_id
2620
+ # Required. The ID of the DV360 advertiser to which the parent negative keyword
2621
+ # list
2622
+ # belongs.
2623
+ # @param [Fixnum] negative_keyword_list_id
2624
+ # Required. The ID of the parent negative keyword list to which the negative
2625
+ # keyword
2626
+ # belongs.
2627
+ # @param [String] keyword_value
2628
+ # Required. The keyword value of the negative keyword to delete.
2629
+ # @param [String] fields
2630
+ # Selector specifying which fields to include in a partial response.
2631
+ # @param [String] quota_user
2632
+ # Available to use for quota purposes for server-side applications. Can be any
2633
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2634
+ # @param [Google::Apis::RequestOptions] options
2635
+ # Request-specific options
2636
+ #
2637
+ # @yield [result, err] Result & error if block supplied
2638
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
2639
+ # @yieldparam err [StandardError] error object if request failed
2640
+ #
2641
+ # @return [Google::Apis::DisplayvideoV1::Empty]
2642
+ #
2643
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2644
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2645
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2646
+ def delete_advertiser_negative_keyword_list_negative_keyword(advertiser_id, negative_keyword_list_id, keyword_value, fields: nil, quota_user: nil, options: nil, &block)
2647
+ command = make_simple_command(:delete, 'v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords/{+keywordValue}', options)
2648
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
2649
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
2650
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2651
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2652
+ command.params['keywordValue'] = keyword_value unless keyword_value.nil?
2653
+ command.query['fields'] = fields unless fields.nil?
2654
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2655
+ execute_or_queue_command(command, &block)
2656
+ end
2657
+
2658
+ # Lists negative keywords in a negative keyword list.
2659
+ # @param [Fixnum] advertiser_id
2660
+ # Required. The ID of the DV360 advertiser to which the parent negative keyword
2661
+ # list
2662
+ # belongs.
2663
+ # @param [Fixnum] negative_keyword_list_id
2664
+ # Required. The ID of the parent negative keyword list to which the requested
2665
+ # negative
2666
+ # keywords belong.
2667
+ # @param [String] filter
2668
+ # Allows filtering by negative keyword fields.
2669
+ # Supported syntax:
2670
+ # * Filter expressions for negative keyword currently can only contain at
2671
+ # most one
2672
+ # * restriction.
2673
+ # * A restriction has the form of ``field` `operator` `value``.
2674
+ # * The operator must be `CONTAINS (:)`.
2675
+ # * Supported fields:
2676
+ # - `keywordValue`
2677
+ # Examples:
2678
+ # * All negative keywords for which the keyword value contains "google":
2679
+ # `keywordValue : "google"`
2680
+ # @param [String] order_by
2681
+ # Field by which to sort the list.
2682
+ # Acceptable values are:
2683
+ # * `keywordValue` (default)
2684
+ # The default sorting order is ascending. To specify descending order for a
2685
+ # field, a suffix " desc" should be added to the field name. Example:
2686
+ # `keywordValue desc`.
2687
+ # @param [Fixnum] page_size
2688
+ # Requested page size. Must be between `1` and `100`. If unspecified will
2689
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
2690
+ # is specified.
2691
+ # @param [String] page_token
2692
+ # A token identifying a page of results the server should return.
2693
+ # Typically, this is the value of
2694
+ # next_page_token returned
2695
+ # from the previous call to `ListNegativeKeywords` method. If not specified,
2696
+ # the first page of results will be returned.
2697
+ # @param [String] fields
2698
+ # Selector specifying which fields to include in a partial response.
2699
+ # @param [String] quota_user
2700
+ # Available to use for quota purposes for server-side applications. Can be any
2701
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2702
+ # @param [Google::Apis::RequestOptions] options
2703
+ # Request-specific options
2704
+ #
2705
+ # @yield [result, err] Result & error if block supplied
2706
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListNegativeKeywordsResponse] parsed result object
2707
+ # @yieldparam err [StandardError] error object if request failed
2708
+ #
2709
+ # @return [Google::Apis::DisplayvideoV1::ListNegativeKeywordsResponse]
2710
+ #
2711
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2712
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2713
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2714
+ def list_advertiser_negative_keyword_list_negative_keywords(advertiser_id, negative_keyword_list_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2715
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords', options)
2716
+ command.response_representation = Google::Apis::DisplayvideoV1::ListNegativeKeywordsResponse::Representation
2717
+ command.response_class = Google::Apis::DisplayvideoV1::ListNegativeKeywordsResponse
2718
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2719
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2720
+ command.query['filter'] = filter unless filter.nil?
2721
+ command.query['orderBy'] = order_by unless order_by.nil?
2722
+ command.query['pageSize'] = page_size unless page_size.nil?
2723
+ command.query['pageToken'] = page_token unless page_token.nil?
2724
+ command.query['fields'] = fields unless fields.nil?
2725
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2726
+ execute_or_queue_command(command, &block)
2727
+ end
2728
+
1900
2729
  # Assigns a targeting option to an advertiser.
1901
2730
  # Returns the assigned targeting option if successful.
1902
2731
  # @param [Fixnum] advertiser_id
@@ -2540,7 +3369,325 @@ module Google
2540
3369
  # returned from the previous call to `ListGoogleAudiences` method.
2541
3370
  # If not specified, the first page of results will be returned.
2542
3371
  # @param [Fixnum] partner_id
2543
- # The ID of the partner that has access to the fetched Google audiences.
3372
+ # The ID of the partner that has access to the fetched Google audiences.
3373
+ # @param [String] fields
3374
+ # Selector specifying which fields to include in a partial response.
3375
+ # @param [String] quota_user
3376
+ # Available to use for quota purposes for server-side applications. Can be any
3377
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3378
+ # @param [Google::Apis::RequestOptions] options
3379
+ # Request-specific options
3380
+ #
3381
+ # @yield [result, err] Result & error if block supplied
3382
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse] parsed result object
3383
+ # @yieldparam err [StandardError] error object if request failed
3384
+ #
3385
+ # @return [Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse]
3386
+ #
3387
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3388
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3389
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3390
+ def list_google_audiences(advertiser_id: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3391
+ command = make_simple_command(:get, 'v1/googleAudiences', options)
3392
+ command.response_representation = Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse::Representation
3393
+ command.response_class = Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse
3394
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3395
+ command.query['filter'] = filter unless filter.nil?
3396
+ command.query['orderBy'] = order_by unless order_by.nil?
3397
+ command.query['pageSize'] = page_size unless page_size.nil?
3398
+ command.query['pageToken'] = page_token unless page_token.nil?
3399
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3400
+ command.query['fields'] = fields unless fields.nil?
3401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3402
+ execute_or_queue_command(command, &block)
3403
+ end
3404
+
3405
+ # Creates a new inventory source group. Returns the newly created inventory
3406
+ # source group if successful.
3407
+ # @param [Google::Apis::DisplayvideoV1::InventorySourceGroup] inventory_source_group_object
3408
+ # @param [Fixnum] advertiser_id
3409
+ # The ID of the advertiser that owns the inventory source group.
3410
+ # The parent partner will not have access to this group.
3411
+ # @param [Fixnum] partner_id
3412
+ # The ID of the partner that owns the inventory source group.
3413
+ # Only this partner will have write access to this group. Only advertisers
3414
+ # to which this group is explicitly shared will have read access to this
3415
+ # group.
3416
+ # @param [String] fields
3417
+ # Selector specifying which fields to include in a partial response.
3418
+ # @param [String] quota_user
3419
+ # Available to use for quota purposes for server-side applications. Can be any
3420
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3421
+ # @param [Google::Apis::RequestOptions] options
3422
+ # Request-specific options
3423
+ #
3424
+ # @yield [result, err] Result & error if block supplied
3425
+ # @yieldparam result [Google::Apis::DisplayvideoV1::InventorySourceGroup] parsed result object
3426
+ # @yieldparam err [StandardError] error object if request failed
3427
+ #
3428
+ # @return [Google::Apis::DisplayvideoV1::InventorySourceGroup]
3429
+ #
3430
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3431
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3432
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3433
+ def create_inventory_source_group(inventory_source_group_object = nil, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3434
+ command = make_simple_command(:post, 'v1/inventorySourceGroups', options)
3435
+ command.request_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
3436
+ command.request_object = inventory_source_group_object
3437
+ command.response_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
3438
+ command.response_class = Google::Apis::DisplayvideoV1::InventorySourceGroup
3439
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3440
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3441
+ command.query['fields'] = fields unless fields.nil?
3442
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3443
+ execute_or_queue_command(command, &block)
3444
+ end
3445
+
3446
+ # Deletes an inventory source group.
3447
+ # @param [Fixnum] inventory_source_group_id
3448
+ # Required. The ID of the inventory source group to delete.
3449
+ # @param [Fixnum] advertiser_id
3450
+ # The ID of the advertiser that owns the inventory source group.
3451
+ # The parent partner does not have access to this group.
3452
+ # @param [Fixnum] partner_id
3453
+ # The ID of the partner that owns the inventory source group.
3454
+ # Only this partner has write access to this group.
3455
+ # @param [String] fields
3456
+ # Selector specifying which fields to include in a partial response.
3457
+ # @param [String] quota_user
3458
+ # Available to use for quota purposes for server-side applications. Can be any
3459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3460
+ # @param [Google::Apis::RequestOptions] options
3461
+ # Request-specific options
3462
+ #
3463
+ # @yield [result, err] Result & error if block supplied
3464
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
3465
+ # @yieldparam err [StandardError] error object if request failed
3466
+ #
3467
+ # @return [Google::Apis::DisplayvideoV1::Empty]
3468
+ #
3469
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3470
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3471
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3472
+ def delete_inventory_source_group(inventory_source_group_id, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3473
+ command = make_simple_command(:delete, 'v1/inventorySourceGroups/{+inventorySourceGroupId}', options)
3474
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
3475
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
3476
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
3477
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3478
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3479
+ command.query['fields'] = fields unless fields.nil?
3480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3481
+ execute_or_queue_command(command, &block)
3482
+ end
3483
+
3484
+ # Gets an inventory source group.
3485
+ # @param [Fixnum] inventory_source_group_id
3486
+ # Required. The ID of the inventory source group to fetch.
3487
+ # @param [Fixnum] advertiser_id
3488
+ # The ID of the advertiser that has access to the inventory source group.
3489
+ # If an inventory source group is partner-owned, only advertisers to which
3490
+ # the group is explicitly shared can access the group.
3491
+ # @param [Fixnum] partner_id
3492
+ # The ID of the partner that has access to the inventory source group.
3493
+ # A partner cannot access an advertiser-owned inventory source group.
3494
+ # @param [String] fields
3495
+ # Selector specifying which fields to include in a partial response.
3496
+ # @param [String] quota_user
3497
+ # Available to use for quota purposes for server-side applications. Can be any
3498
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3499
+ # @param [Google::Apis::RequestOptions] options
3500
+ # Request-specific options
3501
+ #
3502
+ # @yield [result, err] Result & error if block supplied
3503
+ # @yieldparam result [Google::Apis::DisplayvideoV1::InventorySourceGroup] parsed result object
3504
+ # @yieldparam err [StandardError] error object if request failed
3505
+ #
3506
+ # @return [Google::Apis::DisplayvideoV1::InventorySourceGroup]
3507
+ #
3508
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3509
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3510
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3511
+ def get_inventory_source_group(inventory_source_group_id, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3512
+ command = make_simple_command(:get, 'v1/inventorySourceGroups/{+inventorySourceGroupId}', options)
3513
+ command.response_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
3514
+ command.response_class = Google::Apis::DisplayvideoV1::InventorySourceGroup
3515
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
3516
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3517
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3518
+ command.query['fields'] = fields unless fields.nil?
3519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3520
+ execute_or_queue_command(command, &block)
3521
+ end
3522
+
3523
+ # Lists inventory source groups that are accessible to the current user.
3524
+ # The order is defined by the
3525
+ # order_by parameter.
3526
+ # @param [Fixnum] advertiser_id
3527
+ # The ID of the advertiser that has access to the inventory source group.
3528
+ # If an inventory source group is partner-owned, only advertisers to which
3529
+ # the group is explicitly shared can access the group.
3530
+ # @param [String] filter
3531
+ # Allows filtering by inventory source group properties.
3532
+ # Supported syntax:
3533
+ # * Filter expressions are made up of one or more restrictions.
3534
+ # * Restrictions can be combined by the logical operator `OR`.
3535
+ # * A restriction has the form of ``field` `operator` `value``.
3536
+ # * The operator must be `EQUALS (=)`.
3537
+ # * Supported fields:
3538
+ # - `inventorySourceGroupId`
3539
+ # The length of this field should be no more than 500 characters.
3540
+ # @param [String] order_by
3541
+ # Field by which to sort the list.
3542
+ # Acceptable values are:
3543
+ # * `displayName` (default)
3544
+ # * `inventorySourceGroupId`
3545
+ # The default sorting order is ascending. To specify descending order for
3546
+ # a field, a suffix "desc" should be added to the field name. For example,
3547
+ # `displayName desc`.
3548
+ # @param [Fixnum] page_size
3549
+ # Requested page size. Must be between `1` and `100`. If unspecified will
3550
+ # default to `100`.
3551
+ # @param [String] page_token
3552
+ # A token identifying a page of results the server should return.
3553
+ # Typically, this is the value of
3554
+ # next_page_token
3555
+ # returned from the previous call to `ListInventorySources` method.
3556
+ # If not specified, the first page of results will be returned.
3557
+ # @param [Fixnum] partner_id
3558
+ # The ID of the partner that has access to the inventory source group.
3559
+ # A partner cannot access advertiser-owned inventory source groups.
3560
+ # @param [String] fields
3561
+ # Selector specifying which fields to include in a partial response.
3562
+ # @param [String] quota_user
3563
+ # Available to use for quota purposes for server-side applications. Can be any
3564
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3565
+ # @param [Google::Apis::RequestOptions] options
3566
+ # Request-specific options
3567
+ #
3568
+ # @yield [result, err] Result & error if block supplied
3569
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse] parsed result object
3570
+ # @yieldparam err [StandardError] error object if request failed
3571
+ #
3572
+ # @return [Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse]
3573
+ #
3574
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3575
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3576
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3577
+ def list_inventory_source_groups(advertiser_id: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3578
+ command = make_simple_command(:get, 'v1/inventorySourceGroups', options)
3579
+ command.response_representation = Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse::Representation
3580
+ command.response_class = Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse
3581
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3582
+ command.query['filter'] = filter unless filter.nil?
3583
+ command.query['orderBy'] = order_by unless order_by.nil?
3584
+ command.query['pageSize'] = page_size unless page_size.nil?
3585
+ command.query['pageToken'] = page_token unless page_token.nil?
3586
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3587
+ command.query['fields'] = fields unless fields.nil?
3588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3589
+ execute_or_queue_command(command, &block)
3590
+ end
3591
+
3592
+ # Updates an inventory source group. Returns the updated inventory source
3593
+ # group if successful.
3594
+ # @param [Fixnum] inventory_source_group_id
3595
+ # Output only. The unique ID of the inventory source group. Assigned by the
3596
+ # system.
3597
+ # @param [Google::Apis::DisplayvideoV1::InventorySourceGroup] inventory_source_group_object
3598
+ # @param [Fixnum] advertiser_id
3599
+ # The ID of the advertiser that owns the inventory source group.
3600
+ # The parent partner does not have access to this group.
3601
+ # @param [Fixnum] partner_id
3602
+ # The ID of the partner that owns the inventory source group.
3603
+ # Only this partner has write access to this group.
3604
+ # @param [String] update_mask
3605
+ # Required. The mask to control which fields to update.
3606
+ # @param [String] fields
3607
+ # Selector specifying which fields to include in a partial response.
3608
+ # @param [String] quota_user
3609
+ # Available to use for quota purposes for server-side applications. Can be any
3610
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3611
+ # @param [Google::Apis::RequestOptions] options
3612
+ # Request-specific options
3613
+ #
3614
+ # @yield [result, err] Result & error if block supplied
3615
+ # @yieldparam result [Google::Apis::DisplayvideoV1::InventorySourceGroup] parsed result object
3616
+ # @yieldparam err [StandardError] error object if request failed
3617
+ #
3618
+ # @return [Google::Apis::DisplayvideoV1::InventorySourceGroup]
3619
+ #
3620
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3621
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3622
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3623
+ def patch_inventory_source_group(inventory_source_group_id, inventory_source_group_object = nil, advertiser_id: nil, partner_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3624
+ command = make_simple_command(:patch, 'v1/inventorySourceGroups/{inventorySourceGroupId}', options)
3625
+ command.request_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
3626
+ command.request_object = inventory_source_group_object
3627
+ command.response_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
3628
+ command.response_class = Google::Apis::DisplayvideoV1::InventorySourceGroup
3629
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
3630
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3631
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3632
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3633
+ command.query['fields'] = fields unless fields.nil?
3634
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3635
+ execute_or_queue_command(command, &block)
3636
+ end
3637
+
3638
+ # Bulk edits multiple assignments between inventory sources and a single
3639
+ # inventory source group.
3640
+ # The operation will delete the assigned inventory sources provided in
3641
+ # BulkEditAssignedInventorySourcesRequest.deleted_assigned_inventory_sources
3642
+ # and then create the assigned inventory sources provided in
3643
+ # BulkEditAssignedInventorySourcesRequest.created_assigned_inventory_sources.
3644
+ # @param [Fixnum] inventory_source_group_id
3645
+ # Required. The ID of the inventory source group to which the assignments are
3646
+ # assigned.
3647
+ # @param [Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesRequest] bulk_edit_assigned_inventory_sources_request_object
3648
+ # @param [String] fields
3649
+ # Selector specifying which fields to include in a partial response.
3650
+ # @param [String] quota_user
3651
+ # Available to use for quota purposes for server-side applications. Can be any
3652
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3653
+ # @param [Google::Apis::RequestOptions] options
3654
+ # Request-specific options
3655
+ #
3656
+ # @yield [result, err] Result & error if block supplied
3657
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesResponse] parsed result object
3658
+ # @yieldparam err [StandardError] error object if request failed
3659
+ #
3660
+ # @return [Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesResponse]
3661
+ #
3662
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3663
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3664
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3665
+ def bulk_edit_assigned_inventory_sources(inventory_source_group_id, bulk_edit_assigned_inventory_sources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3666
+ command = make_simple_command(:post, 'v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources:bulkEdit', options)
3667
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesRequest::Representation
3668
+ command.request_object = bulk_edit_assigned_inventory_sources_request_object
3669
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesResponse::Representation
3670
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesResponse
3671
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
3672
+ command.query['fields'] = fields unless fields.nil?
3673
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3674
+ execute_or_queue_command(command, &block)
3675
+ end
3676
+
3677
+ # Creates an assignment between an inventory source and an inventory source
3678
+ # group.
3679
+ # @param [Fixnum] inventory_source_group_id
3680
+ # Required. The ID of the inventory source group to which the assignment will be
3681
+ # assigned.
3682
+ # @param [Google::Apis::DisplayvideoV1::AssignedInventorySource] assigned_inventory_source_object
3683
+ # @param [Fixnum] advertiser_id
3684
+ # The ID of the advertiser that owns the parent inventory source group.
3685
+ # The parent partner will not have access to this assigned inventory
3686
+ # source.
3687
+ # @param [Fixnum] partner_id
3688
+ # The ID of the partner that owns the parent inventory source group.
3689
+ # Only this partner will have write access to this assigned inventory
3690
+ # source.
2544
3691
  # @param [String] fields
2545
3692
  # Selector specifying which fields to include in a partial response.
2546
3693
  # @param [String] quota_user
@@ -2550,39 +3697,42 @@ module Google
2550
3697
  # Request-specific options
2551
3698
  #
2552
3699
  # @yield [result, err] Result & error if block supplied
2553
- # @yieldparam result [Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse] parsed result object
3700
+ # @yieldparam result [Google::Apis::DisplayvideoV1::AssignedInventorySource] parsed result object
2554
3701
  # @yieldparam err [StandardError] error object if request failed
2555
3702
  #
2556
- # @return [Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse]
3703
+ # @return [Google::Apis::DisplayvideoV1::AssignedInventorySource]
2557
3704
  #
2558
3705
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2559
3706
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2560
3707
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2561
- def list_google_audiences(advertiser_id: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2562
- command = make_simple_command(:get, 'v1/googleAudiences', options)
2563
- command.response_representation = Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse::Representation
2564
- command.response_class = Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse
3708
+ def create_inventory_source_group_assigned_inventory_source(inventory_source_group_id, assigned_inventory_source_object = nil, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3709
+ command = make_simple_command(:post, 'v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources', options)
3710
+ command.request_representation = Google::Apis::DisplayvideoV1::AssignedInventorySource::Representation
3711
+ command.request_object = assigned_inventory_source_object
3712
+ command.response_representation = Google::Apis::DisplayvideoV1::AssignedInventorySource::Representation
3713
+ command.response_class = Google::Apis::DisplayvideoV1::AssignedInventorySource
3714
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
2565
3715
  command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
2566
- command.query['filter'] = filter unless filter.nil?
2567
- command.query['orderBy'] = order_by unless order_by.nil?
2568
- command.query['pageSize'] = page_size unless page_size.nil?
2569
- command.query['pageToken'] = page_token unless page_token.nil?
2570
3716
  command.query['partnerId'] = partner_id unless partner_id.nil?
2571
3717
  command.query['fields'] = fields unless fields.nil?
2572
3718
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2573
3719
  execute_or_queue_command(command, &block)
2574
3720
  end
2575
3721
 
2576
- # Gets an inventory source group.
3722
+ # Deletes the assignment between an inventory source and an inventory source
3723
+ # group.
2577
3724
  # @param [Fixnum] inventory_source_group_id
2578
- # Required. The ID of the inventory source group to fetch.
3725
+ # Required. The ID of the inventory source group to which this assignment is
3726
+ # assigned.
3727
+ # @param [Fixnum] assigned_inventory_source_id
3728
+ # Required. The ID of the assigned inventory source to delete.
2579
3729
  # @param [Fixnum] advertiser_id
2580
- # The ID of the advertiser that has access to the inventory source group.
2581
- # If an inventory source group is partner-owned, only advertisers to which
2582
- # the group is explicitly shared can access the group.
3730
+ # The ID of the advertiser that owns the parent inventory source group.
3731
+ # The parent partner does not have access to this assigned inventory
3732
+ # source.
2583
3733
  # @param [Fixnum] partner_id
2584
- # The ID of the partner that has access to the inventory source group.
2585
- # A partner cannot access an advertiser-owned inventory source group.
3734
+ # The ID of the partner that owns the parent inventory source group.
3735
+ # Only this partner has write access to this assigned inventory source.
2586
3736
  # @param [String] fields
2587
3737
  # Selector specifying which fields to include in a partial response.
2588
3738
  # @param [String] quota_user
@@ -2592,19 +3742,20 @@ module Google
2592
3742
  # Request-specific options
2593
3743
  #
2594
3744
  # @yield [result, err] Result & error if block supplied
2595
- # @yieldparam result [Google::Apis::DisplayvideoV1::InventorySourceGroup] parsed result object
3745
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
2596
3746
  # @yieldparam err [StandardError] error object if request failed
2597
3747
  #
2598
- # @return [Google::Apis::DisplayvideoV1::InventorySourceGroup]
3748
+ # @return [Google::Apis::DisplayvideoV1::Empty]
2599
3749
  #
2600
3750
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2601
3751
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2602
3752
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2603
- def get_inventory_source_group(inventory_source_group_id, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2604
- command = make_simple_command(:get, 'v1/inventorySourceGroups/{+inventorySourceGroupId}', options)
2605
- command.response_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
2606
- command.response_class = Google::Apis::DisplayvideoV1::InventorySourceGroup
3753
+ def delete_inventory_source_group_assigned_inventory_source(inventory_source_group_id, assigned_inventory_source_id, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3754
+ command = make_simple_command(:delete, 'v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources/{+assignedInventorySourceId}', options)
3755
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
3756
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
2607
3757
  command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
3758
+ command.params['assignedInventorySourceId'] = assigned_inventory_source_id unless assigned_inventory_source_id.nil?
2608
3759
  command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
2609
3760
  command.query['partnerId'] = partner_id unless partner_id.nil?
2610
3761
  command.query['fields'] = fields unless fields.nil?
@@ -2612,43 +3763,46 @@ module Google
2612
3763
  execute_or_queue_command(command, &block)
2613
3764
  end
2614
3765
 
2615
- # Lists inventory source groups that are accessible to the current user.
2616
- # The order is defined by the
2617
- # order_by parameter.
3766
+ # Lists inventory sources assigned to an inventory source group.
3767
+ # @param [Fixnum] inventory_source_group_id
3768
+ # Required. The ID of the inventory source group to which these assignments are
3769
+ # assigned.
2618
3770
  # @param [Fixnum] advertiser_id
2619
- # The ID of the advertiser that has access to the inventory source group.
2620
- # If an inventory source group is partner-owned, only advertisers to which
2621
- # the group is explicitly shared can access the group.
3771
+ # The ID of the advertiser that has access to the assignment.
3772
+ # If the parent inventory source group is partner-owned, only advertisers
3773
+ # to which the parent group is explicitly shared can access the assigned
3774
+ # inventory source.
2622
3775
  # @param [String] filter
2623
- # Allows filtering by inventory source group properties.
3776
+ # Allows filtering by assigned inventory source fields.
2624
3777
  # Supported syntax:
2625
3778
  # * Filter expressions are made up of one or more restrictions.
2626
3779
  # * Restrictions can be combined by the logical operator `OR`.
2627
3780
  # * A restriction has the form of ``field` `operator` `value``.
2628
3781
  # * The operator must be `EQUALS (=)`.
2629
3782
  # * Supported fields:
2630
- # - `inventorySourceGroupId`
3783
+ # - `assignedInventorySourceId`
2631
3784
  # The length of this field should be no more than 500 characters.
2632
3785
  # @param [String] order_by
2633
3786
  # Field by which to sort the list.
2634
3787
  # Acceptable values are:
2635
- # * `displayName` (default)
2636
- # * `inventorySourceGroupId`
2637
- # The default sorting order is ascending. To specify descending order for
2638
- # a field, a suffix "desc" should be added to the field name. For example,
2639
- # `displayName desc`.
3788
+ # * `assignedInventorySourceId` (default)
3789
+ # The default sorting order is ascending. To specify descending order for a
3790
+ # field, a suffix " desc" should be added to the field name. Example:
3791
+ # `assignedInventorySourceId desc`.
2640
3792
  # @param [Fixnum] page_size
2641
3793
  # Requested page size. Must be between `1` and `100`. If unspecified will
2642
- # default to `100`.
3794
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
3795
+ # is specified.
2643
3796
  # @param [String] page_token
2644
3797
  # A token identifying a page of results the server should return.
2645
3798
  # Typically, this is the value of
2646
3799
  # next_page_token
2647
- # returned from the previous call to `ListInventorySources` method.
2648
- # If not specified, the first page of results will be returned.
3800
+ # returned from the previous call to `ListAssignedInventorySources`
3801
+ # method. If not specified, the first page of results will be returned.
2649
3802
  # @param [Fixnum] partner_id
2650
- # The ID of the partner that has access to the inventory source group.
2651
- # A partner cannot access advertiser-owned inventory source groups.
3803
+ # The ID of the partner that has access to the assignment.
3804
+ # If the parent inventory source group is advertiser-owned, the assignment
3805
+ # cannot be accessed via a partner.
2652
3806
  # @param [String] fields
2653
3807
  # Selector specifying which fields to include in a partial response.
2654
3808
  # @param [String] quota_user
@@ -2658,18 +3812,19 @@ module Google
2658
3812
  # Request-specific options
2659
3813
  #
2660
3814
  # @yield [result, err] Result & error if block supplied
2661
- # @yieldparam result [Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse] parsed result object
3815
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListAssignedInventorySourcesResponse] parsed result object
2662
3816
  # @yieldparam err [StandardError] error object if request failed
2663
3817
  #
2664
- # @return [Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse]
3818
+ # @return [Google::Apis::DisplayvideoV1::ListAssignedInventorySourcesResponse]
2665
3819
  #
2666
3820
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2667
3821
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2668
3822
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2669
- def list_inventory_source_groups(advertiser_id: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2670
- command = make_simple_command(:get, 'v1/inventorySourceGroups', options)
2671
- command.response_representation = Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse::Representation
2672
- command.response_class = Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse
3823
+ def list_inventory_source_group_assigned_inventory_sources(inventory_source_group_id, advertiser_id: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3824
+ command = make_simple_command(:get, 'v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources', options)
3825
+ command.response_representation = Google::Apis::DisplayvideoV1::ListAssignedInventorySourcesResponse::Representation
3826
+ command.response_class = Google::Apis::DisplayvideoV1::ListAssignedInventorySourcesResponse
3827
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
2673
3828
  command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
2674
3829
  command.query['filter'] = filter unless filter.nil?
2675
3830
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -2835,6 +3990,42 @@ module Google
2835
3990
  execute_or_queue_command(command, &block)
2836
3991
  end
2837
3992
 
3993
+ # Creates a new channel. Returns the newly created channel if successful.
3994
+ # @param [Fixnum] partner_id
3995
+ # The ID of the partner that owns the created channel.
3996
+ # @param [Google::Apis::DisplayvideoV1::Channel] channel_object
3997
+ # @param [Fixnum] advertiser_id
3998
+ # The ID of the advertiser that owns the created channel.
3999
+ # @param [String] fields
4000
+ # Selector specifying which fields to include in a partial response.
4001
+ # @param [String] quota_user
4002
+ # Available to use for quota purposes for server-side applications. Can be any
4003
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4004
+ # @param [Google::Apis::RequestOptions] options
4005
+ # Request-specific options
4006
+ #
4007
+ # @yield [result, err] Result & error if block supplied
4008
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Channel] parsed result object
4009
+ # @yieldparam err [StandardError] error object if request failed
4010
+ #
4011
+ # @return [Google::Apis::DisplayvideoV1::Channel]
4012
+ #
4013
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4014
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4015
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4016
+ def create_partner_channel(partner_id, channel_object = nil, advertiser_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4017
+ command = make_simple_command(:post, 'v1/partners/{+partnerId}/channels', options)
4018
+ command.request_representation = Google::Apis::DisplayvideoV1::Channel::Representation
4019
+ command.request_object = channel_object
4020
+ command.response_representation = Google::Apis::DisplayvideoV1::Channel::Representation
4021
+ command.response_class = Google::Apis::DisplayvideoV1::Channel
4022
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4023
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4024
+ command.query['fields'] = fields unless fields.nil?
4025
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4026
+ execute_or_queue_command(command, &block)
4027
+ end
4028
+
2838
4029
  # Gets a channel for a partner or advertiser.
2839
4030
  # @param [Fixnum] partner_id
2840
4031
  # The ID of the partner that owns the fetched channel.
@@ -2939,6 +4130,234 @@ module Google
2939
4130
  execute_or_queue_command(command, &block)
2940
4131
  end
2941
4132
 
4133
+ # Updates a channel. Returns the updated channel if successful.
4134
+ # @param [Fixnum] partner_id
4135
+ # The ID of the partner that owns the created channel.
4136
+ # @param [Fixnum] channel_id
4137
+ # Output only. The unique ID of the channel. Assigned by the system.
4138
+ # @param [Google::Apis::DisplayvideoV1::Channel] channel_object
4139
+ # @param [Fixnum] advertiser_id
4140
+ # The ID of the advertiser that owns the created channel.
4141
+ # @param [String] update_mask
4142
+ # Required. The mask to control which fields to update.
4143
+ # @param [String] fields
4144
+ # Selector specifying which fields to include in a partial response.
4145
+ # @param [String] quota_user
4146
+ # Available to use for quota purposes for server-side applications. Can be any
4147
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4148
+ # @param [Google::Apis::RequestOptions] options
4149
+ # Request-specific options
4150
+ #
4151
+ # @yield [result, err] Result & error if block supplied
4152
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Channel] parsed result object
4153
+ # @yieldparam err [StandardError] error object if request failed
4154
+ #
4155
+ # @return [Google::Apis::DisplayvideoV1::Channel]
4156
+ #
4157
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4158
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4159
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4160
+ def patch_partner_channel(partner_id, channel_id, channel_object = nil, advertiser_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4161
+ command = make_simple_command(:patch, 'v1/partners/{+partnerId}/channels/{channelId}', options)
4162
+ command.request_representation = Google::Apis::DisplayvideoV1::Channel::Representation
4163
+ command.request_object = channel_object
4164
+ command.response_representation = Google::Apis::DisplayvideoV1::Channel::Representation
4165
+ command.response_class = Google::Apis::DisplayvideoV1::Channel
4166
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4167
+ command.params['channelId'] = channel_id unless channel_id.nil?
4168
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4169
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4170
+ command.query['fields'] = fields unless fields.nil?
4171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4172
+ execute_or_queue_command(command, &block)
4173
+ end
4174
+
4175
+ # Bulk edits sites under a single channel.
4176
+ # The operation will delete the sites provided in
4177
+ # BulkEditSitesRequest.deleted_sites and then create the sites
4178
+ # provided in BulkEditSitesRequest.created_sites.
4179
+ # @param [Fixnum] partner_id
4180
+ # The ID of the partner that owns the parent channel.
4181
+ # @param [Fixnum] channel_id
4182
+ # Required. The ID of the parent channel to which the sites belong.
4183
+ # @param [Google::Apis::DisplayvideoV1::BulkEditSitesRequest] bulk_edit_sites_request_object
4184
+ # @param [String] fields
4185
+ # Selector specifying which fields to include in a partial response.
4186
+ # @param [String] quota_user
4187
+ # Available to use for quota purposes for server-side applications. Can be any
4188
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4189
+ # @param [Google::Apis::RequestOptions] options
4190
+ # Request-specific options
4191
+ #
4192
+ # @yield [result, err] Result & error if block supplied
4193
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditSitesResponse] parsed result object
4194
+ # @yieldparam err [StandardError] error object if request failed
4195
+ #
4196
+ # @return [Google::Apis::DisplayvideoV1::BulkEditSitesResponse]
4197
+ #
4198
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4199
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4200
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4201
+ def bulk_partner_channel_site_edit(partner_id, channel_id, bulk_edit_sites_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4202
+ command = make_simple_command(:post, 'v1/partners/{partnerId}/channels/{+channelId}/sites:bulkEdit', options)
4203
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditSitesRequest::Representation
4204
+ command.request_object = bulk_edit_sites_request_object
4205
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditSitesResponse::Representation
4206
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditSitesResponse
4207
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4208
+ command.params['channelId'] = channel_id unless channel_id.nil?
4209
+ command.query['fields'] = fields unless fields.nil?
4210
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4211
+ execute_or_queue_command(command, &block)
4212
+ end
4213
+
4214
+ # Creates a site in a channel.
4215
+ # @param [Fixnum] partner_id
4216
+ # The ID of the partner that owns the parent channel.
4217
+ # @param [Fixnum] channel_id
4218
+ # Required. The ID of the parent channel in which the site will be created.
4219
+ # @param [Google::Apis::DisplayvideoV1::Site] site_object
4220
+ # @param [Fixnum] advertiser_id
4221
+ # The ID of the advertiser that owns the parent channel.
4222
+ # @param [String] fields
4223
+ # Selector specifying which fields to include in a partial response.
4224
+ # @param [String] quota_user
4225
+ # Available to use for quota purposes for server-side applications. Can be any
4226
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4227
+ # @param [Google::Apis::RequestOptions] options
4228
+ # Request-specific options
4229
+ #
4230
+ # @yield [result, err] Result & error if block supplied
4231
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Site] parsed result object
4232
+ # @yieldparam err [StandardError] error object if request failed
4233
+ #
4234
+ # @return [Google::Apis::DisplayvideoV1::Site]
4235
+ #
4236
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4237
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4238
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4239
+ def create_partner_channel_site(partner_id, channel_id, site_object = nil, advertiser_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4240
+ command = make_simple_command(:post, 'v1/partners/{partnerId}/channels/{+channelId}/sites', options)
4241
+ command.request_representation = Google::Apis::DisplayvideoV1::Site::Representation
4242
+ command.request_object = site_object
4243
+ command.response_representation = Google::Apis::DisplayvideoV1::Site::Representation
4244
+ command.response_class = Google::Apis::DisplayvideoV1::Site
4245
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4246
+ command.params['channelId'] = channel_id unless channel_id.nil?
4247
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4248
+ command.query['fields'] = fields unless fields.nil?
4249
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4250
+ execute_or_queue_command(command, &block)
4251
+ end
4252
+
4253
+ # Deletes a site from a channel.
4254
+ # @param [Fixnum] partner_id
4255
+ # The ID of the partner that owns the parent channel.
4256
+ # @param [Fixnum] channel_id
4257
+ # Required. The ID of the parent channel to which the site belongs.
4258
+ # @param [String] url_or_app_id
4259
+ # Required. The URL or app ID of the site to delete.
4260
+ # @param [Fixnum] advertiser_id
4261
+ # The ID of the advertiser that owns the parent channel.
4262
+ # @param [String] fields
4263
+ # Selector specifying which fields to include in a partial response.
4264
+ # @param [String] quota_user
4265
+ # Available to use for quota purposes for server-side applications. Can be any
4266
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4267
+ # @param [Google::Apis::RequestOptions] options
4268
+ # Request-specific options
4269
+ #
4270
+ # @yield [result, err] Result & error if block supplied
4271
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
4272
+ # @yieldparam err [StandardError] error object if request failed
4273
+ #
4274
+ # @return [Google::Apis::DisplayvideoV1::Empty]
4275
+ #
4276
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4277
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4278
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4279
+ def delete_partner_channel_site(partner_id, channel_id, url_or_app_id, advertiser_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4280
+ command = make_simple_command(:delete, 'v1/partners/{partnerId}/channels/{+channelId}/sites/{+urlOrAppId}', options)
4281
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
4282
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
4283
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4284
+ command.params['channelId'] = channel_id unless channel_id.nil?
4285
+ command.params['urlOrAppId'] = url_or_app_id unless url_or_app_id.nil?
4286
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4287
+ command.query['fields'] = fields unless fields.nil?
4288
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4289
+ execute_or_queue_command(command, &block)
4290
+ end
4291
+
4292
+ # Lists sites in a channel.
4293
+ # @param [Fixnum] partner_id
4294
+ # The ID of the partner that owns the parent channel.
4295
+ # @param [Fixnum] channel_id
4296
+ # Required. The ID of the parent channel to which the requested sites belong.
4297
+ # @param [Fixnum] advertiser_id
4298
+ # The ID of the advertiser that owns the parent channel.
4299
+ # @param [String] filter
4300
+ # Allows filtering by site fields.
4301
+ # Supported syntax:
4302
+ # * Filter expressions for site currently can only contain at most one
4303
+ # * restriction.
4304
+ # * A restriction has the form of ``field` `operator` `value``.
4305
+ # * The operator must be `CONTAINS (:)`.
4306
+ # * Supported fields:
4307
+ # - `urlOrAppId`
4308
+ # Examples:
4309
+ # * All sites for which the URL or app ID contains "google":
4310
+ # `urlOrAppId : "google"`
4311
+ # @param [String] order_by
4312
+ # Field by which to sort the list.
4313
+ # Acceptable values are:
4314
+ # * `urlOrAppId` (default)
4315
+ # The default sorting order is ascending. To specify descending order for a
4316
+ # field, a suffix " desc" should be added to the field name. Example:
4317
+ # `urlOrAppId desc`.
4318
+ # @param [Fixnum] page_size
4319
+ # Requested page size. Must be between `1` and `100`. If unspecified will
4320
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
4321
+ # is specified.
4322
+ # @param [String] page_token
4323
+ # A token identifying a page of results the server should return.
4324
+ # Typically, this is the value of
4325
+ # next_page_token returned from the
4326
+ # previous call to `ListSites` method. If not specified, the first page
4327
+ # of results will be returned.
4328
+ # @param [String] fields
4329
+ # Selector specifying which fields to include in a partial response.
4330
+ # @param [String] quota_user
4331
+ # Available to use for quota purposes for server-side applications. Can be any
4332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4333
+ # @param [Google::Apis::RequestOptions] options
4334
+ # Request-specific options
4335
+ #
4336
+ # @yield [result, err] Result & error if block supplied
4337
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListSitesResponse] parsed result object
4338
+ # @yieldparam err [StandardError] error object if request failed
4339
+ #
4340
+ # @return [Google::Apis::DisplayvideoV1::ListSitesResponse]
4341
+ #
4342
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4343
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4344
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4345
+ def list_partner_channel_sites(partner_id, channel_id, advertiser_id: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4346
+ command = make_simple_command(:get, 'v1/partners/{+partnerId}/channels/{+channelId}/sites', options)
4347
+ command.response_representation = Google::Apis::DisplayvideoV1::ListSitesResponse::Representation
4348
+ command.response_class = Google::Apis::DisplayvideoV1::ListSitesResponse
4349
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4350
+ command.params['channelId'] = channel_id unless channel_id.nil?
4351
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4352
+ command.query['filter'] = filter unless filter.nil?
4353
+ command.query['orderBy'] = order_by unless order_by.nil?
4354
+ command.query['pageSize'] = page_size unless page_size.nil?
4355
+ command.query['pageToken'] = page_token unless page_token.nil?
4356
+ command.query['fields'] = fields unless fields.nil?
4357
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4358
+ execute_or_queue_command(command, &block)
4359
+ end
4360
+
2942
4361
  # Creates an SDF Download Task. Returns an
2943
4362
  # Operation.
2944
4363
  # An SDF Download Task is a long-running, asynchronous operation. The