@google-ads/admanager 0.5.1 → 0.6.0

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 (342) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +25 -2
  3. package/build/protos/google/ads/admanager/v1/ad_break_messages.proto +1 -1
  4. package/build/protos/google/ads/admanager/v1/ad_break_service.proto +5 -4
  5. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto +26 -1
  6. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +9 -1
  7. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +20 -8
  8. package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +1 -1
  9. package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +4 -3
  10. package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +23 -6
  11. package/build/protos/google/ads/admanager/v1/application_enums.proto +156 -0
  12. package/build/protos/google/ads/admanager/v1/application_messages.proto +51 -4
  13. package/build/protos/google/ads/admanager/v1/application_service.proto +198 -4
  14. package/build/protos/google/ads/admanager/v1/applied_label.proto +1 -1
  15. package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +1 -1
  16. package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +10 -4
  17. package/build/protos/google/ads/admanager/v1/bandwidth_group_messages.proto +1 -1
  18. package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +11 -4
  19. package/build/protos/google/ads/admanager/v1/browser_language_messages.proto +1 -1
  20. package/build/protos/google/ads/admanager/v1/browser_language_service.proto +11 -4
  21. package/build/protos/google/ads/admanager/v1/browser_messages.proto +1 -1
  22. package/build/protos/google/ads/admanager/v1/browser_service.proto +13 -4
  23. package/build/protos/google/ads/admanager/v1/child_publisher_messages.proto +43 -0
  24. package/build/protos/google/ads/admanager/v1/cms_metadata_key_enums.proto +1 -1
  25. package/build/protos/google/ads/admanager/v1/cms_metadata_key_messages.proto +1 -1
  26. package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +81 -4
  27. package/build/protos/google/ads/admanager/v1/cms_metadata_value_enums.proto +1 -1
  28. package/build/protos/google/ads/admanager/v1/cms_metadata_value_messages.proto +1 -1
  29. package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +83 -4
  30. package/build/protos/google/ads/admanager/v1/company_enums.proto +1 -1
  31. package/build/protos/google/ads/admanager/v1/company_messages.proto +36 -23
  32. package/build/protos/google/ads/admanager/v1/company_service.proto +22 -4
  33. package/build/protos/google/ads/admanager/v1/contact_enums.proto +1 -1
  34. package/build/protos/google/ads/admanager/v1/contact_messages.proto +1 -1
  35. package/build/protos/google/ads/admanager/v1/contact_service.proto +22 -6
  36. package/build/protos/google/ads/admanager/v1/content_bundle_messages.proto +1 -1
  37. package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +11 -4
  38. package/build/protos/google/ads/admanager/v1/content_label_messages.proto +1 -1
  39. package/build/protos/google/ads/admanager/v1/content_label_service.proto +11 -4
  40. package/build/protos/google/ads/admanager/v1/content_messages.proto +2 -2
  41. package/build/protos/google/ads/admanager/v1/content_service.proto +11 -4
  42. package/build/protos/google/ads/admanager/v1/creative_template_enums.proto +1 -1
  43. package/build/protos/google/ads/admanager/v1/creative_template_messages.proto +1 -1
  44. package/build/protos/google/ads/admanager/v1/creative_template_service.proto +18 -4
  45. package/build/protos/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto +1 -1
  46. package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +1 -1
  47. package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +3 -4
  48. package/build/protos/google/ads/admanager/v1/custom_field_service.proto +20 -6
  49. package/build/protos/google/ads/admanager/v1/custom_field_value.proto +1 -1
  50. package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +1 -1
  51. package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +3 -3
  52. package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +17 -6
  53. package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +1 -1
  54. package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +1 -1
  55. package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +15 -4
  56. package/build/protos/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto +1 -1
  57. package/build/protos/google/ads/admanager/v1/device_capability_messages.proto +1 -1
  58. package/build/protos/google/ads/admanager/v1/device_capability_service.proto +11 -4
  59. package/build/protos/google/ads/admanager/v1/device_category_messages.proto +1 -1
  60. package/build/protos/google/ads/admanager/v1/device_category_service.proto +11 -4
  61. package/build/protos/google/ads/admanager/v1/device_manufacturer_messages.proto +1 -1
  62. package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +11 -4
  63. package/build/protos/google/ads/admanager/v1/early_ad_break_notification_enums.proto +1 -1
  64. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +3 -3
  65. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +5 -4
  66. package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +1 -1
  67. package/build/protos/google/ads/admanager/v1/exchange_syndication_product_enum.proto +1 -1
  68. package/build/protos/google/ads/admanager/v1/frequency_cap.proto +1 -1
  69. package/build/protos/google/ads/admanager/v1/geo_target_messages.proto +1 -1
  70. package/build/protos/google/ads/admanager/v1/geo_target_service.proto +14 -4
  71. package/build/protos/google/ads/admanager/v1/goal.proto +1 -1
  72. package/build/protos/google/ads/admanager/v1/goal_enums.proto +10 -1
  73. package/build/protos/google/ads/admanager/v1/label_enums.proto +56 -0
  74. package/build/protos/google/ads/admanager/v1/label_messages.proto +19 -1
  75. package/build/protos/google/ads/admanager/v1/label_service.proto +313 -0
  76. package/build/protos/google/ads/admanager/v1/line_item_enums.proto +1 -1
  77. package/build/protos/google/ads/admanager/v1/line_item_messages.proto +5 -4
  78. package/build/protos/google/ads/admanager/v1/line_item_service.proto +16 -4
  79. package/build/protos/google/ads/admanager/v1/{company_type_enum.proto → linked_device_enums.proto} +15 -24
  80. package/build/protos/google/ads/admanager/v1/linked_device_messages.proto +58 -0
  81. package/build/protos/google/ads/admanager/v1/linked_device_service.proto +138 -0
  82. package/build/protos/google/ads/admanager/v1/live_stream_event_messages.proto +1 -1
  83. package/build/protos/google/ads/admanager/v1/mcm_earnings_messages.proto +124 -0
  84. package/build/protos/google/ads/admanager/v1/mcm_earnings_service.proto +115 -0
  85. package/build/protos/google/ads/admanager/v1/mcm_enums.proto +97 -0
  86. package/build/protos/google/ads/admanager/v1/mobile_carrier_messages.proto +1 -1
  87. package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +12 -4
  88. package/build/protos/google/ads/admanager/v1/mobile_device_messages.proto +1 -1
  89. package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +12 -4
  90. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_messages.proto +1 -1
  91. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +12 -4
  92. package/build/protos/google/ads/admanager/v1/network_messages.proto +1 -1
  93. package/build/protos/google/ads/admanager/v1/network_service.proto +3 -2
  94. package/build/protos/google/ads/admanager/v1/operating_system_messages.proto +1 -1
  95. package/build/protos/google/ads/admanager/v1/operating_system_service.proto +11 -4
  96. package/build/protos/google/ads/admanager/v1/operating_system_version_messages.proto +1 -1
  97. package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +13 -4
  98. package/build/protos/google/ads/admanager/v1/order_enums.proto +1 -1
  99. package/build/protos/google/ads/admanager/v1/order_messages.proto +5 -5
  100. package/build/protos/google/ads/admanager/v1/order_service.proto +28 -4
  101. package/build/protos/google/ads/admanager/v1/placement_enums.proto +1 -1
  102. package/build/protos/google/ads/admanager/v1/placement_messages.proto +4 -3
  103. package/build/protos/google/ads/admanager/v1/placement_service.proto +18 -6
  104. package/build/protos/google/ads/admanager/v1/private_auction_deal_messages.proto +3 -3
  105. package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +24 -6
  106. package/build/protos/google/ads/admanager/v1/private_auction_messages.proto +3 -3
  107. package/build/protos/google/ads/admanager/v1/private_auction_service.proto +5 -4
  108. package/build/protos/google/ads/admanager/v1/private_marketplace_enums.proto +4 -1
  109. package/build/protos/google/ads/admanager/v1/programmatic_buyer_messages.proto +1 -1
  110. package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +17 -4
  111. package/build/protos/google/ads/admanager/v1/report_definition.proto +1944 -916
  112. package/build/protos/google/ads/admanager/v1/report_messages.proto +7 -5
  113. package/build/protos/google/ads/admanager/v1/report_service.proto +5 -4
  114. package/build/protos/google/ads/admanager/v1/report_value.proto +1 -1
  115. package/build/protos/google/ads/admanager/v1/request_platform_enum.proto +1 -1
  116. package/build/protos/google/ads/admanager/v1/rich_media_ads_company_enums.proto +53 -0
  117. package/build/protos/google/ads/admanager/v1/rich_media_ads_company_messages.proto +57 -0
  118. package/build/protos/google/ads/admanager/v1/rich_media_ads_company_service.proto +143 -0
  119. package/build/protos/google/ads/admanager/v1/role_enums.proto +1 -1
  120. package/build/protos/google/ads/admanager/v1/role_messages.proto +4 -3
  121. package/build/protos/google/ads/admanager/v1/role_service.proto +14 -4
  122. package/build/protos/google/ads/admanager/v1/site_enums.proto +1 -1
  123. package/build/protos/google/ads/admanager/v1/site_messages.proto +1 -1
  124. package/build/protos/google/ads/admanager/v1/site_service.proto +16 -6
  125. package/build/protos/google/ads/admanager/v1/size.proto +1 -1
  126. package/build/protos/google/ads/admanager/v1/size_type_enum.proto +1 -1
  127. package/build/protos/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto +1 -1
  128. package/build/protos/google/ads/admanager/v1/targeting.proto +4 -4
  129. package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +3 -3
  130. package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +3 -2
  131. package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +1 -1
  132. package/build/protos/google/ads/admanager/v1/team_enums.proto +1 -1
  133. package/build/protos/google/ads/admanager/v1/team_messages.proto +1 -1
  134. package/build/protos/google/ads/admanager/v1/team_service.proto +18 -6
  135. package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +1 -1
  136. package/build/protos/google/ads/admanager/v1/user_messages.proto +4 -3
  137. package/build/protos/google/ads/admanager/v1/user_service.proto +3 -2
  138. package/build/protos/google/ads/admanager/v1/video_position_enum.proto +1 -1
  139. package/build/protos/google/ads/admanager/v1/web_property.proto +1 -1
  140. package/build/protos/protos.d.ts +15212 -8355
  141. package/build/protos/protos.js +42222 -24288
  142. package/build/protos/protos.json +5571 -3409
  143. package/build/src/index.d.ts +13 -1
  144. package/build/src/index.js +10 -2
  145. package/build/src/index.js.map +1 -1
  146. package/build/src/v1/ad_break_service_client.d.ts +121 -49
  147. package/build/src/v1/ad_break_service_client.js +263 -82
  148. package/build/src/v1/ad_break_service_client.js.map +1 -1
  149. package/build/src/v1/ad_break_service_proto_list.json +13 -1
  150. package/build/src/v1/ad_review_center_ad_service_client.d.ts +185 -95
  151. package/build/src/v1/ad_review_center_ad_service_client.js +290 -106
  152. package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
  153. package/build/src/v1/ad_review_center_ad_service_proto_list.json +13 -1
  154. package/build/src/v1/ad_unit_service_client.d.ts +206 -86
  155. package/build/src/v1/ad_unit_service_client.js +376 -121
  156. package/build/src/v1/ad_unit_service_client.js.map +1 -1
  157. package/build/src/v1/ad_unit_service_proto_list.json +13 -1
  158. package/build/src/v1/application_service_client.d.ts +316 -44
  159. package/build/src/v1/application_service_client.js +515 -68
  160. package/build/src/v1/application_service_client.js.map +1 -1
  161. package/build/src/v1/application_service_client_config.json +24 -0
  162. package/build/src/v1/application_service_proto_list.json +13 -1
  163. package/build/src/v1/audience_segment_service_client.d.ts +131 -44
  164. package/build/src/v1/audience_segment_service_client.js +237 -69
  165. package/build/src/v1/audience_segment_service_client.js.map +1 -1
  166. package/build/src/v1/audience_segment_service_proto_list.json +13 -1
  167. package/build/src/v1/bandwidth_group_service_client.d.ts +134 -44
  168. package/build/src/v1/bandwidth_group_service_client.js +239 -69
  169. package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
  170. package/build/src/v1/bandwidth_group_service_proto_list.json +13 -1
  171. package/build/src/v1/browser_language_service_client.d.ts +134 -44
  172. package/build/src/v1/browser_language_service_client.js +239 -69
  173. package/build/src/v1/browser_language_service_client.js.map +1 -1
  174. package/build/src/v1/browser_language_service_proto_list.json +13 -1
  175. package/build/src/v1/browser_service_client.d.ts +140 -44
  176. package/build/src/v1/browser_service_client.js +237 -67
  177. package/build/src/v1/browser_service_client.js.map +1 -1
  178. package/build/src/v1/browser_service_proto_list.json +13 -1
  179. package/build/src/v1/cms_metadata_key_service_client.d.ts +192 -44
  180. package/build/src/v1/cms_metadata_key_service_client.js +329 -69
  181. package/build/src/v1/cms_metadata_key_service_client.js.map +1 -1
  182. package/build/src/v1/cms_metadata_key_service_client_config.json +8 -0
  183. package/build/src/v1/cms_metadata_key_service_proto_list.json +13 -1
  184. package/build/src/v1/cms_metadata_value_service_client.d.ts +196 -44
  185. package/build/src/v1/cms_metadata_value_service_client.js +331 -69
  186. package/build/src/v1/cms_metadata_value_service_client.js.map +1 -1
  187. package/build/src/v1/cms_metadata_value_service_client_config.json +8 -0
  188. package/build/src/v1/cms_metadata_value_service_proto_list.json +13 -1
  189. package/build/src/v1/company_service_client.d.ts +167 -44
  190. package/build/src/v1/company_service_client.js +255 -67
  191. package/build/src/v1/company_service_client.js.map +1 -1
  192. package/build/src/v1/company_service_proto_list.json +13 -1
  193. package/build/src/v1/contact_service_client.d.ts +163 -46
  194. package/build/src/v1/contact_service_client.js +311 -92
  195. package/build/src/v1/contact_service_client.js.map +1 -1
  196. package/build/src/v1/contact_service_proto_list.json +13 -1
  197. package/build/src/v1/content_bundle_service_client.d.ts +134 -44
  198. package/build/src/v1/content_bundle_service_client.js +237 -68
  199. package/build/src/v1/content_bundle_service_client.js.map +1 -1
  200. package/build/src/v1/content_bundle_service_proto_list.json +13 -1
  201. package/build/src/v1/content_label_service_client.d.ts +134 -44
  202. package/build/src/v1/content_label_service_client.js +237 -68
  203. package/build/src/v1/content_label_service_client.js.map +1 -1
  204. package/build/src/v1/content_label_service_proto_list.json +13 -1
  205. package/build/src/v1/content_service_client.d.ts +134 -44
  206. package/build/src/v1/content_service_client.js +233 -67
  207. package/build/src/v1/content_service_client.js.map +1 -1
  208. package/build/src/v1/content_service_proto_list.json +13 -1
  209. package/build/src/v1/creative_template_service_client.d.ts +155 -44
  210. package/build/src/v1/creative_template_service_client.js +253 -69
  211. package/build/src/v1/creative_template_service_client.js.map +1 -1
  212. package/build/src/v1/creative_template_service_proto_list.json +13 -1
  213. package/build/src/v1/custom_field_service_client.d.ts +161 -50
  214. package/build/src/v1/custom_field_service_client.js +335 -104
  215. package/build/src/v1/custom_field_service_client.js.map +1 -1
  216. package/build/src/v1/custom_field_service_proto_list.json +13 -1
  217. package/build/src/v1/custom_targeting_key_service_client.d.ts +154 -52
  218. package/build/src/v1/custom_targeting_key_service_client.js +332 -105
  219. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
  220. package/build/src/v1/custom_targeting_key_service_proto_list.json +13 -1
  221. package/build/src/v1/custom_targeting_value_service_client.d.ts +150 -48
  222. package/build/src/v1/custom_targeting_value_service_client.js +248 -69
  223. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
  224. package/build/src/v1/custom_targeting_value_service_proto_list.json +13 -1
  225. package/build/src/v1/device_capability_service_client.d.ts +134 -44
  226. package/build/src/v1/device_capability_service_client.js +239 -69
  227. package/build/src/v1/device_capability_service_client.js.map +1 -1
  228. package/build/src/v1/device_capability_service_proto_list.json +13 -1
  229. package/build/src/v1/device_category_service_client.d.ts +134 -44
  230. package/build/src/v1/device_category_service_client.js +239 -69
  231. package/build/src/v1/device_category_service_client.js.map +1 -1
  232. package/build/src/v1/device_category_service_proto_list.json +13 -1
  233. package/build/src/v1/device_manufacturer_service_client.d.ts +134 -44
  234. package/build/src/v1/device_manufacturer_service_client.js +240 -69
  235. package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
  236. package/build/src/v1/device_manufacturer_service_proto_list.json +13 -1
  237. package/build/src/v1/entity_signals_mapping_service_client.d.ts +121 -49
  238. package/build/src/v1/entity_signals_mapping_service_client.js +280 -89
  239. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
  240. package/build/src/v1/entity_signals_mapping_service_proto_list.json +13 -1
  241. package/build/src/v1/gapic_metadata.json +302 -0
  242. package/build/src/v1/geo_target_service_client.d.ts +143 -44
  243. package/build/src/v1/geo_target_service_client.js +239 -67
  244. package/build/src/v1/geo_target_service_client.js.map +1 -1
  245. package/build/src/v1/geo_target_service_proto_list.json +13 -1
  246. package/build/src/v1/index.d.ts +4 -0
  247. package/build/src/v1/index.js +9 -1
  248. package/build/src/v1/index.js.map +1 -1
  249. package/build/src/v1/label_service_client.d.ts +1631 -0
  250. package/build/src/v1/label_service_client.js +2466 -0
  251. package/build/src/v1/label_service_client.js.map +1 -0
  252. package/build/src/v1/label_service_client_config.json +58 -0
  253. package/build/src/v1/label_service_proto_list.json +139 -0
  254. package/build/src/v1/line_item_service_client.d.ts +149 -44
  255. package/build/src/v1/line_item_service_client.js +243 -67
  256. package/build/src/v1/line_item_service_client.js.map +1 -1
  257. package/build/src/v1/line_item_service_proto_list.json +13 -1
  258. package/build/src/v1/linked_device_service_client.d.ts +1465 -0
  259. package/build/src/v1/linked_device_service_client.js +2200 -0
  260. package/build/src/v1/linked_device_service_client.js.map +1 -0
  261. package/build/src/v1/linked_device_service_client_config.json +34 -0
  262. package/build/src/v1/linked_device_service_proto_list.json +139 -0
  263. package/build/src/v1/mcm_earnings_service_client.d.ts +1426 -0
  264. package/build/src/v1/mcm_earnings_service_client.js +2144 -0
  265. package/build/src/v1/mcm_earnings_service_client.js.map +1 -0
  266. package/build/src/v1/mcm_earnings_service_client_config.json +30 -0
  267. package/build/src/v1/mcm_earnings_service_proto_list.json +139 -0
  268. package/build/src/v1/mobile_carrier_service_client.d.ts +137 -44
  269. package/build/src/v1/mobile_carrier_service_client.js +239 -68
  270. package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
  271. package/build/src/v1/mobile_carrier_service_proto_list.json +13 -1
  272. package/build/src/v1/mobile_device_service_client.d.ts +137 -44
  273. package/build/src/v1/mobile_device_service_client.js +239 -68
  274. package/build/src/v1/mobile_device_service_client.js.map +1 -1
  275. package/build/src/v1/mobile_device_service_proto_list.json +13 -1
  276. package/build/src/v1/mobile_device_submodel_service_client.d.ts +140 -47
  277. package/build/src/v1/mobile_device_submodel_service_client.js +242 -69
  278. package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
  279. package/build/src/v1/mobile_device_submodel_service_proto_list.json +13 -1
  280. package/build/src/v1/network_service_client.d.ts +101 -29
  281. package/build/src/v1/network_service_client.js +206 -55
  282. package/build/src/v1/network_service_client.js.map +1 -1
  283. package/build/src/v1/network_service_proto_list.json +13 -1
  284. package/build/src/v1/operating_system_service_client.d.ts +134 -44
  285. package/build/src/v1/operating_system_service_client.js +239 -69
  286. package/build/src/v1/operating_system_service_client.js.map +1 -1
  287. package/build/src/v1/operating_system_service_proto_list.json +13 -1
  288. package/build/src/v1/operating_system_version_service_client.d.ts +143 -47
  289. package/build/src/v1/operating_system_version_service_client.js +244 -69
  290. package/build/src/v1/operating_system_version_service_client.js.map +1 -1
  291. package/build/src/v1/operating_system_version_service_proto_list.json +13 -1
  292. package/build/src/v1/order_service_client.d.ts +190 -49
  293. package/build/src/v1/order_service_client.js +267 -67
  294. package/build/src/v1/order_service_client.js.map +1 -1
  295. package/build/src/v1/order_service_proto_list.json +13 -1
  296. package/build/src/v1/placement_service_client.d.ts +153 -48
  297. package/build/src/v1/placement_service_client.js +345 -110
  298. package/build/src/v1/placement_service_client.js.map +1 -1
  299. package/build/src/v1/placement_service_proto_list.json +13 -1
  300. package/build/src/v1/private_auction_deal_service_client.d.ts +173 -50
  301. package/build/src/v1/private_auction_deal_service_client.js +290 -81
  302. package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
  303. package/build/src/v1/private_auction_deal_service_proto_list.json +13 -1
  304. package/build/src/v1/private_auction_service_client.d.ts +115 -43
  305. package/build/src/v1/private_auction_service_client.js +251 -77
  306. package/build/src/v1/private_auction_service_client.js.map +1 -1
  307. package/build/src/v1/private_auction_service_proto_list.json +13 -1
  308. package/build/src/v1/programmatic_buyer_service_client.d.ts +152 -44
  309. package/build/src/v1/programmatic_buyer_service_client.js +252 -69
  310. package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
  311. package/build/src/v1/programmatic_buyer_service_proto_list.json +13 -1
  312. package/build/src/v1/report_service_client.d.ts +174 -102
  313. package/build/src/v1/report_service_client.js +322 -122
  314. package/build/src/v1/report_service_client.js.map +1 -1
  315. package/build/src/v1/report_service_proto_list.json +13 -1
  316. package/build/src/v1/rich_media_ads_company_service_client.d.ts +1475 -0
  317. package/build/src/v1/rich_media_ads_company_service_client.js +2208 -0
  318. package/build/src/v1/rich_media_ads_company_service_client.js.map +1 -0
  319. package/build/src/v1/rich_media_ads_company_service_client_config.json +34 -0
  320. package/build/src/v1/rich_media_ads_company_service_proto_list.json +139 -0
  321. package/build/src/v1/role_service_client.d.ts +143 -44
  322. package/build/src/v1/role_service_client.js +239 -67
  323. package/build/src/v1/role_service_client.js.map +1 -1
  324. package/build/src/v1/role_service_proto_list.json +13 -1
  325. package/build/src/v1/site_service_client.d.ts +146 -47
  326. package/build/src/v1/site_service_client.js +327 -104
  327. package/build/src/v1/site_service_client.js.map +1 -1
  328. package/build/src/v1/site_service_proto_list.json +13 -1
  329. package/build/src/v1/taxonomy_category_service_client.d.ts +112 -40
  330. package/build/src/v1/taxonomy_category_service_client.js +223 -65
  331. package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
  332. package/build/src/v1/taxonomy_category_service_proto_list.json +13 -1
  333. package/build/src/v1/team_service_client.d.ts +151 -46
  334. package/build/src/v1/team_service_client.js +331 -104
  335. package/build/src/v1/team_service_client.js.map +1 -1
  336. package/build/src/v1/team_service_proto_list.json +13 -1
  337. package/build/src/v1/user_service_client.d.ts +72 -0
  338. package/build/src/v1/user_service_client.js +195 -49
  339. package/build/src/v1/user_service_client.js.map +1 -1
  340. package/build/src/v1/user_service_proto_list.json +13 -1
  341. package/package.json +1 -1
  342. package/build/protos/google/ads/admanager/v1/company_credit_status_enum.proto +0 -97
