google-api-client 0.39.5 → 0.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +290 -0
  3. data/generated/google/apis/admin_directory_v1.rb +1 -1
  4. data/generated/google/apis/admin_directory_v1/classes.rb +31 -0
  5. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  6. data/generated/google/apis/admin_directory_v1/service.rb +3 -5
  7. data/generated/google/apis/admob_v1.rb +1 -1
  8. data/generated/google/apis/admob_v1/classes.rb +5 -6
  9. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  10. data/generated/google/apis/androidenterprise_v1/classes.rb +547 -724
  11. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -54
  12. data/generated/google/apis/androidenterprise_v1/service.rb +540 -795
  13. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  14. data/generated/google/apis/androidmanagement_v1/classes.rb +117 -0
  15. data/generated/google/apis/androidmanagement_v1/representations.rb +39 -0
  16. data/generated/google/apis/androidpublisher_v3.rb +3 -3
  17. data/generated/google/apis/androidpublisher_v3/classes.rb +473 -736
  18. data/generated/google/apis/androidpublisher_v3/representations.rb +10 -201
  19. data/generated/google/apis/androidpublisher_v3/service.rb +531 -863
  20. data/generated/google/apis/apigee_v1.rb +1 -1
  21. data/generated/google/apis/apigee_v1/classes.rb +183 -52
  22. data/generated/google/apis/apigee_v1/representations.rb +22 -0
  23. data/generated/google/apis/apigee_v1/service.rb +38 -37
  24. data/generated/google/apis/appsmarket_v2.rb +3 -3
  25. data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
  26. data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
  27. data/generated/google/apis/appsmarket_v2/service.rb +24 -39
  28. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  29. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +122 -0
  30. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +62 -0
  31. data/generated/google/apis/bigquery_v2.rb +1 -1
  32. data/generated/google/apis/bigquery_v2/classes.rb +78 -6
  33. data/generated/google/apis/bigquery_v2/representations.rb +7 -0
  34. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  35. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -6
  36. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  37. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -4
  38. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  39. data/generated/google/apis/bigqueryreservation_v1/classes.rb +2 -0
  40. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  41. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +2 -0
  42. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  43. data/generated/google/apis/bigtableadmin_v1/classes.rb +5 -10
  44. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  45. data/generated/google/apis/bigtableadmin_v2/classes.rb +39 -31
  46. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -5
  47. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  48. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
  49. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  50. data/generated/google/apis/binaryauthorization_v1/classes.rb +1 -4
  51. data/generated/google/apis/books_v1.rb +1 -1
  52. data/generated/google/apis/books_v1/service.rb +2 -2
  53. data/generated/google/apis/calendar_v3.rb +1 -1
  54. data/generated/google/apis/chat_v1.rb +1 -1
  55. data/generated/google/apis/chat_v1/classes.rb +2 -0
  56. data/generated/google/apis/chromeuxreport_v1.rb +32 -0
  57. data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
  58. data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
  59. data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
  60. data/generated/google/apis/civicinfo_v2.rb +2 -2
  61. data/generated/google/apis/civicinfo_v2/classes.rb +12 -800
  62. data/generated/google/apis/civicinfo_v2/representations.rb +0 -295
  63. data/generated/google/apis/civicinfo_v2/service.rb +27 -62
  64. data/generated/google/apis/cloudasset_v1.rb +1 -1
  65. data/generated/google/apis/cloudasset_v1/classes.rb +116 -36
  66. data/generated/google/apis/cloudasset_v1/representations.rb +6 -0
  67. data/generated/google/apis/cloudasset_v1/service.rb +18 -15
  68. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  69. data/generated/google/apis/cloudasset_v1beta1/classes.rb +954 -42
  70. data/generated/google/apis/cloudasset_v1beta1/representations.rb +241 -0
  71. data/generated/google/apis/cloudasset_v1beta1/service.rb +8 -8
  72. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  73. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +6 -6
  74. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
  75. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  76. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +40 -23
  77. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +34 -9
  78. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  79. data/generated/google/apis/cloudbilling_v1/classes.rb +38 -6
  80. data/generated/google/apis/cloudbilling_v1/representations.rb +16 -0
  81. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  82. data/generated/google/apis/cloudbuild_v1/classes.rb +16 -4
  83. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  84. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  85. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +14 -2
  86. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  87. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  88. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +14 -2
  89. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  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/cloudiot_v1.rb +1 -1
  98. data/generated/google/apis/cloudiot_v1/classes.rb +26 -10
  99. data/generated/google/apis/cloudkms_v1.rb +1 -1
  100. data/generated/google/apis/cloudkms_v1/classes.rb +288 -7
  101. data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +22 -18
  104. data/generated/google/apis/cloudresourcemanager_v1/service.rb +21 -14
  105. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +12 -11
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
  108. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  109. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
  110. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  111. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
  112. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  113. data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
  114. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  115. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
  116. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  117. data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
  118. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  119. data/generated/google/apis/cloudtasks_v2/classes.rb +8 -6
  120. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  121. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +11 -2
  122. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  123. data/generated/google/apis/composer_v1beta1.rb +1 -1
  124. data/generated/google/apis/composer_v1beta1/classes.rb +4 -3
  125. data/generated/google/apis/composer_v1beta1/service.rb +13 -0
  126. data/generated/google/apis/compute_alpha.rb +1 -1
  127. data/generated/google/apis/compute_alpha/classes.rb +756 -182
  128. data/generated/google/apis/compute_alpha/representations.rb +220 -33
  129. data/generated/google/apis/compute_alpha/service.rb +1891 -1099
  130. data/generated/google/apis/compute_beta.rb +1 -1
  131. data/generated/google/apis/compute_beta/classes.rb +435 -102
  132. data/generated/google/apis/compute_beta/representations.rb +95 -0
  133. data/generated/google/apis/compute_beta/service.rb +824 -595
  134. data/generated/google/apis/compute_v1.rb +1 -1
  135. data/generated/google/apis/compute_v1/classes.rb +658 -47
  136. data/generated/google/apis/compute_v1/representations.rb +188 -0
  137. data/generated/google/apis/compute_v1/service.rb +501 -4
  138. data/generated/google/apis/container_v1.rb +1 -1
  139. data/generated/google/apis/container_v1/classes.rb +31 -7
  140. data/generated/google/apis/container_v1/representations.rb +15 -0
  141. data/generated/google/apis/container_v1beta1.rb +1 -1
  142. data/generated/google/apis/container_v1beta1/classes.rb +47 -10
  143. data/generated/google/apis/container_v1beta1/representations.rb +16 -0
  144. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  145. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -1
  146. data/generated/google/apis/content_v2.rb +1 -1
  147. data/generated/google/apis/content_v2/classes.rb +41 -1
  148. data/generated/google/apis/content_v2/representations.rb +17 -0
  149. data/generated/google/apis/content_v2/service.rb +15 -6
  150. data/generated/google/apis/content_v2_1.rb +1 -1
  151. data/generated/google/apis/content_v2_1/classes.rb +616 -6
  152. data/generated/google/apis/content_v2_1/representations.rb +243 -0
  153. data/generated/google/apis/content_v2_1/service.rb +95 -6
  154. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  155. data/generated/google/apis/datacatalog_v1beta1/classes.rb +34 -10
  156. data/generated/google/apis/datacatalog_v1beta1/representations.rb +13 -0
  157. data/generated/google/apis/datacatalog_v1beta1/service.rb +37 -0
  158. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  159. data/generated/google/apis/dataflow_v1b3/classes.rb +331 -0
  160. data/generated/google/apis/dataflow_v1b3/representations.rb +164 -0
  161. data/generated/google/apis/dataflow_v1b3/service.rb +261 -0
  162. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  163. data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
  164. data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
  165. data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
  166. data/generated/google/apis/dataproc_v1.rb +1 -1
  167. data/generated/google/apis/dataproc_v1/classes.rb +68 -22
  168. data/generated/google/apis/dataproc_v1/representations.rb +17 -0
  169. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  170. data/generated/google/apis/dataproc_v1beta2/classes.rb +35 -23
  171. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  172. data/generated/google/apis/dialogflow_v2.rb +1 -1
  173. data/generated/google/apis/dialogflow_v2/classes.rb +731 -20
  174. data/generated/google/apis/dialogflow_v2/representations.rb +311 -0
  175. data/generated/google/apis/dialogflow_v2/service.rb +14 -2
  176. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  177. data/generated/google/apis/dialogflow_v2beta1/classes.rb +722 -19
  178. data/generated/google/apis/dialogflow_v2beta1/representations.rb +311 -0
  179. data/generated/google/apis/dialogflow_v2beta1/service.rb +72 -4
  180. data/generated/google/apis/displayvideo_v1.rb +1 -1
  181. data/generated/google/apis/displayvideo_v1/classes.rb +717 -2
  182. data/generated/google/apis/displayvideo_v1/representations.rb +325 -0
  183. data/generated/google/apis/displayvideo_v1/service.rb +1865 -162
  184. data/generated/google/apis/dlp_v2.rb +1 -1
  185. data/generated/google/apis/dlp_v2/classes.rb +8 -6
  186. data/generated/google/apis/dlp_v2/service.rb +170 -64
  187. data/generated/google/apis/{dialogflow_v3alpha1.rb → documentai_v1beta2.rb} +11 -13
  188. data/generated/google/apis/documentai_v1beta2/classes.rb +3284 -0
  189. data/generated/google/apis/documentai_v1beta2/representations.rb +1344 -0
  190. data/generated/google/apis/{dialogflow_v3alpha1 → documentai_v1beta2}/service.rb +91 -118
  191. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  192. data/generated/google/apis/doubleclicksearch_v2.rb +4 -4
  193. data/generated/google/apis/doubleclicksearch_v2/classes.rb +127 -111
  194. data/generated/google/apis/doubleclicksearch_v2/representations.rb +4 -6
  195. data/generated/google/apis/doubleclicksearch_v2/service.rb +47 -78
  196. data/generated/google/apis/drive_v2.rb +1 -1
  197. data/generated/google/apis/drive_v2/service.rb +26 -78
  198. data/generated/google/apis/drive_v3.rb +1 -1
  199. data/generated/google/apis/drive_v3/service.rb +18 -54
  200. data/generated/google/apis/fcm_v1.rb +1 -1
  201. data/generated/google/apis/fcm_v1/classes.rb +6 -0
  202. data/generated/google/apis/file_v1.rb +1 -1
  203. data/generated/google/apis/file_v1/classes.rb +0 -1156
  204. data/generated/google/apis/file_v1/representations.rb +0 -381
  205. data/generated/google/apis/file_v1beta1.rb +1 -1
  206. data/generated/google/apis/file_v1beta1/classes.rb +67 -1156
  207. data/generated/google/apis/file_v1beta1/representations.rb +14 -376
  208. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  209. data/generated/google/apis/firebase_v1beta1/classes.rb +7 -6
  210. data/generated/google/apis/firebase_v1beta1/service.rb +53 -49
  211. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  212. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +30 -25
  213. data/generated/google/apis/fitness_v1.rb +4 -4
  214. data/generated/google/apis/fitness_v1/classes.rb +185 -158
  215. data/generated/google/apis/fitness_v1/service.rb +187 -215
  216. data/generated/google/apis/games_v1.rb +1 -1
  217. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  218. data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
  219. data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
  220. data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
  221. data/generated/google/apis/gmail_v1.rb +3 -2
  222. data/generated/google/apis/gmail_v1/classes.rb +263 -200
  223. data/generated/google/apis/gmail_v1/service.rb +551 -743
  224. data/generated/google/apis/groupsmigration_v1.rb +3 -2
  225. data/generated/google/apis/groupsmigration_v1/service.rb +10 -17
  226. data/generated/google/apis/healthcare_v1.rb +1 -1
  227. data/generated/google/apis/healthcare_v1/classes.rb +45 -36
  228. data/generated/google/apis/healthcare_v1/service.rb +66 -32
  229. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  230. data/generated/google/apis/healthcare_v1beta1/classes.rb +954 -83
  231. data/generated/google/apis/healthcare_v1beta1/representations.rb +404 -0
  232. data/generated/google/apis/healthcare_v1beta1/service.rb +682 -147
  233. data/generated/google/apis/homegraph_v1.rb +1 -1
  234. data/generated/google/apis/homegraph_v1/classes.rb +3 -0
  235. data/generated/google/apis/iam_v1.rb +1 -1
  236. data/generated/google/apis/iam_v1/classes.rb +116 -93
  237. data/generated/google/apis/iam_v1/service.rb +170 -144
  238. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  239. data/generated/google/apis/iamcredentials_v1/classes.rb +4 -3
  240. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  241. data/generated/google/apis/jobs_v3.rb +1 -1
  242. data/generated/google/apis/jobs_v3/classes.rb +4 -2
  243. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  244. data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
  245. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  246. data/generated/google/apis/lifesciences_v2beta/classes.rb +10 -0
  247. data/generated/google/apis/lifesciences_v2beta/representations.rb +1 -0
  248. data/generated/google/apis/logging_v2.rb +1 -1
  249. data/generated/google/apis/logging_v2/classes.rb +69 -21
  250. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  251. data/generated/google/apis/memcache_v1beta2/classes.rb +42 -11
  252. data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
  253. data/generated/google/apis/ml_v1.rb +1 -1
  254. data/generated/google/apis/ml_v1/classes.rb +8 -0
  255. data/generated/google/apis/ml_v1/representations.rb +1 -0
  256. data/generated/google/apis/monitoring_v1.rb +1 -1
  257. data/generated/google/apis/monitoring_v1/classes.rb +46 -0
  258. data/generated/google/apis/monitoring_v1/representations.rb +18 -0
  259. data/generated/google/apis/monitoring_v3.rb +1 -1
  260. data/generated/google/apis/monitoring_v3/classes.rb +75 -19
  261. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  262. data/generated/google/apis/osconfig_v1.rb +1 -1
  263. data/generated/google/apis/osconfig_v1/classes.rb +2 -2
  264. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  265. data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
  266. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  267. data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
  268. data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
  269. data/generated/google/apis/people_v1.rb +4 -1
  270. data/generated/google/apis/people_v1/classes.rb +216 -0
  271. data/generated/google/apis/people_v1/representations.rb +82 -0
  272. data/generated/google/apis/people_v1/service.rb +371 -8
  273. data/generated/google/apis/{pagespeedonline_v2.rb → playablelocations_v3.rb} +9 -10
  274. data/generated/google/apis/playablelocations_v3/classes.rb +633 -0
  275. data/generated/google/apis/playablelocations_v3/representations.rb +273 -0
  276. data/generated/google/apis/playablelocations_v3/service.rb +157 -0
  277. data/generated/google/apis/playcustomapp_v1.rb +3 -3
  278. data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
  279. data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
  280. data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
  281. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  282. data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
  283. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  284. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
  285. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  286. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +19 -0
  287. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +14 -0
  288. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +30 -0
  289. data/generated/google/apis/pubsub_v1.rb +1 -1
  290. data/generated/google/apis/pubsub_v1/classes.rb +68 -10
  291. data/generated/google/apis/pubsub_v1/representations.rb +28 -0
  292. data/generated/google/apis/pubsub_v1/service.rb +35 -1
  293. data/generated/google/apis/realtimebidding_v1.rb +40 -0
  294. data/generated/google/apis/realtimebidding_v1/classes.rb +1436 -0
  295. data/generated/google/apis/realtimebidding_v1/representations.rb +565 -0
  296. data/generated/google/apis/realtimebidding_v1/service.rb +661 -0
  297. data/generated/google/apis/{pagespeedonline_v4.rb → recommender_v1.rb} +12 -10
  298. data/generated/google/apis/recommender_v1/classes.rb +505 -0
  299. data/generated/google/apis/recommender_v1/representations.rb +232 -0
  300. data/generated/google/apis/recommender_v1/service.rb +266 -0
  301. data/generated/google/apis/redis_v1.rb +1 -1
  302. data/generated/google/apis/redis_v1/classes.rb +1 -1
  303. data/generated/google/apis/redis_v1/service.rb +1 -1
  304. data/generated/google/apis/redis_v1beta1.rb +1 -1
  305. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  306. data/generated/google/apis/redis_v1beta1/service.rb +1 -1
  307. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  308. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  309. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  310. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  311. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  312. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  313. data/generated/google/apis/run_v1.rb +2 -2
  314. data/generated/google/apis/run_v1/classes.rb +19 -7
  315. data/generated/google/apis/run_v1/representations.rb +1 -0
  316. data/generated/google/apis/run_v1/service.rb +1 -1
  317. data/generated/google/apis/run_v1alpha1.rb +2 -2
  318. data/generated/google/apis/run_v1alpha1/classes.rb +15 -6
  319. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  320. data/generated/google/apis/run_v1alpha1/service.rb +1 -1
  321. data/generated/google/apis/run_v1beta1.rb +2 -2
  322. data/generated/google/apis/run_v1beta1/service.rb +1 -1
  323. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  324. data/generated/google/apis/sasportal_v1alpha1/classes.rb +19 -0
  325. data/generated/google/apis/sasportal_v1alpha1/representations.rb +14 -0
  326. data/generated/google/apis/sasportal_v1alpha1/service.rb +30 -0
  327. data/generated/google/apis/secretmanager_v1.rb +1 -1
  328. data/generated/google/apis/secretmanager_v1/classes.rb +6 -6
  329. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  330. data/generated/google/apis/secretmanager_v1beta1/classes.rb +6 -6
  331. data/generated/google/apis/securitycenter_v1.rb +1 -1
  332. data/generated/google/apis/securitycenter_v1/classes.rb +116 -16
  333. data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
  334. data/generated/google/apis/securitycenter_v1/service.rb +14 -15
  335. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  336. data/generated/google/apis/securitycenter_v1beta1/classes.rb +106 -6
  337. data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
  338. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  339. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
  340. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
  341. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  342. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +116 -16
  343. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
  344. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -15
  345. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  346. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +223 -43
  347. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +33 -1
  348. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  349. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +229 -43
  350. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +34 -1
  351. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  352. data/generated/google/apis/servicecontrol_v1/classes.rb +9 -3
  353. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  354. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  355. data/generated/google/apis/servicemanagement_v1/classes.rb +124 -49
  356. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  357. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  358. data/generated/google/apis/servicenetworking_v1/classes.rb +119 -43
  359. data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
  360. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  361. data/generated/google/apis/servicenetworking_v1beta/classes.rb +119 -43
  362. data/generated/google/apis/servicenetworking_v1beta/representations.rb +0 -1
  363. data/generated/google/apis/serviceusage_v1.rb +1 -1
  364. data/generated/google/apis/serviceusage_v1/classes.rb +221 -43
  365. data/generated/google/apis/serviceusage_v1/representations.rb +34 -1
  366. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  367. data/generated/google/apis/serviceusage_v1beta1/classes.rb +272 -43
  368. data/generated/google/apis/serviceusage_v1beta1/representations.rb +63 -1
  369. data/generated/google/apis/serviceusage_v1beta1/service.rb +71 -0
  370. data/generated/google/apis/sheets_v4.rb +1 -1
  371. data/generated/google/apis/sheets_v4/classes.rb +90 -0
  372. data/generated/google/apis/slides_v1.rb +1 -1
  373. data/generated/google/apis/slides_v1/classes.rb +4 -0
  374. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  375. data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
  376. data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
  377. data/generated/google/apis/spanner_v1.rb +1 -1
  378. data/generated/google/apis/spanner_v1/classes.rb +55 -32
  379. data/generated/google/apis/spanner_v1/service.rb +10 -8
  380. data/generated/google/apis/speech_v1.rb +1 -1
  381. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  382. data/generated/google/apis/sql_v1beta4.rb +1 -1
  383. data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
  384. data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
  385. data/generated/google/apis/storage_v1.rb +1 -1
  386. data/generated/google/apis/storage_v1/service.rb +2 -3
  387. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  388. data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
  389. data/generated/google/apis/testing_v1.rb +1 -1
  390. data/generated/google/apis/testing_v1/classes.rb +2 -1
  391. data/generated/google/apis/texttospeech_v1.rb +1 -1
  392. data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
  393. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  394. data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
  395. data/generated/google/apis/tpu_v1.rb +1 -1
  396. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  397. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  398. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  399. data/generated/google/apis/{customsearch_v1.rb → vectortile_v1.rb} +8 -8
  400. data/generated/google/apis/vectortile_v1/classes.rb +881 -0
  401. data/generated/google/apis/vectortile_v1/representations.rb +329 -0
  402. data/generated/google/apis/vectortile_v1/service.rb +268 -0
  403. data/generated/google/apis/videointelligence_v1.rb +1 -1
  404. data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
  405. data/generated/google/apis/videointelligence_v1/service.rb +32 -0
  406. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  407. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
  408. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  409. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
  410. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  411. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
  412. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  413. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
  414. data/generated/google/apis/vision_v1.rb +1 -1
  415. data/generated/google/apis/vision_v1/classes.rb +18 -0
  416. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  417. data/generated/google/apis/vision_v1p1beta1/classes.rb +18 -0
  418. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  419. data/generated/google/apis/vision_v1p2beta1/classes.rb +18 -0
  420. data/generated/google/apis/webfonts_v1.rb +5 -5
  421. data/generated/google/apis/webfonts_v1/classes.rb +4 -3
  422. data/generated/google/apis/webfonts_v1/representations.rb +1 -2
  423. data/generated/google/apis/webfonts_v1/service.rb +14 -21
  424. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  425. data/generated/google/apis/youtube_v3.rb +1 -1
  426. data/generated/google/apis/youtube_v3/classes.rb +64 -26
  427. data/generated/google/apis/youtube_v3/representations.rb +27 -0
  428. data/generated/google/apis/youtube_v3/service.rb +33 -36
  429. data/lib/google/apis/core/api_command.rb +12 -7
  430. data/lib/google/apis/options.rb +5 -1
  431. data/lib/google/apis/version.rb +1 -1
  432. metadata +27 -19
  433. data/generated/google/apis/customsearch_v1/classes.rb +0 -1606
  434. data/generated/google/apis/customsearch_v1/representations.rb +0 -372
  435. data/generated/google/apis/customsearch_v1/service.rb +0 -608
  436. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +0 -5022
  437. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +0 -2057
  438. data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
  439. data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
  440. data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
  441. data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
  442. data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
  443. data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
