@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.
@@ -95,12 +95,21 @@ class CustomTargetingKeyServiceClient {
95
95
  */
96
96
  constructor(opts, gaxInstance) {
97
97
  // Ensure that options include all the required fields.
98
- const staticMembers = this.constructor;
99
- if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
98
+ const staticMembers = this
99
+ .constructor;
100
+ if (opts?.universe_domain &&
101
+ opts?.universeDomain &&
102
+ opts?.universe_domain !== opts?.universeDomain) {
100
103
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
101
104
  }
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';
105
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
106
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
107
+ : undefined;
108
+ this._universeDomain =
109
+ opts?.universeDomain ??
110
+ opts?.universe_domain ??
111
+ universeDomainEnvVar ??
112
+ 'googleapis.com';
104
113
  this._servicePath = 'admanager.' + this._universeDomain;
105
114
  const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
106
115
  this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
@@ -113,7 +122,8 @@ class CustomTargetingKeyServiceClient {
113
122
  else {
114
123
  opts.fallback = opts.fallback ?? true;
115
124
  }
116
- const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
125
+ const fallback = opts?.fallback ??
126
+ (typeof window !== 'undefined' && typeof window?.fetch === 'function');
117
127
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
118
128
  // Request numeric enum values if REST transport is used.
119
129
  opts.numericEnums = true;
@@ -142,10 +152,7 @@ class CustomTargetingKeyServiceClient {
142
152
  this.auth.defaultScopes = staticMembers.scopes;
143
153
  }
144
154
  // Determine the client header string.
145
- const clientHeader = [
146
- `gax/${this._gaxModule.version}`,
147
- `gapic/${version}`,
148
- ];
155
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
149
156
  if (typeof process === 'object' && 'versions' in process) {
150
157
  clientHeader.push(`gl-node/${process.versions.node}`);
151
158
  }
@@ -175,6 +182,7 @@ class CustomTargetingKeyServiceClient {
175
182
  bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
176
183
  browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
177
184
  browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
185
+ childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
178
186
  cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
179
187
  cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
180
188
  companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
@@ -192,6 +200,8 @@ class CustomTargetingKeyServiceClient {
192
200
  entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
193
201
  geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
194
202
  labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
203
+ lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
204
+ linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
195
205
  liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
196
206
  mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
197
207
  mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
@@ -205,6 +215,7 @@ class CustomTargetingKeyServiceClient {
205
215
  privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
206
216
  programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
207
217
  reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
218
+ richMediaAdsCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company}'),
208
219
  rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
209
220
  sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
210
221
  taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
@@ -216,7 +227,7 @@ class CustomTargetingKeyServiceClient {
216
227
  // (e.g. 50 results at a time, with tokens to get subsequent
217
228
  // pages). Denote the keys used for pagination and results.
218
229
  this.descriptors.page = {
219
- listCustomTargetingKeys: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'customTargetingKeys')
230
+ listCustomTargetingKeys: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'customTargetingKeys'),
220
231
  };
221
232
  // Put together the default options sent with requests.
222
233
  this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.CustomTargetingKeyService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -245,15 +256,25 @@ class CustomTargetingKeyServiceClient {
245
256
  }
246
257
  // Put together the "service stub" for
247
258
  // google.ads.admanager.v1.CustomTargetingKeyService.
248
- this.customTargetingKeyServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
249
- this._protos.lookupService('google.ads.admanager.v1.CustomTargetingKeyService') :
250
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
251
- this._protos.google.ads.admanager.v1.CustomTargetingKeyService, this._opts, this._providedCustomServicePath);
259
+ this.customTargetingKeyServiceStub = this._gaxGrpc.createStub(this._opts.fallback
260
+ ? this._protos.lookupService('google.ads.admanager.v1.CustomTargetingKeyService')
261
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
262
+ this._protos.google.ads.admanager.v1
263
+ .CustomTargetingKeyService, this._opts, this._providedCustomServicePath);
252
264
  // Iterate over each of the methods that the service provides
253
265
  // and create an API call method for each.
254
- const customTargetingKeyServiceStubMethods = ['getCustomTargetingKey', 'listCustomTargetingKeys'];
266
+ const customTargetingKeyServiceStubMethods = [
267
+ 'getCustomTargetingKey',
268
+ 'listCustomTargetingKeys',
269
+ 'createCustomTargetingKey',
270
+ 'batchCreateCustomTargetingKeys',
271
+ 'updateCustomTargetingKey',
272
+ 'batchUpdateCustomTargetingKeys',
273
+ 'batchActivateCustomTargetingKeys',
274
+ 'batchDeactivateCustomTargetingKeys',
275
+ ];
255
276
  for (const methodName of customTargetingKeyServiceStubMethods) {
256
- const callPromise = this.customTargetingKeyServiceStub.then(stub => (...args) => {
277
+ const callPromise = this.customTargetingKeyServiceStub.then((stub) => (...args) => {
257
278
  if (this._terminated) {
258
279
  return Promise.reject('The client has already been closed.');
259
280
  }
@@ -262,8 +283,7 @@ class CustomTargetingKeyServiceClient {
262
283
  }, (err) => () => {
263
284
  throw err;
264
285
  });
265
- const descriptor = this.descriptors.page[methodName] ||
266
- undefined;
286
+ const descriptor = this.descriptors.page[methodName] || undefined;
267
287
  const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
268
288
  this.innerApiCalls[methodName] = apiCall;
269
289
  }
@@ -275,7 +295,8 @@ class CustomTargetingKeyServiceClient {
275
295
  * @returns {string} The DNS address for this service.
276
296
  */
277
297
  static get servicePath() {
278
- if (typeof process === 'object' && typeof process.emitWarning === 'function') {
298
+ if (typeof process === 'object' &&
299
+ typeof process.emitWarning === 'function') {
279
300
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
280
301
  }
281
302
  return 'admanager.googleapis.com';
@@ -286,7 +307,8 @@ class CustomTargetingKeyServiceClient {
286
307
  * @returns {string} The DNS address for this service.
287
308
  */
288
309
  static get apiEndpoint() {
289
- if (typeof process === 'object' && typeof process.emitWarning === 'function') {
310
+ if (typeof process === 'object' &&
311
+ typeof process.emitWarning === 'function') {
290
312
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
291
313
  }
292
314
  return 'admanager.googleapis.com';
@@ -315,7 +337,8 @@ class CustomTargetingKeyServiceClient {
315
337
  */
316
338
  static get scopes() {
317
339
  return [
318
- 'https://www.googleapis.com/auth/admanager'
340
+ 'https://www.googleapis.com/auth/admanager',
341
+ 'https://www.googleapis.com/auth/admanager.readonly',
319
342
  ];
320
343
  }
321
344
  /**
@@ -342,10 +365,13 @@ class CustomTargetingKeyServiceClient {
342
365
  options = options || {};
343
366
  options.otherArgs = options.otherArgs || {};
344
367
  options.otherArgs.headers = options.otherArgs.headers || {};
345
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
346
- 'name': request.name ?? '',
368
+ options.otherArgs.headers['x-goog-request-params'] =
369
+ this._gaxModule.routingHeader.fromParams({
370
+ name: request.name ?? '',
371
+ });
372
+ this.initialize().catch((err) => {
373
+ throw err;
347
374
  });
348
- this.initialize().catch(err => { throw err; });
349
375
  this._log.info('getCustomTargetingKey request %j', request);
350
376
  const wrappedCallback = callback
351
377
  ? (error, response, options, rawResponse) => {
@@ -353,12 +379,274 @@ class CustomTargetingKeyServiceClient {
353
379
  callback(error, response, options, rawResponse); // We verified callback above.
354
380
  }
355
381
  : undefined;
356
- return this.innerApiCalls.getCustomTargetingKey(request, options, wrappedCallback)
382
+ return this.innerApiCalls
383
+ .getCustomTargetingKey(request, options, wrappedCallback)
357
384
  ?.then(([response, options, rawResponse]) => {
358
385
  this._log.info('getCustomTargetingKey response %j', response);
359
386
  return [response, options, rawResponse];
360
- }).catch((error) => {
361
- if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
387
+ })
388
+ .catch((error) => {
389
+ if (error &&
390
+ 'statusDetails' in error &&
391
+ error.statusDetails instanceof Array) {
392
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
393
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
394
+ }
395
+ throw error;
396
+ });
397
+ }
398
+ createCustomTargetingKey(request, optionsOrCallback, callback) {
399
+ request = request || {};
400
+ let options;
401
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
402
+ callback = optionsOrCallback;
403
+ options = {};
404
+ }
405
+ else {
406
+ options = optionsOrCallback;
407
+ }
408
+ options = options || {};
409
+ options.otherArgs = options.otherArgs || {};
410
+ options.otherArgs.headers = options.otherArgs.headers || {};
411
+ options.otherArgs.headers['x-goog-request-params'] =
412
+ this._gaxModule.routingHeader.fromParams({
413
+ parent: request.parent ?? '',
414
+ });
415
+ this.initialize().catch((err) => {
416
+ throw err;
417
+ });
418
+ this._log.info('createCustomTargetingKey request %j', request);
419
+ const wrappedCallback = callback
420
+ ? (error, response, options, rawResponse) => {
421
+ this._log.info('createCustomTargetingKey response %j', response);
422
+ callback(error, response, options, rawResponse); // We verified callback above.
423
+ }
424
+ : undefined;
425
+ return this.innerApiCalls
426
+ .createCustomTargetingKey(request, options, wrappedCallback)
427
+ ?.then(([response, options, rawResponse]) => {
428
+ this._log.info('createCustomTargetingKey response %j', response);
429
+ return [response, options, rawResponse];
430
+ })
431
+ .catch((error) => {
432
+ if (error &&
433
+ 'statusDetails' in error &&
434
+ error.statusDetails instanceof Array) {
435
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
436
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
437
+ }
438
+ throw error;
439
+ });
440
+ }
441
+ batchCreateCustomTargetingKeys(request, optionsOrCallback, callback) {
442
+ request = request || {};
443
+ let options;
444
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
445
+ callback = optionsOrCallback;
446
+ options = {};
447
+ }
448
+ else {
449
+ options = optionsOrCallback;
450
+ }
451
+ options = options || {};
452
+ options.otherArgs = options.otherArgs || {};
453
+ options.otherArgs.headers = options.otherArgs.headers || {};
454
+ options.otherArgs.headers['x-goog-request-params'] =
455
+ this._gaxModule.routingHeader.fromParams({
456
+ parent: request.parent ?? '',
457
+ });
458
+ this.initialize().catch((err) => {
459
+ throw err;
460
+ });
461
+ this._log.info('batchCreateCustomTargetingKeys request %j', request);
462
+ const wrappedCallback = callback
463
+ ? (error, response, options, rawResponse) => {
464
+ this._log.info('batchCreateCustomTargetingKeys response %j', response);
465
+ callback(error, response, options, rawResponse); // We verified callback above.
466
+ }
467
+ : undefined;
468
+ return this.innerApiCalls
469
+ .batchCreateCustomTargetingKeys(request, options, wrappedCallback)
470
+ ?.then(([response, options, rawResponse]) => {
471
+ this._log.info('batchCreateCustomTargetingKeys response %j', response);
472
+ return [response, options, rawResponse];
473
+ })
474
+ .catch((error) => {
475
+ if (error &&
476
+ 'statusDetails' in error &&
477
+ error.statusDetails instanceof Array) {
478
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
479
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
480
+ }
481
+ throw error;
482
+ });
483
+ }
484
+ updateCustomTargetingKey(request, optionsOrCallback, callback) {
485
+ request = request || {};
486
+ let options;
487
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
488
+ callback = optionsOrCallback;
489
+ options = {};
490
+ }
491
+ else {
492
+ options = optionsOrCallback;
493
+ }
494
+ options = options || {};
495
+ options.otherArgs = options.otherArgs || {};
496
+ options.otherArgs.headers = options.otherArgs.headers || {};
497
+ options.otherArgs.headers['x-goog-request-params'] =
498
+ this._gaxModule.routingHeader.fromParams({
499
+ 'custom_targeting_key.name': request.customTargetingKey.name ?? '',
500
+ });
501
+ this.initialize().catch((err) => {
502
+ throw err;
503
+ });
504
+ this._log.info('updateCustomTargetingKey request %j', request);
505
+ const wrappedCallback = callback
506
+ ? (error, response, options, rawResponse) => {
507
+ this._log.info('updateCustomTargetingKey response %j', response);
508
+ callback(error, response, options, rawResponse); // We verified callback above.
509
+ }
510
+ : undefined;
511
+ return this.innerApiCalls
512
+ .updateCustomTargetingKey(request, options, wrappedCallback)
513
+ ?.then(([response, options, rawResponse]) => {
514
+ this._log.info('updateCustomTargetingKey response %j', response);
515
+ return [response, options, rawResponse];
516
+ })
517
+ .catch((error) => {
518
+ if (error &&
519
+ 'statusDetails' in error &&
520
+ error.statusDetails instanceof Array) {
521
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
522
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
523
+ }
524
+ throw error;
525
+ });
526
+ }
527
+ batchUpdateCustomTargetingKeys(request, optionsOrCallback, callback) {
528
+ request = request || {};
529
+ let options;
530
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
531
+ callback = optionsOrCallback;
532
+ options = {};
533
+ }
534
+ else {
535
+ options = optionsOrCallback;
536
+ }
537
+ options = options || {};
538
+ options.otherArgs = options.otherArgs || {};
539
+ options.otherArgs.headers = options.otherArgs.headers || {};
540
+ options.otherArgs.headers['x-goog-request-params'] =
541
+ this._gaxModule.routingHeader.fromParams({
542
+ parent: request.parent ?? '',
543
+ });
544
+ this.initialize().catch((err) => {
545
+ throw err;
546
+ });
547
+ this._log.info('batchUpdateCustomTargetingKeys request %j', request);
548
+ const wrappedCallback = callback
549
+ ? (error, response, options, rawResponse) => {
550
+ this._log.info('batchUpdateCustomTargetingKeys response %j', response);
551
+ callback(error, response, options, rawResponse); // We verified callback above.
552
+ }
553
+ : undefined;
554
+ return this.innerApiCalls
555
+ .batchUpdateCustomTargetingKeys(request, options, wrappedCallback)
556
+ ?.then(([response, options, rawResponse]) => {
557
+ this._log.info('batchUpdateCustomTargetingKeys response %j', response);
558
+ return [response, options, rawResponse];
559
+ })
560
+ .catch((error) => {
561
+ if (error &&
562
+ 'statusDetails' in error &&
563
+ error.statusDetails instanceof Array) {
564
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
565
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
566
+ }
567
+ throw error;
568
+ });
569
+ }
570
+ batchActivateCustomTargetingKeys(request, optionsOrCallback, callback) {
571
+ request = request || {};
572
+ let options;
573
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
574
+ callback = optionsOrCallback;
575
+ options = {};
576
+ }
577
+ else {
578
+ options = optionsOrCallback;
579
+ }
580
+ options = options || {};
581
+ options.otherArgs = options.otherArgs || {};
582
+ options.otherArgs.headers = options.otherArgs.headers || {};
583
+ options.otherArgs.headers['x-goog-request-params'] =
584
+ this._gaxModule.routingHeader.fromParams({
585
+ parent: request.parent ?? '',
586
+ });
587
+ this.initialize().catch((err) => {
588
+ throw err;
589
+ });
590
+ this._log.info('batchActivateCustomTargetingKeys request %j', request);
591
+ const wrappedCallback = callback
592
+ ? (error, response, options, rawResponse) => {
593
+ this._log.info('batchActivateCustomTargetingKeys response %j', response);
594
+ callback(error, response, options, rawResponse); // We verified callback above.
595
+ }
596
+ : undefined;
597
+ return this.innerApiCalls
598
+ .batchActivateCustomTargetingKeys(request, options, wrappedCallback)
599
+ ?.then(([response, options, rawResponse]) => {
600
+ this._log.info('batchActivateCustomTargetingKeys response %j', response);
601
+ return [response, options, rawResponse];
602
+ })
603
+ .catch((error) => {
604
+ if (error &&
605
+ 'statusDetails' in error &&
606
+ error.statusDetails instanceof Array) {
607
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
608
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
609
+ }
610
+ throw error;
611
+ });
612
+ }
613
+ batchDeactivateCustomTargetingKeys(request, optionsOrCallback, callback) {
614
+ request = request || {};
615
+ let options;
616
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
617
+ callback = optionsOrCallback;
618
+ options = {};
619
+ }
620
+ else {
621
+ options = optionsOrCallback;
622
+ }
623
+ options = options || {};
624
+ options.otherArgs = options.otherArgs || {};
625
+ options.otherArgs.headers = options.otherArgs.headers || {};
626
+ options.otherArgs.headers['x-goog-request-params'] =
627
+ this._gaxModule.routingHeader.fromParams({
628
+ parent: request.parent ?? '',
629
+ });
630
+ this.initialize().catch((err) => {
631
+ throw err;
632
+ });
633
+ this._log.info('batchDeactivateCustomTargetingKeys request %j', request);
634
+ const wrappedCallback = callback
635
+ ? (error, response, options, rawResponse) => {
636
+ this._log.info('batchDeactivateCustomTargetingKeys response %j', response);
637
+ callback(error, response, options, rawResponse); // We verified callback above.
638
+ }
639
+ : undefined;
640
+ return this.innerApiCalls
641
+ .batchDeactivateCustomTargetingKeys(request, options, wrappedCallback)
642
+ ?.then(([response, options, rawResponse]) => {
643
+ this._log.info('batchDeactivateCustomTargetingKeys response %j', response);
644
+ return [response, options, rawResponse];
645
+ })
646
+ .catch((error) => {
647
+ if (error &&
648
+ 'statusDetails' in error &&
649
+ error.statusDetails instanceof Array) {
362
650
  const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
363
651
  error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
364
652
  }
@@ -378,10 +666,13 @@ class CustomTargetingKeyServiceClient {
378
666
  options = options || {};
379
667
  options.otherArgs = options.otherArgs || {};
380
668
  options.otherArgs.headers = options.otherArgs.headers || {};
381
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
382
- 'parent': request.parent ?? '',
669
+ options.otherArgs.headers['x-goog-request-params'] =
670
+ this._gaxModule.routingHeader.fromParams({
671
+ parent: request.parent ?? '',
672
+ });
673
+ this.initialize().catch((err) => {
674
+ throw err;
383
675
  });
384
- this.initialize().catch(err => { throw err; });
385
676
  const wrappedCallback = callback
386
677
  ? (error, values, nextPageRequest, rawResponse) => {
387
678
  this._log.info('listCustomTargetingKeys values %j', values);
@@ -416,8 +707,18 @@ class CustomTargetingKeyServiceClient {
416
707
  * must match the call that provided the page token.
417
708
  * @param {string} [request.filter]
418
709
  * Optional. Expression to filter the response.
419
- * See syntax details at
420
- * https://developers.google.com/ad-manager/api/beta/filters
710
+ * See syntax details at
711
+ * https://developers.google.com/ad-manager/api/beta/filters
712
+ *
713
+ * <b>Filterable fields:</b>
714
+ * <ul style="list-style-type:none">
715
+ * <li><code>adTagName</code></li>
716
+ * <li><code>displayName</code></li>
717
+ * <li><code>name</code></li>
718
+ * <li><code>reportableType</code></li>
719
+ * <li><code>status</code></li>
720
+ * <li><code>type</code></li>
721
+ * </ul>
421
722
  * @param {string} [request.orderBy]
422
723
  * Optional. Expression to specify sorting order.
423
724
  * See syntax details at
@@ -440,12 +741,15 @@ class CustomTargetingKeyServiceClient {
440
741
  options = options || {};
441
742
  options.otherArgs = options.otherArgs || {};
442
743
  options.otherArgs.headers = options.otherArgs.headers || {};
443
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
444
- 'parent': request.parent ?? '',
445
- });
744
+ options.otherArgs.headers['x-goog-request-params'] =
745
+ this._gaxModule.routingHeader.fromParams({
746
+ parent: request.parent ?? '',
747
+ });
446
748
  const defaultCallSettings = this._defaults['listCustomTargetingKeys'];
447
749
  const callSettings = defaultCallSettings.merge(options);
448
- this.initialize().catch(err => { throw err; });
750
+ this.initialize().catch((err) => {
751
+ throw err;
752
+ });
449
753
  this._log.info('listCustomTargetingKeys stream %j', request);
450
754
  return this.descriptors.page.listCustomTargetingKeys.createStream(this.innerApiCalls.listCustomTargetingKeys, request, callSettings);
451
755
  }
@@ -471,8 +775,18 @@ class CustomTargetingKeyServiceClient {
471
775
  * must match the call that provided the page token.
472
776
  * @param {string} [request.filter]
473
777
  * Optional. Expression to filter the response.
474
- * See syntax details at
475
- * https://developers.google.com/ad-manager/api/beta/filters
778
+ * See syntax details at
779
+ * https://developers.google.com/ad-manager/api/beta/filters
780
+ *
781
+ * <b>Filterable fields:</b>
782
+ * <ul style="list-style-type:none">
783
+ * <li><code>adTagName</code></li>
784
+ * <li><code>displayName</code></li>
785
+ * <li><code>name</code></li>
786
+ * <li><code>reportableType</code></li>
787
+ * <li><code>status</code></li>
788
+ * <li><code>type</code></li>
789
+ * </ul>
476
790
  * @param {string} [request.orderBy]
477
791
  * Optional. Expression to specify sorting order.
478
792
  * See syntax details at
@@ -496,12 +810,15 @@ class CustomTargetingKeyServiceClient {
496
810
  options = options || {};
497
811
  options.otherArgs = options.otherArgs || {};
498
812
  options.otherArgs.headers = options.otherArgs.headers || {};
499
- options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
500
- 'parent': request.parent ?? '',
501
- });
813
+ options.otherArgs.headers['x-goog-request-params'] =
814
+ this._gaxModule.routingHeader.fromParams({
815
+ parent: request.parent ?? '',
816
+ });
502
817
  const defaultCallSettings = this._defaults['listCustomTargetingKeys'];
503
818
  const callSettings = defaultCallSettings.merge(options);
504
- this.initialize().catch(err => { throw err; });
819
+ this.initialize().catch((err) => {
820
+ throw err;
821
+ });
505
822
  this._log.info('listCustomTargetingKeys iterate %j', request);
506
823
  return this.descriptors.page.listCustomTargetingKeys.asyncIterate(this.innerApiCalls['listCustomTargetingKeys'], request, callSettings);
507
824
  }
@@ -531,7 +848,8 @@ class CustomTargetingKeyServiceClient {
531
848
  * @returns {string} A string representing the network_code.
532
849
  */
533
850
  matchNetworkCodeFromAdBreakName(adBreakName) {
534
- return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
851
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
852
+ .network_code;
535
853
  }
536
854
  /**
537
855
  * Parse the asset_key from AdBreak resource.
@@ -652,7 +970,8 @@ class CustomTargetingKeyServiceClient {
652
970
  * @returns {string} A string representing the network_code.
653
971
  */
654
972
  matchNetworkCodeFromApplicationName(applicationName) {
655
- return this.pathTemplates.applicationPathTemplate.match(applicationName).network_code;
973
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
974
+ .network_code;
656
975
  }
657
976
  /**
658
977
  * Parse the application from Application resource.
@@ -662,7 +981,8 @@ class CustomTargetingKeyServiceClient {
662
981
  * @returns {string} A string representing the application.
663
982
  */
664
983
  matchApplicationFromApplicationName(applicationName) {
665
- return this.pathTemplates.applicationPathTemplate.match(applicationName).application;
984
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
985
+ .application;
666
986
  }
667
987
  /**
668
988
  * Return a fully-qualified audienceSegment resource name string.
@@ -751,7 +1071,8 @@ class CustomTargetingKeyServiceClient {
751
1071
  * @returns {string} A string representing the network_code.
752
1072
  */
753
1073
  matchNetworkCodeFromBrowserName(browserName) {
754
- return this.pathTemplates.browserPathTemplate.match(browserName).network_code;
1074
+ return this.pathTemplates.browserPathTemplate.match(browserName)
1075
+ .network_code;
755
1076
  }
756
1077
  /**
757
1078
  * Parse the browser from Browser resource.
@@ -796,6 +1117,39 @@ class CustomTargetingKeyServiceClient {
796
1117
  matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
797
1118
  return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
798
1119
  }
1120
+ /**
1121
+ * Return a fully-qualified childPublisher resource name string.
1122
+ *
1123
+ * @param {string} network_code
1124
+ * @param {string} child_publisher
1125
+ * @returns {string} Resource name string.
1126
+ */
1127
+ childPublisherPath(networkCode, childPublisher) {
1128
+ return this.pathTemplates.childPublisherPathTemplate.render({
1129
+ network_code: networkCode,
1130
+ child_publisher: childPublisher,
1131
+ });
1132
+ }
1133
+ /**
1134
+ * Parse the network_code from ChildPublisher resource.
1135
+ *
1136
+ * @param {string} childPublisherName
1137
+ * A fully-qualified path representing ChildPublisher resource.
1138
+ * @returns {string} A string representing the network_code.
1139
+ */
1140
+ matchNetworkCodeFromChildPublisherName(childPublisherName) {
1141
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
1142
+ }
1143
+ /**
1144
+ * Parse the child_publisher from ChildPublisher resource.
1145
+ *
1146
+ * @param {string} childPublisherName
1147
+ * A fully-qualified path representing ChildPublisher resource.
1148
+ * @returns {string} A string representing the child_publisher.
1149
+ */
1150
+ matchChildPublisherFromChildPublisherName(childPublisherName) {
1151
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
1152
+ }
799
1153
  /**
800
1154
  * Return a fully-qualified cmsMetadataKey resource name string.
801
1155
  *
@@ -883,7 +1237,8 @@ class CustomTargetingKeyServiceClient {
883
1237
  * @returns {string} A string representing the network_code.
884
1238
  */
885
1239
  matchNetworkCodeFromCompanyName(companyName) {
886
- return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
1240
+ return this.pathTemplates.companyPathTemplate.match(companyName)
1241
+ .network_code;
887
1242
  }
888
1243
  /**
889
1244
  * Parse the company from Company resource.
@@ -916,7 +1271,8 @@ class CustomTargetingKeyServiceClient {
916
1271
  * @returns {string} A string representing the network_code.
917
1272
  */
918
1273
  matchNetworkCodeFromContactName(contactName) {
919
- return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
1274
+ return this.pathTemplates.contactPathTemplate.match(contactName)
1275
+ .network_code;
920
1276
  }
921
1277
  /**
922
1278
  * Parse the contact from Contact resource.
@@ -949,7 +1305,8 @@ class CustomTargetingKeyServiceClient {
949
1305
  * @returns {string} A string representing the network_code.
950
1306
  */
951
1307
  matchNetworkCodeFromContentName(contentName) {
952
- return this.pathTemplates.contentPathTemplate.match(contentName).network_code;
1308
+ return this.pathTemplates.contentPathTemplate.match(contentName)
1309
+ .network_code;
953
1310
  }
954
1311
  /**
955
1312
  * Parse the content from Content resource.
@@ -982,7 +1339,8 @@ class CustomTargetingKeyServiceClient {
982
1339
  * @returns {string} A string representing the network_code.
983
1340
  */
984
1341
  matchNetworkCodeFromContentBundleName(contentBundleName) {
985
- return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).network_code;
1342
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1343
+ .network_code;
986
1344
  }
987
1345
  /**
988
1346
  * Parse the content_bundle from ContentBundle resource.
@@ -992,7 +1350,8 @@ class CustomTargetingKeyServiceClient {
992
1350
  * @returns {string} A string representing the content_bundle.
993
1351
  */
994
1352
  matchContentBundleFromContentBundleName(contentBundleName) {
995
- return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).content_bundle;
1353
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1354
+ .content_bundle;
996
1355
  }
997
1356
  /**
998
1357
  * Return a fully-qualified contentLabel resource name string.
@@ -1015,7 +1374,8 @@ class CustomTargetingKeyServiceClient {
1015
1374
  * @returns {string} A string representing the network_code.
1016
1375
  */
1017
1376
  matchNetworkCodeFromContentLabelName(contentLabelName) {
1018
- return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).network_code;
1377
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1378
+ .network_code;
1019
1379
  }
1020
1380
  /**
1021
1381
  * Parse the content_label from ContentLabel resource.
@@ -1025,7 +1385,8 @@ class CustomTargetingKeyServiceClient {
1025
1385
  * @returns {string} A string representing the content_label.
1026
1386
  */
1027
1387
  matchContentLabelFromContentLabelName(contentLabelName) {
1028
- return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).content_label;
1388
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1389
+ .content_label;
1029
1390
  }
1030
1391
  /**
1031
1392
  * Return a fully-qualified creativeTemplate resource name string.
@@ -1081,7 +1442,8 @@ class CustomTargetingKeyServiceClient {
1081
1442
  * @returns {string} A string representing the network_code.
1082
1443
  */
1083
1444
  matchNetworkCodeFromCustomFieldName(customFieldName) {
1084
- return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
1445
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1446
+ .network_code;
1085
1447
  }
1086
1448
  /**
1087
1449
  * Parse the custom_field from CustomField resource.
@@ -1091,7 +1453,8 @@ class CustomTargetingKeyServiceClient {
1091
1453
  * @returns {string} A string representing the custom_field.
1092
1454
  */
1093
1455
  matchCustomFieldFromCustomFieldName(customFieldName) {
1094
- return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
1456
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1457
+ .custom_field;
1095
1458
  }
1096
1459
  /**
1097
1460
  * Return a fully-qualified customTargetingKey resource name string.
@@ -1312,7 +1675,8 @@ class CustomTargetingKeyServiceClient {
1312
1675
  * @returns {string} A string representing the network_code.
1313
1676
  */
1314
1677
  matchNetworkCodeFromGeoTargetName(geoTargetName) {
1315
- return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).network_code;
1678
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1679
+ .network_code;
1316
1680
  }
1317
1681
  /**
1318
1682
  * Parse the geo_target from GeoTarget resource.
@@ -1322,7 +1686,8 @@ class CustomTargetingKeyServiceClient {
1322
1686
  * @returns {string} A string representing the geo_target.
1323
1687
  */
1324
1688
  matchGeoTargetFromGeoTargetName(geoTargetName) {
1325
- return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).geo_target;
1689
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1690
+ .geo_target;
1326
1691
  }
1327
1692
  /**
1328
1693
  * Return a fully-qualified label resource name string.
@@ -1357,6 +1722,76 @@ class CustomTargetingKeyServiceClient {
1357
1722
  matchLabelFromLabelName(labelName) {
1358
1723
  return this.pathTemplates.labelPathTemplate.match(labelName).label;
1359
1724
  }
1725
+ /**
1726
+ * Return a fully-qualified lineItem resource name string.
1727
+ *
1728
+ * @param {string} network_code
1729
+ * @param {string} line_item
1730
+ * @returns {string} Resource name string.
1731
+ */
1732
+ lineItemPath(networkCode, lineItem) {
1733
+ return this.pathTemplates.lineItemPathTemplate.render({
1734
+ network_code: networkCode,
1735
+ line_item: lineItem,
1736
+ });
1737
+ }
1738
+ /**
1739
+ * Parse the network_code from LineItem resource.
1740
+ *
1741
+ * @param {string} lineItemName
1742
+ * A fully-qualified path representing LineItem resource.
1743
+ * @returns {string} A string representing the network_code.
1744
+ */
1745
+ matchNetworkCodeFromLineItemName(lineItemName) {
1746
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1747
+ .network_code;
1748
+ }
1749
+ /**
1750
+ * Parse the line_item from LineItem resource.
1751
+ *
1752
+ * @param {string} lineItemName
1753
+ * A fully-qualified path representing LineItem resource.
1754
+ * @returns {string} A string representing the line_item.
1755
+ */
1756
+ matchLineItemFromLineItemName(lineItemName) {
1757
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1758
+ .line_item;
1759
+ }
1760
+ /**
1761
+ * Return a fully-qualified linkedDevice resource name string.
1762
+ *
1763
+ * @param {string} network_code
1764
+ * @param {string} linked_device
1765
+ * @returns {string} Resource name string.
1766
+ */
1767
+ linkedDevicePath(networkCode, linkedDevice) {
1768
+ return this.pathTemplates.linkedDevicePathTemplate.render({
1769
+ network_code: networkCode,
1770
+ linked_device: linkedDevice,
1771
+ });
1772
+ }
1773
+ /**
1774
+ * Parse the network_code from LinkedDevice resource.
1775
+ *
1776
+ * @param {string} linkedDeviceName
1777
+ * A fully-qualified path representing LinkedDevice resource.
1778
+ * @returns {string} A string representing the network_code.
1779
+ */
1780
+ matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
1781
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1782
+ .network_code;
1783
+ }
1784
+ /**
1785
+ * Parse the linked_device from LinkedDevice resource.
1786
+ *
1787
+ * @param {string} linkedDeviceName
1788
+ * A fully-qualified path representing LinkedDevice resource.
1789
+ * @returns {string} A string representing the linked_device.
1790
+ */
1791
+ matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
1792
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1793
+ .linked_device;
1794
+ }
1360
1795
  /**
1361
1796
  * Return a fully-qualified liveStreamEvent resource name string.
1362
1797
  *
@@ -1411,7 +1846,8 @@ class CustomTargetingKeyServiceClient {
1411
1846
  * @returns {string} A string representing the network_code.
1412
1847
  */
1413
1848
  matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
1414
- return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).network_code;
1849
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1850
+ .network_code;
1415
1851
  }
1416
1852
  /**
1417
1853
  * Parse the mobile_carrier from MobileCarrier resource.
@@ -1421,7 +1857,8 @@ class CustomTargetingKeyServiceClient {
1421
1857
  * @returns {string} A string representing the mobile_carrier.
1422
1858
  */
1423
1859
  matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
1424
- return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).mobile_carrier;
1860
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1861
+ .mobile_carrier;
1425
1862
  }
1426
1863
  /**
1427
1864
  * Return a fully-qualified mobileDevice resource name string.
@@ -1444,7 +1881,8 @@ class CustomTargetingKeyServiceClient {
1444
1881
  * @returns {string} A string representing the network_code.
1445
1882
  */
1446
1883
  matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
1447
- return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).network_code;
1884
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1885
+ .network_code;
1448
1886
  }