@@ -96,11 +96,19 @@ class PlacementServiceClient {
96
96
  constructor(opts, gaxInstance) {
97
97
  // Ensure that options include all the required fields.
98
98
  const staticMembers = this.constructor;
99
- if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
99
+ if (opts?.universe_domain &&
100
+ opts?.universeDomain &&
101
+ opts?.universe_domain !== opts?.universeDomain) {
100
102
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
101
103
  }
102
- const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
103
- this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
104
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
105
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
106
+ : undefined;
107
+ this._universeDomain =
108
+ opts?.universeDomain ??
109
+ opts?.universe_domain ??
110
+ universeDomainEnvVar ??
111
+ 'googleapis.com';
104
112
  this._servicePath = 'admanager.' + this._universeDomain;
105
113
  const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
106
114
  this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
@@ -113,7 +121,8 @@ class PlacementServiceClient {
113
121
  else {
114
122
  opts.fallback = opts.fallback ?? true;
115
123
  }
116
- const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
124
+ const fallback = opts?.fallback ??
125
+ (typeof window !== 'undefined' && typeof window?.fetch === 'function');
117
126
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
118
127
  // Request numeric enum values if REST transport is used.
119
128
  opts.numericEnums = true;
@@ -142,10 +151,7 @@ class PlacementServiceClient {
142
151
  this.auth.defaultScopes = staticMembers.scopes;
143
152
  }
144
153
  // Determine the client header string.
145
- const clientHeader = [
146
- `gax/${this._gaxModule.version}`,
147
- `gapic/${version}`,
148
- ];
154
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
149
155
  if (typeof process === 'object' && 'versions' in process) {
150
156
  clientHeader.push(`gl-node/${process.versions.node}`);
151
157
  }
@@ -175,6 +181,7 @@ class PlacementServiceClient {
175
181
  bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
176
182
  browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
177
183
  browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
184
+ childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
178
185
  cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
179
186
  cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
180
187
  companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
@@ -193,6 +200,7 @@ class PlacementServiceClient {
193
200
  geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
194
201
  labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
195
202
  lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
203
+ linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
196
204
  liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
197
205
  mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
198
206
  mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
@@ -206,6 +214,7 @@ class PlacementServiceClient {
206
214
  privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
207
215
  programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
208
216
  reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
217
+ richMediaAdsCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company}'),
209
218
  rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
210
219
  sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
211
220
  taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
@@ -217,7 +226,7 @@ class PlacementServiceClient {
217
226
  // (e.g. 50 results at a time, with tokens to get subsequent
218
227
  // pages). Denote the keys used for pagination and results.
219
228
  this.descriptors.page = {
220
- listPlacements: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'placements')
229
+ listPlacements: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'placements'),
221
230
  };
222
231
  // Put together the default options sent with requests.
223
232
  this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.PlacementService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -246,15 +255,25 @@ class PlacementServiceClient {
246
255
  }
247
256
  // Put together the "service stub" for
248
257
  // google.ads.admanager.v1.PlacementService.
249
- this.placementServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
250
- this._protos.lookupService('google.ads.admanager.v1.PlacementService') :
251
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
252
- this._protos.google.ads.admanager.v1.PlacementService, this._opts, this._providedCustomServicePath);
258
+ this.placementServiceStub = this._gaxGrpc.createStub(this._opts.fallback
259
+ ? this._protos.lookupService('google.ads.admanager.v1.PlacementService')
260
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
261
+ this._protos.google.ads.admanager.v1.PlacementService, this._opts, this._providedCustomServicePath);
253
262
  // Iterate over each of the methods that the service provides
254
263
  // and create an API call method for each.
255
- const placementServiceStubMethods = ['getPlacement', 'listPlacements', 'createPlacement', 'updatePlacement', 'batchCreatePlacements', 'batchUpdatePlacements', 'batchActivatePlacements', 'batchDeactivatePlacements', 'batchArchivePlacements'];
264
+ const placementServiceStubMethods = [
265
+ 'getPlacement',
266
+ 'listPlacements',
267
+ 'createPlacement',
268
+ 'updatePlacement',
269
+ 'batchCreatePlacements',
270
+ 'batchUpdatePlacements',
271
+ 'batchActivatePlacements',
272
+ 'batchDeactivatePlacements',
273
+ 'batchArchivePlacements',
274
+ ];
256
275
  for (const methodName of placementServiceStubMethods) {
257
- const callPromise = this.placementServiceStub.then(stub => (...args) => {
276
+ const callPromise = this.placementServiceStub.then((stub) => (...args) => {
258
277
  if (this._terminated) {
259
278
  return Promise.reject('The client has already been closed.');
260
279
  }
@@ -263,8 +282,7 @@ class PlacementServiceClient {
263
282
  }, (err) => () => {
264
283
  throw err;
265
284
  });
266
- const descriptor = this.descriptors.page[methodName] ||
267
- undefined;
285
+ const descriptor = this.descriptors.page[methodName] || undefined;
268
286
  const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
269
287
  this.innerApiCalls[methodName] = apiCall;
270
288
  }
@@ -276,7 +294,8 @@ class PlacementServiceClient {
276
294
  * @returns {string} The DNS address for this service.
277
295
  */
278
296
  static get servicePath() {
279
- if (typeof process === 'object' && typeof process.emitWarning === 'function') {
297
+ if (typeof process === 'object' &&
298
+ typeof process.emitWarning === 'function') {
280
299
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
281
300
  }
282
301
  return 'admanager.googleapis.com';
@@ -287,7 +306,8 @@ class PlacementServiceClient {
287
306
  * @returns {string} The DNS address for this service.
288
307
  */
289
308
  static get apiEndpoint() {
290
- if (typeof process === 'object' && typeof process.emitWarning === 'function') {
309
+ if (typeof process === 'object' &&
310
+ typeof process.emitWarning === 'function') {
291
311
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
292
312
  }
293
313
  return 'admanager.googleapis.com';
@@ -316,7 +336,8 @@ class PlacementServiceClient {
316
336
  */
317
337
  static get scopes() {
318
338
  return [
319
- 'https://www.googleapis.com/auth/admanager'
339
+ 'https://www.googleapis.com/auth/admanager',
340
+ 'https://www.googleapis.com/auth/admanager.readonly',
320
341
  ];
321
342
  }
322
343
  /**
@@ -343,10 +364,13 @@ class PlacementServiceClient {
343
364
  options = options || {};
344
365
  options.otherArgs = options.otherArgs || {};
345
366
  options.otherArgs.headers = options.otherArgs.headers || {};
346
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
347
- 'name': request.name ?? '',
367
+ options.otherArgs.headers['x-goog-request-params'] =
368
+ this._gaxModule.routingHeader.fromParams({
369
+ name: request.name ?? '',
370
+ });
371
+ this.initialize().catch((err) => {
372
+ throw err;
348
373
  });
349
- this.initialize().catch(err => { throw err; });
350
374
  this._log.info('getPlacement request %j', request);
351
375
  const wrappedCallback = callback
352
376
  ? (error, response, options, rawResponse) => {
@@ -354,12 +378,16 @@ class PlacementServiceClient {
354
378
  callback(error, response, options, rawResponse); // We verified callback above.
355
379
  }
356
380
  : undefined;
357
- return this.innerApiCalls.getPlacement(request, options, wrappedCallback)
381
+ return this.innerApiCalls
382
+ .getPlacement(request, options, wrappedCallback)
358
383
  ?.then(([response, options, rawResponse]) => {
359
384
  this._log.info('getPlacement response %j', response);
360
385
  return [response, options, rawResponse];
361
- }).catch((error) => {
362
- if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
386
+ })
387
+ .catch((error) => {
388
+ if (error &&
389
+ 'statusDetails' in error &&
390
+ error.statusDetails instanceof Array) {
363
391
  const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
364
392
  error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
365
393
  }
@@ -379,10 +407,13 @@ class PlacementServiceClient {
379
407
  options = options || {};
380
408
  options.otherArgs = options.otherArgs || {};
381
409
  options.otherArgs.headers = options.otherArgs.headers || {};
382
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
383
- 'parent': request.parent ?? '',
410
+ options.otherArgs.headers['x-goog-request-params'] =
411
+ this._gaxModule.routingHeader.fromParams({
412
+ parent: request.parent ?? '',
413
+ });
414
+ this.initialize().catch((err) => {
415
+ throw err;
384
416
  });
385
- this.initialize().catch(err => { throw err; });
386
417
  this._log.info('createPlacement request %j', request);
387
418
  const wrappedCallback = callback
388
419
  ? (error, response, options, rawResponse) => {
@@ -390,12 +421,16 @@ class PlacementServiceClient {
390
421
  callback(error, response, options, rawResponse); // We verified callback above.
391
422
  }
392
423
  : undefined;
393
- return this.innerApiCalls.createPlacement(request, options, wrappedCallback)
424
+ return this.innerApiCalls
425
+ .createPlacement(request, options, wrappedCallback)
394
426
  ?.then(([response, options, rawResponse]) => {
395
427
  this._log.info('createPlacement response %j', response);
396
428
  return [response, options, rawResponse];
397
- }).catch((error) => {
398
- if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
429
+ })
430
+ .catch((error) => {
431
+ if (error &&
432
+ 'statusDetails' in error &&
433
+ error.statusDetails instanceof Array) {
399
434
  const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
400
435
  error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
401
436
  }
@@ -415,10 +450,13 @@ class PlacementServiceClient {
415
450
  options = options || {};
416
451
  options.otherArgs = options.otherArgs || {};
417
452
  options.otherArgs.headers = options.otherArgs.headers || {};
418
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
419
- 'placement.name': request.placement.name ?? '',
453
+ options.otherArgs.headers['x-goog-request-params'] =
454
+ this._gaxModule.routingHeader.fromParams({
455
+ 'placement.name': request.placement.name ?? '',
456
+ });
457
+ this.initialize().catch((err) => {
458
+ throw err;
420
459
  });
421
- this.initialize().catch(err => { throw err; });
422
460
  this._log.info('updatePlacement request %j', request);
423
461
  const wrappedCallback = callback
424
462
  ? (error, response, options, rawResponse) => {
@@ -426,12 +464,16 @@ class PlacementServiceClient {
426
464
  callback(error, response, options, rawResponse); // We verified callback above.
427
465
  }
428
466
  : undefined;
429
- return this.innerApiCalls.updatePlacement(request, options, wrappedCallback)
467
+ return this.innerApiCalls
468
+ .updatePlacement(request, options, wrappedCallback)
430
469
  ?.then(([response, options, rawResponse]) => {
431
470
  this._log.info('updatePlacement response %j', response);
432
471
  return [response, options, rawResponse];
433
- }).catch((error) => {
434
- if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
472
+ })
473
+ .catch((error) => {
474
+ if (error &&
475
+ 'statusDetails' in error &&
476
+ error.statusDetails instanceof Array) {
435
477
  const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
436
478
  error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
437
479
  }
@@ -451,10 +493,13 @@ class PlacementServiceClient {
451
493
  options = options || {};
452
494
  options.otherArgs = options.otherArgs || {};
453
495
  options.otherArgs.headers = options.otherArgs.headers || {};
454
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
455
- 'parent': request.parent ?? '',
496
+ options.otherArgs.headers['x-goog-request-params'] =
497
+ this._gaxModule.routingHeader.fromParams({
498
+ parent: request.parent ?? '',
499
+ });
500
+ this.initialize().catch((err) => {
501
+ throw err;
456
502
  });
457
- this.initialize().catch(err => { throw err; });
458
503
  this._log.info('batchCreatePlacements request %j', request);
459
504
  const wrappedCallback = callback
460
505
  ? (error, response, options, rawResponse) => {
@@ -462,12 +507,16 @@ class PlacementServiceClient {
462
507
  callback(error, response, options, rawResponse); // We verified callback above.
463
508
  }
464
509
  : undefined;
465
- return this.innerApiCalls.batchCreatePlacements(request, options, wrappedCallback)
510
+ return this.innerApiCalls
511
+ .batchCreatePlacements(request, options, wrappedCallback)
466
512
  ?.then(([response, options, rawResponse]) => {
467
513
  this._log.info('batchCreatePlacements response %j', response);
468
514
  return [response, options, rawResponse];
469
- }).catch((error) => {
470
- if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
515
+ })
516
+ .catch((error) => {
517
+ if (error &&
518
+ 'statusDetails' in error &&
519
+ error.statusDetails instanceof Array) {
471
520
  const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
472
521
  error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
473
522
  }
@@ -487,10 +536,13 @@ class PlacementServiceClient {
487
536
  options = options || {};
488
537
  options.otherArgs = options.otherArgs || {};
489
538
  options.otherArgs.headers = options.otherArgs.headers || {};
490
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
491
- 'parent': request.parent ?? '',
539
+ options.otherArgs.headers['x-goog-request-params'] =
540
+ this._gaxModule.routingHeader.fromParams({
541
+ parent: request.parent ?? '',
542
+ });
543
+ this.initialize().catch((err) => {
544
+ throw err;
492
545
  });
493
- this.initialize().catch(err => { throw err; });
494
546
  this._log.info('batchUpdatePlacements request %j', request);
495
547
  const wrappedCallback = callback
496
548
  ? (error, response, options, rawResponse) => {
@@ -498,12 +550,16 @@ class PlacementServiceClient {
498
550
  callback(error, response, options, rawResponse); // We verified callback above.
499
551
  }
500
552
  : undefined;
501
- return this.innerApiCalls.batchUpdatePlacements(request, options, wrappedCallback)
553
+ return this.innerApiCalls
554
+ .batchUpdatePlacements(request, options, wrappedCallback)
502
555
  ?.then(([response, options, rawResponse]) => {
503
556
  this._log.info('batchUpdatePlacements response %j', response);
504
557
  return [response, options, rawResponse];
505
- }).catch((error) => {
506
- if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
558
+ })
559
+ .catch((error) => {
560
+ if (error &&
561
+ 'statusDetails' in error &&
562
+ error.statusDetails instanceof Array) {
507
563
  const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
508
564
  error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
509
565
  }
@@ -523,10 +579,13 @@ class PlacementServiceClient {
523
579
  options = options || {};
524
580
  options.otherArgs = options.otherArgs || {};
525
581
  options.otherArgs.headers = options.otherArgs.headers || {};
526
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
527
- 'parent': request.parent ?? '',
582
+ options.otherArgs.headers['x-goog-request-params'] =
583
+ this._gaxModule.routingHeader.fromParams({
584
+ parent: request.parent ?? '',
585
+ });
586
+ this.initialize().catch((err) => {
587
+ throw err;
528
588
  });
529
- this.initialize().catch(err => { throw err; });
530
589
  this._log.info('batchActivatePlacements request %j', request);
531
590
  const wrappedCallback = callback
532
591
  ? (error, response, options, rawResponse) => {
@@ -534,12 +593,16 @@ class PlacementServiceClient {
534
593
  callback(error, response, options, rawResponse); // We verified callback above.
535
594
  }
536
595
  : undefined;
537
- return this.innerApiCalls.batchActivatePlacements(request, options, wrappedCallback)
596
+ return this.innerApiCalls
597
+ .batchActivatePlacements(request, options, wrappedCallback)
538
598
  ?.then(([response, options, rawResponse]) => {
539
599
  this._log.info('batchActivatePlacements response %j', response);
540
600
  return [response, options, rawResponse];
541
- }).catch((error) => {
542
- if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
601
+ })
602
+ .catch((error) => {
603
+ if (error &&
604
+ 'statusDetails' in error &&
605
+ error.statusDetails instanceof Array) {
543
606
  const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
544
607
  error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
545
608
  }
@@ -559,10 +622,13 @@ class PlacementServiceClient {
559
622
  options = options || {};
560
623
  options.otherArgs = options.otherArgs || {};
561
624
  options.otherArgs.headers = options.otherArgs.headers || {};
562
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
563
- 'parent': request.parent ?? '',
625
+ options.otherArgs.headers['x-goog-request-params'] =
626
+ this._gaxModule.routingHeader.fromParams({
627
+ parent: request.parent ?? '',
628
+ });
629
+ this.initialize().catch((err) => {
630
+ throw err;
564
631
  });
565
- this.initialize().catch(err => { throw err; });
566
632
  this._log.info('batchDeactivatePlacements request %j', request);
567
633
  const wrappedCallback = callback
568
634
  ? (error, response, options, rawResponse) => {
@@ -570,12 +636,16 @@ class PlacementServiceClient {
570
636
  callback(error, response, options, rawResponse); // We verified callback above.
571
637
  }
572
638
  : undefined;
573
- return this.innerApiCalls.batchDeactivatePlacements(request, options, wrappedCallback)
639
+ return this.innerApiCalls
640
+ .batchDeactivatePlacements(request, options, wrappedCallback)
574
641
  ?.then(([response, options, rawResponse]) => {
575
642
  this._log.info('batchDeactivatePlacements response %j', response);
576
643
  return [response, options, rawResponse];
577
- }).catch((error) => {
578
- if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
644
+ })
645
+ .catch((error) => {
646
+ if (error &&
647
+ 'statusDetails' in error &&
648
+ error.statusDetails instanceof Array) {
579
649
  const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
580
650
  error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
581
651
  }
@@ -595,10 +665,13 @@ class PlacementServiceClient {
595
665
  options = options || {};
596
666
  options.otherArgs = options.otherArgs || {};
597
667
  options.otherArgs.headers = options.otherArgs.headers || {};
598
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
599
- 'parent': request.parent ?? '',
668
+ options.otherArgs.headers['x-goog-request-params'] =
669
+ this._gaxModule.routingHeader.fromParams({
670
+ parent: request.parent ?? '',
671
+ });
672
+ this.initialize().catch((err) => {
673
+ throw err;
600
674
  });
601
- this.initialize().catch(err => { throw err; });
602
675
  this._log.info('batchArchivePlacements request %j', request);
603
676
  const wrappedCallback = callback
604
677
  ? (error, response, options, rawResponse) => {
@@ -606,12 +679,16 @@ class PlacementServiceClient {
606
679
  callback(error, response, options, rawResponse); // We verified callback above.
607
680
  }
608
681
  : undefined;
609
- return this.innerApiCalls.batchArchivePlacements(request, options, wrappedCallback)
682
+ return this.innerApiCalls
683
+ .batchArchivePlacements(request, options, wrappedCallback)
610
684
  ?.then(([response, options, rawResponse]) => {
611
685
  this._log.info('batchArchivePlacements response %j', response);
612
686
  return [response, options, rawResponse];
613
- }).catch((error) => {
614
- if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
687
+ })
688
+ .catch((error) => {
689
+ if (error &&
690
+ 'statusDetails' in error &&
691
+ error.statusDetails instanceof Array) {
615
692
  const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
616
693
  error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
617
694
  }
@@ -631,10 +708,13 @@ class PlacementServiceClient {
631
708
  options = options || {};
632
709
  options.otherArgs = options.otherArgs || {};
633
710
  options.otherArgs.headers = options.otherArgs.headers || {};
634
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
635
- 'parent': request.parent ?? '',
711
+ options.otherArgs.headers['x-goog-request-params'] =
712
+ this._gaxModule.routingHeader.fromParams({
713
+ parent: request.parent ?? '',
714
+ });
715
+ this.initialize().catch((err) => {
716
+ throw err;
636
717
  });
637
- this.initialize().catch(err => { throw err; });
638
718
  const wrappedCallback = callback
639
719
  ? (error, values, nextPageRequest, rawResponse) => {
640
720
  this._log.info('listPlacements values %j', values);
@@ -669,8 +749,19 @@ class PlacementServiceClient {
669
749
  * match the call that provided the page token.
670
750
  * @param {string} [request.filter]
671
751
  * Optional. Expression to filter the response.
672
- * See syntax details at
673
- * https://developers.google.com/ad-manager/api/beta/filters
752
+ * See syntax details at
753
+ * https://developers.google.com/ad-manager/api/beta/filters
754
+ *
755
+ * <b>Filterable fields:</b>
756
+ * <ul style="list-style-type:none">
757
+ * <li><code>description</code></li>
758
+ * <li><code>displayName</code></li>
759
+ * <li><code>name</code></li>
760
+ * <li><code>placementCode</code></li>
761
+ * <li><code>status</code></li>
762
+ * <li><code>targetedAdUnits</code></li>
763
+ * <li><code>updateTime</code></li>
764
+ * </ul>
674
765
  * @param {string} [request.orderBy]
675
766
  * Optional. Expression to specify sorting order.
676
767
  * See syntax details at
@@ -693,12 +784,15 @@ class PlacementServiceClient {
693
784
  options = options || {};
694
785
  options.otherArgs = options.otherArgs || {};
695
786
  options.otherArgs.headers = options.otherArgs.headers || {};
696
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
697
- 'parent': request.parent ?? '',
698
- });
787
+ options.otherArgs.headers['x-goog-request-params'] =
788
+ this._gaxModule.routingHeader.fromParams({
789
+ parent: request.parent ?? '',
790
+ });
699
791
  const defaultCallSettings = this._defaults['listPlacements'];
700
792
  const callSettings = defaultCallSettings.merge(options);
701
- this.initialize().catch(err => { throw err; });
793
+ this.initialize().catch((err) => {
794
+ throw err;
795
+ });
702
796
  this._log.info('listPlacements stream %j', request);
703
797
  return this.descriptors.page.listPlacements.createStream(this.innerApiCalls.listPlacements, request, callSettings);
704
798
  }
@@ -724,8 +818,19 @@ class PlacementServiceClient {
724
818
  * match the call that provided the page token.
725
819
  * @param {string} [request.filter]
726
820
  * Optional. Expression to filter the response.
727
- * See syntax details at
728
- * https://developers.google.com/ad-manager/api/beta/filters
821
+ * See syntax details at
822
+ * https://developers.google.com/ad-manager/api/beta/filters
823
+ *
824
+ * <b>Filterable fields:</b>
825
+ * <ul style="list-style-type:none">
826
+ * <li><code>description</code></li>
827
+ * <li><code>displayName</code></li>
828
+ * <li><code>name</code></li>
829
+ * <li><code>placementCode</code></li>
830
+ * <li><code>status</code></li>
831
+ * <li><code>targetedAdUnits</code></li>
832
+ * <li><code>updateTime</code></li>
833
+ * </ul>
729
834
  * @param {string} [request.orderBy]
730
835
  * Optional. Expression to specify sorting order.
731
836
  * See syntax details at
@@ -749,12 +854,15 @@ class PlacementServiceClient {
749
854
  options = options || {};
750
855
  options.otherArgs = options.otherArgs || {};
751
856
  options.otherArgs.headers = options.otherArgs.headers || {};
752
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
753
- 'parent': request.parent ?? '',
754
- });
857
+ options.otherArgs.headers['x-goog-request-params'] =
858
+ this._gaxModule.routingHeader.fromParams({
859
+ parent: request.parent ?? '',
860
+ });
755
861
  const defaultCallSettings = this._defaults['listPlacements'];
756
862
  const callSettings = defaultCallSettings.merge(options);
757
- this.initialize().catch(err => { throw err; });
863
+ this.initialize().catch((err) => {
864
+ throw err;
865
+ });
758
866
  this._log.info('listPlacements iterate %j', request);
759
867
  return this.descriptors.page.listPlacements.asyncIterate(this.innerApiCalls['listPlacements'], request, callSettings);
760
868
  }
@@ -784,7 +892,8 @@ class PlacementServiceClient {
784
892
  * @returns {string} A string representing the network_code.
785
893
  */
786
894
  matchNetworkCodeFromAdBreakName(adBreakName) {
787
- return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
895
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
896
+ .network_code;
788
897
  }
789
898
  /**
790
899
  * Parse the asset_key from AdBreak resource.
@@ -905,7 +1014,8 @@ class PlacementServiceClient {
905
1014
  * @returns {string} A string representing the network_code.
906
1015
  */
907
1016
  matchNetworkCodeFromApplicationName(applicationName) {
908
- return this.pathTemplates.applicationPathTemplate.match(applicationName).network_code;
1017
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
1018
+ .network_code;
909
1019
  }
910
1020
  /**
911
1021
  * Parse the application from Application resource.
@@ -915,7 +1025,8 @@ class PlacementServiceClient {
915
1025
  * @returns {string} A string representing the application.
916
1026
  */
917
1027
  matchApplicationFromApplicationName(applicationName) {
918
- return this.pathTemplates.applicationPathTemplate.match(applicationName).application;
1028
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
1029
+ .application;
919
1030
  }
920
1031
  /**
921
1032
  * Return a fully-qualified audienceSegment resource name string.
@@ -1004,7 +1115,8 @@ class PlacementServiceClient {
1004
1115
  * @returns {string} A string representing the network_code.
1005
1116
  */
1006
1117
  matchNetworkCodeFromBrowserName(browserName) {
1007
- return this.pathTemplates.browserPathTemplate.match(browserName).network_code;
1118
+ return this.pathTemplates.browserPathTemplate.match(browserName)
1119
+ .network_code;
1008
1120
  }
1009
1121
  /**
1010
1122
  * Parse the browser from Browser resource.
@@ -1049,6 +1161,39 @@ class PlacementServiceClient {
1049
1161
  matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
1050
1162
  return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
1051
1163
  }
1164
+ /**
1165
+ * Return a fully-qualified childPublisher resource name string.
1166
+ *
1167
+ * @param {string} network_code
1168
+ * @param {string} child_publisher
1169
+ * @returns {string} Resource name string.
1170
+ */
1171
+ childPublisherPath(networkCode, childPublisher) {
1172
+ return this.pathTemplates.childPublisherPathTemplate.render({
1173
+ network_code: networkCode,
1174
+ child_publisher: childPublisher,
1175
+ });
1176
+ }
1177
+ /**
1178
+ * Parse the network_code from ChildPublisher resource.
1179
+ *
1180
+ * @param {string} childPublisherName
1181
+ * A fully-qualified path representing ChildPublisher resource.
1182
+ * @returns {string} A string representing the network_code.
1183
+ */
1184
+ matchNetworkCodeFromChildPublisherName(childPublisherName) {
1185
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
1186
+ }
1187
+ /**
1188
+ * Parse the child_publisher from ChildPublisher resource.
1189
+ *
1190
+ * @param {string} childPublisherName
1191
+ * A fully-qualified path representing ChildPublisher resource.
1192
+ * @returns {string} A string representing the child_publisher.
1193
+ */
1194
+ matchChildPublisherFromChildPublisherName(childPublisherName) {
1195
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
1196
+ }
1052
1197
  /**
1053
1198
  * Return a fully-qualified cmsMetadataKey resource name string.
1054
1199
  *
@@ -1136,7 +1281,8 @@ class PlacementServiceClient {
1136
1281
  * @returns {string} A string representing the network_code.
1137
1282
  */
1138
1283
  matchNetworkCodeFromCompanyName(companyName) {
1139
- return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
1284
+ return this.pathTemplates.companyPathTemplate.match(companyName)
1285
+ .network_code;
1140
1286
  }
1141
1287
  /**
1142
1288
  * Parse the company from Company resource.
@@ -1169,7 +1315,8 @@ class PlacementServiceClient {
1169
1315
  * @returns {string} A string representing the network_code.
1170
1316
  */
1171
1317
  matchNetworkCodeFromContactName(contactName) {
1172
- return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
1318
+ return this.pathTemplates.contactPathTemplate.match(contactName)
1319
+ .network_code;
1173
1320
  }
1174
1321
  /**
1175
1322
  * Parse the contact from Contact resource.
@@ -1202,7 +1349,8 @@ class PlacementServiceClient {
1202
1349
  * @returns {string} A string representing the network_code.
1203
1350
  */
1204
1351
  matchNetworkCodeFromContentName(contentName) {
1205
- return this.pathTemplates.contentPathTemplate.match(contentName).network_code;
1352
+ return this.pathTemplates.contentPathTemplate.match(contentName)
1353
+ .network_code;
1206
1354
  }
1207
1355
  /**
1208
1356
  * Parse the content from Content resource.
@@ -1235,7 +1383,8 @@ class PlacementServiceClient {
1235
1383
  * @returns {string} A string representing the network_code.
1236
1384
  */
1237
1385
  matchNetworkCodeFromContentBundleName(contentBundleName) {
1238
- return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).network_code;
1386
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1387
+ .network_code;
1239
1388
  }
1240
1389
  /**
1241
1390
  * Parse the content_bundle from ContentBundle resource.
@@ -1245,7 +1394,8 @@ class PlacementServiceClient {
1245
1394
  * @returns {string} A string representing the content_bundle.
1246
1395
  */
1247
1396
  matchContentBundleFromContentBundleName(contentBundleName) {
1248
- return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).content_bundle;
1397
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1398
+ .content_bundle;
1249
1399
  }
1250
1400
  /**
1251
1401
  * Return a fully-qualified contentLabel resource name string.
@@ -1268,7 +1418,8 @@ class PlacementServiceClient {
1268
1418
  * @returns {string} A string representing the network_code.
1269
1419
  */
1270
1420
  matchNetworkCodeFromContentLabelName(contentLabelName) {
1271
- return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).network_code;
1421
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1422
+ .network_code;
1272
1423
  }
1273
1424
  /**
1274
1425
  * Parse the content_label from ContentLabel resource.
@@ -1278,7 +1429,8 @@ class PlacementServiceClient {
1278
1429
  * @returns {string} A string representing the content_label.
1279
1430
  */
1280
1431
  matchContentLabelFromContentLabelName(contentLabelName) {
1281
- return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).content_label;
1432
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1433
+ .content_label;
1282
1434
  }
1283
1435
  /**
1284
1436
  * Return a fully-qualified creativeTemplate resource name string.
@@ -1334,7 +1486,8 @@ class PlacementServiceClient {
1334
1486
  * @returns {string} A string representing the network_code.
1335
1487
  */
1336
1488
  matchNetworkCodeFromCustomFieldName(customFieldName) {
1337
- return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
1489
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1490
+ .network_code;
1338
1491
  }
1339
1492
  /**
1340
1493
  * Parse the custom_field from CustomField resource.
@@ -1344,7 +1497,8 @@ class PlacementServiceClient {
1344
1497
  * @returns {string} A string representing the custom_field.
1345
1498
  */
1346
1499
  matchCustomFieldFromCustomFieldName(customFieldName) {
1347
- return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
1500
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1501
+ .custom_field;
1348
1502
  }
1349
1503
  /**
1350
1504
  * Return a fully-qualified customTargetingKey resource name string.
@@ -1565,7 +1719,8 @@ class PlacementServiceClient {
1565
1719
  * @returns {string} A string representing the network_code.
1566
1720
  */
1567
1721
  matchNetworkCodeFromGeoTargetName(geoTargetName) {
1568
- return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).network_code;
1722
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1723
+ .network_code;
1569
1724
  }
1570
1725
  /**
1571
1726
  * Parse the geo_target from GeoTarget resource.
@@ -1575,7 +1730,8 @@ class PlacementServiceClient {
1575
1730
  * @returns {string} A string representing the geo_target.
1576
1731
  */
1577
1732
  matchGeoTargetFromGeoTargetName(geoTargetName) {
1578
- return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).geo_target;
1733
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1734
+ .geo_target;
1579
1735
  }
1580
1736
  /**
1581
1737
  * Return a fully-qualified label resource name string.
@@ -1631,7 +1787,8 @@ class PlacementServiceClient {
1631
1787
  * @returns {string} A string representing the network_code.
1632
1788
  */
1633
1789
  matchNetworkCodeFromLineItemName(lineItemName) {
1634
- return this.pathTemplates.lineItemPathTemplate.match(lineItemName).network_code;
1790
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1791
+ .network_code;
1635
1792
  }
1636
1793
  /**
1637
1794
  * Parse the line_item from LineItem resource.
@@ -1641,7 +1798,43 @@ class PlacementServiceClient {
1641
1798
  * @returns {string} A string representing the line_item.
1642
1799
  */
1643
1800
  matchLineItemFromLineItemName(lineItemName) {
1644
- return this.pathTemplates.lineItemPathTemplate.match(lineItemName).line_item;
1801
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1802
+ .line_item;
1803
+ }
1804
+ /**
1805
+ * Return a fully-qualified linkedDevice resource name string.
1806
+ *
1807
+ * @param {string} network_code
1808
+ * @param {string} linked_device
1809
+ * @returns {string} Resource name string.
1810
+ */
1811
+ linkedDevicePath(networkCode, linkedDevice) {
1812
+ return this.pathTemplates.linkedDevicePathTemplate.render({
1813
+ network_code: networkCode,
1814
+ linked_device: linkedDevice,
1815
+ });
1816
+ }
1817
+ /**
1818
+ * Parse the network_code from LinkedDevice resource.
1819
+ *
1820
+ * @param {string} linkedDeviceName
1821
+ * A fully-qualified path representing LinkedDevice resource.
1822
+ * @returns {string} A string representing the network_code.
1823
+ */
1824
+ matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
1825
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1826
+ .network_code;
1827
+ }
1828
+ /**
1829
+ * Parse the linked_device from LinkedDevice resource.
1830
+ *
1831
+ * @param {string} linkedDeviceName
1832
+ * A fully-qualified path representing LinkedDevice resource.
1833
+ * @returns {string} A string representing the linked_device.
1834
+ */
1835
+ matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
1836
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1837
+ .linked_device;
1645
1838
  }
1646
1839
  /**
1647
1840
  * Return a fully-qualified liveStreamEvent resource name string.
@@ -1697,7 +1890,8 @@ class PlacementServiceClient {
1697
1890
  * @returns {string} A string representing the network_code.
1698
1891
  */
1699
1892
  matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
1700
- return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).network_code;
1893
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1894
+ .network_code;
1701
1895
  }
1702
1896
  /**
1703
1897
  * Parse the mobile_carrier from MobileCarrier resource.
@@ -1707,7 +1901,8 @@ class PlacementServiceClient {
1707
1901
  * @returns {string} A string representing the mobile_carrier.
1708
1902
  */
1709
1903
  matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
1710
- return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).mobile_carrier;
1904
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1905
+ .mobile_carrier;
1711
1906
  }
1712
1907
  /**
1713
1908
  * Return a fully-qualified mobileDevice resource name string.
@@ -1730,7 +1925,8 @@ class PlacementServiceClient {
1730
1925
  * @returns {string} A string representing the network_code.
1731
1926
  */
1732
1927
  matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
1733
- return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).network_code;
1928
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1929
+ .network_code;
1734
1930
  }