@@ -48,6 +48,109 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
+ # Bulk edits targeting options under a single advertiser.
52
+ # The operation will delete the assigned targeting options provided in
53
+ # BulkEditAdvertiserAssignedTargetingOptionsRequest.delete_requests and
54
+ # then create the assigned targeting options provided in
55
+ # BulkEditAdvertiserAssignedTargetingOptionsRequest.create_requests .
56
+ # @param [Fixnum] advertiser_id
57
+ # Required. The ID of the advertiser.
58
+ # @param [Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsRequest] bulk_edit_advertiser_assigned_targeting_options_request_object
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsResponse] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsResponse]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def bulk_edit_advertiser_assigned_targeting_options(advertiser_id, bulk_edit_advertiser_assigned_targeting_options_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}:bulkEditAdvertiserAssignedTargetingOptions', options)
78
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsRequest::Representation
79
+ command.request_object = bulk_edit_advertiser_assigned_targeting_options_request_object
80
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsResponse::Representation
81
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsResponse
82
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
83
+ command.query['fields'] = fields unless fields.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ execute_or_queue_command(command, &block)
86
+ end
87
+
88
+ # Lists assigned targeting options of an advertiser across targeting types.
89
+ # @param [Fixnum] advertiser_id
90
+ # Required. The ID of the advertiser the line item belongs to.
91
+ # @param [String] filter
92
+ # Allows filtering by assigned targeting option properties.
93
+ # Supported syntax:
94
+ # * Filter expressions are made up of one or more restrictions.
95
+ # * Restrictions can be combined by the logical operator `OR`..
96
+ # * A restriction has the form of ``field` `operator` `value``.
97
+ # * The operator must be `EQUALS (=)`.
98
+ # * Supported fields:
99
+ # - `targetingType`
100
+ # Examples:
101
+ # * targetingType with value TARGETING_TYPE_CHANNEL
102
+ # `targetingType="TARGETING_TYPE_CHANNEL"`
103
+ # The length of this field should be no more than 500 characters.
104
+ # @param [String] order_by
105
+ # Field by which to sort the list.
106
+ # Acceptable values are:
107
+ # * `targetingType` (default)
108
+ # The default sorting order is ascending. To specify descending order for
109
+ # a field, a suffix "desc" should be added to the field name. Example:
110
+ # `targetingType desc`.
111
+ # @param [Fixnum] page_size
112
+ # Requested page size.
113
+ # The size must be an integer between `1` and `5000`. If unspecified,
114
+ # the default is '5000'. Returns error code `INVALID_ARGUMENT` if an invalid
115
+ # value is specified.
116
+ # @param [String] page_token
117
+ # A token that lets the client fetch the next page of results.
118
+ # Typically, this is the value of
119
+ # next_page_token
120
+ # returned from the previous call to
121
+ # `BulkListAdvertiserAssignedTargetingOptions` method.
122
+ # If not specified, the first page of results will be returned.
123
+ # @param [String] fields
124
+ # Selector specifying which fields to include in a partial response.
125
+ # @param [String] quota_user
126
+ # Available to use for quota purposes for server-side applications. Can be any
127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
128
+ # @param [Google::Apis::RequestOptions] options
129
+ # Request-specific options
130
+ #
131
+ # @yield [result, err] Result & error if block supplied
132
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkListAdvertiserAssignedTargetingOptionsResponse] parsed result object
133
+ # @yieldparam err [StandardError] error object if request failed
134
+ #
135
+ # @return [Google::Apis::DisplayvideoV1::BulkListAdvertiserAssignedTargetingOptionsResponse]
136
+ #
137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
140
+ def bulk_advertiser_list_advertiser_assigned_targeting_options(advertiser_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
141
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}:bulkListAdvertiserAssignedTargetingOptions', options)
142
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkListAdvertiserAssignedTargetingOptionsResponse::Representation
143
+ command.response_class = Google::Apis::DisplayvideoV1::BulkListAdvertiserAssignedTargetingOptionsResponse
144
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
145
+ command.query['filter'] = filter unless filter.nil?
146
+ command.query['orderBy'] = order_by unless order_by.nil?
147
+ command.query['pageSize'] = page_size unless page_size.nil?
148
+ command.query['pageToken'] = page_token unless page_token.nil?
149
+ command.query['fields'] = fields unless fields.nil?
150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
151
+ execute_or_queue_command(command, &block)
152
+ end
153
+
51
154
  # Creates a new advertiser.
52
155
  # Returns the newly created advertiser if successful.
53
156
  # This method can take up to 180 seconds to complete.
@@ -512,6 +615,44 @@ module Google
512
615
  execute_or_queue_command(command, &block)
513
616
  end
514
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
+
654
+ # Updates an existing inventory source.
655
+ # Returns the updated inventory source if successful.
515
656
  # Gets a channel for a partner or advertiser.
516
657
  # @param [Fixnum] advertiser_id
517
658
  # The ID of the advertiser that owns the fetched channel.
@@ -616,11 +757,16 @@ module Google
616
757
  execute_or_queue_command(command, &block)
617
758
  end
618
759
 
619
- # Creates a new creative.
620
- # Returns the newly created creative if successful.
760
+ # Updates a channel. Returns the updated channel if successful.
621
761
  # @param [Fixnum] advertiser_id
622
- # Output only. The unique ID of the advertiser the creative belongs to.
623
- # @param [Google::Apis::DisplayvideoV1::Creative] creative_object
762
+ # The ID of the advertiser that owns the created channel.
763
+ # @param [Fixnum] channel_id
764
+ # Output only. The unique ID of the channel. Assigned by the system.
765
+ # @param [Google::Apis::DisplayvideoV1::Channel] channel_object
766
+ # @param [Fixnum] partner_id
767
+ # The ID of the partner that owns the created channel.
768
+ # @param [String] update_mask
769
+ # Required. The mask to control which fields to update.
624
770
  # @param [String] fields
625
771
  # Selector specifying which fields to include in a partial response.
626
772
  # @param [String] quota_user
@@ -630,35 +776,76 @@ module Google
630
776
  # Request-specific options
631
777
  #
632
778
  # @yield [result, err] Result & error if block supplied
633
- # @yieldparam result [Google::Apis::DisplayvideoV1::Creative] parsed result object
779
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Channel] parsed result object
634
780
  # @yieldparam err [StandardError] error object if request failed
635
781
  #
636
- # @return [Google::Apis::DisplayvideoV1::Creative]
782
+ # @return [Google::Apis::DisplayvideoV1::Channel]
637
783
  #
638
784
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
639
785
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
640
786
  # @raise [Google::Apis::AuthorizationError] Authorization is required
641
- def create_advertiser_creative(advertiser_id, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block)
642
- command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/creatives', options)
643
- command.request_representation = Google::Apis::DisplayvideoV1::Creative::Representation
644
- command.request_object = creative_object
645
- command.response_representation = Google::Apis::DisplayvideoV1::Creative::Representation
646
- command.response_class = Google::Apis::DisplayvideoV1::Creative
787
+ 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)
788
+ command = make_simple_command(:patch, 'v1/advertisers/{+advertiserId}/channels/{channelId}', options)
789
+ command.request_representation = Google::Apis::DisplayvideoV1::Channel::Representation
790
+ command.request_object = channel_object
791
+ command.response_representation = Google::Apis::DisplayvideoV1::Channel::Representation
792
+ command.response_class = Google::Apis::DisplayvideoV1::Channel
793
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
794
+ command.params['channelId'] = channel_id unless channel_id.nil?
795
+ command.query['partnerId'] = partner_id unless partner_id.nil?
796
+ command.query['updateMask'] = update_mask unless update_mask.nil?
797
+ command.query['fields'] = fields unless fields.nil?
798
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
799
+ execute_or_queue_command(command, &block)
800
+ end
801
+
802
+ # Bulk edits sites under a single channel.
803
+ # The operation will delete the sites provided in
804
+ # BulkEditSitesRequest.deleted_sites and then create the sites
805
+ # provided in BulkEditSitesRequest.created_sites.
806
+ # @param [Fixnum] advertiser_id
807
+ # The ID of the advertiser that owns the parent channel.
808
+ # @param [Fixnum] channel_id
809
+ # Required. The ID of the parent channel to which the sites belong.
810
+ # @param [Google::Apis::DisplayvideoV1::BulkEditSitesRequest] bulk_edit_sites_request_object
811
+ # @param [String] fields
812
+ # Selector specifying which fields to include in a partial response.
813
+ # @param [String] quota_user
814
+ # Available to use for quota purposes for server-side applications. Can be any
815
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
816
+ # @param [Google::Apis::RequestOptions] options
817
+ # Request-specific options
818
+ #
819
+ # @yield [result, err] Result & error if block supplied
820
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditSitesResponse] parsed result object
821
+ # @yieldparam err [StandardError] error object if request failed
822
+ #
823
+ # @return [Google::Apis::DisplayvideoV1::BulkEditSitesResponse]
824
+ #
825
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
826
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
827
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
828
+ def bulk_advertiser_channel_site_edit(advertiser_id, channel_id, bulk_edit_sites_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
829
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/channels/{+channelId}/sites:bulkEdit', options)
830
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditSitesRequest::Representation
831
+ command.request_object = bulk_edit_sites_request_object
832
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditSitesResponse::Representation
833
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditSitesResponse
647
834
  command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
835
+ command.params['channelId'] = channel_id unless channel_id.nil?
648
836
  command.query['fields'] = fields unless fields.nil?
649
837
  command.query['quotaUser'] = quota_user unless quota_user.nil?
650
838
  execute_or_queue_command(command, &block)
651
839
  end
652
840
 
653
- # Deletes a creative.
654
- # Returns error code `NOT_FOUND` if the creative does not exist.
655
- # The creative should be archived first, i.e. set
656
- # entity_status to `ENTITY_STATUS_ARCHIVED`, before
657
- # it can be deleted.
841
+ # Creates a site in a channel.
658
842
  # @param [Fixnum] advertiser_id
659
- # The ID of the advertiser this creative belongs to.
660
- # @param [Fixnum] creative_id
661
- # The ID of the creative to be deleted.
843
+ # The ID of the advertiser that owns the parent channel.
844
+ # @param [Fixnum] channel_id
845
+ # Required. The ID of the parent channel in which the site will be created.
846
+ # @param [Google::Apis::DisplayvideoV1::Site] site_object
847
+ # @param [Fixnum] partner_id
848
+ # The ID of the partner that owns the parent channel.
662
849
  # @param [String] fields
663
850
  # Selector specifying which fields to include in a partial response.
664
851
  # @param [String] quota_user
@@ -668,30 +855,37 @@ module Google
668
855
  # Request-specific options
669
856
  #
670
857
  # @yield [result, err] Result & error if block supplied
671
- # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
858
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Site] parsed result object
672
859
  # @yieldparam err [StandardError] error object if request failed