1449
1887
  /**
1450
1888
  * Parse the mobile_device from MobileDevice resource.
@@ -1454,7 +1892,8 @@ class CustomTargetingKeyServiceClient {
1454
1892
  * @returns {string} A string representing the mobile_device.
1455
1893
  */
1456
1894
  matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
1457
- return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).mobile_device;
1895
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1896
+ .mobile_device;
1458
1897
  }
1459
1898
  /**
1460
1899
  * Return a fully-qualified mobileDeviceSubmodel resource name string.
@@ -1508,7 +1947,8 @@ class CustomTargetingKeyServiceClient {
1508
1947
  * @returns {string} A string representing the network_code.
1509
1948
  */
1510
1949
  matchNetworkCodeFromNetworkName(networkName) {
1511
- return this.pathTemplates.networkPathTemplate.match(networkName).network_code;
1950
+ return this.pathTemplates.networkPathTemplate.match(networkName)
1951
+ .network_code;
1512
1952
  }
1513
1953
  /**
1514
1954
  * Return a fully-qualified operatingSystem resource name string.
@@ -1630,7 +2070,8 @@ class CustomTargetingKeyServiceClient {
1630
2070
  * @returns {string} A string representing the network_code.
1631
2071
  */
1632
2072
  matchNetworkCodeFromPlacementName(placementName) {
1633
- return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
2073
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2074
+ .network_code;
1634
2075
  }