1735
1931
  /**
1736
1932
  * Parse the mobile_device from MobileDevice resource.
@@ -1740,7 +1936,8 @@ class PlacementServiceClient {
1740
1936
  * @returns {string} A string representing the mobile_device.
1741
1937
  */
1742
1938
  matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
1743
- return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).mobile_device;
1939
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1940
+ .mobile_device;
1744
1941
  }
1745
1942
  /**
1746
1943
  * Return a fully-qualified mobileDeviceSubmodel resource name string.
@@ -1794,7 +1991,8 @@ class PlacementServiceClient {
1794
1991
  * @returns {string} A string representing the network_code.
1795
1992
  */
1796
1993
  matchNetworkCodeFromNetworkName(networkName) {
1797
- return this.pathTemplates.networkPathTemplate.match(networkName).network_code;
1994
+ return this.pathTemplates.networkPathTemplate.match(networkName)
1995
+ .network_code;
1798
1996
  }
1799
1997
  /**
1800
1998
  * Return a fully-qualified operatingSystem resource name string.
@@ -1916,7 +2114,8 @@ class PlacementServiceClient {
1916
2114
  * @returns {string} A string representing the network_code.
1917
2115
  */
1918
2116
  matchNetworkCodeFromPlacementName(placementName) {
1919
- return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
2117
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2118
+ .network_code;
1920
2119
  }