673
860
  #
674
- # @return [Google::Apis::DisplayvideoV1::Empty]
861
+ # @return [Google::Apis::DisplayvideoV1::Site]
675
862
  #
676
863
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
677
864
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
678
865
  # @raise [Google::Apis::AuthorizationError] Authorization is required
679
- def delete_advertiser_creative(advertiser_id, creative_id, fields: nil, quota_user: nil, options: nil, &block)
680
- command = make_simple_command(:delete, 'v1/advertisers/{+advertiserId}/creatives/{+creativeId}', options)
681
- command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
682
- command.response_class = Google::Apis::DisplayvideoV1::Empty
866
+ def create_advertiser_channel_site(advertiser_id, channel_id, site_object = nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
867
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/channels/{+channelId}/sites', options)
868
+ command.request_representation = Google::Apis::DisplayvideoV1::Site::Representation
869
+ command.request_object = site_object
870
+ command.response_representation = Google::Apis::DisplayvideoV1::Site::Representation
871
+ command.response_class = Google::Apis::DisplayvideoV1::Site
683
872
  command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
684
- command.params['creativeId'] = creative_id unless creative_id.nil?
873
+ command.params['channelId'] = channel_id unless channel_id.nil?
874
+ command.query['partnerId'] = partner_id unless partner_id.nil?
685
875
  command.query['fields'] = fields unless fields.nil?
686
876
  command.query['quotaUser'] = quota_user unless quota_user.nil?
687
877
  execute_or_queue_command(command, &block)
688
878
  end
689
879
 
690
- # Gets a creative.
880
+ # Deletes a site from a channel.
691
881
  # @param [Fixnum] advertiser_id
692
- # Required. The ID of the advertiser this creative belongs to.
693
- # @param [Fixnum] creative_id
694
- # Required. The ID of the creative to fetch.
882
+ # The ID of the advertiser that owns the parent channel.
883
+ # @param [Fixnum] channel_id
884
+ # Required. The ID of the parent channel to which the site belongs.
885
+ # @param [String] url_or_app_id
886
+ # Required. The URL or app ID of the site to delete.
887
+ # @param [Fixnum] partner_id
888
+ # The ID of the partner that owns the parent channel.
695
889
  # @param [String] fields
696
890
  # Selector specifying which fields to include in a partial response.
697
891
  # @param [String] quota_user
@@ -701,85 +895,51 @@ module Google
701
895
  # Request-specific options
702
896
  #
703
897
  # @yield [result, err] Result & error if block supplied
704
- # @yieldparam result [Google::Apis::DisplayvideoV1::Creative] parsed result object
898
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
705
899
  # @yieldparam err [StandardError] error object if request failed
706
900
  #
707
- # @return [Google::Apis::DisplayvideoV1::Creative]
901
+ # @return [Google::Apis::DisplayvideoV1::Empty]
708
902
  #
709
903
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
710
904
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
711
905
  # @raise [Google::Apis::AuthorizationError] Authorization is required
712
- def get_advertiser_creative(advertiser_id, creative_id, fields: nil, quota_user: nil, options: nil, &block)
713
- command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/creatives/{+creativeId}', options)
714
- command.response_representation = Google::Apis::DisplayvideoV1::Creative::Representation
715
- command.response_class = Google::Apis::DisplayvideoV1::Creative
906
+ def delete_advertiser_channel_site(advertiser_id, channel_id, url_or_app_id, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
907
+ command = make_simple_command(:delete, 'v1/advertisers/{advertiserId}/channels/{+channelId}/sites/{+urlOrAppId}', options)
908
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
909
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
716
910
  command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
717
- command.params['creativeId'] = creative_id unless creative_id.nil?
911
+ command.params['channelId'] = channel_id unless channel_id.nil?
912
+ command.params['urlOrAppId'] = url_or_app_id unless url_or_app_id.nil?
913
+ command.query['partnerId'] = partner_id unless partner_id.nil?
718
914
  command.query['fields'] = fields unless fields.nil?
719
915
  command.query['quotaUser'] = quota_user unless quota_user.nil?
720
916
  execute_or_queue_command(command, &block)
721
917
  end
722
918
 
723
- # Lists creatives in an advertiser.
724
- # The order is defined by the order_by
725
- # parameter.
726
- # If a filter by
727
- # entity_status is not specified, creatives with
728
- # `ENTITY_STATUS_ARCHIVED` will not be included in the results.
919
+ # Lists sites in a channel.
729
920
  # @param [Fixnum] advertiser_id
730
- # Required. The ID of the advertiser to list creatives for.
921
+ # The ID of the advertiser that owns the parent channel.
922
+ # @param [Fixnum] channel_id
923
+ # Required. The ID of the parent channel to which the requested sites belong.
731
924
  # @param [String] filter
732
- # Allows filtering by creative properties.
925
+ # Allows filtering by site fields.
733
926
  # Supported syntax:
734
- # * Filter expressions are made up of one or more restrictions.
735
- # * Restriction for the same field must be combined by `OR`.
736
- # * Restriction for different fields must be combined by `AND`.
737
- # * Between `(` and `)` there can only be restrictions combined by `OR`
738
- # for the same field.
927
+ # * Filter expressions for site currently can only contain at most one
928
+ # * restriction.
739
929
  # * A restriction has the form of ``field` `operator` `value``.
740
- # * The operator must be `EQUALS (=)` for the following fields:
741
- # - `entityStatus`
742
- # - `creativeType`.
743
- # - `dimensions`
744
- # - `minDuration`
745
- # - `maxDuration`
746
- # - `approvalStatus`
747
- # - `exchangeReviewStatus`
748
- # - `dynamic`
749
- # * The operator must be `HAS (:)` for the following fields:
750
- # - `lineItemIds`
751
- # * For `entityStatus`, `minDuration`, `maxDuration`, and `dynamic` there may
752
- # be at most one restriction.
753
- # * For `dimensions`, the value is in the form of `"`width`x`height`"`.
754
- # * For `exchangeReviewStatus`, the value is in the form of
755
- # ``exchange`-`reviewStatus``.
756
- # * For `minDuration` and `maxDuration`, the value is in the form of
757
- # `"`duration`s"`. Only seconds are supported with millisecond granularity.
758
- # * There may be multiple `lineItemIds` restrictions in order to search
759
- # against multiple possible line item IDs.
930
+ # * The operator must be `CONTAINS (:)`.
931
+ # * Supported fields:
932
+ # - `urlOrAppId`
760
933
  # Examples:
761
- # * All native creatives: `creativeType="CREATIVE_TYPE_NATIVE"`
762
- # * All active creatives with 300x400 or 50x100 dimensions:
763
- # `entityStatus="ENTITY_STATUS_ACTIVE" AND (dimensions="300x400"
764
- # OR dimensions="50x100")`
765
- # * All dynamic creatives that are approved by AdX or
766
- # AppNexus, with a minimum duration of 5 seconds and 200ms.
767
- # `dynamic="true" AND minDuration="5.2s" AND
768
- # (exchangeReviewStatus="EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED"
769
- # OR exchangeReviewStatus="EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED")`
770
- # * All video creatives that are associated with line item ID 1 or 2:
771
- # creativeType="CREATIVE_TYPE_VIDEO" AND (lineItemIds:1 OR lineItemIds:2)
772
- # The length of this field should be no more than 500 characters.
934
+ # * All sites for which the URL or app ID contains "google":
935
+ # `urlOrAppId : "google"`
773
936
  # @param [String] order_by
774
937
  # Field by which to sort the list.
775
938
  # Acceptable values are:
776
- # * `creativeId` (default)
777
- # * `createTime`
778
- # * `mediaDuration`
779
- # * `dimensions` (sorts by width first, then by height)
780
- # The default sorting order is ascending. To specify descending order for
781
- # a field, a suffix "desc" should be added to the field name.
782
- # Example: `createTime desc`.
939
+ # * `urlOrAppId` (default)
940
+ # The default sorting order is ascending. To specify descending order for a
941
+ # field, a suffix " desc" should be added to the field name. Example:
942
+ # `urlOrAppId desc`.
783
943
  # @param [Fixnum] page_size
784
944
  # Requested page size. Must be between `1` and `100`. If unspecified will
785
945
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
@@ -787,9 +947,11 @@ module Google
787
947
  # @param [String] page_token
788
948
  # A token identifying a page of results the server should return.
789
949
  # Typically, this is the value of
790
- # next_page_token
791
- # returned from the previous call to `ListCreatives` method.
792
- # If not specified, the first page of results will be returned.
950
+ # next_page_token returned from the
951
+ # previous call to `ListSites` method. If not specified, the first page
952
+ # of results will be returned.
953
+ # @param [Fixnum] partner_id
954
+ # The ID of the partner that owns the parent channel.
793
955
  # @param [String] fields
794
956
  # Selector specifying which fields to include in a partial response.
795
957
  # @param [String] quota_user
@@ -799,7 +961,219 @@ module Google
799
961
  # Request-specific options
800
962
  #
801
963
  # @yield [result, err] Result & error if block supplied
802
- # @yieldparam result [Google::Apis::DisplayvideoV1::ListCreativesResponse] parsed result object
964
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListSitesResponse] parsed result object
965
+ # @yieldparam err [StandardError] error object if request failed
966
+ #
967
+ # @return [Google::Apis::DisplayvideoV1::ListSitesResponse]
968
+ #
969
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
970
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
971
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
972
+ 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)
973
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/channels/{+channelId}/sites', options)
974
+ command.response_representation = Google::Apis::DisplayvideoV1::ListSitesResponse::Representation
975
+ command.response_class = Google::Apis::DisplayvideoV1::ListSitesResponse
976
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
977
+ command.params['channelId'] = channel_id unless channel_id.nil?
978
+ command.query['filter'] = filter unless filter.nil?
979
+ command.query['orderBy'] = order_by unless order_by.nil?
980
+ command.query['pageSize'] = page_size unless page_size.nil?
981
+ command.query['pageToken'] = page_token unless page_token.nil?
982
+ command.query['partnerId'] = partner_id unless partner_id.nil?
983
+ command.query['fields'] = fields unless fields.nil?
984
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
985
+ execute_or_queue_command(command, &block)
986
+ end
987
+
988
+ # Creates a new creative.
989
+ # Returns the newly created creative if successful.
990
+ # @param [Fixnum] advertiser_id
991
+ # Output only. The unique ID of the advertiser the creative belongs to.
992
+ # @param [Google::Apis::DisplayvideoV1::Creative] creative_object
993
+ # @param [String] fields
994
+ # Selector specifying which fields to include in a partial response.
995
+ # @param [String] quota_user
996
+ # Available to use for quota purposes for server-side applications. Can be any
997
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
998
+ # @param [Google::Apis::RequestOptions] options
999
+ # Request-specific options
1000
+ #
1001
+ # @yield [result, err] Result & error if block supplied
1002
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Creative] parsed result object
1003
+ # @yieldparam err [StandardError] error object if request failed
1004
+ #
1005
+ # @return [Google::Apis::DisplayvideoV1::Creative]
1006
+ #
1007
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1008
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1009
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1010
+ def create_advertiser_creative(advertiser_id, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1011
+ command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/creatives', options)
1012
+ command.request_representation = Google::Apis::DisplayvideoV1::Creative::Representation
1013
+ command.request_object = creative_object
1014
+ command.response_representation = Google::Apis::DisplayvideoV1::Creative::Representation
1015
+ command.response_class = Google::Apis::DisplayvideoV1::Creative
1016
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
1017
+ command.query['fields'] = fields unless fields.nil?
1018
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1019
+ execute_or_queue_command(command, &block)
1020
+ end
1021
+
1022
+ # Deletes a creative.
1023
+ # Returns error code `NOT_FOUND` if the creative does not exist.
1024
+ # The creative should be archived first, i.e. set
1025
+ # entity_status to `ENTITY_STATUS_ARCHIVED`, before
1026
+ # it can be deleted.
1027
+ # @param [Fixnum] advertiser_id
1028
+ # The ID of the advertiser this creative belongs to.
1029
+ # @param [Fixnum] creative_id
1030
+ # The ID of the creative to be deleted.
1031
+ # @param [String] fields
1032
+ # Selector specifying which fields to include in a partial response.
1033
+ # @param [String] quota_user
1034
+ # Available to use for quota purposes for server-side applications. Can be any
1035
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1036
+ # @param [Google::Apis::RequestOptions] options
1037
+ # Request-specific options
1038
+ #
1039
+ # @yield [result, err] Result & error if block supplied
1040
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
1041
+ # @yieldparam err [StandardError] error object if request failed
1042
+ #
1043
+ # @return [Google::Apis::DisplayvideoV1::Empty]
1044
+ #
1045
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1046
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1047
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1048
+ def delete_advertiser_creative(advertiser_id, creative_id, fields: nil, quota_user: nil, options: nil, &block)
1049
+ command = make_simple_command(:delete, 'v1/advertisers/{+advertiserId}/creatives/{+creativeId}', options)
1050
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
1051
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
1052
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
1053
+ command.params['creativeId'] = creative_id unless creative_id.nil?
1054
+ command.query['fields'] = fields unless fields.nil?
1055
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1056
+ execute_or_queue_command(command, &block)
1057
+ end
1058
+
1059
+ # Gets a creative.
1060
+ # @param [Fixnum] advertiser_id
1061
+ # Required. The ID of the advertiser this creative belongs to.
1062
+ # @param [Fixnum] creative_id
1063
+ # Required. The ID of the creative to fetch.
1064
+ # @param [String] fields
1065
+ # Selector specifying which fields to include in a partial response.
1066
+ # @param [String] quota_user
1067
+ # Available to use for quota purposes for server-side applications. Can be any
1068
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1069
+ # @param [Google::Apis::RequestOptions] options
1070
+ # Request-specific options
1071
+ #
1072
+ # @yield [result, err] Result & error if block supplied
1073
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Creative] parsed result object
1074
+ # @yieldparam err [StandardError] error object if request failed
1075
+ #
1076
+ # @return [Google::Apis::DisplayvideoV1::Creative]
1077
+ #
1078
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1079
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1080
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1081
+ def get_advertiser_creative(advertiser_id, creative_id, fields: nil, quota_user: nil, options: nil, &block)
1082
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/creatives/{+creativeId}', options)
1083
+ command.response_representation = Google::Apis::DisplayvideoV1::Creative::Representation
1084
+ command.response_class = Google::Apis::DisplayvideoV1::Creative
1085
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
1086
+ command.params['creativeId'] = creative_id unless creative_id.nil?
1087
+ command.query['fields'] = fields unless fields.nil?
1088
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1089
+ execute_or_queue_command(command, &block)
1090
+ end
1091
+
1092
+ # Lists creatives in an advertiser.
1093
+ # The order is defined by the order_by
1094
+ # parameter.
1095
+ # If a filter by
1096
+ # entity_status is not specified, creatives with
1097
+ # `ENTITY_STATUS_ARCHIVED` will not be included in the results.
1098
+ # @param [Fixnum] advertiser_id
1099
+ # Required. The ID of the advertiser to list creatives for.
1100
+ # @param [String] filter
1101
+ # Allows filtering by creative properties.
1102
+ # Supported syntax:
1103
+ # * Filter expressions are made up of one or more restrictions.
1104
+ # * Restriction for the same field must be combined by `OR`.
1105
+ # * Restriction for different fields must be combined by `AND`.
1106
+ # * Between `(` and `)` there can only be restrictions combined by `OR`
1107
+ # for the same field.
1108
+ # * A restriction has the form of ``field` `operator` `value``.
1109
+ # * The operator must be `EQUALS (=)` for the following fields:
1110
+ # - `entityStatus`
1111
+ # - `creativeType`.
1112
+ # - `dimensions`
1113
+ # - `minDuration`
1114
+ # - `maxDuration`
1115
+ # - `approvalStatus`
1116
+ # - `exchangeReviewStatus`
1117
+ # - `dynamic`
1118
+ # - `creativeId`
1119
+ # * The operator must be `HAS (:)` for the following fields:
1120
+ # - `lineItemIds`
1121
+ # * For `entityStatus`, `minDuration`, `maxDuration`, and `dynamic` there may
1122
+ # be at most one restriction.
1123
+ # * For `dimensions`, the value is in the form of `"`width`x`height`"`.
1124
+ # * For `exchangeReviewStatus`, the value is in the form of
1125
+ # ``exchange`-`reviewStatus``.
1126
+ # * For `minDuration` and `maxDuration`, the value is in the form of
1127
+ # `"`duration`s"`. Only seconds are supported with millisecond granularity.
1128
+ # * There may be multiple `lineItemIds` restrictions in order to search
1129
+ # against multiple possible line item IDs.
1130
+ # * There may be multiple `creativeId` restrictions in order to search
1131
+ # against multiple possible creative IDs.
1132
+ # Examples:
1133
+ # * All native creatives: `creativeType="CREATIVE_TYPE_NATIVE"`
1134
+ # * All active creatives with 300x400 or 50x100 dimensions:
1135
+ # `entityStatus="ENTITY_STATUS_ACTIVE" AND (dimensions="300x400"
1136
+ # OR dimensions="50x100")`
1137
+ # * All dynamic creatives that are approved by AdX or
1138
+ # AppNexus, with a minimum duration of 5 seconds and 200ms.
1139
+ # `dynamic="true" AND minDuration="5.2s" AND
1140
+ # (exchangeReviewStatus="EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED"
1141
+ # OR exchangeReviewStatus="EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED")`
1142
+ # * All video creatives that are associated with line item ID 1 or 2:
1143
+ # `creativeType="CREATIVE_TYPE_VIDEO" AND (lineItemIds:1 OR lineItemIds:2)`
1144
+ # * Find creatives by multiple creative IDs:
1145
+ # `creativeId=1 OR creativeId=2`
1146
+ # The length of this field should be no more than 500 characters.
1147
+ # @param [String] order_by
1148
+ # Field by which to sort the list.
1149
+ # Acceptable values are:
1150
+ # * `creativeId` (default)
1151
+ # * `createTime`
1152
+ # * `mediaDuration`
1153
+ # * `dimensions` (sorts by width first, then by height)
1154
+ # The default sorting order is ascending. To specify descending order for
1155
+ # a field, a suffix "desc" should be added to the field name.
1156
+ # Example: `createTime desc`.
1157
+ # @param [Fixnum] page_size
1158
+ # Requested page size. Must be between `1` and `100`. If unspecified will
1159
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
1160
+ # is specified.
1161
+ # @param [String] page_token
1162
+ # A token identifying a page of results the server should return.
1163
+ # Typically, this is the value of
1164
+ # next_page_token
1165
+ # returned from the previous call to `ListCreatives` method.
1166
+ # If not specified, the first page of results will be returned.
1167
+ # @param [String] fields
1168
+ # Selector specifying which fields to include in a partial response.
1169
+ # @param [String] quota_user
1170
+ # Available to use for quota purposes for server-side applications. Can be any
1171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1172
+ # @param [Google::Apis::RequestOptions] options
1173
+ # Request-specific options
1174
+ #
1175
+ # @yield [result, err] Result & error if block supplied
1176
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListCreativesResponse] parsed result object
803
1177
  # @yieldparam err [StandardError] error object if request failed
