@google-ads/admanager 0.5.0 → 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 (344) hide show
  1. package/README.md +40 -2
  2. package/build/protos/google/ads/admanager/v1/ad_break_messages.proto +1 -1
  3. package/build/protos/google/ads/admanager/v1/ad_break_service.proto +5 -4
  4. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto +26 -1
  5. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +9 -1
  6. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +22 -9
  7. package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +1 -1
  8. package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +4 -3
  9. package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +237 -4
  10. package/build/protos/google/ads/admanager/v1/application_enums.proto +156 -0
  11. package/build/protos/google/ads/admanager/v1/application_messages.proto +51 -4
  12. package/build/protos/google/ads/admanager/v1/application_service.proto +198 -4
  13. package/build/protos/google/ads/admanager/v1/applied_label.proto +1 -1
  14. package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +1 -1
  15. package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +10 -4
  16. package/build/protos/google/ads/admanager/v1/bandwidth_group_messages.proto +1 -1
  17. package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +11 -4
  18. package/build/protos/google/ads/admanager/v1/browser_language_messages.proto +1 -1
  19. package/build/protos/google/ads/admanager/v1/browser_language_service.proto +11 -4
  20. package/build/protos/google/ads/admanager/v1/browser_messages.proto +1 -1
  21. package/build/protos/google/ads/admanager/v1/browser_service.proto +13 -4
  22. package/build/protos/google/ads/admanager/v1/child_publisher_messages.proto +43 -0
  23. package/build/protos/google/ads/admanager/v1/cms_metadata_key_enums.proto +1 -1
  24. package/build/protos/google/ads/admanager/v1/cms_metadata_key_messages.proto +1 -1
  25. package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +81 -4
  26. package/build/protos/google/ads/admanager/v1/cms_metadata_value_enums.proto +1 -1
  27. package/build/protos/google/ads/admanager/v1/cms_metadata_value_messages.proto +1 -1
  28. package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +85 -6
  29. package/build/protos/google/ads/admanager/v1/company_enums.proto +1 -1
  30. package/build/protos/google/ads/admanager/v1/company_messages.proto +36 -23
  31. package/build/protos/google/ads/admanager/v1/company_service.proto +22 -4
  32. package/build/protos/google/ads/admanager/v1/contact_enums.proto +1 -1
  33. package/build/protos/google/ads/admanager/v1/contact_messages.proto +1 -1
  34. package/build/protos/google/ads/admanager/v1/contact_service.proto +22 -6
  35. package/build/protos/google/ads/admanager/v1/content_bundle_messages.proto +1 -1
  36. package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +11 -4
  37. package/build/protos/google/ads/admanager/v1/content_label_messages.proto +1 -1
  38. package/build/protos/google/ads/admanager/v1/content_label_service.proto +11 -4
  39. package/build/protos/google/ads/admanager/v1/content_messages.proto +2 -2
  40. package/build/protos/google/ads/admanager/v1/content_service.proto +11 -4
  41. package/build/protos/google/ads/admanager/v1/creative_template_enums.proto +1 -1
  42. package/build/protos/google/ads/admanager/v1/creative_template_messages.proto +1 -1
  43. package/build/protos/google/ads/admanager/v1/creative_template_service.proto +18 -4
  44. package/build/protos/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto +1 -1
  45. package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +1 -1
  46. package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +3 -4
  47. package/build/protos/google/ads/admanager/v1/custom_field_service.proto +20 -6
  48. package/build/protos/google/ads/admanager/v1/custom_field_value.proto +1 -1
  49. package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +1 -1
  50. package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +3 -3
  51. package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +205 -4
  52. package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +1 -1
  53. package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +1 -1
  54. package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +15 -4
  55. package/build/protos/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto +1 -1
  56. package/build/protos/google/ads/admanager/v1/device_capability_messages.proto +1 -1
  57. package/build/protos/google/ads/admanager/v1/device_capability_service.proto +11 -4
  58. package/build/protos/google/ads/admanager/v1/device_category_messages.proto +1 -1
  59. package/build/protos/google/ads/admanager/v1/device_category_service.proto +11 -4
  60. package/build/protos/google/ads/admanager/v1/device_manufacturer_messages.proto +1 -1
  61. package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +11 -4
  62. package/build/protos/google/ads/admanager/v1/early_ad_break_notification_enums.proto +1 -1
  63. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +3 -3
  64. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +5 -4
  65. package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +1 -1
  66. package/build/protos/google/ads/admanager/v1/exchange_syndication_product_enum.proto +1 -1
  67. package/build/protos/google/ads/admanager/v1/frequency_cap.proto +1 -1
  68. package/build/protos/google/ads/admanager/v1/geo_target_messages.proto +1 -1
  69. package/build/protos/google/ads/admanager/v1/geo_target_service.proto +14 -4
  70. package/build/protos/google/ads/admanager/v1/goal.proto +57 -0
  71. package/build/protos/google/ads/admanager/v1/goal_enums.proto +138 -0
  72. package/build/protos/google/ads/admanager/v1/label_enums.proto +56 -0
  73. package/build/protos/google/ads/admanager/v1/label_messages.proto +19 -1
  74. package/build/protos/google/ads/admanager/v1/label_service.proto +313 -0
  75. package/build/protos/google/ads/admanager/v1/line_item_enums.proto +86 -0
  76. package/build/protos/google/ads/admanager/v1/line_item_messages.proto +94 -0
  77. package/build/protos/google/ads/admanager/v1/line_item_service.proto +140 -0
  78. package/build/protos/google/ads/admanager/v1/{company_type_enum.proto → linked_device_enums.proto} +15 -24
  79. package/build/protos/google/ads/admanager/v1/linked_device_messages.proto +58 -0
  80. package/build/protos/google/ads/admanager/v1/linked_device_service.proto +138 -0
  81. package/build/protos/google/ads/admanager/v1/live_stream_event_messages.proto +1 -1
  82. package/build/protos/google/ads/admanager/v1/mcm_earnings_messages.proto +124 -0
  83. package/build/protos/google/ads/admanager/v1/mcm_earnings_service.proto +115 -0
  84. package/build/protos/google/ads/admanager/v1/mcm_enums.proto +97 -0
  85. package/build/protos/google/ads/admanager/v1/mobile_carrier_messages.proto +1 -1
  86. package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +12 -4
  87. package/build/protos/google/ads/admanager/v1/mobile_device_messages.proto +1 -1
  88. package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +12 -4
  89. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_messages.proto +1 -1
  90. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +12 -4
  91. package/build/protos/google/ads/admanager/v1/network_messages.proto +9 -9
  92. package/build/protos/google/ads/admanager/v1/network_service.proto +35 -3
  93. package/build/protos/google/ads/admanager/v1/operating_system_messages.proto +1 -1
  94. package/build/protos/google/ads/admanager/v1/operating_system_service.proto +11 -4
  95. package/build/protos/google/ads/admanager/v1/operating_system_version_messages.proto +1 -1
  96. package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +13 -4
  97. package/build/protos/google/ads/admanager/v1/order_enums.proto +1 -1
  98. package/build/protos/google/ads/admanager/v1/order_messages.proto +9 -7
  99. package/build/protos/google/ads/admanager/v1/order_service.proto +28 -4
  100. package/build/protos/google/ads/admanager/v1/placement_enums.proto +1 -1
  101. package/build/protos/google/ads/admanager/v1/placement_messages.proto +4 -3
  102. package/build/protos/google/ads/admanager/v1/placement_service.proto +18 -6
  103. package/build/protos/google/ads/admanager/v1/private_auction_deal_messages.proto +3 -3
  104. package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +24 -6
  105. package/build/protos/google/ads/admanager/v1/private_auction_messages.proto +3 -3
  106. package/build/protos/google/ads/admanager/v1/private_auction_service.proto +5 -4
  107. package/build/protos/google/ads/admanager/v1/private_marketplace_enums.proto +4 -1
  108. package/build/protos/google/ads/admanager/v1/programmatic_buyer_messages.proto +1 -1
  109. package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +17 -4
  110. package/build/protos/google/ads/admanager/v1/report_definition.proto +2898 -1001
  111. package/build/protos/google/ads/admanager/v1/report_messages.proto +10 -3
  112. package/build/protos/google/ads/admanager/v1/report_service.proto +5 -4
  113. package/build/protos/google/ads/admanager/v1/report_value.proto +1 -1
  114. package/build/protos/google/ads/admanager/v1/request_platform_enum.proto +1 -1
  115. package/build/protos/google/ads/admanager/v1/rich_media_ads_company_enums.proto +53 -0
  116. package/build/protos/google/ads/admanager/v1/rich_media_ads_company_messages.proto +57 -0
  117. package/build/protos/google/ads/admanager/v1/rich_media_ads_company_service.proto +143 -0
  118. package/build/protos/google/ads/admanager/v1/role_enums.proto +1 -1
  119. package/build/protos/google/ads/admanager/v1/role_messages.proto +4 -3
  120. package/build/protos/google/ads/admanager/v1/role_service.proto +14 -4
  121. package/build/protos/google/ads/admanager/v1/site_enums.proto +1 -1
  122. package/build/protos/google/ads/admanager/v1/site_messages.proto +1 -1
  123. package/build/protos/google/ads/admanager/v1/site_service.proto +16 -6
  124. package/build/protos/google/ads/admanager/v1/size.proto +1 -1
  125. package/build/protos/google/ads/admanager/v1/size_type_enum.proto +1 -1
  126. package/build/protos/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto +1 -1
  127. package/build/protos/google/ads/admanager/v1/targeting.proto +4 -4
  128. package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +3 -3
  129. package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +3 -2
  130. package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +1 -1
  131. package/build/protos/google/ads/admanager/v1/team_enums.proto +1 -1
  132. package/build/protos/google/ads/admanager/v1/team_messages.proto +1 -1
  133. package/build/protos/google/ads/admanager/v1/team_service.proto +18 -6
  134. package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +1 -1
  135. package/build/protos/google/ads/admanager/v1/user_messages.proto +4 -3
  136. package/build/protos/google/ads/admanager/v1/user_service.proto +3 -2
  137. package/build/protos/google/ads/admanager/v1/video_position_enum.proto +1 -1
  138. package/build/protos/google/ads/admanager/v1/web_property.proto +1 -1
  139. package/build/protos/protos.d.ts +18344 -7945
  140. package/build/protos/protos.js +50285 -23131
  141. package/build/protos/protos.json +6302 -3054
  142. package/build/src/index.d.ts +16 -1
  143. package/build/src/index.js +13 -3
  144. package/build/src/index.js.map +1 -1
  145. package/build/src/v1/ad_break_service_client.d.ts +145 -49
  146. package/build/src/v1/ad_break_service_client.js +296 -81
  147. package/build/src/v1/ad_break_service_client.js.map +1 -1
  148. package/build/src/v1/ad_break_service_proto_list.json +18 -1
  149. package/build/src/v1/ad_review_center_ad_service_client.d.ts +213 -96
  150. package/build/src/v1/ad_review_center_ad_service_client.js +327 -107
  151. package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
  152. package/build/src/v1/ad_review_center_ad_service_proto_list.json +18 -1
  153. package/build/src/v1/ad_unit_service_client.d.ts +418 -84
  154. package/build/src/v1/ad_unit_service_client.js +619 -78
  155. package/build/src/v1/ad_unit_service_client.js.map +1 -1
  156. package/build/src/v1/ad_unit_service_client_config.json +28 -0
  157. package/build/src/v1/ad_unit_service_proto_list.json +18 -1
  158. package/build/src/v1/application_service_client.d.ts +340 -44
  159. package/build/src/v1/application_service_client.js +548 -67
  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 +18 -1
  163. package/build/src/v1/audience_segment_service_client.d.ts +155 -44
  164. package/build/src/v1/audience_segment_service_client.js +270 -68
  165. package/build/src/v1/audience_segment_service_client.js.map +1 -1
  166. package/build/src/v1/audience_segment_service_proto_list.json +18 -1
  167. package/build/src/v1/bandwidth_group_service_client.d.ts +158 -44
  168. package/build/src/v1/bandwidth_group_service_client.js +272 -68
  169. package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
  170. package/build/src/v1/bandwidth_group_service_proto_list.json +18 -1
  171. package/build/src/v1/browser_language_service_client.d.ts +158 -44
  172. package/build/src/v1/browser_language_service_client.js +272 -68
  173. package/build/src/v1/browser_language_service_client.js.map +1 -1
  174. package/build/src/v1/browser_language_service_proto_list.json +18 -1
  175. package/build/src/v1/browser_service_client.d.ts +164 -44
  176. package/build/src/v1/browser_service_client.js +270 -66
  177. package/build/src/v1/browser_service_client.js.map +1 -1
  178. package/build/src/v1/browser_service_proto_list.json +18 -1
  179. package/build/src/v1/cms_metadata_key_service_client.d.ts +216 -44
  180. package/build/src/v1/cms_metadata_key_service_client.js +362 -68
  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 +18 -1
  184. package/build/src/v1/cms_metadata_value_service_client.d.ts +222 -46
  185. package/build/src/v1/cms_metadata_value_service_client.js +364 -68
  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 +18 -1
  189. package/build/src/v1/company_service_client.d.ts +191 -44
  190. package/build/src/v1/company_service_client.js +288 -66
  191. package/build/src/v1/company_service_client.js.map +1 -1
  192. package/build/src/v1/company_service_proto_list.json +18 -1
  193. package/build/src/v1/contact_service_client.d.ts +187 -46
  194. package/build/src/v1/contact_service_client.js +344 -91
  195. package/build/src/v1/contact_service_client.js.map +1 -1
  196. package/build/src/v1/contact_service_proto_list.json +18 -1
  197. package/build/src/v1/content_bundle_service_client.d.ts +158 -44
  198. package/build/src/v1/content_bundle_service_client.js +270 -67
  199. package/build/src/v1/content_bundle_service_client.js.map +1 -1
  200. package/build/src/v1/content_bundle_service_proto_list.json +18 -1
  201. package/build/src/v1/content_label_service_client.d.ts +158 -44
  202. package/build/src/v1/content_label_service_client.js +270 -67
  203. package/build/src/v1/content_label_service_client.js.map +1 -1
  204. package/build/src/v1/content_label_service_proto_list.json +18 -1
  205. package/build/src/v1/content_service_client.d.ts +158 -44
  206. package/build/src/v1/content_service_client.js +266 -66
  207. package/build/src/v1/content_service_client.js.map +1 -1
  208. package/build/src/v1/content_service_proto_list.json +18 -1
  209. package/build/src/v1/creative_template_service_client.d.ts +179 -44
  210. package/build/src/v1/creative_template_service_client.js +286 -68
  211. package/build/src/v1/creative_template_service_client.js.map +1 -1
  212. package/build/src/v1/creative_template_service_proto_list.json +18 -1
  213. package/build/src/v1/custom_field_service_client.d.ts +185 -50
  214. package/build/src/v1/custom_field_service_client.js +368 -103
  215. package/build/src/v1/custom_field_service_client.js.map +1 -1
  216. package/build/src/v1/custom_field_service_proto_list.json +18 -1
  217. package/build/src/v1/custom_targeting_key_service_client.d.ts +336 -44
  218. package/build/src/v1/custom_targeting_key_service_client.js +545 -68
  219. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
  220. package/build/src/v1/custom_targeting_key_service_client_config.json +24 -0
  221. package/build/src/v1/custom_targeting_key_service_proto_list.json +18 -1
  222. package/build/src/v1/custom_targeting_value_service_client.d.ts +174 -48
  223. package/build/src/v1/custom_targeting_value_service_client.js +281 -68
  224. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
  225. package/build/src/v1/custom_targeting_value_service_proto_list.json +18 -1
  226. package/build/src/v1/device_capability_service_client.d.ts +158 -44
  227. package/build/src/v1/device_capability_service_client.js +272 -68
  228. package/build/src/v1/device_capability_service_client.js.map +1 -1
  229. package/build/src/v1/device_capability_service_proto_list.json +18 -1
  230. package/build/src/v1/device_category_service_client.d.ts +158 -44
  231. package/build/src/v1/device_category_service_client.js +272 -68
  232. package/build/src/v1/device_category_service_client.js.map +1 -1
  233. package/build/src/v1/device_category_service_proto_list.json +18 -1
  234. package/build/src/v1/device_manufacturer_service_client.d.ts +158 -44
  235. package/build/src/v1/device_manufacturer_service_client.js +273 -68
  236. package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
  237. package/build/src/v1/device_manufacturer_service_proto_list.json +18 -1
  238. package/build/src/v1/entity_signals_mapping_service_client.d.ts +145 -49
  239. package/build/src/v1/entity_signals_mapping_service_client.js +313 -88
  240. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
  241. package/build/src/v1/entity_signals_mapping_service_proto_list.json +18 -1
  242. package/build/src/v1/gapic_metadata.json +476 -2
  243. package/build/src/v1/geo_target_service_client.d.ts +167 -44
  244. package/build/src/v1/geo_target_service_client.js +272 -66
  245. package/build/src/v1/geo_target_service_client.js.map +1 -1
  246. package/build/src/v1/geo_target_service_proto_list.json +18 -1
  247. package/build/src/v1/index.d.ts +5 -0
  248. package/build/src/v1/index.js +12 -2
  249. package/build/src/v1/index.js.map +1 -1
  250. package/build/src/v1/label_service_client.d.ts +1631 -0
  251. package/build/src/v1/label_service_client.js +2466 -0
  252. package/build/src/v1/label_service_client.js.map +1 -0
  253. package/build/src/v1/label_service_client_config.json +58 -0
  254. package/build/src/v1/label_service_proto_list.json +139 -0
  255. package/build/src/v1/line_item_service_client.d.ts +1474 -0
  256. package/build/src/v1/line_item_service_client.js +2203 -0
  257. package/build/src/v1/line_item_service_client.js.map +1 -0
  258. package/build/src/v1/line_item_service_client_config.json +34 -0
  259. package/build/src/v1/line_item_service_proto_list.json +139 -0
  260. package/build/src/v1/linked_device_service_client.d.ts +1465 -0
  261. package/build/src/v1/linked_device_service_client.js +2200 -0
  262. package/build/src/v1/linked_device_service_client.js.map +1 -0
  263. package/build/src/v1/linked_device_service_client_config.json +34 -0
  264. package/build/src/v1/linked_device_service_proto_list.json +139 -0
  265. package/build/src/v1/mcm_earnings_service_client.d.ts +1426 -0
  266. package/build/src/v1/mcm_earnings_service_client.js +2144 -0
  267. package/build/src/v1/mcm_earnings_service_client.js.map +1 -0
  268. package/build/src/v1/mcm_earnings_service_client_config.json +30 -0
  269. package/build/src/v1/mcm_earnings_service_proto_list.json +139 -0
  270. package/build/src/v1/mobile_carrier_service_client.d.ts +161 -44
  271. package/build/src/v1/mobile_carrier_service_client.js +272 -67
  272. package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
  273. package/build/src/v1/mobile_carrier_service_proto_list.json +18 -1
  274. package/build/src/v1/mobile_device_service_client.d.ts +161 -44
  275. package/build/src/v1/mobile_device_service_client.js +272 -67
  276. package/build/src/v1/mobile_device_service_client.js.map +1 -1
  277. package/build/src/v1/mobile_device_service_proto_list.json +18 -1
  278. package/build/src/v1/mobile_device_submodel_service_client.d.ts +164 -47
  279. package/build/src/v1/mobile_device_submodel_service_client.js +275 -68
  280. package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
  281. package/build/src/v1/mobile_device_submodel_service_proto_list.json +18 -1
  282. package/build/src/v1/network_service_client.d.ts +184 -10
  283. package/build/src/v1/network_service_client.js +332 -64
  284. package/build/src/v1/network_service_client.js.map +1 -1
  285. package/build/src/v1/network_service_proto_list.json +18 -1
  286. package/build/src/v1/operating_system_service_client.d.ts +158 -44
  287. package/build/src/v1/operating_system_service_client.js +272 -68
  288. package/build/src/v1/operating_system_service_client.js.map +1 -1
  289. package/build/src/v1/operating_system_service_proto_list.json +18 -1
  290. package/build/src/v1/operating_system_version_service_client.d.ts +167 -47
  291. package/build/src/v1/operating_system_version_service_client.js +277 -68
  292. package/build/src/v1/operating_system_version_service_client.js.map +1 -1
  293. package/build/src/v1/operating_system_version_service_proto_list.json +18 -1
  294. package/build/src/v1/order_service_client.d.ts +214 -49
  295. package/build/src/v1/order_service_client.js +300 -66
  296. package/build/src/v1/order_service_client.js.map +1 -1
  297. package/build/src/v1/order_service_proto_list.json +18 -1
  298. package/build/src/v1/placement_service_client.d.ts +177 -48
  299. package/build/src/v1/placement_service_client.js +378 -109
  300. package/build/src/v1/placement_service_client.js.map +1 -1
  301. package/build/src/v1/placement_service_proto_list.json +18 -1
  302. package/build/src/v1/private_auction_deal_service_client.d.ts +197 -50
  303. package/build/src/v1/private_auction_deal_service_client.js +323 -80
  304. package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
  305. package/build/src/v1/private_auction_deal_service_proto_list.json +18 -1
  306. package/build/src/v1/private_auction_service_client.d.ts +139 -43
  307. package/build/src/v1/private_auction_service_client.js +284 -76
  308. package/build/src/v1/private_auction_service_client.js.map +1 -1
  309. package/build/src/v1/private_auction_service_proto_list.json +18 -1
  310. package/build/src/v1/programmatic_buyer_service_client.d.ts +176 -44
  311. package/build/src/v1/programmatic_buyer_service_client.js +285 -68
  312. package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
  313. package/build/src/v1/programmatic_buyer_service_proto_list.json +18 -1
  314. package/build/src/v1/report_service_client.d.ts +198 -102
  315. package/build/src/v1/report_service_client.js +355 -121
  316. package/build/src/v1/report_service_client.js.map +1 -1
  317. package/build/src/v1/report_service_proto_list.json +18 -1
  318. package/build/src/v1/rich_media_ads_company_service_client.d.ts +1475 -0
  319. package/build/src/v1/rich_media_ads_company_service_client.js +2208 -0
  320. package/build/src/v1/rich_media_ads_company_service_client.js.map +1 -0
  321. package/build/src/v1/rich_media_ads_company_service_client_config.json +34 -0
  322. package/build/src/v1/rich_media_ads_company_service_proto_list.json +139 -0
  323. package/build/src/v1/role_service_client.d.ts +167 -44
  324. package/build/src/v1/role_service_client.js +272 -66
  325. package/build/src/v1/role_service_client.js.map +1 -1
  326. package/build/src/v1/role_service_proto_list.json +18 -1
  327. package/build/src/v1/site_service_client.d.ts +170 -47
  328. package/build/src/v1/site_service_client.js +360 -103
  329. package/build/src/v1/site_service_client.js.map +1 -1
  330. package/build/src/v1/site_service_proto_list.json +18 -1
  331. package/build/src/v1/taxonomy_category_service_client.d.ts +136 -40
  332. package/build/src/v1/taxonomy_category_service_client.js +256 -64
  333. package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
  334. package/build/src/v1/taxonomy_category_service_proto_list.json +18 -1
  335. package/build/src/v1/team_service_client.d.ts +175 -46
  336. package/build/src/v1/team_service_client.js +364 -103
  337. package/build/src/v1/team_service_client.js.map +1 -1
  338. package/build/src/v1/team_service_proto_list.json +18 -1
  339. package/build/src/v1/user_service_client.d.ts +96 -0
  340. package/build/src/v1/user_service_client.js +228 -48
  341. package/build/src/v1/user_service_client.js.map +1 -1
  342. package/build/src/v1/user_service_proto_list.json +18 -1
  343. package/package.json +10 -2
  344. package/build/protos/google/ads/admanager/v1/company_credit_status_enum.proto +0 -97
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2025 Google LLC
2
+ // Copyright 2026 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -96,11 +96,19 @@ class AdUnitServiceClient {
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 AdUnitServiceClient {
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 AdUnitServiceClient {
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 AdUnitServiceClient {
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}'),
@@ -192,6 +199,8 @@ class AdUnitServiceClient {
192
199
  entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
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}'),
202
+ lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
203
+ linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
195
204
  liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
196
205
  mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
197
206
  mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
@@ -205,6 +214,7 @@ class AdUnitServiceClient {
205
214
  privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
206
215
  programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
207
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}'),
208
218
  rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
209
219
  sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
210
220
  taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
@@ -217,7 +227,7 @@ class AdUnitServiceClient {
217
227
  // pages). Denote the keys used for pagination and results.
218
228
  this.descriptors.page = {
219
229
  listAdUnits: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'adUnits'),
220
- listAdUnitSizes: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'adUnitSizes')
230
+ listAdUnitSizes: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'adUnitSizes'),
221
231
  };