1921
2120
  /**
1922
2121
  * Parse the placement from Placement resource.
@@ -1926,7 +2125,8 @@ class PlacementServiceClient {
1926
2125
  * @returns {string} A string representing the placement.
1927
2126
  */
1928
2127
  matchPlacementFromPlacementName(placementName) {
1929
- return this.pathTemplates.placementPathTemplate.match(placementName).placement;
2128
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2129
+ .placement;
1930
2130
  }
1931
2131
  /**
1932
2132
  * Return a fully-qualified privateAuction resource name string.
@@ -2060,6 +2260,39 @@ class PlacementServiceClient {
2060
2260
  matchReportFromReportName(reportName) {
2061
2261
  return this.pathTemplates.reportPathTemplate.match(reportName).report;
2062
2262
  }
2263
+ /**
2264
+ * Return a fully-qualified richMediaAdsCompany resource name string.
2265
+ *
2266
+ * @param {string} network_code
2267
+ * @param {string} rich_media_ads_company
2268
+ * @returns {string} Resource name string.
2269
+ */
2270
+ richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
2271
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
2272
+ network_code: networkCode,
2273
+ rich_media_ads_company: richMediaAdsCompany,
2274
+ });
2275
+ }
2276
+ /**
2277
+ * Parse the network_code from RichMediaAdsCompany resource.
2278
+ *
2279
+ * @param {string} richMediaAdsCompanyName
2280
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2281
+ * @returns {string} A string representing the network_code.
2282
+ */
2283
+ matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2284
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
2285
+ }
2286
+ /**
2287
+ * Parse the rich_media_ads_company from RichMediaAdsCompany resource.
2288
+ *
2289
+ * @param {string} richMediaAdsCompanyName
2290
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2291
+ * @returns {string} A string representing the rich_media_ads_company.
2292
+ */
2293
+ matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2294
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
2295
+ }
2063
2296
  /**
2064
2297
  * Return a fully-qualified role resource name string.
2065
2298
  *
@@ -2246,7 +2479,8 @@ class PlacementServiceClient {
2246
2479
  * @returns {string} A string representing the network_code.
2247
2480
  */
2248
2481
  matchNetworkCodeFromWebPropertyName(webPropertyName) {
2249
- return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).network_code;
2482
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2483
+ .network_code;
2250
2484
  }
2251
2485
  /**
2252
2486
  * Parse the web_property from WebProperty resource.
@@ -2256,7 +2490,8 @@ class PlacementServiceClient {
2256
2490
  * @returns {string} A string representing the web_property.
2257
2491
  */
2258
2492
  matchWebPropertyFromWebPropertyName(webPropertyName) {
2259
- return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).web_property;
2493
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2494
+ .web_property;
2260
2495
  }
2261
2496
  /**
2262
2497
  * Terminate the gRPC channel and close the client.
@@ -2266,7 +2501,7 @@ class PlacementServiceClient {
2266
2501
  */
2267
2502
  close() {
2268
2503
  if (this.placementServiceStub && !this._terminated) {
2269
- return this.placementServiceStub.then(stub => {
2504
+ return this.placementServiceStub.then((stub) => {
2270
2505
  this._log.info('ending gRPC channel');
2271
2506
  this._terminated = true;
2272
2507
  stub.close();