804
1178
  #
805
1179
  # @return [Google::Apis::DisplayvideoV1::ListCreativesResponse]
@@ -1612,6 +1986,40 @@ module Google
1612
1986
  execute_or_queue_command(command, &block)
1613
1987
  end
1614
1988
 
1989
+ # Creates a new location list. Returns the newly created location list if
1990
+ # successful.
1991
+ # @param [Fixnum] advertiser_id
1992
+ # Required. The ID of the DV360 advertiser to which the location list belongs.
1993
+ # @param [Google::Apis::DisplayvideoV1::LocationList] location_list_object
1994
+ # @param [String] fields
1995
+ # Selector specifying which fields to include in a partial response.
1996
+ # @param [String] quota_user
1997
+ # Available to use for quota purposes for server-side applications. Can be any
1998
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1999
+ # @param [Google::Apis::RequestOptions] options
2000
+ # Request-specific options
2001
+ #
2002
+ # @yield [result, err] Result & error if block supplied
2003
+ # @yieldparam result [Google::Apis::DisplayvideoV1::LocationList] parsed result object
2004
+ # @yieldparam err [StandardError] error object if request failed
2005
+ #
2006
+ # @return [Google::Apis::DisplayvideoV1::LocationList]
2007
+ #
2008
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2009
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2010
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2011
+ def create_advertiser_location_list(advertiser_id, location_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2012
+ command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/locationLists', options)
2013
+ command.request_representation = Google::Apis::DisplayvideoV1::LocationList::Representation
2014
+ command.request_object = location_list_object
2015
+ command.response_representation = Google::Apis::DisplayvideoV1::LocationList::Representation
2016
+ command.response_class = Google::Apis::DisplayvideoV1::LocationList
2017
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2018
+ command.query['fields'] = fields unless fields.nil?
2019
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2020
+ execute_or_queue_command(command, &block)
2021
+ end
2022
+
1615
2023
  # Gets a location list.
1616
2024
  # @param [Fixnum] advertiser_id
1617
2025
  # Required. The ID of the DV360 advertiser to which the fetched location list
@@ -1714,14 +2122,14 @@ module Google
1714
2122
  execute_or_queue_command(command, &block)
1715
2123
  end
1716
2124
 
1717
- # Gets a negative keyword list given an advertiser ID and a negative keyword
1718
- # list ID.
2125
+ # Updates a location list. Returns the updated location list if successful.
1719
2126
  # @param [Fixnum] advertiser_id
1720
- # Required. The ID of the DV360 advertiser to which the fetched negative keyword
1721
- # list
1722
- # belongs.
1723
- # @param [Fixnum] negative_keyword_list_id
1724
- # Required. The ID of the negative keyword list to fetch.
2127
+ # Required. The ID of the DV360 advertiser to which the location lists belongs.
2128
+ # @param [Fixnum] location_list_id
2129
+ # Output only. The unique ID of the location list. Assigned by the system.
2130
+ # @param [Google::Apis::DisplayvideoV1::LocationList] location_list_object
2131
+ # @param [String] update_mask
2132
+ # Required. The mask to control which fields to update.
1725
2133
  # @param [String] fields
1726
2134
  # Selector specifying which fields to include in a partial response.
1727
2135
  # @param [String] quota_user
@@ -1731,32 +2139,319 @@ module Google
1731
2139
  # Request-specific options
1732
2140
  #
1733
2141
  # @yield [result, err] Result & error if block supplied
1734
- # @yieldparam result [Google::Apis::DisplayvideoV1::NegativeKeywordList] parsed result object
2142
+ # @yieldparam result [Google::Apis::DisplayvideoV1::LocationList] parsed result object
1735
2143
  # @yieldparam err [StandardError] error object if request failed
1736
2144
  #
1737
- # @return [Google::Apis::DisplayvideoV1::NegativeKeywordList]
2145
+ # @return [Google::Apis::DisplayvideoV1::LocationList]
1738
2146
  #
1739
2147
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1740
2148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1741
2149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1742
- def get_advertiser_negative_keyword_list(advertiser_id, negative_keyword_list_id, fields: nil, quota_user: nil, options: nil, &block)
1743
- command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}', options)
1744
- command.response_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
1745
- command.response_class = Google::Apis::DisplayvideoV1::NegativeKeywordList
2150
+ 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)
2151
+ command = make_simple_command(:patch, 'v1/advertisers/{+advertiserId}/locationLists/{locationListId}', options)
2152
+ command.request_representation = Google::Apis::DisplayvideoV1::LocationList::Representation
2153
+ command.request_object = location_list_object
2154
+ command.response_representation = Google::Apis::DisplayvideoV1::LocationList::Representation
2155
+ command.response_class = Google::Apis::DisplayvideoV1::LocationList
1746
2156
  command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
1747
- command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2157
+ command.params['locationListId'] = location_list_id unless location_list_id.nil?
2158
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1748
2159
  command.query['fields'] = fields unless fields.nil?
1749
2160
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1750
2161
  execute_or_queue_command(command, &block)
1751
2162
  end
1752
2163
 
1753
- # Lists negative keyword lists based on a given advertiser id.
2164
+ # Bulk edits multiple assignments between locations and a single location
2165
+ # list.
2166
+ # The operation will delete the assigned locations provided in
2167
+ # BulkEditAssignedLocationsRequest.deleted_assigned_locations and then
2168
+ # create the assigned locations provided in
2169
+ # BulkEditAssignedLocationsRequest.created_assigned_locations.
1754
2170
  # @param [Fixnum] advertiser_id