1635
2076
  /**
1636
2077
  * Parse the placement from Placement resource.
@@ -1640,7 +2081,8 @@ class CustomTargetingKeyServiceClient {
1640
2081
  * @returns {string} A string representing the placement.
1641
2082
  */
1642
2083
  matchPlacementFromPlacementName(placementName) {
1643
- return this.pathTemplates.placementPathTemplate.match(placementName).placement;
2084
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2085
+ .placement;
1644
2086
  }
1645
2087
  /**
1646
2088
  * Return a fully-qualified privateAuction resource name string.
@@ -1774,6 +2216,39 @@ class CustomTargetingKeyServiceClient {
1774
2216
  matchReportFromReportName(reportName) {
1775
2217
  return this.pathTemplates.reportPathTemplate.match(reportName).report;
1776
2218
  }
2219
+ /**
2220
+ * Return a fully-qualified richMediaAdsCompany resource name string.
2221
+ *
2222
+ * @param {string} network_code
2223
+ * @param {string} rich_media_ads_company
2224
+ * @returns {string} Resource name string.
2225
+ */
2226
+ richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
2227
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
2228
+ network_code: networkCode,
2229
+ rich_media_ads_company: richMediaAdsCompany,
2230
+ });
2231
+ }
2232
+ /**
2233
+ * Parse the network_code from RichMediaAdsCompany resource.
2234
+ *
2235
+ * @param {string} richMediaAdsCompanyName
2236
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2237
+ * @returns {string} A string representing the network_code.
2238
+ */
2239
+ matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2240
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
2241
+ }
2242
+ /**
2243
+ * Parse the rich_media_ads_company from RichMediaAdsCompany resource.
2244
+ *
2245
+ * @param {string} richMediaAdsCompanyName
2246
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2247
+ * @returns {string} A string representing the rich_media_ads_company.
2248
+ */
2249
+ matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2250
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
2251
+ }
1777
2252
  /**
1778
2253
  * Return a fully-qualified role resource name string.
1779
2254
  *
@@ -1960,7 +2435,8 @@ class CustomTargetingKeyServiceClient {
1960
2435
  * @returns {string} A string representing the network_code.
1961
2436
  */
1962
2437
  matchNetworkCodeFromWebPropertyName(webPropertyName) {
1963
- return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).network_code;
2438
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2439
+ .network_code;
1964
2440
  }
1965
2441
  /**
1966
2442
  * Parse the web_property from WebProperty resource.
@@ -1970,7 +2446,8 @@ class CustomTargetingKeyServiceClient {
1970
2446
  * @returns {string} A string representing the web_property.
1971
2447
  */
1972
2448
  matchWebPropertyFromWebPropertyName(webPropertyName) {
1973
- return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).web_property;
2449
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2450
+ .web_property;
1974
2451
  }
1975
2452
  /**
1976
2453
  * Terminate the gRPC channel and close the client.
@@ -1980,7 +2457,7 @@ class CustomTargetingKeyServiceClient {
1980
2457
  */
1981
2458
  close() {
1982
2459
  if (this.customTargetingKeyServiceStub && !this._terminated) {
1983
- return this.customTargetingKeyServiceStub.then(stub => {
2460
+ return this.customTargetingKeyServiceStub.then((stub) => {
1984
2461
  this._log.info('ending gRPC channel');
1985
2462
  this._terminated = true;
1986
2463
  stub.close();