222
232
  // Put together the default options sent with requests.
223
233
  this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.AdUnitService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -246,15 +256,26 @@ class AdUnitServiceClient {
246
256
  }
247
257
  // Put together the "service stub" for
248
258
  // google.ads.admanager.v1.AdUnitService.
249
- this.adUnitServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
250
- this._protos.lookupService('google.ads.admanager.v1.AdUnitService') :
251
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
252
- this._protos.google.ads.admanager.v1.AdUnitService, this._opts, this._providedCustomServicePath);
259
+ this.adUnitServiceStub = this._gaxGrpc.createStub(this._opts.fallback
260
+ ? this._protos.lookupService('google.ads.admanager.v1.AdUnitService')
261
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
262
+ this._protos.google.ads.admanager.v1.AdUnitService, this._opts, this._providedCustomServicePath);
253
263
  // Iterate over each of the methods that the service provides
254
264
  // and create an API call method for each.
255
- const adUnitServiceStubMethods = ['getAdUnit', 'listAdUnits', 'listAdUnitSizes'];
265
+ const adUnitServiceStubMethods = [
266
+ 'getAdUnit',
267
+ 'listAdUnits',
268
+ 'listAdUnitSizes',
269
+ 'createAdUnit',
270
+ 'updateAdUnit',
271
+ 'batchCreateAdUnits',
272
+ 'batchUpdateAdUnits',
273
+ 'batchActivateAdUnits',
274
+ 'batchDeactivateAdUnits',
275
+ 'batchArchiveAdUnits',
276
+ ];
256
277
  for (const methodName of adUnitServiceStubMethods) {
257
- const callPromise = this.adUnitServiceStub.then(stub => (...args) => {
278
+ const callPromise = this.adUnitServiceStub.then((stub) => (...args) => {
258
279
  if (this._terminated) {
259
280
  return Promise.reject('The client has already been closed.');
260
281
  }
@@ -263,8 +284,7 @@ class AdUnitServiceClient {
263
284
  }, (err) => () => {
264
285
  throw err;
265
286
  });
266
- const descriptor = this.descriptors.page[methodName] ||
267
- undefined;
287
+ const descriptor = this.descriptors.page[methodName] || undefined;
268
288
  const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
269
289
  this.innerApiCalls[methodName] = apiCall;
270
290
  }
@@ -276,7 +296,8 @@ class AdUnitServiceClient {
276
296
  * @returns {string} The DNS address for this service.
277
297
  */
278
298
  static get servicePath() {
279
- if (typeof process === 'object' && typeof process.emitWarning === 'function') {
299
+ if (typeof process === 'object' &&
300
+ typeof process.emitWarning === 'function') {
280
301
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
281
302
  }
282
303
  return 'admanager.googleapis.com';
@@ -287,7 +308,8 @@ class AdUnitServiceClient {
287
308
  * @returns {string} The DNS address for this service.
288
309
  */
289
310
  static get apiEndpoint() {
290
- if (typeof process === 'object' && typeof process.emitWarning === 'function') {
311
+ if (typeof process === 'object' &&
312
+ typeof process.emitWarning === 'function') {
291
313
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
292
314
  }
293
315
  return 'admanager.googleapis.com';
@@ -316,7 +338,8 @@ class AdUnitServiceClient {
316
338
  */
317
339
  static get scopes() {
318
340
  return [
319
- 'https://www.googleapis.com/auth/admanager'
341
+ 'https://www.googleapis.com/auth/admanager',
342
+ 'https://www.googleapis.com/auth/admanager.readonly',
320
343
  ];
321
344
  }
322
345
  /**
@@ -343,10 +366,13 @@ class AdUnitServiceClient {
343
366
  options = options || {};
344
367
  options.otherArgs = options.otherArgs || {};
345
368
  options.otherArgs.headers = options.otherArgs.headers || {};
346
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
347
- 'name': request.name ?? '',
369
+ options.otherArgs.headers['x-goog-request-params'] =
370
+ this._gaxModule.routingHeader.fromParams({
371
+ name: request.name ?? '',
372
+ });
373
+ this.initialize().catch((err) => {
374
+ throw err;
348
375
  });
349
- this.initialize().catch(err => { throw err; });
350
376
  this._log.info('getAdUnit request %j', request);
351
377
  const wrappedCallback = callback
352
378
  ? (error, response, options, rawResponse) => {
@@ -354,12 +380,317 @@ class AdUnitServiceClient {
354
380
  callback(error, response, options, rawResponse); // We verified callback above.
355
381
  }
356
382
  : undefined;
357
- return this.innerApiCalls.getAdUnit(request, options, wrappedCallback)
383
+ return this.innerApiCalls
384
+ .getAdUnit(request, options, wrappedCallback)
358
385
  ?.then(([response, options, rawResponse]) => {
359
386
  this._log.info('getAdUnit response %j', response);
360
387
  return [response, options, rawResponse];
361
- }).catch((error) => {
362
- if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
388
+ })
389
+ .catch((error) => {
390
+ if (error &&
391
+ 'statusDetails' in error &&
392
+ error.statusDetails instanceof Array) {
393
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
394
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
395
+ }
396
+ throw error;
397
+ });
398
+ }
399
+ createAdUnit(request, optionsOrCallback, callback) {
400
+ request = request || {};
401
+ let options;
402
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
403
+ callback = optionsOrCallback;
404
+ options = {};
405
+ }
406
+ else {
407
+ options = optionsOrCallback;
408
+ }
409
+ options = options || {};
410
+ options.otherArgs = options.otherArgs || {};
411
+ options.otherArgs.headers = options.otherArgs.headers || {};
412
+ options.otherArgs.headers['x-goog-request-params'] =
413
+ this._gaxModule.routingHeader.fromParams({
414
+ parent: request.parent ?? '',
415
+ });
416
+ this.initialize().catch((err) => {
417
+ throw err;
418
+ });
419
+ this._log.info('createAdUnit request %j', request);
420
+ const wrappedCallback = callback
421
+ ? (error, response, options, rawResponse) => {
422
+ this._log.info('createAdUnit response %j', response);
423
+ callback(error, response, options, rawResponse); // We verified callback above.
424
+ }
425
+ : undefined;
426
+ return this.innerApiCalls
427
+ .createAdUnit(request, options, wrappedCallback)
428
+ ?.then(([response, options, rawResponse]) => {
429
+ this._log.info('createAdUnit response %j', response);
430
+ return [response, options, rawResponse];
431
+ })
432
+ .catch((error) => {
433
+ if (error &&
434
+ 'statusDetails' in error &&
435
+ error.statusDetails instanceof Array) {
436
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
437
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
438
+ }
439
+ throw error;
440
+ });
441
+ }
442
+ updateAdUnit(request, optionsOrCallback, callback) {
443
+ request = request || {};
444
+ let options;
445
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
446
+ callback = optionsOrCallback;
447
+ options = {};
448
+ }
449
+ else {
450
+ options = optionsOrCallback;
451
+ }
452
+ options = options || {};
453
+ options.otherArgs = options.otherArgs || {};
454
+ options.otherArgs.headers = options.otherArgs.headers || {};
455
+ options.otherArgs.headers['x-goog-request-params'] =
456
+ this._gaxModule.routingHeader.fromParams({
457
+ 'ad_unit.name': request.adUnit.name ?? '',
458
+ });
459
+ this.initialize().catch((err) => {
460
+ throw err;
461
+ });
462
+ this._log.info('updateAdUnit request %j', request);
463
+ const wrappedCallback = callback
464
+ ? (error, response, options, rawResponse) => {
465
+ this._log.info('updateAdUnit response %j', response);
466
+ callback(error, response, options, rawResponse); // We verified callback above.
467
+ }
468
+ : undefined;
469
+ return this.innerApiCalls
470
+ .updateAdUnit(request, options, wrappedCallback)
471
+ ?.then(([response, options, rawResponse]) => {
472
+ this._log.info('updateAdUnit response %j', response);
473
+ return [response, options, rawResponse];
474
+ })
475
+ .catch((error) => {
476
+ if (error &&
477
+ 'statusDetails' in error &&
478
+ error.statusDetails instanceof Array) {
479
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
480
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
481
+ }
482
+ throw error;
483
+ });
484
+ }
485
+ batchCreateAdUnits(request, optionsOrCallback, callback) {
486
+ request = request || {};
487
+ let options;
488
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
489
+ callback = optionsOrCallback;
490
+ options = {};
491
+ }
492
+ else {
493
+ options = optionsOrCallback;
494
+ }
495
+ options = options || {};
496
+ options.otherArgs = options.otherArgs || {};
497
+ options.otherArgs.headers = options.otherArgs.headers || {};
498
+ options.otherArgs.headers['x-goog-request-params'] =
499
+ this._gaxModule.routingHeader.fromParams({
500
+ parent: request.parent ?? '',
501
+ });
502
+ this.initialize().catch((err) => {
503
+ throw err;
504
+ });
505
+ this._log.info('batchCreateAdUnits request %j', request);
506
+ const wrappedCallback = callback
507
+ ? (error, response, options, rawResponse) => {
508
+ this._log.info('batchCreateAdUnits response %j', response);
509
+ callback(error, response, options, rawResponse); // We verified callback above.
510
+ }
511
+ : undefined;
512
+ return this.innerApiCalls
513
+ .batchCreateAdUnits(request, options, wrappedCallback)
514
+ ?.then(([response, options, rawResponse]) => {
515
+ this._log.info('batchCreateAdUnits response %j', response);
516
+ return [response, options, rawResponse];
517
+ })
518
+ .catch((error) => {
519
+ if (error &&
520
+ 'statusDetails' in error &&
521
+ error.statusDetails instanceof Array) {
522
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
523
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
524
+ }
525
+ throw error;
526
+ });
527
+ }
528
+ batchUpdateAdUnits(request, optionsOrCallback, callback) {
529
+ request = request || {};
530
+ let options;
531
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
532
+ callback = optionsOrCallback;
533
+ options = {};
534
+ }
535
+ else {
536
+ options = optionsOrCallback;
537
+ }
538
+ options = options || {};
539
+ options.otherArgs = options.otherArgs || {};
540
+ options.otherArgs.headers = options.otherArgs.headers || {};
541
+ options.otherArgs.headers['x-goog-request-params'] =
542
+ this._gaxModule.routingHeader.fromParams({
543
+ parent: request.parent ?? '',
544
+ });
545
+ this.initialize().catch((err) => {
546
+ throw err;
547
+ });
548
+ this._log.info('batchUpdateAdUnits request %j', request);
549
+ const wrappedCallback = callback
550
+ ? (error, response, options, rawResponse) => {
551
+ this._log.info('batchUpdateAdUnits response %j', response);
552
+ callback(error, response, options, rawResponse); // We verified callback above.
553
+ }
554
+ : undefined;
555
+ return this.innerApiCalls
556
+ .batchUpdateAdUnits(request, options, wrappedCallback)
557
+ ?.then(([response, options, rawResponse]) => {
558
+ this._log.info('batchUpdateAdUnits response %j', response);
559
+ return [response, options, rawResponse];
560
+ })
561
+ .catch((error) => {
562
+ if (error &&
563
+ 'statusDetails' in error &&
564
+ error.statusDetails instanceof Array) {
565
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
566
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
567
+ }
568
+ throw error;
569
+ });
570
+ }
571
+ batchActivateAdUnits(request, optionsOrCallback, callback) {
572
+ request = request || {};
573
+ let options;
574
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
575
+ callback = optionsOrCallback;
576
+ options = {};
577
+ }
578
+ else {
579
+ options = optionsOrCallback;
580
+ }
581
+ options = options || {};
582
+ options.otherArgs = options.otherArgs || {};
583
+ options.otherArgs.headers = options.otherArgs.headers || {};
584
+ options.otherArgs.headers['x-goog-request-params'] =
585
+ this._gaxModule.routingHeader.fromParams({
586
+ parent: request.parent ?? '',
587
+ });
588
+ this.initialize().catch((err) => {
589
+ throw err;
590
+ });
591
+ this._log.info('batchActivateAdUnits request %j', request);
592
+ const wrappedCallback = callback
593
+ ? (error, response, options, rawResponse) => {
594
+ this._log.info('batchActivateAdUnits response %j', response);
595
+ callback(error, response, options, rawResponse); // We verified callback above.
596
+ }
597
+ : undefined;
598
+ return this.innerApiCalls
599
+ .batchActivateAdUnits(request, options, wrappedCallback)
600
+ ?.then(([response, options, rawResponse]) => {
601
+ this._log.info('batchActivateAdUnits response %j', response);
602
+ return [response, options, rawResponse];
603
+ })
604
+ .catch((error) => {
605
+ if (error &&
606
+ 'statusDetails' in error &&
607
+ error.statusDetails instanceof Array) {
608
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
609
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
610
+ }
611
+ throw error;
612
+ });
613
+ }
614
+ batchDeactivateAdUnits(request, optionsOrCallback, callback) {
615
+ request = request || {};
616
+ let options;
617
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
618
+ callback = optionsOrCallback;
619
+ options = {};
620
+ }
621
+ else {
622
+ options = optionsOrCallback;
623
+ }
624
+ options = options || {};
625
+ options.otherArgs = options.otherArgs || {};
626
+ options.otherArgs.headers = options.otherArgs.headers || {};
627
+ options.otherArgs.headers['x-goog-request-params'] =
628
+ this._gaxModule.routingHeader.fromParams({
629
+ parent: request.parent ?? '',
630
+ });
631
+ this.initialize().catch((err) => {
632
+ throw err;
633
+ });
634
+ this._log.info('batchDeactivateAdUnits request %j', request);
635
+ const wrappedCallback = callback
636
+ ? (error, response, options, rawResponse) => {
637
+ this._log.info('batchDeactivateAdUnits response %j', response);
638
+ callback(error, response, options, rawResponse); // We verified callback above.
639
+ }
640
+ : undefined;
641
+ return this.innerApiCalls
642
+ .batchDeactivateAdUnits(request, options, wrappedCallback)
643
+ ?.then(([response, options, rawResponse]) => {
644
+ this._log.info('batchDeactivateAdUnits response %j', response);
645
+ return [response, options, rawResponse];
646
+ })
647
+ .catch((error) => {
648
+ if (error &&
649
+ 'statusDetails' in error &&
650
+ error.statusDetails instanceof Array) {
651
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
652
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
653
+ }
654
+ throw error;
655
+ });
656
+ }
657
+ batchArchiveAdUnits(request, optionsOrCallback, callback) {
658
+ request = request || {};
659
+ let options;
660
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
661
+ callback = optionsOrCallback;
662
+ options = {};
663
+ }
664
+ else {
665
+ options = optionsOrCallback;
666
+ }
667
+ options = options || {};
668
+ options.otherArgs = options.otherArgs || {};
669
+ options.otherArgs.headers = options.otherArgs.headers || {};
670
+ options.otherArgs.headers['x-goog-request-params'] =
671
+ this._gaxModule.routingHeader.fromParams({
672
+ parent: request.parent ?? '',
673
+ });
674
+ this.initialize().catch((err) => {
675
+ throw err;
676
+ });
677
+ this._log.info('batchArchiveAdUnits request %j', request);
678
+ const wrappedCallback = callback
679
+ ? (error, response, options, rawResponse) => {
680
+ this._log.info('batchArchiveAdUnits response %j', response);
681
+ callback(error, response, options, rawResponse); // We verified callback above.
682
+ }
683
+ : undefined;
684
+ return this.innerApiCalls
685
+ .batchArchiveAdUnits(request, options, wrappedCallback)
686
+ ?.then(([response, options, rawResponse]) => {
687
+ this._log.info('batchArchiveAdUnits response %j', response);
688
+ return [response, options, rawResponse];
689
+ })
690
+ .catch((error) => {
691
+ if (error &&
692
+ 'statusDetails' in error &&
693
+ error.statusDetails instanceof Array) {
363
694
  const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
364
695
  error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
365
696
  }
@@ -379,10 +710,13 @@ class AdUnitServiceClient {
379
710
  options = options || {};
380
711
  options.otherArgs = options.otherArgs || {};
381
712
  options.otherArgs.headers = options.otherArgs.headers || {};
382
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
383
- 'parent': request.parent ?? '',
713
+ options.otherArgs.headers['x-goog-request-params'] =
714
+ this._gaxModule.routingHeader.fromParams({
715
+ parent: request.parent ?? '',
716
+ });
717
+ this.initialize().catch((err) => {
718
+ throw err;
384
719
  });
385
- this.initialize().catch(err => { throw err; });
386
720
  const wrappedCallback = callback
387
721
  ? (error, values, nextPageRequest, rawResponse) => {
388
722
  this._log.info('listAdUnits values %j', values);
@@ -417,8 +751,24 @@ class AdUnitServiceClient {
417
751
  * the call that provided the page token.
418
752
  * @param {string} [request.filter]
419
753
  * Optional. Expression to filter the response.
420
- * See syntax details at
421
- * https://developers.google.com/ad-manager/api/beta/filters
754
+ * See syntax details at
755
+ * https://developers.google.com/ad-manager/api/beta/filters
756
+ *
757
+ * <b>Filterable fields:</b>
758
+ * <ul style="list-style-type:none">
759
+ * <li><code>adUnitCode</code></li>
760
+ * <li><code>adUnitSizes.canonicalName</code></li>
761
+ * <li><code>displayName</code></li>
762
+ * <li><code>effectiveAdsenseEnabled</code></li>
763
+ * <li><code>explicitlyTargeted</code></li>
764
+ * <li><code>externalSetTopBoxChannelId</code></li>
765
+ * <li><code>hasChildren</code></li>
766
+ * <li><code>name</code></li>
767
+ * <li><code>parentAdUnit</code></li>
768
+ * <li><code>status</code></li>
769
+ * <li><code>teams</code></li>
770
+ * <li><code>updateTime</code></li>
771
+ * </ul>
422
772
  * @param {string} [request.orderBy]
423
773
  * Optional. Expression to specify sorting order.
424
774
  * See syntax details at
@@ -441,12 +791,15 @@ class AdUnitServiceClient {
441
791
  options = options || {};
442
792
  options.otherArgs = options.otherArgs || {};
443
793
  options.otherArgs.headers = options.otherArgs.headers || {};
444
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
445
- 'parent': request.parent ?? '',
446
- });
794
+ options.otherArgs.headers['x-goog-request-params'] =
795
+ this._gaxModule.routingHeader.fromParams({
796
+ parent: request.parent ?? '',
797
+ });
447
798
  const defaultCallSettings = this._defaults['listAdUnits'];
448
799
  const callSettings = defaultCallSettings.merge(options);
449
- this.initialize().catch(err => { throw err; });
800
+ this.initialize().catch((err) => {
801
+ throw err;
802
+ });
450
803
  this._log.info('listAdUnits stream %j', request);
451
804
  return this.descriptors.page.listAdUnits.createStream(this.innerApiCalls.listAdUnits, request, callSettings);
452
805
  }
@@ -472,8 +825,24 @@ class AdUnitServiceClient {
472
825
  * the call that provided the page token.
473
826
  * @param {string} [request.filter]
474
827
  * Optional. Expression to filter the response.
475
- * See syntax details at
476
- * https://developers.google.com/ad-manager/api/beta/filters
828
+ * See syntax details at
829
+ * https://developers.google.com/ad-manager/api/beta/filters
830
+ *
831
+ * <b>Filterable fields:</b>
832
+ * <ul style="list-style-type:none">
833
+ * <li><code>adUnitCode</code></li>
834
+ * <li><code>adUnitSizes.canonicalName</code></li>
835
+ * <li><code>displayName</code></li>
836
+ * <li><code>effectiveAdsenseEnabled</code></li>
837
+ * <li><code>explicitlyTargeted</code></li>
838
+ * <li><code>externalSetTopBoxChannelId</code></li>
839
+ * <li><code>hasChildren</code></li>
840
+ * <li><code>name</code></li>
841
+ * <li><code>parentAdUnit</code></li>
842
+ * <li><code>status</code></li>
843
+ * <li><code>teams</code></li>
844
+ * <li><code>updateTime</code></li>
845
+ * </ul>
477
846
  * @param {string} [request.orderBy]
478
847
  * Optional. Expression to specify sorting order.
479
848
  * See syntax details at
@@ -497,12 +866,15 @@ class AdUnitServiceClient {
497
866
  options = options || {};
498
867
  options.otherArgs = options.otherArgs || {};
499
868
  options.otherArgs.headers = options.otherArgs.headers || {};
500
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
501
- 'parent': request.parent ?? '',
502
- });
869
+ options.otherArgs.headers['x-goog-request-params'] =
870
+ this._gaxModule.routingHeader.fromParams({
871
+ parent: request.parent ?? '',
872
+ });
503
873
  const defaultCallSettings = this._defaults['listAdUnits'];
504
874
  const callSettings = defaultCallSettings.merge(options);
505
- this.initialize().catch(err => { throw err; });
875
+ this.initialize().catch((err) => {
876
+ throw err;
877
+ });
506
878
  this._log.info('listAdUnits iterate %j', request);
507
879
  return this.descriptors.page.listAdUnits.asyncIterate(this.innerApiCalls['listAdUnits'], request, callSettings);
508
880
  }
@@ -519,10 +891,13 @@ class AdUnitServiceClient {
519
891
  options = options || {};
520
892
  options.otherArgs = options.otherArgs || {};
521
893
  options.otherArgs.headers = options.otherArgs.headers || {};
522
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
523
- 'parent': request.parent ?? '',
894
+ options.otherArgs.headers['x-goog-request-params'] =
895
+ this._gaxModule.routingHeader.fromParams({
896
+ parent: request.parent ?? '',
897
+ });
898
+ this.initialize().catch((err) => {
899
+ throw err;
524
900
  });
525
- this.initialize().catch(err => { throw err; });
526
901
  const wrappedCallback = callback
527
902
  ? (error, values, nextPageRequest, rawResponse) => {
528
903
  this._log.info('listAdUnitSizes values %j', values);
@@ -581,12 +956,15 @@ class AdUnitServiceClient {
581
956
  options = options || {};
582
957
  options.otherArgs = options.otherArgs || {};
583
958
  options.otherArgs.headers = options.otherArgs.headers || {};
584
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
585
- 'parent': request.parent ?? '',
586
- });
959
+ options.otherArgs.headers['x-goog-request-params'] =
960
+ this._gaxModule.routingHeader.fromParams({
961
+ parent: request.parent ?? '',
962
+ });
587
963
  const defaultCallSettings = this._defaults['listAdUnitSizes'];
588
964
  const callSettings = defaultCallSettings.merge(options);
589
- this.initialize().catch(err => { throw err; });
965
+ this.initialize().catch((err) => {
966
+ throw err;
967
+ });
590
968
  this._log.info('listAdUnitSizes stream %j', request);
591
969
  return this.descriptors.page.listAdUnitSizes.createStream(this.innerApiCalls.listAdUnitSizes, request, callSettings);
592
970
  }
@@ -637,12 +1015,15 @@ class AdUnitServiceClient {
637
1015
  options = options || {};
638
1016
  options.otherArgs = options.otherArgs || {};
639
1017
  options.otherArgs.headers = options.otherArgs.headers || {};
640
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
641
- 'parent': request.parent ?? '',
642
- });
1018
+ options.otherArgs.headers['x-goog-request-params'] =
1019
+ this._gaxModule.routingHeader.fromParams({
1020
+ parent: request.parent ?? '',
1021
+ });
643
1022
  const defaultCallSettings = this._defaults['listAdUnitSizes'];
644
1023
  const callSettings = defaultCallSettings.merge(options);
645
- this.initialize().catch(err => { throw err; });
1024
+ this.initialize().catch((err) => {
1025
+ throw err;
1026
+ });
646
1027
  this._log.info('listAdUnitSizes iterate %j', request);
647
1028
  return this.descriptors.page.listAdUnitSizes.asyncIterate(this.innerApiCalls['listAdUnitSizes'], request, callSettings);
648
1029
  }
@@ -672,7 +1053,8 @@ class AdUnitServiceClient {
672
1053
  * @returns {string} A string representing the network_code.
673
1054
  */
674
1055
  matchNetworkCodeFromAdBreakName(adBreakName) {
675
- return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
1056
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
1057
+ .network_code;
676
1058
  }
677
1059
  /**
678
1060
  * Parse the asset_key from AdBreak resource.
@@ -793,7 +1175,8 @@ class AdUnitServiceClient {
793
1175
  * @returns {string} A string representing the network_code.
794
1176
  */
795
1177
  matchNetworkCodeFromApplicationName(applicationName) {
796
- return this.pathTemplates.applicationPathTemplate.match(applicationName).network_code;
1178
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
1179
+ .network_code;
797
1180
  }
798
1181
  /**
799
1182
  * Parse the application from Application resource.
@@ -803,7 +1186,8 @@ class AdUnitServiceClient {
803
1186
  * @returns {string} A string representing the application.
804
1187
  */
805
1188
  matchApplicationFromApplicationName(applicationName) {
806
- return this.pathTemplates.applicationPathTemplate.match(applicationName).application;
1189
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
1190
+ .application;
807
1191
  }
808
1192
  /**
809
1193
  * Return a fully-qualified audienceSegment resource name string.
@@ -892,7 +1276,8 @@ class AdUnitServiceClient {
892
1276
  * @returns {string} A string representing the network_code.
893
1277
  */
894
1278
  matchNetworkCodeFromBrowserName(browserName) {
895
- return this.pathTemplates.browserPathTemplate.match(browserName).network_code;
1279
+ return this.pathTemplates.browserPathTemplate.match(browserName)
1280
+ .network_code;
896
1281
  }
897
1282
  /**
898
1283
  * Parse the browser from Browser resource.
@@ -937,6 +1322,39 @@ class AdUnitServiceClient {
937
1322
  matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
938
1323
  return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
939
1324
  }
1325
+ /**
1326
+ * Return a fully-qualified childPublisher resource name string.
1327
+ *
1328
+ * @param {string} network_code
1329
+ * @param {string} child_publisher
1330
+ * @returns {string} Resource name string.
1331
+ */
1332
+ childPublisherPath(networkCode, childPublisher) {
1333
+ return this.pathTemplates.childPublisherPathTemplate.render({
1334
+ network_code: networkCode,
1335
+ child_publisher: childPublisher,
1336
+ });
1337
+ }
1338
+ /**
1339
+ * Parse the network_code from ChildPublisher resource.
1340
+ *
1341
+ * @param {string} childPublisherName
1342
+ * A fully-qualified path representing ChildPublisher resource.
1343
+ * @returns {string} A string representing the network_code.
1344
+ */
1345
+ matchNetworkCodeFromChildPublisherName(childPublisherName) {
1346
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
1347
+ }
1348
+ /**
1349
+ * Parse the child_publisher from ChildPublisher resource.
1350
+ *
1351
+ * @param {string} childPublisherName
1352
+ * A fully-qualified path representing ChildPublisher resource.
1353
+ * @returns {string} A string representing the child_publisher.
1354
+ */
1355
+ matchChildPublisherFromChildPublisherName(childPublisherName) {
1356
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
1357
+ }
940
1358
  /**
941
1359
  * Return a fully-qualified cmsMetadataKey resource name string.
942
1360
  *
@@ -1024,7 +1442,8 @@ class AdUnitServiceClient {
1024
1442
  * @returns {string} A string representing the network_code.
1025
1443
  */
1026
1444
  matchNetworkCodeFromCompanyName(companyName) {
1027
- return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
1445
+ return this.pathTemplates.companyPathTemplate.match(companyName)
1446
+ .network_code;
1028
1447
  }
1029
1448
  /**
1030
1449
  * Parse the company from Company resource.
@@ -1057,7 +1476,8 @@ class AdUnitServiceClient {
1057
1476
  * @returns {string} A string representing the network_code.
1058
1477
  */
1059
1478
  matchNetworkCodeFromContactName(contactName) {
1060
- return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
1479
+ return this.pathTemplates.contactPathTemplate.match(contactName)
1480
+ .network_code;
1061
1481
  }
1062
1482
  /**
1063
1483
  * Parse the contact from Contact resource.
@@ -1090,7 +1510,8 @@ class AdUnitServiceClient {
1090
1510
  * @returns {string} A string representing the network_code.
1091
1511
  */
1092
1512
  matchNetworkCodeFromContentName(contentName) {
1093
- return this.pathTemplates.contentPathTemplate.match(contentName).network_code;
1513
+ return this.pathTemplates.contentPathTemplate.match(contentName)
1514
+ .network_code;
1094
1515
  }
1095
1516
  /**
1096
1517
  * Parse the content from Content resource.
@@ -1123,7 +1544,8 @@ class AdUnitServiceClient {
1123
1544
  * @returns {string} A string representing the network_code.
1124
1545
  */
1125
1546
  matchNetworkCodeFromContentBundleName(contentBundleName) {
1126
- return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).network_code;
1547
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1548
+ .network_code;
1127
1549
  }
1128
1550
  /**
1129
1551
  * Parse the content_bundle from ContentBundle resource.
@@ -1133,7 +1555,8 @@ class AdUnitServiceClient {
1133
1555
  * @returns {string} A string representing the content_bundle.
1134
1556
  */
1135
1557
  matchContentBundleFromContentBundleName(contentBundleName) {
1136
- return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).content_bundle;
1558
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1559
+ .content_bundle;
1137
1560
  }
1138
1561
  /**
1139
1562
  * Return a fully-qualified contentLabel resource name string.
@@ -1156,7 +1579,8 @@ class AdUnitServiceClient {
1156
1579
  * @returns {string} A string representing the network_code.
1157
1580
  */
1158
1581
  matchNetworkCodeFromContentLabelName(contentLabelName) {
1159
- return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).network_code;
1582
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1583
+ .network_code;
1160
1584
  }
1161
1585
  /**
1162
1586
  * Parse the content_label from ContentLabel resource.
@@ -1166,7 +1590,8 @@ class AdUnitServiceClient {
1166
1590
  * @returns {string} A string representing the content_label.
1167
1591
  */
1168
1592
  matchContentLabelFromContentLabelName(contentLabelName) {
1169
- return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).content_label;
1593
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1594
+ .content_label;
1170
1595
  }
1171
1596
  /**
1172
1597
  * Return a fully-qualified creativeTemplate resource name string.
@@ -1222,7 +1647,8 @@ class AdUnitServiceClient {
1222
1647
  * @returns {string} A string representing the network_code.
1223
1648
  */
1224
1649
  matchNetworkCodeFromCustomFieldName(customFieldName) {
1225
- return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
1650
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1651
+ .network_code;
1226
1652
  }
1227
1653
  /**
1228
1654
  * Parse the custom_field from CustomField resource.
@@ -1232,7 +1658,8 @@ class AdUnitServiceClient {
1232
1658
  * @returns {string} A string representing the custom_field.
1233
1659
  */
1234
1660
  matchCustomFieldFromCustomFieldName(customFieldName) {
1235
- return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
1661
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1662
+ .custom_field;
1236
1663
  }
1237
1664
  /**
1238
1665
  * Return a fully-qualified customTargetingKey resource name string.
@@ -1453,7 +1880,8 @@ class AdUnitServiceClient {
1453
1880
  * @returns {string} A string representing the network_code.
1454
1881
  */
1455
1882
  matchNetworkCodeFromGeoTargetName(geoTargetName) {
1456
- return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).network_code;
1883
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1884
+ .network_code;
1457
1885
  }
1458
1886
  /**
1459
1887
  * Parse the geo_target from GeoTarget resource.
@@ -1463,7 +1891,8 @@ class AdUnitServiceClient {
1463
1891
  * @returns {string} A string representing the geo_target.
1464
1892
  */
1465
1893
  matchGeoTargetFromGeoTargetName(geoTargetName) {
1466
- return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).geo_target;
1894
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1895
+ .geo_target;
1467
1896
  }
1468
1897
  /**
1469
1898
  * Return a fully-qualified label resource name string.
@@ -1498,6 +1927,76 @@ class AdUnitServiceClient {
1498
1927
  matchLabelFromLabelName(labelName) {
1499
1928
  return this.pathTemplates.labelPathTemplate.match(labelName).label;
1500
1929
  }
1930
+ /**
1931
+ * Return a fully-qualified lineItem resource name string.
1932
+ *
1933
+ * @param {string} network_code
1934
+ * @param {string} line_item
1935
+ * @returns {string} Resource name string.
1936
+ */
1937
+ lineItemPath(networkCode, lineItem) {
1938
+ return this.pathTemplates.lineItemPathTemplate.render({
1939
+ network_code: networkCode,
1940
+ line_item: lineItem,
1941
+ });
1942
+ }
1943
+ /**
1944
+ * Parse the network_code from LineItem resource.
1945
+ *
1946
+ * @param {string} lineItemName
1947
+ * A fully-qualified path representing LineItem resource.
1948
+ * @returns {string} A string representing the network_code.
1949
+ */
1950
+ matchNetworkCodeFromLineItemName(lineItemName) {
1951
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1952
+ .network_code;
1953
+ }
1954
+ /**
1955
+ * Parse the line_item from LineItem resource.
1956
+ *
1957
+ * @param {string} lineItemName
1958
+ * A fully-qualified path representing LineItem resource.
1959
+ * @returns {string} A string representing the line_item.
1960
+ */
1961
+ matchLineItemFromLineItemName(lineItemName) {
1962
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1963
+ .line_item;
1964
+ }
1965
+ /**
1966
+ * Return a fully-qualified linkedDevice resource name string.
1967
+ *
1968
+ * @param {string} network_code
1969
+ * @param {string} linked_device
1970
+ * @returns {string} Resource name string.
1971
+ */
1972
+ linkedDevicePath(networkCode, linkedDevice) {
1973
+ return this.pathTemplates.linkedDevicePathTemplate.render({
1974
+ network_code: networkCode,
1975
+ linked_device: linkedDevice,
1976
+ });
1977
+ }
1978
+ /**
1979
+ * Parse the network_code from LinkedDevice resource.
1980
+ *
1981
+ * @param {string} linkedDeviceName
1982
+ * A fully-qualified path representing LinkedDevice resource.
1983
+ * @returns {string} A string representing the network_code.
1984
+ */
1985
+ matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
1986
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1987
+ .network_code;
1988
+ }
1989
+ /**
1990
+ * Parse the linked_device from LinkedDevice resource.
1991
+ *
1992
+ * @param {string} linkedDeviceName
1993
+ * A fully-qualified path representing LinkedDevice resource.
1994
+ * @returns {string} A string representing the linked_device.
1995
+ */
1996
+ matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
1997
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1998
+ .linked_device;
1999
+ }
1501
2000
  /**
1502
2001
  * Return a fully-qualified liveStreamEvent resource name string.
1503
2002
  *
@@ -1552,7 +2051,8 @@ class AdUnitServiceClient {
1552
2051
  * @returns {string} A string representing the network_code.
1553
2052
  */
1554
2053
  matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
1555
- return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).network_code;
2054
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
2055
+ .network_code;
1556
2056
  }