1755
- # Required. The ID of the DV360 advertiser to which the fetched negative keyword
1756
- # lists
1757
- # belong.
1758
- # @param [Fixnum] page_size
1759
- # Requested page size. Must be between `1` and `100`.
2171
+ # Required. The ID of the DV360 advertiser to which the location list belongs.
2172
+ # @param [Fixnum] location_list_id
2173
+ # Required. The ID of the location list to which these assignments are assigned.
2174
+ # @param [Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsRequest] bulk_edit_assigned_locations_request_object
2175
+ # @param [String] fields
2176
+ # Selector specifying which fields to include in a partial response.
2177
+ # @param [String] quota_user
2178
+ # Available to use for quota purposes for server-side applications. Can be any
2179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2180
+ # @param [Google::Apis::RequestOptions] options
2181
+ # Request-specific options
2182
+ #
2183
+ # @yield [result, err] Result & error if block supplied
2184
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsResponse] parsed result object
2185
+ # @yieldparam err [StandardError] error object if request failed
2186
+ #
2187
+ # @return [Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsResponse]
2188
+ #
2189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2192
+ 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)
2193
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/locationLists/{+locationListId}/assignedLocations:bulkEdit', options)
2194
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsRequest::Representation
2195
+ command.request_object = bulk_edit_assigned_locations_request_object
2196
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsResponse::Representation
2197
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditAssignedLocationsResponse
2198
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2199
+ command.params['locationListId'] = location_list_id unless location_list_id.nil?
2200
+ command.query['fields'] = fields unless fields.nil?
2201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2202
+ execute_or_queue_command(command, &block)
2203
+ end
2204
+
2205
+ # Creates an assignment between a location and a location list.
2206
+ # @param [Fixnum] advertiser_id
2207
+ # Required. The ID of the DV360 advertiser to which the location list belongs.
2208
+ # @param [Fixnum] location_list_id
2209
+ # Required. The ID of the location list for which the assignment will be created.
2210
+ # @param [Google::Apis::DisplayvideoV1::AssignedLocation] assigned_location_object
2211
+ # @param [String] fields
2212
+ # Selector specifying which fields to include in a partial response.
2213
+ # @param [String] quota_user
2214
+ # Available to use for quota purposes for server-side applications. Can be any
2215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2216
+ # @param [Google::Apis::RequestOptions] options
2217
+ # Request-specific options
2218
+ #
2219
+ # @yield [result, err] Result & error if block supplied
2220
+ # @yieldparam result [Google::Apis::DisplayvideoV1::AssignedLocation] parsed result object
2221
+ # @yieldparam err [StandardError] error object if request failed
2222
+ #
2223
+ # @return [Google::Apis::DisplayvideoV1::AssignedLocation]
2224
+ #
2225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2228
+ def create_advertiser_location_list_assigned_location(advertiser_id, location_list_id, assigned_location_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2229
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations', options)
2230
+ command.request_representation = Google::Apis::DisplayvideoV1::AssignedLocation::Representation
2231
+ command.request_object = assigned_location_object
2232
+ command.response_representation = Google::Apis::DisplayvideoV1::AssignedLocation::Representation
2233
+ command.response_class = Google::Apis::DisplayvideoV1::AssignedLocation
2234
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2235
+ command.params['locationListId'] = location_list_id unless location_list_id.nil?
2236
+ command.query['fields'] = fields unless fields.nil?
2237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2238
+ execute_or_queue_command(command, &block)
2239
+ end
2240
+
2241
+ # Deletes the assignment between a location and a location list.
2242
+ # @param [Fixnum] advertiser_id
2243
+ # Required. The ID of the DV360 advertiser to which the location list belongs.
2244
+ # @param [Fixnum] location_list_id
2245
+ # Required. The ID of the location list to which this assignment is assigned.
2246
+ # @param [Fixnum] assigned_location_id
2247
+ # Required. The ID of the assigned location to delete.
2248
+ # @param [String] fields
2249
+ # Selector specifying which fields to include in a partial response.
2250
+ # @param [String] quota_user
2251
+ # Available to use for quota purposes for server-side applications. Can be any
2252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2253
+ # @param [Google::Apis::RequestOptions] options
2254
+ # Request-specific options
2255
+ #
2256
+ # @yield [result, err] Result & error if block supplied
2257
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
2258
+ # @yieldparam err [StandardError] error object if request failed
2259
+ #
2260
+ # @return [Google::Apis::DisplayvideoV1::Empty]
2261
+ #
2262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2265
+ def delete_advertiser_location_list_assigned_location(advertiser_id, location_list_id, assigned_location_id, fields: nil, quota_user: nil, options: nil, &block)
2266
+ command = make_simple_command(:delete, 'v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations/{+assignedLocationId}', options)
2267
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
2268
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
2269
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2270
+ command.params['locationListId'] = location_list_id unless location_list_id.nil?
2271
+ command.params['assignedLocationId'] = assigned_location_id unless assigned_location_id.nil?
2272
+ command.query['fields'] = fields unless fields.nil?
2273
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2274
+ execute_or_queue_command(command, &block)
2275
+ end
2276
+
2277
+ # Lists locations assigned to a location list.
2278
+ # @param [Fixnum] advertiser_id
2279
+ # Required. The ID of the DV360 advertiser to which the location list belongs.
2280
+ # @param [Fixnum] location_list_id
2281
+ # Required. The ID of the location list to which these assignments are assigned.
2282
+ # @param [String] filter
2283
+ # Allows filtering by location list assignment fields.
2284
+ # Supported syntax:
2285
+ # * Filter expressions are made up of one or more restrictions.
2286
+ # * Restrictions can be combined by the logical operator `OR`.
2287
+ # * A restriction has the form of ``field` `operator` `value``.
2288
+ # * The operator must be `EQUALS (=)`.
2289
+ # * Supported fields:
2290
+ # - `assignedLocationId`
2291
+ # The length of this field should be no more than 500 characters.
2292
+ # @param [String] order_by
2293
+ # Field by which to sort the list.
2294
+ # Acceptable values are:
2295
+ # * `assignedLocationId` (default)
2296
+ # The default sorting order is ascending. To specify descending order for a
2297
+ # field, a suffix " desc" should be added to the field name. Example:
2298
+ # `assignedLocationId desc`.
2299
+ # @param [Fixnum] page_size
2300
+ # Requested page size. Must be between `1` and `100`. If unspecified will
2301
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
2302
+ # is specified.
2303
+ # @param [String] page_token
2304
+ # A token identifying a page of results the server should return.
2305
+ # Typically, this is the value of
2306
+ # next_page_token
2307
+ # returned from the previous call to `ListAssignedLocations`
2308
+ # method. If not specified, the first page of results will be returned.
2309
+ # @param [String] fields
2310
+ # Selector specifying which fields to include in a partial response.
2311
+ # @param [String] quota_user
2312
+ # Available to use for quota purposes for server-side applications. Can be any
2313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2314
+ # @param [Google::Apis::RequestOptions] options
2315
+ # Request-specific options
2316
+ #
2317
+ # @yield [result, err] Result & error if block supplied
2318
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListAssignedLocationsResponse] parsed result object
2319
+ # @yieldparam err [StandardError] error object if request failed
2320
+ #
2321
+ # @return [Google::Apis::DisplayvideoV1::ListAssignedLocationsResponse]
2322
+ #
2323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2326
+ 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)
2327
+ command = make_simple_command(:get, 'v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations', options)
2328
+ command.response_representation = Google::Apis::DisplayvideoV1::ListAssignedLocationsResponse::Representation
2329
+ command.response_class = Google::Apis::DisplayvideoV1::ListAssignedLocationsResponse
2330
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2331
+ command.params['locationListId'] = location_list_id unless location_list_id.nil?
2332
+ command.query['filter'] = filter unless filter.nil?
2333
+ command.query['orderBy'] = order_by unless order_by.nil?
2334
+ command.query['pageSize'] = page_size unless page_size.nil?
2335
+ command.query['pageToken'] = page_token unless page_token.nil?
2336
+ command.query['fields'] = fields unless fields.nil?
2337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2338
+ execute_or_queue_command(command, &block)
2339
+ end
2340
+
2341
+ # Creates a new negative keyword list. Returns the newly created negative
2342
+ # keyword list if successful.
2343
+ # @param [Fixnum] advertiser_id
2344
+ # Required. The ID of the DV360 advertiser to which the negative keyword list
2345
+ # will
2346
+ # belong.
2347
+ # @param [Google::Apis::DisplayvideoV1::NegativeKeywordList] negative_keyword_list_object
2348
+ # @param [String] fields
2349
+ # Selector specifying which fields to include in a partial response.
2350
+ # @param [String] quota_user
2351
+ # Available to use for quota purposes for server-side applications. Can be any
2352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2353
+ # @param [Google::Apis::RequestOptions] options
2354
+ # Request-specific options
2355
+ #
2356
+ # @yield [result, err] Result & error if block supplied
2357
+ # @yieldparam result [Google::Apis::DisplayvideoV1::NegativeKeywordList] parsed result object
2358
+ # @yieldparam err [StandardError] error object if request failed
2359
+ #
2360
+ # @return [Google::Apis::DisplayvideoV1::NegativeKeywordList]
2361
+ #
2362
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2363
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2364
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2365
+ def create_advertiser_negative_keyword_list(advertiser_id, negative_keyword_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2366
+ command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/negativeKeywordLists', options)
2367
+ command.request_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
2368
+ command.request_object = negative_keyword_list_object
2369
+ command.response_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
2370
+ command.response_class = Google::Apis::DisplayvideoV1::NegativeKeywordList
2371
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2372
+ command.query['fields'] = fields unless fields.nil?
2373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2374
+ execute_or_queue_command(command, &block)
2375
+ end
2376
+
2377
+ # Deletes a negative keyword list given an advertiser ID and a negative
2378
+ # keyword list ID.
2379
+ # @param [Fixnum] advertiser_id
2380
+ # Required. The ID of the DV360 advertiser to which the negative keyword list
2381
+ # belongs.
2382
+ # @param [Fixnum] negative_keyword_list_id
2383
+ # Required. The ID of the negative keyword list to delete.
2384
+ # @param [String] fields
2385
+ # Selector specifying which fields to include in a partial response.
2386
+ # @param [String] quota_user
2387
+ # Available to use for quota purposes for server-side applications. Can be any
2388
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2389
+ # @param [Google::Apis::RequestOptions] options
2390
+ # Request-specific options
2391
+ #
2392
+ # @yield [result, err] Result & error if block supplied
2393
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
2394
+ # @yieldparam err [StandardError] error object if request failed
2395
+ #
2396
+ # @return [Google::Apis::DisplayvideoV1::Empty]
2397
+ #
2398
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2399
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2400
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2401
+ def delete_advertiser_negative_keyword_list(advertiser_id, negative_keyword_list_id, fields: nil, quota_user: nil, options: nil, &block)
2402
+ command = make_simple_command(:delete, 'v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}', options)
2403
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
2404
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
2405
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2406
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2407
+ command.query['fields'] = fields unless fields.nil?
2408
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2409
+ execute_or_queue_command(command, &block)
2410
+ end
2411
+
2412
+ # Gets a negative keyword list given an advertiser ID and a negative keyword
2413
+ # list ID.
2414
+ # @param [Fixnum] advertiser_id
2415
+ # Required. The ID of the DV360 advertiser to which the fetched negative keyword
2416
+ # list
2417
+ # belongs.
2418
+ # @param [Fixnum] negative_keyword_list_id
2419
+ # Required. The ID of the negative keyword list to fetch.
2420
+ # @param [String] fields
2421
+ # Selector specifying which fields to include in a partial response.
2422
+ # @param [String] quota_user
2423
+ # Available to use for quota purposes for server-side applications. Can be any
2424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2425
+ # @param [Google::Apis::RequestOptions] options
2426
+ # Request-specific options
2427
+ #
2428
+ # @yield [result, err] Result & error if block supplied
2429
+ # @yieldparam result [Google::Apis::DisplayvideoV1::NegativeKeywordList] parsed result object
2430
+ # @yieldparam err [StandardError] error object if request failed
2431
+ #
2432
+ # @return [Google::Apis::DisplayvideoV1::NegativeKeywordList]
2433
+ #
2434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2437
+ def get_advertiser_negative_keyword_list(advertiser_id, negative_keyword_list_id, fields: nil, quota_user: nil, options: nil, &block)
2438
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}', options)
2439
+ command.response_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
2440
+ command.response_class = Google::Apis::DisplayvideoV1::NegativeKeywordList
2441
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2442
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2443
+ command.query['fields'] = fields unless fields.nil?
2444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2445
+ execute_or_queue_command(command, &block)
2446
+ end
2447
+
2448
+ # Lists negative keyword lists based on a given advertiser id.
2449
+ # @param [Fixnum] advertiser_id
2450
+ # Required. The ID of the DV360 advertiser to which the fetched negative keyword
2451
+ # lists
2452
+ # belong.
2453
+ # @param [Fixnum] page_size
2454
+ # Requested page size. Must be between `1` and `100`.
1760
2455
  # Defaults to `100` if not set. Returns error code `INVALID_ARGUMENT` if an
1761
2456
  # invalid value is specified.
1762
2457
  # @param [String] page_token
@@ -1794,6 +2489,422 @@ module Google
1794
2489
  execute_or_queue_command(command, &block)
1795
2490
  end
1796
2491
 
2492
+ # Updates a negative keyword list. Returns the updated negative keyword list
2493
+ # if successful.
2494
+ # @param [Fixnum] advertiser_id
2495
+ # Required. The ID of the DV360 advertiser to which the negative keyword list
2496
+ # belongs.
2497
+ # @param [Fixnum] negative_keyword_list_id
2498
+ # Output only. The unique ID of the negative keyword list. Assigned by the
2499
+ # system.
2500
+ # @param [Google::Apis::DisplayvideoV1::NegativeKeywordList] negative_keyword_list_object
2501
+ # @param [String] update_mask
2502
+ # Required. The mask to control which fields to update.
2503
+ # @param [String] fields
2504
+ # Selector specifying which fields to include in a partial response.
2505
+ # @param [String] quota_user
2506
+ # Available to use for quota purposes for server-side applications. Can be any
2507
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2508
+ # @param [Google::Apis::RequestOptions] options
2509
+ # Request-specific options
2510
+ #
2511
+ # @yield [result, err] Result & error if block supplied
2512
+ # @yieldparam result [Google::Apis::DisplayvideoV1::NegativeKeywordList] parsed result object
2513
+ # @yieldparam err [StandardError] error object if request failed
2514
+ #
2515
+ # @return [Google::Apis::DisplayvideoV1::NegativeKeywordList]
2516
+ #
2517
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2518
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2519
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2520
+ 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)
2521
+ command = make_simple_command(:patch, 'v1/advertisers/{+advertiserId}/negativeKeywordLists/{negativeKeywordListId}', options)
2522
+ command.request_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
2523
+ command.request_object = negative_keyword_list_object
2524
+ command.response_representation = Google::Apis::DisplayvideoV1::NegativeKeywordList::Representation
2525
+ command.response_class = Google::Apis::DisplayvideoV1::NegativeKeywordList
2526
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2527
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2528
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2529
+ command.query['fields'] = fields unless fields.nil?
2530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2531
+ execute_or_queue_command(command, &block)
2532
+ end
2533
+
2534
+ # Bulk edits negative keywords in a single negative keyword list.
2535
+ # The operation will delete the negative keywords provided in
2536
+ # BulkEditNegativeKeywordsRequest.deleted_negative_keywords and then
2537
+ # create the negative keywords provided in
2538
+ # BulkEditNegativeKeywordsRequest.created_negative_keywords.
2539
+ # This operation is guaranteed to be atomic and will never result in a
2540
+ # partial success or partial failure.
2541
+ # @param [Fixnum] advertiser_id
2542
+ # Required. The ID of the DV360 advertiser to which the parent negative keyword
2543
+ # list
2544
+ # belongs.
2545
+ # @param [Fixnum] negative_keyword_list_id
2546
+ # Required. The ID of the parent negative keyword list to which the negative
2547
+ # keywords
2548
+ # belong.
2549
+ # @param [Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsRequest] bulk_edit_negative_keywords_request_object
2550
+ # @param [String] fields
2551
+ # Selector specifying which fields to include in a partial response.
2552
+ # @param [String] quota_user
2553
+ # Available to use for quota purposes for server-side applications. Can be any
2554
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2555
+ # @param [Google::Apis::RequestOptions] options
2556
+ # Request-specific options
2557
+ #
2558
+ # @yield [result, err] Result & error if block supplied
2559
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsResponse] parsed result object
2560
+ # @yieldparam err [StandardError] error object if request failed
2561
+ #
2562
+ # @return [Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsResponse]
2563
+ #
2564
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2565
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2566
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2567
+ 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)
2568
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:bulkEdit', options)
2569
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsRequest::Representation
2570
+ command.request_object = bulk_edit_negative_keywords_request_object
2571
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsResponse::Representation
2572
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditNegativeKeywordsResponse
2573
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2574
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2575
+ command.query['fields'] = fields unless fields.nil?
2576
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2577
+ execute_or_queue_command(command, &block)
2578
+ end
2579
+
2580
+ # Creates a negative keyword in a negative keyword list.
2581
+ # @param [Fixnum] advertiser_id
2582
+ # Required. The ID of the DV360 advertiser to which the parent negative keyword
2583
+ # list
2584
+ # belongs.
2585
+ # @param [Fixnum] negative_keyword_list_id
2586
+ # Required. The ID of the parent negative keyword list in which the negative
2587
+ # keyword
2588
+ # will be created.
2589
+ # @param [Google::Apis::DisplayvideoV1::NegativeKeyword] negative_keyword_object
2590
+ # @param [String] fields
2591
+ # Selector specifying which fields to include in a partial response.
2592
+ # @param [String] quota_user
2593
+ # Available to use for quota purposes for server-side applications. Can be any
2594
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2595
+ # @param [Google::Apis::RequestOptions] options
2596
+ # Request-specific options
2597
+ #
2598
+ # @yield [result, err] Result & error if block supplied
2599
+ # @yieldparam result [Google::Apis::DisplayvideoV1::NegativeKeyword] parsed result object
2600
+ # @yieldparam err [StandardError] error object if request failed
2601
+ #
2602
+ # @return [Google::Apis::DisplayvideoV1::NegativeKeyword]
2603
+ #
2604
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2605
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2606
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2607
+ 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)
2608
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords', options)
2609
+ command.request_representation = Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
2610
+ command.request_object = negative_keyword_object
2611
+ command.response_representation = Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
2612
+ command.response_class = Google::Apis::DisplayvideoV1::NegativeKeyword
2613
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2614
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2615
+ command.query['fields'] = fields unless fields.nil?
2616
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2617
+ execute_or_queue_command(command, &block)
2618
+ end
2619
+
2620
+ # Deletes a negative keyword from a negative keyword list.
2621
+ # @param [Fixnum] advertiser_id
2622
+ # Required. The ID of the DV360 advertiser to which the parent negative keyword
2623
+ # list
2624
+ # belongs.
2625
+ # @param [Fixnum] negative_keyword_list_id
2626
+ # Required. The ID of the parent negative keyword list to which the negative
2627
+ # keyword
2628
+ # belongs.
2629
+ # @param [String] keyword_value
2630
+ # Required. The keyword value of the negative keyword to delete.
2631
+ # @param [String] fields
2632
+ # Selector specifying which fields to include in a partial response.
2633
+ # @param [String] quota_user
2634
+ # Available to use for quota purposes for server-side applications. Can be any
2635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2636
+ # @param [Google::Apis::RequestOptions] options
2637
+ # Request-specific options
2638
+ #
2639
+ # @yield [result, err] Result & error if block supplied
2640
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
2641
+ # @yieldparam err [StandardError] error object if request failed
2642
+ #
2643
+ # @return [Google::Apis::DisplayvideoV1::Empty]
2644
+ #
2645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2648
+ def delete_advertiser_negative_keyword_list_negative_keyword(advertiser_id, negative_keyword_list_id, keyword_value, fields: nil, quota_user: nil, options: nil, &block)
2649
+ command = make_simple_command(:delete, 'v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords/{+keywordValue}', options)
2650
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
2651
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
2652
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2653
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2654
+ command.params['keywordValue'] = keyword_value unless keyword_value.nil?
2655
+ command.query['fields'] = fields unless fields.nil?
2656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2657
+ execute_or_queue_command(command, &block)
2658
+ end
2659
+
2660
+ # Lists negative keywords in a negative keyword list.
2661
+ # @param [Fixnum] advertiser_id
2662
+ # Required. The ID of the DV360 advertiser to which the parent negative keyword
2663
+ # list
2664
+ # belongs.
2665
+ # @param [Fixnum] negative_keyword_list_id
2666
+ # Required. The ID of the parent negative keyword list to which the requested
2667
+ # negative
2668
+ # keywords belong.
2669
+ # @param [String] filter
2670
+ # Allows filtering by negative keyword fields.
2671
+ # Supported syntax:
2672
+ # * Filter expressions for negative keyword currently can only contain at
2673
+ # most one
2674
+ # * restriction.
2675
+ # * A restriction has the form of ``field` `operator` `value``.
2676
+ # * The operator must be `CONTAINS (:)`.
2677
+ # * Supported fields:
2678
+ # - `keywordValue`
2679
+ # Examples:
2680
+ # * All negative keywords for which the keyword value contains "google":
2681
+ # `keywordValue : "google"`
2682
+ # @param [String] order_by
2683
+ # Field by which to sort the list.
2684
+ # Acceptable values are:
2685
+ # * `keywordValue` (default)
2686
+ # The default sorting order is ascending. To specify descending order for a
2687
+ # field, a suffix " desc" should be added to the field name. Example:
2688
+ # `keywordValue desc`.
2689
+ # @param [Fixnum] page_size
2690
+ # Requested page size. Must be between `1` and `100`. If unspecified will
2691
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
2692
+ # is specified.
2693
+ # @param [String] page_token
2694
+ # A token identifying a page of results the server should return.
2695
+ # Typically, this is the value of
2696
+ # next_page_token returned
2697
+ # from the previous call to `ListNegativeKeywords` method. If not specified,
2698
+ # the first page of results will be returned.
2699
+ # @param [String] fields
2700
+ # Selector specifying which fields to include in a partial response.
2701
+ # @param [String] quota_user
2702
+ # Available to use for quota purposes for server-side applications. Can be any
2703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2704
+ # @param [Google::Apis::RequestOptions] options
2705
+ # Request-specific options
2706
+ #
2707
+ # @yield [result, err] Result & error if block supplied
2708
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListNegativeKeywordsResponse] parsed result object
2709
+ # @yieldparam err [StandardError] error object if request failed
2710
+ #
2711
+ # @return [Google::Apis::DisplayvideoV1::ListNegativeKeywordsResponse]
2712
+ #
2713
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2714
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2715
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2716
+ 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)
2717
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords', options)
2718
+ command.response_representation = Google::Apis::DisplayvideoV1::ListNegativeKeywordsResponse::Representation
2719
+ command.response_class = Google::Apis::DisplayvideoV1::ListNegativeKeywordsResponse
2720
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2721
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
2722
+ command.query['filter'] = filter unless filter.nil?
2723
+ command.query['orderBy'] = order_by unless order_by.nil?
2724
+ command.query['pageSize'] = page_size unless page_size.nil?
2725
+ command.query['pageToken'] = page_token unless page_token.nil?
2726
+ command.query['fields'] = fields unless fields.nil?
2727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2728
+ execute_or_queue_command(command, &block)
2729
+ end
2730
+
2731
+ # Assigns a targeting option to an advertiser.
2732
+ # Returns the assigned targeting option if successful.
2733
+ # @param [Fixnum] advertiser_id
2734
+ # Required. The ID of the advertiser.
2735
+ # @param [String] targeting_type
2736
+ # Required. Identifies the type of this assigned targeting option.
2737
+ # @param [Google::Apis::DisplayvideoV1::AssignedTargetingOption] assigned_targeting_option_object
2738
+ # @param [String] fields
2739
+ # Selector specifying which fields to include in a partial response.
2740
+ # @param [String] quota_user
2741
+ # Available to use for quota purposes for server-side applications. Can be any
2742
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2743
+ # @param [Google::Apis::RequestOptions] options
2744
+ # Request-specific options
2745
+ #
2746
+ # @yield [result, err] Result & error if block supplied
2747
+ # @yieldparam result [Google::Apis::DisplayvideoV1::AssignedTargetingOption] parsed result object
2748
+ # @yieldparam err [StandardError] error object if request failed
2749
+ #
2750
+ # @return [Google::Apis::DisplayvideoV1::AssignedTargetingOption]
2751
+ #
2752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2755
+ def create_advertiser_targeting_type_assigned_targeting_option(advertiser_id, targeting_type, assigned_targeting_option_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2756
+ command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions', options)
2757
+ command.request_representation = Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
2758
+ command.request_object = assigned_targeting_option_object
2759
+ command.response_representation = Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
2760
+ command.response_class = Google::Apis::DisplayvideoV1::AssignedTargetingOption
2761
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2762
+ command.params['targetingType'] = targeting_type unless targeting_type.nil?
2763
+ command.query['fields'] = fields unless fields.nil?
2764
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2765
+ execute_or_queue_command(command, &block)
2766
+ end
2767
+
2768
+ # Deletes an assigned targeting option from an advertiser.
2769
+ # @param [Fixnum] advertiser_id
2770
+ # Required. The ID of the advertiser.
2771
+ # @param [String] targeting_type
2772
+ # Required. Identifies the type of this assigned targeting option.
2773
+ # @param [String] assigned_targeting_option_id
2774
+ # Required. The ID of the assigned targeting option to delete.
2775
+ # @param [String] fields
2776
+ # Selector specifying which fields to include in a partial response.
2777
+ # @param [String] quota_user
2778
+ # Available to use for quota purposes for server-side applications. Can be any
2779
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2780
+ # @param [Google::Apis::RequestOptions] options
2781
+ # Request-specific options
2782
+ #
2783
+ # @yield [result, err] Result & error if block supplied
2784
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
2785
+ # @yieldparam err [StandardError] error object if request failed
2786
+ #
2787
+ # @return [Google::Apis::DisplayvideoV1::Empty]
2788
+ #
2789
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2790
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2791
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2792
+ def delete_advertiser_targeting_type_assigned_targeting_option(advertiser_id, targeting_type, assigned_targeting_option_id, fields: nil, quota_user: nil, options: nil, &block)
2793
+ command = make_simple_command(:delete, 'v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}', options)
2794
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
2795
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
2796
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2797
+ command.params['targetingType'] = targeting_type unless targeting_type.nil?
2798
+ command.params['assignedTargetingOptionId'] = assigned_targeting_option_id unless assigned_targeting_option_id.nil?
2799
+ command.query['fields'] = fields unless fields.nil?
2800
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2801
+ execute_or_queue_command(command, &block)
2802
+ end
2803
+
2804
+ # Gets a single targeting option assigned to an advertiser.
2805
+ # @param [Fixnum] advertiser_id
2806
+ # Required. The ID of the advertiser.
2807
+ # @param [String] targeting_type
2808
+ # Required. Identifies the type of this assigned targeting option.
2809
+ # @param [String] assigned_targeting_option_id
2810
+ # Required. An identifier unique to the targeting type in this advertiser that
2811
+ # identifies the assigned targeting option being requested.
2812
+ # @param [String] fields
2813
+ # Selector specifying which fields to include in a partial response.
2814
+ # @param [String] quota_user
2815
+ # Available to use for quota purposes for server-side applications. Can be any
2816
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2817
+ # @param [Google::Apis::RequestOptions] options
2818
+ # Request-specific options
2819
+ #
2820
+ # @yield [result, err] Result & error if block supplied
2821
+ # @yieldparam result [Google::Apis::DisplayvideoV1::AssignedTargetingOption] parsed result object
2822
+ # @yieldparam err [StandardError] error object if request failed
2823
+ #
2824
+ # @return [Google::Apis::DisplayvideoV1::AssignedTargetingOption]
2825
+ #
2826
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2827
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2828
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2829
+ def get_advertiser_targeting_type_assigned_targeting_option(advertiser_id, targeting_type, assigned_targeting_option_id, fields: nil, quota_user: nil, options: nil, &block)
2830
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}', options)
2831
+ command.response_representation = Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
2832
+ command.response_class = Google::Apis::DisplayvideoV1::AssignedTargetingOption
2833
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2834
+ command.params['targetingType'] = targeting_type unless targeting_type.nil?
2835
+ command.params['assignedTargetingOptionId'] = assigned_targeting_option_id unless assigned_targeting_option_id.nil?
2836
+ command.query['fields'] = fields unless fields.nil?
2837
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2838
+ execute_or_queue_command(command, &block)
2839
+ end
2840
+
2841
+ # Lists the targeting options assigned to an advertiser.
2842
+ # @param [Fixnum] advertiser_id
2843
+ # Required. The ID of the advertiser.
2844
+ # @param [String] targeting_type
2845
+ # Required. Identifies the type of assigned targeting options to list.
2846
+ # @param [String] filter
2847
+ # Allows filtering by assigned targeting option properties.
2848
+ # Supported syntax:
2849
+ # * Filter expressions are made up of one or more restrictions.
2850
+ # * Restrictions can be combined by the logical operator `OR`.
2851
+ # * A restriction has the form of ``field` `operator` `value``.
2852
+ # * The operator must be `EQUALS (=)`.
2853
+ # * Supported fields:
2854
+ # - `assignedTargetingOptionId`
2855
+ # Examples:
2856
+ # * AssignedTargetingOption with ID 123456
2857
+ # `assignedTargetingOptionId="123456"`
2858
+ # The length of this field should be no more than 500 characters.
2859
+ # @param [String] order_by
2860
+ # Field by which to sort the list.
2861
+ # Acceptable values are:
2862
+ # * `assignedTargetingOptionId` (default)
2863
+ # The default sorting order is ascending. To specify descending order for
2864
+ # a field, a suffix "desc" should be added to the field name. Example:
2865
+ # `assignedTargetingOptionId desc`.
2866
+ # @param [Fixnum] page_size
2867
+ # Requested page size. Must be between `1` and `100`. If unspecified will
2868
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
2869
+ # is specified.
2870
+ # @param [String] page_token
2871
+ # A token identifying a page of results the server should return.
2872
+ # Typically, this is the value of
2873
+ # next_page_token
2874
+ # returned from the previous call to `ListAdvertiserAssignedTargetingOptions`
2875
+ # method. If not specified, the first page of results will be returned.
2876
+ # @param [String] fields
2877
+ # Selector specifying which fields to include in a partial response.
2878
+ # @param [String] quota_user
2879
+ # Available to use for quota purposes for server-side applications. Can be any
2880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2881
+ # @param [Google::Apis::RequestOptions] options
2882
+ # Request-specific options
2883
+ #
2884
+ # @yield [result, err] Result & error if block supplied
2885
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListAdvertiserAssignedTargetingOptionsResponse] parsed result object
2886
+ # @yieldparam err [StandardError] error object if request failed
2887
+ #
2888
+ # @return [Google::Apis::DisplayvideoV1::ListAdvertiserAssignedTargetingOptionsResponse]
2889
+ #
2890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2893
+ def list_advertiser_targeting_type_assigned_targeting_options(advertiser_id, targeting_type, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2894
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions', options)
2895
+ command.response_representation = Google::Apis::DisplayvideoV1::ListAdvertiserAssignedTargetingOptionsResponse::Representation
2896
+ command.response_class = Google::Apis::DisplayvideoV1::ListAdvertiserAssignedTargetingOptionsResponse
2897
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2898
+ command.params['targetingType'] = targeting_type unless targeting_type.nil?
2899
+ command.query['filter'] = filter unless filter.nil?
2900
+ command.query['orderBy'] = order_by unless order_by.nil?
2901
+ command.query['pageSize'] = page_size unless page_size.nil?
2902
+ command.query['pageToken'] = page_token unless page_token.nil?
2903
+ command.query['fields'] = fields unless fields.nil?
2904
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2905
+ execute_or_queue_command(command, &block)
2906
+ end
2907
+
1797
2908
  # Gets a combined audience.
1798
2909
  # @param [Fixnum] combined_audience_id
1799
2910
  # Required. The ID of the combined audience to fetch.
@@ -2260,7 +3371,325 @@ module Google
2260
3371
  # returned from the previous call to `ListGoogleAudiences` method.
2261
3372
  # If not specified, the first page of results will be returned.
2262
3373
  # @param [Fixnum] partner_id
2263
- # The ID of the partner that has access to the fetched Google audiences.
3374
+ # The ID of the partner that has access to the fetched Google audiences.
3375
+ # @param [String] fields
3376
+ # Selector specifying which fields to include in a partial response.
3377
+ # @param [String] quota_user
3378
+ # Available to use for quota purposes for server-side applications. Can be any
3379
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3380
+ # @param [Google::Apis::RequestOptions] options
3381
+ # Request-specific options
3382
+ #
3383
+ # @yield [result, err] Result & error if block supplied
3384
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse] parsed result object
3385
+ # @yieldparam err [StandardError] error object if request failed
3386
+ #
3387
+ # @return [Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse]
3388
+ #
3389
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3390
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3391
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3392
+ 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)
3393
+ command = make_simple_command(:get, 'v1/googleAudiences', options)
3394
+ command.response_representation = Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse::Representation
3395
+ command.response_class = Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse
3396
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3397
+ command.query['filter'] = filter unless filter.nil?
3398
+ command.query['orderBy'] = order_by unless order_by.nil?
3399
+ command.query['pageSize'] = page_size unless page_size.nil?
3400
+ command.query['pageToken'] = page_token unless page_token.nil?
3401
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3402
+ command.query['fields'] = fields unless fields.nil?
3403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3404
+ execute_or_queue_command(command, &block)
3405
+ end
3406
+
3407
+ # Creates a new inventory source group. Returns the newly created inventory
3408
+ # source group if successful.
3409
+ # @param [Google::Apis::DisplayvideoV1::InventorySourceGroup] inventory_source_group_object
3410
+ # @param [Fixnum] advertiser_id
3411
+ # The ID of the advertiser that owns the inventory source group.
3412
+ # The parent partner will not have access to this group.
3413
+ # @param [Fixnum] partner_id
3414
+ # The ID of the partner that owns the inventory source group.
3415
+ # Only this partner will have write access to this group. Only advertisers
3416
+ # to which this group is explicitly shared will have read access to this
3417
+ # group.
3418
+ # @param [String] fields
3419
+ # Selector specifying which fields to include in a partial response.
3420
+ # @param [String] quota_user
3421
+ # Available to use for quota purposes for server-side applications. Can be any
3422
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3423
+ # @param [Google::Apis::RequestOptions] options
3424
+ # Request-specific options
3425
+ #
3426
+ # @yield [result, err] Result & error if block supplied
3427
+ # @yieldparam result [Google::Apis::DisplayvideoV1::InventorySourceGroup] parsed result object
3428
+ # @yieldparam err [StandardError] error object if request failed
3429
+ #
3430
+ # @return [Google::Apis::DisplayvideoV1::InventorySourceGroup]
3431
+ #
3432
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3433
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3434
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3435
+ def create_inventory_source_group(inventory_source_group_object = nil, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3436
+ command = make_simple_command(:post, 'v1/inventorySourceGroups', options)
3437
+ command.request_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
3438
+ command.request_object = inventory_source_group_object
3439
+ command.response_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
3440
+ command.response_class = Google::Apis::DisplayvideoV1::InventorySourceGroup
3441
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3442
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3443
+ command.query['fields'] = fields unless fields.nil?
3444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3445
+ execute_or_queue_command(command, &block)
3446
+ end
3447
+
3448
+ # Deletes an inventory source group.
3449
+ # @param [Fixnum] inventory_source_group_id
3450
+ # Required. The ID of the inventory source group to delete.
3451
+ # @param [Fixnum] advertiser_id
3452
+ # The ID of the advertiser that owns the inventory source group.
3453
+ # The parent partner does not have access to this group.
3454
+ # @param [Fixnum] partner_id
3455
+ # The ID of the partner that owns the inventory source group.
3456
+ # Only this partner has write access to this group.
3457
+ # @param [String] fields
3458
+ # Selector specifying which fields to include in a partial response.
3459
+ # @param [String] quota_user
3460
+ # Available to use for quota purposes for server-side applications. Can be any
3461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3462
+ # @param [Google::Apis::RequestOptions] options
3463
+ # Request-specific options
3464
+ #
3465
+ # @yield [result, err] Result & error if block supplied
3466
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
3467
+ # @yieldparam err [StandardError] error object if request failed
3468
+ #
3469
+ # @return [Google::Apis::DisplayvideoV1::Empty]
3470
+ #
3471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3474
+ def delete_inventory_source_group(inventory_source_group_id, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3475
+ command = make_simple_command(:delete, 'v1/inventorySourceGroups/{+inventorySourceGroupId}', options)
3476
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
3477
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
3478
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
3479
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3480
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3481
+ command.query['fields'] = fields unless fields.nil?
3482
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3483
+ execute_or_queue_command(command, &block)
3484
+ end
3485
+
3486
+ # Gets an inventory source group.
3487
+ # @param [Fixnum] inventory_source_group_id
3488
+ # Required. The ID of the inventory source group to fetch.
3489
+ # @param [Fixnum] advertiser_id
3490
+ # The ID of the advertiser that has access to the inventory source group.
3491
+ # If an inventory source group is partner-owned, only advertisers to which
3492
+ # the group is explicitly shared can access the group.
3493
+ # @param [Fixnum] partner_id
3494
+ # The ID of the partner that has access to the inventory source group.
3495
+ # A partner cannot access an advertiser-owned inventory source group.
3496
+ # @param [String] fields
3497
+ # Selector specifying which fields to include in a partial response.
3498
+ # @param [String] quota_user
3499
+ # Available to use for quota purposes for server-side applications. Can be any
3500
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3501
+ # @param [Google::Apis::RequestOptions] options
3502
+ # Request-specific options
3503
+ #
3504
+ # @yield [result, err] Result & error if block supplied
3505
+ # @yieldparam result [Google::Apis::DisplayvideoV1::InventorySourceGroup] parsed result object
3506
+ # @yieldparam err [StandardError] error object if request failed
3507
+ #
3508
+ # @return [Google::Apis::DisplayvideoV1::InventorySourceGroup]
3509
+ #
3510
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3511
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3512
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3513
+ def get_inventory_source_group(inventory_source_group_id, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3514
+ command = make_simple_command(:get, 'v1/inventorySourceGroups/{+inventorySourceGroupId}', options)
3515
+ command.response_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
3516
+ command.response_class = Google::Apis::DisplayvideoV1::InventorySourceGroup
3517
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
3518
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3519
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3520
+ command.query['fields'] = fields unless fields.nil?
3521
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3522
+ execute_or_queue_command(command, &block)
3523
+ end
3524
+
3525
+ # Lists inventory source groups that are accessible to the current user.
3526
+ # The order is defined by the
3527
+ # order_by parameter.
3528
+ # @param [Fixnum] advertiser_id
3529
+ # The ID of the advertiser that has access to the inventory source group.
3530
+ # If an inventory source group is partner-owned, only advertisers to which
3531
+ # the group is explicitly shared can access the group.
3532
+ # @param [String] filter
3533
+ # Allows filtering by inventory source group properties.
3534
+ # Supported syntax:
3535
+ # * Filter expressions are made up of one or more restrictions.
3536
+ # * Restrictions can be combined by the logical operator `OR`.
3537
+ # * A restriction has the form of ``field` `operator` `value``.
3538
+ # * The operator must be `EQUALS (=)`.
3539
+ # * Supported fields:
3540
+ # - `inventorySourceGroupId`
3541
+ # The length of this field should be no more than 500 characters.
3542
+ # @param [String] order_by
3543
+ # Field by which to sort the list.
3544
+ # Acceptable values are:
3545
+ # * `displayName` (default)
3546
+ # * `inventorySourceGroupId`
3547
+ # The default sorting order is ascending. To specify descending order for
3548
+ # a field, a suffix "desc" should be added to the field name. For example,
3549
+ # `displayName desc`.
3550
+ # @param [Fixnum] page_size
3551
+ # Requested page size. Must be between `1` and `100`. If unspecified will
3552
+ # default to `100`.
3553
+ # @param [String] page_token
3554
+ # A token identifying a page of results the server should return.
3555
+ # Typically, this is the value of
3556
+ # next_page_token
3557
+ # returned from the previous call to `ListInventorySources` method.
3558
+ # If not specified, the first page of results will be returned.
3559
+ # @param [Fixnum] partner_id
3560
+ # The ID of the partner that has access to the inventory source group.
3561
+ # A partner cannot access advertiser-owned inventory source groups.
3562
+ # @param [String] fields
3563
+ # Selector specifying which fields to include in a partial response.
3564
+ # @param [String] quota_user
3565
+ # Available to use for quota purposes for server-side applications. Can be any
3566
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3567
+ # @param [Google::Apis::RequestOptions] options
3568
+ # Request-specific options
3569
+ #
3570
+ # @yield [result, err] Result & error if block supplied
3571
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse] parsed result object
3572
+ # @yieldparam err [StandardError] error object if request failed
3573
+ #
3574
+ # @return [Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse]
3575
+ #
3576
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3577
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3578
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3579
+ 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)
3580
+ command = make_simple_command(:get, 'v1/inventorySourceGroups', options)
3581
+ command.response_representation = Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse::Representation
3582
+ command.response_class = Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse
3583
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3584
+ command.query['filter'] = filter unless filter.nil?
3585
+ command.query['orderBy'] = order_by unless order_by.nil?
3586
+ command.query['pageSize'] = page_size unless page_size.nil?
3587
+ command.query['pageToken'] = page_token unless page_token.nil?
3588
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3589
+ command.query['fields'] = fields unless fields.nil?
3590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3591
+ execute_or_queue_command(command, &block)
3592
+ end
3593
+
3594
+ # Updates an inventory source group. Returns the updated inventory source
3595
+ # group if successful.
3596
+ # @param [Fixnum] inventory_source_group_id
3597
+ # Output only. The unique ID of the inventory source group. Assigned by the
3598
+ # system.
3599
+ # @param [Google::Apis::DisplayvideoV1::InventorySourceGroup] inventory_source_group_object
3600
+ # @param [Fixnum] advertiser_id
3601
+ # The ID of the advertiser that owns the inventory source group.
3602
+ # The parent partner does not have access to this group.
3603
+ # @param [Fixnum] partner_id
3604
+ # The ID of the partner that owns the inventory source group.
3605
+ # Only this partner has write access to this group.
3606
+ # @param [String] update_mask
3607
+ # Required. The mask to control which fields to update.
3608
+ # @param [String] fields
3609
+ # Selector specifying which fields to include in a partial response.
3610
+ # @param [String] quota_user
3611
+ # Available to use for quota purposes for server-side applications. Can be any
3612
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3613
+ # @param [Google::Apis::RequestOptions] options
3614
+ # Request-specific options
3615
+ #
3616
+ # @yield [result, err] Result & error if block supplied
3617
+ # @yieldparam result [Google::Apis::DisplayvideoV1::InventorySourceGroup] parsed result object
3618
+ # @yieldparam err [StandardError] error object if request failed
3619
+ #
3620
+ # @return [Google::Apis::DisplayvideoV1::InventorySourceGroup]
3621
+ #
3622
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3623
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3624
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3625
+ 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)
3626
+ command = make_simple_command(:patch, 'v1/inventorySourceGroups/{inventorySourceGroupId}', options)
3627
+ command.request_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
3628
+ command.request_object = inventory_source_group_object
3629
+ command.response_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
3630
+ command.response_class = Google::Apis::DisplayvideoV1::InventorySourceGroup
3631
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
3632
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3633
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3634
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3635
+ command.query['fields'] = fields unless fields.nil?
3636
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3637
+ execute_or_queue_command(command, &block)
3638
+ end
3639
+
3640
+ # Bulk edits multiple assignments between inventory sources and a single
3641
+ # inventory source group.
3642
+ # The operation will delete the assigned inventory sources provided in
3643
+ # BulkEditAssignedInventorySourcesRequest.deleted_assigned_inventory_sources
3644
+ # and then create the assigned inventory sources provided in
3645
+ # BulkEditAssignedInventorySourcesRequest.created_assigned_inventory_sources.
3646
+ # @param [Fixnum] inventory_source_group_id
3647
+ # Required. The ID of the inventory source group to which the assignments are
3648
+ # assigned.
3649
+ # @param [Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesRequest] bulk_edit_assigned_inventory_sources_request_object
3650
+ # @param [String] fields
3651
+ # Selector specifying which fields to include in a partial response.
3652
+ # @param [String] quota_user
3653
+ # Available to use for quota purposes for server-side applications. Can be any
3654
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3655
+ # @param [Google::Apis::RequestOptions] options
3656
+ # Request-specific options
3657
+ #
3658
+ # @yield [result, err] Result & error if block supplied
3659
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesResponse] parsed result object
3660
+ # @yieldparam err [StandardError] error object if request failed
3661
+ #
3662
+ # @return [Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesResponse]
3663
+ #
3664
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3665
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3666
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3667
+ 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)
3668
+ command = make_simple_command(:post, 'v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources:bulkEdit', options)
3669
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesRequest::Representation
3670
+ command.request_object = bulk_edit_assigned_inventory_sources_request_object
3671
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesResponse::Representation
3672
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditAssignedInventorySourcesResponse
3673
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
3674
+ command.query['fields'] = fields unless fields.nil?
3675
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3676
+ execute_or_queue_command(command, &block)
3677
+ end
3678
+
3679
+ # Creates an assignment between an inventory source and an inventory source
3680
+ # group.
3681
+ # @param [Fixnum] inventory_source_group_id
3682
+ # Required. The ID of the inventory source group to which the assignment will be
3683
+ # assigned.
3684
+ # @param [Google::Apis::DisplayvideoV1::AssignedInventorySource] assigned_inventory_source_object
3685
+ # @param [Fixnum] advertiser_id
3686
+ # The ID of the advertiser that owns the parent inventory source group.
3687
+ # The parent partner will not have access to this assigned inventory
3688
+ # source.
3689
+ # @param [Fixnum] partner_id
3690
+ # The ID of the partner that owns the parent inventory source group.
3691
+ # Only this partner will have write access to this assigned inventory
3692
+ # source.
2264
3693
  # @param [String] fields