1557
2057
  /**
1558
2058
  * Parse the mobile_carrier from MobileCarrier resource.
@@ -1562,7 +2062,8 @@ class AdUnitServiceClient {
1562
2062
  * @returns {string} A string representing the mobile_carrier.
1563
2063
  */
1564
2064
  matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
1565
- return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).mobile_carrier;
2065
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
2066
+ .mobile_carrier;
1566
2067
  }
1567
2068
  /**
1568
2069
  * Return a fully-qualified mobileDevice resource name string.
@@ -1585,7 +2086,8 @@ class AdUnitServiceClient {
1585
2086
  * @returns {string} A string representing the network_code.
1586
2087
  */
1587
2088
  matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
1588
- return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).network_code;
2089
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
2090
+ .network_code;
1589
2091
  }
1590
2092
  /**
1591
2093
  * Parse the mobile_device from MobileDevice resource.
@@ -1595,7 +2097,8 @@ class AdUnitServiceClient {
1595
2097
  * @returns {string} A string representing the mobile_device.
1596
2098
  */
1597
2099
  matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
1598
- return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).mobile_device;
2100
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
2101
+ .mobile_device;
1599
2102
  }
1600
2103
  /**
1601
2104
  * Return a fully-qualified mobileDeviceSubmodel resource name string.
@@ -1649,7 +2152,8 @@ class AdUnitServiceClient {
1649
2152
  * @returns {string} A string representing the network_code.
1650
2153
  */
1651
2154
  matchNetworkCodeFromNetworkName(networkName) {
1652
- return this.pathTemplates.networkPathTemplate.match(networkName).network_code;
2155
+ return this.pathTemplates.networkPathTemplate.match(networkName)
2156
+ .network_code;
1653
2157
  }
1654
2158
  /**
1655
2159
  * Return a fully-qualified operatingSystem resource name string.
@@ -1771,7 +2275,8 @@ class AdUnitServiceClient {
1771
2275
  * @returns {string} A string representing the network_code.
1772
2276
  */
1773
2277
  matchNetworkCodeFromPlacementName(placementName) {
1774
- return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
2278
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2279
+ .network_code;
1775
2280
  }
1776
2281
  /**
1777
2282
  * Parse the placement from Placement resource.
@@ -1781,7 +2286,8 @@ class AdUnitServiceClient {
1781
2286
  * @returns {string} A string representing the placement.
1782
2287
  */
1783
2288
  matchPlacementFromPlacementName(placementName) {
1784
- return this.pathTemplates.placementPathTemplate.match(placementName).placement;
2289
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2290
+ .placement;
1785
2291
  }
1786
2292
  /**
1787
2293
  * Return a fully-qualified privateAuction resource name string.
@@ -1915,6 +2421,39 @@ class AdUnitServiceClient {
1915
2421
  matchReportFromReportName(reportName) {
1916
2422
  return this.pathTemplates.reportPathTemplate.match(reportName).report;
1917
2423
  }
2424
+ /**
2425
+ * Return a fully-qualified richMediaAdsCompany resource name string.
2426
+ *
2427
+ * @param {string} network_code
2428
+ * @param {string} rich_media_ads_company
2429
+ * @returns {string} Resource name string.
2430
+ */
2431
+ richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
2432
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
2433
+ network_code: networkCode,
2434
+ rich_media_ads_company: richMediaAdsCompany,
2435
+ });
2436
+ }
2437
+ /**
2438
+ * Parse the network_code from RichMediaAdsCompany resource.
2439
+ *
2440
+ * @param {string} richMediaAdsCompanyName
2441
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2442
+ * @returns {string} A string representing the network_code.
2443
+ */
2444
+ matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2445
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
2446
+ }
2447
+ /**
2448
+ * Parse the rich_media_ads_company from RichMediaAdsCompany resource.
2449
+ *
2450
+ * @param {string} richMediaAdsCompanyName
2451
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2452
+ * @returns {string} A string representing the rich_media_ads_company.
2453
+ */
2454
+ matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2455
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
2456
+ }
1918
2457
  /**
1919
2458
  * Return a fully-qualified role resource name string.
1920
2459
  *
@@ -2101,7 +2640,8 @@ class AdUnitServiceClient {
2101
2640
  * @returns {string} A string representing the network_code.
2102
2641
  */
2103
2642
  matchNetworkCodeFromWebPropertyName(webPropertyName) {
2104
- return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).network_code;
2643
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2644
+ .network_code;
2105
2645
  }
2106
2646
  /**
2107
2647
  * Parse the web_property from WebProperty resource.
@@ -2111,7 +2651,8 @@ class AdUnitServiceClient {
2111
2651
  * @returns {string} A string representing the web_property.
2112
2652
  */
2113
2653
  matchWebPropertyFromWebPropertyName(webPropertyName) {
2114
- return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).web_property;
2654
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2655
+ .web_property;
2115
2656
  }
2116
2657
  /**
2117
2658
  * Terminate the gRPC channel and close the client.
@@ -2121,7 +2662,7 @@ class AdUnitServiceClient {
2121
2662
  */
2122
2663
  close() {
2123
2664
  if (this.adUnitServiceStub && !this._terminated) {
2124
- return this.adUnitServiceStub.then(stub => {
2665
+ return this.adUnitServiceStub.then((stub) => {
2125
2666
  this._log.info('ending gRPC channel');
2126
2667
  this._terminated = true;
2127
2668
  stub.close();