2265
3694
  # Selector specifying which fields to include in a partial response.
2266
3695
  # @param [String] quota_user
@@ -2270,39 +3699,42 @@ module Google
2270
3699
  # Request-specific options
2271
3700
  #
2272
3701
  # @yield [result, err] Result & error if block supplied
2273
- # @yieldparam result [Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse] parsed result object
3702
+ # @yieldparam result [Google::Apis::DisplayvideoV1::AssignedInventorySource] parsed result object
2274
3703
  # @yieldparam err [StandardError] error object if request failed
2275
3704
  #
2276
- # @return [Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse]
3705
+ # @return [Google::Apis::DisplayvideoV1::AssignedInventorySource]
2277
3706
  #
2278
3707
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2279
3708
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2280
3709
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2281
- 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)
2282
- command = make_simple_command(:get, 'v1/googleAudiences', options)
2283
- command.response_representation = Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse::Representation
2284
- command.response_class = Google::Apis::DisplayvideoV1::ListGoogleAudiencesResponse
3710
+ 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)
3711
+ command = make_simple_command(:post, 'v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources', options)
3712
+ command.request_representation = Google::Apis::DisplayvideoV1::AssignedInventorySource::Representation
3713
+ command.request_object = assigned_inventory_source_object
3714
+ command.response_representation = Google::Apis::DisplayvideoV1::AssignedInventorySource::Representation
3715
+ command.response_class = Google::Apis::DisplayvideoV1::AssignedInventorySource
3716
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
2285
3717
  command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
2286
- command.query['filter'] = filter unless filter.nil?
2287
- command.query['orderBy'] = order_by unless order_by.nil?
2288
- command.query['pageSize'] = page_size unless page_size.nil?
2289
- command.query['pageToken'] = page_token unless page_token.nil?
2290
3718
  command.query['partnerId'] = partner_id unless partner_id.nil?
2291
3719
  command.query['fields'] = fields unless fields.nil?
2292
3720
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2293
3721
  execute_or_queue_command(command, &block)
2294
3722
  end
2295
3723
 
2296
- # Gets an inventory source group.
3724
+ # Deletes the assignment between an inventory source and an inventory source
3725
+ # group.
2297
3726
  # @param [Fixnum] inventory_source_group_id
2298
- # Required. The ID of the inventory source group to fetch.
3727
+ # Required. The ID of the inventory source group to which this assignment is
3728
+ # assigned.
3729
+ # @param [Fixnum] assigned_inventory_source_id
3730
+ # Required. The ID of the assigned inventory source to delete.
2299
3731
  # @param [Fixnum] advertiser_id
2300
- # The ID of the advertiser that has access to the inventory source group.
2301
- # If an inventory source group is partner-owned, only advertisers to which
2302
- # the group is explicitly shared can access the group.
3732
+ # The ID of the advertiser that owns the parent inventory source group.
3733
+ # The parent partner does not have access to this assigned inventory
3734
+ # source.
2303
3735
  # @param [Fixnum] partner_id
2304
- # The ID of the partner that has access to the inventory source group.
2305
- # A partner cannot access an advertiser-owned inventory source group.
3736
+ # The ID of the partner that owns the parent inventory source group.
3737
+ # Only this partner has write access to this assigned inventory source.
2306
3738
  # @param [String] fields
2307
3739
  # Selector specifying which fields to include in a partial response.
2308
3740
  # @param [String] quota_user
@@ -2312,19 +3744,20 @@ module Google
2312
3744
  # Request-specific options
2313
3745
  #
2314
3746
  # @yield [result, err] Result & error if block supplied
2315
- # @yieldparam result [Google::Apis::DisplayvideoV1::InventorySourceGroup] parsed result object
3747
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
2316
3748
  # @yieldparam err [StandardError] error object if request failed
2317
3749
  #
2318
- # @return [Google::Apis::DisplayvideoV1::InventorySourceGroup]
3750
+ # @return [Google::Apis::DisplayvideoV1::Empty]
2319
3751
  #
2320
3752
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2321
3753
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2322
3754
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2323
- def get_inventory_source_group(inventory_source_group_id, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2324
- command = make_simple_command(:get, 'v1/inventorySourceGroups/{+inventorySourceGroupId}', options)
2325
- command.response_representation = Google::Apis::DisplayvideoV1::InventorySourceGroup::Representation
2326
- command.response_class = Google::Apis::DisplayvideoV1::InventorySourceGroup
3755
+ 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)
3756
+ command = make_simple_command(:delete, 'v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources/{+assignedInventorySourceId}', options)
3757
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
3758
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
2327
3759
  command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
3760
+ command.params['assignedInventorySourceId'] = assigned_inventory_source_id unless assigned_inventory_source_id.nil?
2328
3761
  command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
2329
3762
  command.query['partnerId'] = partner_id unless partner_id.nil?
2330
3763
  command.query['fields'] = fields unless fields.nil?
@@ -2332,43 +3765,46 @@ module Google
2332
3765
  execute_or_queue_command(command, &block)
2333
3766
  end
2334
3767
 
2335
- # Lists inventory source groups that are accessible to the current user.
2336
- # The order is defined by the
2337
- # order_by parameter.
3768
+ # Lists inventory sources assigned to an inventory source group.
3769
+ # @param [Fixnum] inventory_source_group_id
3770
+ # Required. The ID of the inventory source group to which these assignments are
3771
+ # assigned.
2338
3772
  # @param [Fixnum] advertiser_id
2339
- # The ID of the advertiser that has access to the inventory source group.
2340
- # If an inventory source group is partner-owned, only advertisers to which
2341
- # the group is explicitly shared can access the group.
3773
+ # The ID of the advertiser that has access to the assignment.
3774
+ # If the parent inventory source group is partner-owned, only advertisers
3775
+ # to which the parent group is explicitly shared can access the assigned
3776
+ # inventory source.
2342
3777
  # @param [String] filter
2343
- # Allows filtering by inventory source group properties.
3778
+ # Allows filtering by assigned inventory source fields.
2344
3779
  # Supported syntax:
2345
3780
  # * Filter expressions are made up of one or more restrictions.
2346
3781
  # * Restrictions can be combined by the logical operator `OR`.
2347
3782
  # * A restriction has the form of ``field` `operator` `value``.
2348
3783
  # * The operator must be `EQUALS (=)`.
2349
3784
  # * Supported fields:
2350
- # - `inventorySourceGroupId`
3785
+ # - `assignedInventorySourceId`
2351
3786
  # The length of this field should be no more than 500 characters.
2352
3787
  # @param [String] order_by
2353
3788
  # Field by which to sort the list.
2354
3789
  # Acceptable values are:
2355
- # * `displayName` (default)
2356
- # * `inventorySourceGroupId`
2357
- # The default sorting order is ascending. To specify descending order for
2358
- # a field, a suffix "desc" should be added to the field name. For example,
2359
- # `displayName desc`.
3790
+ # * `assignedInventorySourceId` (default)
3791
+ # The default sorting order is ascending. To specify descending order for a
3792
+ # field, a suffix " desc" should be added to the field name. Example:
3793
+ # `assignedInventorySourceId desc`.
2360
3794
  # @param [Fixnum] page_size
2361
3795
  # Requested page size. Must be between `1` and `100`. If unspecified will
2362
- # default to `100`.
3796
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
3797
+ # is specified.
2363
3798
  # @param [String] page_token
2364
3799
  # A token identifying a page of results the server should return.
2365
3800
  # Typically, this is the value of
2366
3801
  # next_page_token
2367
- # returned from the previous call to `ListInventorySources` method.
2368
- # If not specified, the first page of results will be returned.
3802
+ # returned from the previous call to `ListAssignedInventorySources`
3803
+ # method. If not specified, the first page of results will be returned.
2369
3804
  # @param [Fixnum] partner_id
2370
- # The ID of the partner that has access to the inventory source group.
2371
- # A partner cannot access advertiser-owned inventory source groups.
3805
+ # The ID of the partner that has access to the assignment.
3806
+ # If the parent inventory source group is advertiser-owned, the assignment
3807
+ # cannot be accessed via a partner.
2372
3808
  # @param [String] fields
2373
3809
  # Selector specifying which fields to include in a partial response.
2374
3810
  # @param [String] quota_user
@@ -2378,18 +3814,19 @@ module Google
2378
3814
  # Request-specific options
2379
3815
  #
2380
3816
  # @yield [result, err] Result & error if block supplied
2381
- # @yieldparam result [Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse] parsed result object
3817
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListAssignedInventorySourcesResponse] parsed result object
2382
3818
  # @yieldparam err [StandardError] error object if request failed
2383
3819
  #
2384
- # @return [Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse]
3820
+ # @return [Google::Apis::DisplayvideoV1::ListAssignedInventorySourcesResponse]
2385
3821
  #
2386
3822
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2387
3823
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2388
3824
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2389
- 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)
2390
- command = make_simple_command(:get, 'v1/inventorySourceGroups', options)
2391
- command.response_representation = Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse::Representation
2392
- command.response_class = Google::Apis::DisplayvideoV1::ListInventorySourceGroupsResponse
3825
+ 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)
3826
+ command = make_simple_command(:get, 'v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources', options)
3827
+ command.response_representation = Google::Apis::DisplayvideoV1::ListAssignedInventorySourcesResponse::Representation
3828
+ command.response_class = Google::Apis::DisplayvideoV1::ListAssignedInventorySourcesResponse
3829
+ command.params['inventorySourceGroupId'] = inventory_source_group_id unless inventory_source_group_id.nil?
2393
3830
  command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
2394
3831
  command.query['filter'] = filter unless filter.nil?
2395
3832
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -2555,6 +3992,44 @@ module Google
2555
3992
  execute_or_queue_command(command, &block)
2556
3993
  end
2557
3994
 
3995
+ # Creates a new channel. Returns the newly created channel if successful.
3996
+ # @param [Fixnum] partner_id
3997
+ # The ID of the partner that owns the created channel.
3998
+ # @param [Google::Apis::DisplayvideoV1::Channel] channel_object
3999
+ # @param [Fixnum] advertiser_id
4000
+ # The ID of the advertiser that owns the created channel.
4001
+ # @param [String] fields
4002
+ # Selector specifying which fields to include in a partial response.
4003
+ # @param [String] quota_user
4004
+ # Available to use for quota purposes for server-side applications. Can be any
4005
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4006
+ # @param [Google::Apis::RequestOptions] options
4007
+ # Request-specific options
4008
+ #
4009
+ # @yield [result, err] Result & error if block supplied
4010
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Channel] parsed result object
4011
+ # @yieldparam err [StandardError] error object if request failed
4012
+ #
4013
+ # @return [Google::Apis::DisplayvideoV1::Channel]
4014
+ #
4015
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4016
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4017
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4018
+ def create_partner_channel(partner_id, channel_object = nil, advertiser_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4019
+ command = make_simple_command(:post, 'v1/partners/{+partnerId}/channels', options)
4020
+ command.request_representation = Google::Apis::DisplayvideoV1::Channel::Representation
4021
+ command.request_object = channel_object
4022
+ command.response_representation = Google::Apis::DisplayvideoV1::Channel::Representation
4023
+ command.response_class = Google::Apis::DisplayvideoV1::Channel
4024
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4025
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4026
+ command.query['fields'] = fields unless fields.nil?
4027
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4028
+ execute_or_queue_command(command, &block)
4029
+ end
4030
+
4031
+ # Updates an existing inventory source.
4032
+ # Returns the updated inventory source if successful.
2558
4033
  # Gets a channel for a partner or advertiser.
2559
4034
  # @param [Fixnum] partner_id
2560
4035
  # The ID of the partner that owns the fetched channel.
@@ -2659,6 +4134,234 @@ module Google
2659
4134
  execute_or_queue_command(command, &block)
2660
4135
  end
2661
4136
 
4137
+ # Updates a channel. Returns the updated channel if successful.
4138
+ # @param [Fixnum] partner_id
4139
+ # The ID of the partner that owns the created channel.
4140
+ # @param [Fixnum] channel_id
4141
+ # Output only. The unique ID of the channel. Assigned by the system.
4142
+ # @param [Google::Apis::DisplayvideoV1::Channel] channel_object
4143
+ # @param [Fixnum] advertiser_id
4144
+ # The ID of the advertiser that owns the created channel.
4145
+ # @param [String] update_mask
4146
+ # Required. The mask to control which fields to update.
4147
+ # @param [String] fields
4148
+ # Selector specifying which fields to include in a partial response.
4149
+ # @param [String] quota_user
4150
+ # Available to use for quota purposes for server-side applications. Can be any
4151
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4152
+ # @param [Google::Apis::RequestOptions] options
4153
+ # Request-specific options
4154
+ #
4155
+ # @yield [result, err] Result & error if block supplied
4156
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Channel] parsed result object
4157
+ # @yieldparam err [StandardError] error object if request failed
4158
+ #
4159
+ # @return [Google::Apis::DisplayvideoV1::Channel]
4160
+ #
4161
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4162
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4163
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4164
+ 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)
4165
+ command = make_simple_command(:patch, 'v1/partners/{+partnerId}/channels/{channelId}', options)
4166
+ command.request_representation = Google::Apis::DisplayvideoV1::Channel::Representation
4167
+ command.request_object = channel_object
4168
+ command.response_representation = Google::Apis::DisplayvideoV1::Channel::Representation
4169
+ command.response_class = Google::Apis::DisplayvideoV1::Channel
4170
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4171
+ command.params['channelId'] = channel_id unless channel_id.nil?
4172
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4173
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4174
+ command.query['fields'] = fields unless fields.nil?
4175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4176
+ execute_or_queue_command(command, &block)
4177
+ end
4178
+
4179
+ # Bulk edits sites under a single channel.
4180
+ # The operation will delete the sites provided in
4181
+ # BulkEditSitesRequest.deleted_sites and then create the sites
4182
+ # provided in BulkEditSitesRequest.created_sites.
4183
+ # @param [Fixnum] partner_id
4184
+ # The ID of the partner that owns the parent channel.
4185
+ # @param [Fixnum] channel_id
4186
+ # Required. The ID of the parent channel to which the sites belong.
4187
+ # @param [Google::Apis::DisplayvideoV1::BulkEditSitesRequest] bulk_edit_sites_request_object
4188
+ # @param [String] fields
4189
+ # Selector specifying which fields to include in a partial response.
4190
+ # @param [String] quota_user
4191
+ # Available to use for quota purposes for server-side applications. Can be any
4192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4193
+ # @param [Google::Apis::RequestOptions] options
4194
+ # Request-specific options
4195
+ #
4196
+ # @yield [result, err] Result & error if block supplied
4197
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditSitesResponse] parsed result object
4198
+ # @yieldparam err [StandardError] error object if request failed
4199
+ #
4200
+ # @return [Google::Apis::DisplayvideoV1::BulkEditSitesResponse]
4201
+ #
4202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4205
+ def bulk_partner_channel_site_edit(partner_id, channel_id, bulk_edit_sites_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4206
+ command = make_simple_command(:post, 'v1/partners/{partnerId}/channels/{+channelId}/sites:bulkEdit', options)
4207
+ command.request_representation = Google::Apis::DisplayvideoV1::BulkEditSitesRequest::Representation
4208
+ command.request_object = bulk_edit_sites_request_object
4209
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkEditSitesResponse::Representation
4210
+ command.response_class = Google::Apis::DisplayvideoV1::BulkEditSitesResponse
4211
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4212
+ command.params['channelId'] = channel_id unless channel_id.nil?
4213
+ command.query['fields'] = fields unless fields.nil?
4214
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4215
+ execute_or_queue_command(command, &block)
4216
+ end
4217
+
4218
+ # Creates a site in a channel.
4219
+ # @param [Fixnum] partner_id
4220
+ # The ID of the partner that owns the parent channel.
4221
+ # @param [Fixnum] channel_id
4222
+ # Required. The ID of the parent channel in which the site will be created.
4223
+ # @param [Google::Apis::DisplayvideoV1::Site] site_object
4224
+ # @param [Fixnum] advertiser_id
4225
+ # The ID of the advertiser that owns the parent channel.
4226
+ # @param [String] fields
4227
+ # Selector specifying which fields to include in a partial response.
4228
+ # @param [String] quota_user
4229
+ # Available to use for quota purposes for server-side applications. Can be any
4230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4231
+ # @param [Google::Apis::RequestOptions] options
4232
+ # Request-specific options
4233
+ #
4234
+ # @yield [result, err] Result & error if block supplied
4235
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Site] parsed result object
4236
+ # @yieldparam err [StandardError] error object if request failed
4237
+ #
4238
+ # @return [Google::Apis::DisplayvideoV1::Site]
4239
+ #
4240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4243
+ def create_partner_channel_site(partner_id, channel_id, site_object = nil, advertiser_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4244
+ command = make_simple_command(:post, 'v1/partners/{partnerId}/channels/{+channelId}/sites', options)
4245
+ command.request_representation = Google::Apis::DisplayvideoV1::Site::Representation
4246
+ command.request_object = site_object
4247
+ command.response_representation = Google::Apis::DisplayvideoV1::Site::Representation
4248
+ command.response_class = Google::Apis::DisplayvideoV1::Site
4249
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4250
+ command.params['channelId'] = channel_id unless channel_id.nil?
4251
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4252
+ command.query['fields'] = fields unless fields.nil?
4253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4254
+ execute_or_queue_command(command, &block)
4255
+ end
4256
+
4257
+ # Deletes a site from a channel.
4258
+ # @param [Fixnum] partner_id
4259
+ # The ID of the partner that owns the parent channel.
4260
+ # @param [Fixnum] channel_id
4261
+ # Required. The ID of the parent channel to which the site belongs.
4262
+ # @param [String] url_or_app_id
4263
+ # Required. The URL or app ID of the site to delete.
4264
+ # @param [Fixnum] advertiser_id
4265
+ # The ID of the advertiser that owns the parent channel.
4266
+ # @param [String] fields
4267
+ # Selector specifying which fields to include in a partial response.
4268
+ # @param [String] quota_user
4269
+ # Available to use for quota purposes for server-side applications. Can be any
4270
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4271
+ # @param [Google::Apis::RequestOptions] options
4272
+ # Request-specific options
4273
+ #
4274
+ # @yield [result, err] Result & error if block supplied
4275
+ # @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
4276
+ # @yieldparam err [StandardError] error object if request failed
4277
+ #
4278
+ # @return [Google::Apis::DisplayvideoV1::Empty]
4279
+ #
4280
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4281
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4282
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4283
+ def delete_partner_channel_site(partner_id, channel_id, url_or_app_id, advertiser_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4284
+ command = make_simple_command(:delete, 'v1/partners/{partnerId}/channels/{+channelId}/sites/{+urlOrAppId}', options)
4285
+ command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
4286
+ command.response_class = Google::Apis::DisplayvideoV1::Empty
4287
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4288
+ command.params['channelId'] = channel_id unless channel_id.nil?
4289
+ command.params['urlOrAppId'] = url_or_app_id unless url_or_app_id.nil?
4290
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4291
+ command.query['fields'] = fields unless fields.nil?
4292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4293
+ execute_or_queue_command(command, &block)
4294
+ end
4295
+
4296
+ # Lists sites in a channel.
4297
+ # @param [Fixnum] partner_id
4298
+ # The ID of the partner that owns the parent channel.
4299
+ # @param [Fixnum] channel_id
4300
+ # Required. The ID of the parent channel to which the requested sites belong.
4301
+ # @param [Fixnum] advertiser_id
4302
+ # The ID of the advertiser that owns the parent channel.
4303
+ # @param [String] filter
4304
+ # Allows filtering by site fields.
4305
+ # Supported syntax:
4306
+ # * Filter expressions for site currently can only contain at most one
4307
+ # * restriction.
4308
+ # * A restriction has the form of ``field` `operator` `value``.
4309
+ # * The operator must be `CONTAINS (:)`.
4310
+ # * Supported fields:
4311
+ # - `urlOrAppId`
4312
+ # Examples:
4313
+ # * All sites for which the URL or app ID contains "google":
4314
+ # `urlOrAppId : "google"`
4315
+ # @param [String] order_by
4316
+ # Field by which to sort the list.
4317
+ # Acceptable values are:
4318
+ # * `urlOrAppId` (default)
4319
+ # The default sorting order is ascending. To specify descending order for a
4320
+ # field, a suffix " desc" should be added to the field name. Example:
4321
+ # `urlOrAppId desc`.
4322
+ # @param [Fixnum] page_size
4323
+ # Requested page size. Must be between `1` and `100`. If unspecified will
4324
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
4325
+ # is specified.
4326
+ # @param [String] page_token
4327
+ # A token identifying a page of results the server should return.
4328
+ # Typically, this is the value of
4329
+ # next_page_token returned from the
4330
+ # previous call to `ListSites` method. If not specified, the first page
4331
+ # of results will be returned.
4332
+ # @param [String] fields
4333
+ # Selector specifying which fields to include in a partial response.
4334
+ # @param [String] quota_user
4335
+ # Available to use for quota purposes for server-side applications. Can be any
4336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4337
+ # @param [Google::Apis::RequestOptions] options
4338
+ # Request-specific options
4339
+ #
4340
+ # @yield [result, err] Result & error if block supplied
4341
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListSitesResponse] parsed result object
4342
+ # @yieldparam err [StandardError] error object if request failed
4343
+ #
4344
+ # @return [Google::Apis::DisplayvideoV1::ListSitesResponse]
4345
+ #
4346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4349
+ 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)
4350
+ command = make_simple_command(:get, 'v1/partners/{+partnerId}/channels/{+channelId}/sites', options)
4351
+ command.response_representation = Google::Apis::DisplayvideoV1::ListSitesResponse::Representation
4352
+ command.response_class = Google::Apis::DisplayvideoV1::ListSitesResponse
4353
+ command.params['partnerId'] = partner_id unless partner_id.nil?
4354
+ command.params['channelId'] = channel_id unless channel_id.nil?
4355
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4356
+ command.query['filter'] = filter unless filter.nil?
4357
+ command.query['orderBy'] = order_by unless order_by.nil?
4358
+ command.query['pageSize'] = page_size unless page_size.nil?
4359
+ command.query['pageToken'] = page_token unless page_token.nil?
4360
+ command.query['fields'] = fields unless fields.nil?
4361
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4362
+ execute_or_queue_command(command, &block)
4363
+ end
4364
+
2662
4365
  # Creates an SDF Download Task. Returns an
2663
4366
  # Operation.
2664
4367
  # An SDF Download Task is a long-running, asynchronous operation. The