@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
@@ -0,0 +1,2208 @@
1
+ "use strict";
2
+ // Copyright 2026 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+ // ** This file is automatically generated by gapic-generator-typescript. **
17
+ // ** https://github.com/googleapis/gapic-generator-typescript **
18
+ // ** All changes to this file may be overwritten. **
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.RichMediaAdsCompanyServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ const google_gax_1 = require("google-gax");
23
+ /**
24
+ * Client JSON configuration object, loaded from
25
+ * `src/v1/rich_media_ads_company_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./rich_media_ads_company_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Provides methods for handling `RichMediaAdsCompany` objects.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class RichMediaAdsCompanyServiceClient {
36
+ _terminated = false;
37
+ _opts;
38
+ _providedCustomServicePath;
39
+ _gaxModule;
40
+ _gaxGrpc;
41
+ _protos;
42
+ _defaults;
43
+ _universeDomain;
44
+ _servicePath;
45
+ _log = google_gax_1.loggingUtils.log('admanager');
46
+ auth;
47
+ descriptors = {
48
+ page: {},
49
+ stream: {},
50
+ longrunning: {},
51
+ batching: {},
52
+ };
53
+ warn;
54
+ innerApiCalls;
55
+ pathTemplates;
56
+ richMediaAdsCompanyServiceStub;
57
+ /**
58
+ * Construct an instance of RichMediaAdsCompanyServiceClient.
59
+ *
60
+ * @param {object} [options] - The configuration object.
61
+ * The options accepted by the constructor are described in detail
62
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
63
+ * The common options are:
64
+ * @param {object} [options.credentials] - Credentials object.
65
+ * @param {string} [options.credentials.client_email]
66
+ * @param {string} [options.credentials.private_key]
67
+ * @param {string} [options.email] - Account email address. Required when
68
+ * using a .pem or .p12 keyFilename.
69
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
70
+ * .p12 key downloaded from the Google Developers Console. If you provide
71
+ * a path to a JSON file, the projectId option below is not necessary.
72
+ * NOTE: .pem and .p12 require you to specify options.email as well.
73
+ * @param {number} [options.port] - The port on which to connect to
74
+ * the remote host.
75
+ * @param {string} [options.projectId] - The project ID from the Google
76
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
77
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
78
+ * app is running in an environment which supports
79
+ * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
80
+ * your project ID will be detected automatically.
81
+ * @param {string} [options.apiEndpoint] - The domain name of the
82
+ * API remote host.
83
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
84
+ * Follows the structure of {@link gapicConfig}.
85
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
86
+ * For more information, please check the
87
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
88
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
89
+ * need to avoid loading the default gRPC version and want to use the fallback
90
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
91
+ * ```
92
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
93
+ * const client = new RichMediaAdsCompanyServiceClient({fallback: true}, gax);
94
+ * ```
95
+ */
96
+ constructor(opts, gaxInstance) {
97
+ // Ensure that options include all the required fields.
98
+ const staticMembers = this
99
+ .constructor;
100
+ if (opts?.universe_domain &&
101
+ opts?.universeDomain &&
102
+ opts?.universe_domain !== opts?.universeDomain) {
103
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
104
+ }
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';
113
+ this._servicePath = 'admanager.' + this._universeDomain;
114
+ const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
115
+ this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
116
+ const port = opts?.port || staticMembers.port;
117
+ const clientConfig = opts?.clientConfig ?? {};
118
+ // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute).
119
+ if (!opts) {
120
+ opts = { fallback: true };
121
+ }
122
+ else {
123
+ opts.fallback = opts.fallback ?? true;
124
+ }
125
+ const fallback = opts?.fallback ??
126
+ (typeof window !== 'undefined' && typeof window?.fetch === 'function');
127
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
128
+ // Request numeric enum values if REST transport is used.
129
+ opts.numericEnums = true;
130
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
131
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
132
+ opts['scopes'] = staticMembers.scopes;
133
+ }
134
+ // Load google-gax module synchronously if needed
135
+ if (!gaxInstance) {
136
+ gaxInstance = require('google-gax');
137
+ }
138
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
139
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
140
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
141
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
142
+ // Save options to use in initialize() method.
143
+ this._opts = opts;
144
+ // Save the auth object to the client, for use by other methods.
145
+ this.auth = this._gaxGrpc.auth;
146
+ // Set useJWTAccessWithScope on the auth object.
147
+ this.auth.useJWTAccessWithScope = true;
148
+ // Set defaultServicePath on the auth object.
149
+ this.auth.defaultServicePath = this._servicePath;
150
+ // Set the default scopes in auth client if needed.
151
+ if (servicePath === this._servicePath) {
152
+ this.auth.defaultScopes = staticMembers.scopes;
153
+ }
154
+ // Determine the client header string.
155
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
156
+ if (typeof process === 'object' && 'versions' in process) {
157
+ clientHeader.push(`gl-node/${process.versions.node}`);
158
+ }
159
+ else {
160
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
161
+ }
162
+ if (!opts.fallback) {
163
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
164
+ }
165
+ else {
166
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
167
+ }
168
+ if (opts.libName && opts.libVersion) {
169
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
170
+ }
171
+ // Load the applicable protos.
172
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
173
+ // This API contains "path templates"; forward-slash-separated
174
+ // identifiers to uniquely identify resources within the API.
175
+ // Create useful helper objects for these.
176
+ this.pathTemplates = {
177
+ adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
178
+ adReviewCenterAdPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}'),
179
+ adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
180
+ applicationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/applications/{application}'),
181
+ audienceSegmentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/audienceSegments/{audience_segment}'),
182
+ bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
183
+ browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
184
+ browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
185
+ childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
186
+ cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
187
+ cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
188
+ companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
189
+ contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
190
+ contentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/content/{content}'),
191
+ contentBundlePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentBundles/{content_bundle}'),
192
+ contentLabelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentLabels/{content_label}'),
193
+ creativeTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeTemplates/{creative_template}'),
194
+ customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
195
+ customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
196
+ customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
197
+ deviceCapabilityPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCapabilities/{device_capability}'),
198
+ deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
199
+ deviceManufacturerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceManufacturers/{device_manufacturer}'),
200
+ entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
201
+ geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
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}'),
205
+ liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
206
+ mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
207
+ mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
208
+ mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
209
+ networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
210
+ operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
211
+ operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
212
+ orderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/orders/{order}'),
213
+ placementPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/placements/{placement}'),
214
+ privateAuctionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctions/{private_auction}'),
215
+ privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
216
+ programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
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}'),
219
+ rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
220
+ sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
221
+ taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
222
+ teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
223
+ userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
224
+ webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
225
+ };
226
+ // Some of the methods on this service return "paged" results,
227
+ // (e.g. 50 results at a time, with tokens to get subsequent
228
+ // pages). Denote the keys used for pagination and results.
229
+ this.descriptors.page = {
230
+ listRichMediaAdsCompanies: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'richMediaAdsCompanies'),
231
+ };
232
+ // Put together the default options sent with requests.
233
+ this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.RichMediaAdsCompanyService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
234
+ // Set up a dictionary of "inner API calls"; the core implementation
235
+ // of calling the API is handled in `google-gax`, with this code
236
+ // merely providing the destination and request information.
237
+ this.innerApiCalls = {};
238
+ // Add a warn function to the client constructor so it can be easily tested.
239
+ this.warn = this._gaxModule.warn;
240
+ }
241
+ /**
242
+ * Initialize the client.
243
+ * Performs asynchronous operations (such as authentication) and prepares the client.
244
+ * This function will be called automatically when any class method is called for the
245
+ * first time, but if you need to initialize it before calling an actual method,
246
+ * feel free to call initialize() directly.
247
+ *
248
+ * You can await on this method if you want to make sure the client is initialized.
249
+ *
250
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
251
+ */
252
+ initialize() {
253
+ // If the client stub promise is already initialized, return immediately.
254
+ if (this.richMediaAdsCompanyServiceStub) {
255
+ return this.richMediaAdsCompanyServiceStub;
256
+ }
257
+ // Put together the "service stub" for
258
+ // google.ads.admanager.v1.RichMediaAdsCompanyService.
259
+ this.richMediaAdsCompanyServiceStub = this._gaxGrpc.createStub(this._opts.fallback
260
+ ? this._protos.lookupService('google.ads.admanager.v1.RichMediaAdsCompanyService')
261
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
262
+ this._protos.google.ads.admanager.v1
263
+ .RichMediaAdsCompanyService, this._opts, this._providedCustomServicePath);
264
+ // Iterate over each of the methods that the service provides
265
+ // and create an API call method for each.
266
+ const richMediaAdsCompanyServiceStubMethods = [
267
+ 'getRichMediaAdsCompany',
268
+ 'listRichMediaAdsCompanies',
269
+ ];
270
+ for (const methodName of richMediaAdsCompanyServiceStubMethods) {
271
+ const callPromise = this.richMediaAdsCompanyServiceStub.then((stub) => (...args) => {
272
+ if (this._terminated) {
273
+ return Promise.reject('The client has already been closed.');
274
+ }
275
+ const func = stub[methodName];
276
+ return func.apply(stub, args);
277
+ }, (err) => () => {
278
+ throw err;
279
+ });
280
+ const descriptor = this.descriptors.page[methodName] || undefined;
281
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
282
+ this.innerApiCalls[methodName] = apiCall;
283
+ }
284
+ return this.richMediaAdsCompanyServiceStub;
285
+ }
286
+ /**
287
+ * The DNS address for this API service.
288
+ * @deprecated Use the apiEndpoint method of the client instance.
289
+ * @returns {string} The DNS address for this service.
290
+ */
291
+ static get servicePath() {
292
+ if (typeof process === 'object' &&
293
+ typeof process.emitWarning === 'function') {
294
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
295
+ }
296
+ return 'admanager.googleapis.com';
297
+ }
298
+ /**
299
+ * The DNS address for this API service - same as servicePath.
300
+ * @deprecated Use the apiEndpoint method of the client instance.
301
+ * @returns {string} The DNS address for this service.
302
+ */
303
+ static get apiEndpoint() {
304
+ if (typeof process === 'object' &&
305
+ typeof process.emitWarning === 'function') {
306
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
307
+ }
308
+ return 'admanager.googleapis.com';
309
+ }
310
+ /**
311
+ * The DNS address for this API service.
312
+ * @returns {string} The DNS address for this service.
313
+ */
314
+ get apiEndpoint() {
315
+ return this._servicePath;
316
+ }
317
+ get universeDomain() {
318
+ return this._universeDomain;
319
+ }
320
+ /**
321
+ * The port for this API service.
322
+ * @returns {number} The default port for this service.
323
+ */
324
+ static get port() {
325
+ return 443;
326
+ }
327
+ /**
328
+ * The scopes needed to make gRPC calls for every method defined
329
+ * in this service.
330
+ * @returns {string[]} List of default scopes.
331
+ */
332
+ static get scopes() {
333
+ return [
334
+ 'https://www.googleapis.com/auth/admanager',
335
+ 'https://www.googleapis.com/auth/admanager.readonly',
336
+ ];
337
+ }
338
+ /**
339
+ * Return the project ID used by this class.
340
+ * @returns {Promise} A promise that resolves to string containing the project ID.
341
+ */
342
+ getProjectId(callback) {
343
+ if (callback) {
344
+ this.auth.getProjectId(callback);
345
+ return;
346
+ }
347
+ return this.auth.getProjectId();
348
+ }
349
+ getRichMediaAdsCompany(request, optionsOrCallback, callback) {
350
+ request = request || {};
351
+ let options;
352
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
353
+ callback = optionsOrCallback;
354
+ options = {};
355
+ }
356
+ else {
357
+ options = optionsOrCallback;
358
+ }
359
+ options = options || {};
360
+ options.otherArgs = options.otherArgs || {};
361
+ options.otherArgs.headers = options.otherArgs.headers || {};
362
+ options.otherArgs.headers['x-goog-request-params'] =
363
+ this._gaxModule.routingHeader.fromParams({
364
+ name: request.name ?? '',
365
+ });
366
+ this.initialize().catch((err) => {
367
+ throw err;
368
+ });
369
+ this._log.info('getRichMediaAdsCompany request %j', request);
370
+ const wrappedCallback = callback
371
+ ? (error, response, options, rawResponse) => {
372
+ this._log.info('getRichMediaAdsCompany response %j', response);
373
+ callback(error, response, options, rawResponse); // We verified callback above.
374
+ }
375
+ : undefined;
376
+ return this.innerApiCalls
377
+ .getRichMediaAdsCompany(request, options, wrappedCallback)
378
+ ?.then(([response, options, rawResponse]) => {
379
+ this._log.info('getRichMediaAdsCompany response %j', response);
380
+ return [response, options, rawResponse];
381
+ })
382
+ .catch((error) => {
383
+ if (error &&
384
+ 'statusDetails' in error &&
385
+ error.statusDetails instanceof Array) {
386
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
387
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
388
+ }
389
+ throw error;
390
+ });
391
+ }
392
+ listRichMediaAdsCompanies(request, optionsOrCallback, callback) {
393
+ request = request || {};
394
+ let options;
395
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
396
+ callback = optionsOrCallback;
397
+ options = {};
398
+ }
399
+ else {
400
+ options = optionsOrCallback;
401
+ }
402
+ options = options || {};
403
+ options.otherArgs = options.otherArgs || {};
404
+ options.otherArgs.headers = options.otherArgs.headers || {};
405
+ options.otherArgs.headers['x-goog-request-params'] =
406
+ this._gaxModule.routingHeader.fromParams({
407
+ parent: request.parent ?? '',
408
+ });
409
+ this.initialize().catch((err) => {
410
+ throw err;
411
+ });
412
+ const wrappedCallback = callback
413
+ ? (error, values, nextPageRequest, rawResponse) => {
414
+ this._log.info('listRichMediaAdsCompanies values %j', values);
415
+ callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
416
+ }
417
+ : undefined;
418
+ this._log.info('listRichMediaAdsCompanies request %j', request);
419
+ return this.innerApiCalls
420
+ .listRichMediaAdsCompanies(request, options, wrappedCallback)
421
+ ?.then(([response, input, output]) => {
422
+ this._log.info('listRichMediaAdsCompanies values %j', response);
423
+ return [response, input, output];
424
+ });
425
+ }
426
+ /**
427
+ * Equivalent to `listRichMediaAdsCompanies`, but returns a NodeJS Stream object.
428
+ * @param {Object} request
429
+ * The request object that will be sent.
430
+ * @param {string} request.parent
431
+ * Required. The parent, which owns this collection of RichMediaAdsCompanies.
432
+ * Format: `networks/{network_code}`
433
+ * @param {number} [request.pageSize]
434
+ * Optional. The maximum number of `RichMediaAdsCompanies` to return. The
435
+ * service may return fewer than this value. If unspecified, at most 50
436
+ * `RichMediaAdsCompanies` will be returned. The maximum value is 1000; values
437
+ * greater than 1000 will be coerced to 1000.
438
+ * @param {string} [request.pageToken]
439
+ * Optional. A page token, received from a previous
440
+ * `ListRichMediaAdsCompanies` call. Provide this to retrieve the subsequent
441
+ * page.
442
+ *
443
+ * When paginating, all other parameters provided to
444
+ * `ListRichMediaAdsCompanies` must match the call that provided the page
445
+ * token.
446
+ * @param {string} [request.filter]
447
+ * Optional. Expression to filter the response.
448
+ * See syntax details at
449
+ * https://developers.google.com/ad-manager/api/beta/filters
450
+ *
451
+ * <b>Filterable fields:</b>
452
+ * <ul style="list-style-type:none">
453
+ * <li><code>companyGvlId</code></li>
454
+ * <li><code>displayName</code></li>
455
+ * <li><code>gdprStatus</code></li>
456
+ * <li><code>name</code></li>
457
+ * <li><code>policyUrl</code></li>
458
+ * </ul>
459
+ * @param {string} [request.orderBy]
460
+ * Optional. Expression to specify sorting order.
461
+ * See syntax details at
462
+ * https://developers.google.com/ad-manager/api/beta/filters#order
463
+ * @param {number} [request.skip]
464
+ * Optional. Number of individual resources to skip while paginating.
465
+ * @param {object} [options]
466
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
467
+ * @returns {Stream}
468
+ * An object stream which emits an object representing {@link protos.google.ads.admanager.v1.RichMediaAdsCompany|RichMediaAdsCompany} on 'data' event.
469
+ * The client library will perform auto-pagination by default: it will call the API as many
470
+ * times as needed. Note that it can affect your quota.
471
+ * We recommend using `listRichMediaAdsCompaniesAsync()`
472
+ * method described below for async iteration which you can stop as needed.
473
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
474
+ * for more details and examples.
475
+ */
476
+ listRichMediaAdsCompaniesStream(request, options) {
477
+ request = request || {};
478
+ options = options || {};
479
+ options.otherArgs = options.otherArgs || {};
480
+ options.otherArgs.headers = options.otherArgs.headers || {};
481
+ options.otherArgs.headers['x-goog-request-params'] =
482
+ this._gaxModule.routingHeader.fromParams({
483
+ parent: request.parent ?? '',
484
+ });
485
+ const defaultCallSettings = this._defaults['listRichMediaAdsCompanies'];
486
+ const callSettings = defaultCallSettings.merge(options);
487
+ this.initialize().catch((err) => {
488
+ throw err;
489
+ });
490
+ this._log.info('listRichMediaAdsCompanies stream %j', request);
491
+ return this.descriptors.page.listRichMediaAdsCompanies.createStream(this.innerApiCalls.listRichMediaAdsCompanies, request, callSettings);
492
+ }
493
+ /**
494
+ * Equivalent to `listRichMediaAdsCompanies`, but returns an iterable object.
495
+ *
496
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
497
+ * @param {Object} request
498
+ * The request object that will be sent.
499
+ * @param {string} request.parent
500
+ * Required. The parent, which owns this collection of RichMediaAdsCompanies.
501
+ * Format: `networks/{network_code}`
502
+ * @param {number} [request.pageSize]
503
+ * Optional. The maximum number of `RichMediaAdsCompanies` to return. The
504
+ * service may return fewer than this value. If unspecified, at most 50
505
+ * `RichMediaAdsCompanies` will be returned. The maximum value is 1000; values
506
+ * greater than 1000 will be coerced to 1000.
507
+ * @param {string} [request.pageToken]
508
+ * Optional. A page token, received from a previous
509
+ * `ListRichMediaAdsCompanies` call. Provide this to retrieve the subsequent
510
+ * page.
511
+ *
512
+ * When paginating, all other parameters provided to
513
+ * `ListRichMediaAdsCompanies` must match the call that provided the page
514
+ * token.
515
+ * @param {string} [request.filter]
516
+ * Optional. Expression to filter the response.
517
+ * See syntax details at
518
+ * https://developers.google.com/ad-manager/api/beta/filters
519
+ *
520
+ * <b>Filterable fields:</b>
521
+ * <ul style="list-style-type:none">
522
+ * <li><code>companyGvlId</code></li>
523
+ * <li><code>displayName</code></li>
524
+ * <li><code>gdprStatus</code></li>
525
+ * <li><code>name</code></li>
526
+ * <li><code>policyUrl</code></li>
527
+ * </ul>
528
+ * @param {string} [request.orderBy]
529
+ * Optional. Expression to specify sorting order.
530
+ * See syntax details at
531
+ * https://developers.google.com/ad-manager/api/beta/filters#order
532
+ * @param {number} [request.skip]
533
+ * Optional. Number of individual resources to skip while paginating.
534
+ * @param {object} [options]
535
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
536
+ * @returns {Object}
537
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
538
+ * When you iterate the returned iterable, each element will be an object representing
539
+ * {@link protos.google.ads.admanager.v1.RichMediaAdsCompany|RichMediaAdsCompany}. The API will be called under the hood as needed, once per the page,
540
+ * so you can stop the iteration when you don't need more results.
541
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
542
+ * for more details and examples.
543
+ * @example <caption>include:samples/generated/v1/rich_media_ads_company_service.list_rich_media_ads_companies.js</caption>
544
+ * region_tag:admanager_v1_generated_RichMediaAdsCompanyService_ListRichMediaAdsCompanies_async
545
+ */
546
+ listRichMediaAdsCompaniesAsync(request, options) {
547
+ request = request || {};
548
+ options = options || {};
549
+ options.otherArgs = options.otherArgs || {};
550
+ options.otherArgs.headers = options.otherArgs.headers || {};
551
+ options.otherArgs.headers['x-goog-request-params'] =
552
+ this._gaxModule.routingHeader.fromParams({
553
+ parent: request.parent ?? '',
554
+ });
555
+ const defaultCallSettings = this._defaults['listRichMediaAdsCompanies'];
556
+ const callSettings = defaultCallSettings.merge(options);
557
+ this.initialize().catch((err) => {
558
+ throw err;
559
+ });
560
+ this._log.info('listRichMediaAdsCompanies iterate %j', request);
561
+ return this.descriptors.page.listRichMediaAdsCompanies.asyncIterate(this.innerApiCalls['listRichMediaAdsCompanies'], request, callSettings);
562
+ }
563
+ // --------------------
564
+ // -- Path templates --
565
+ // --------------------
566
+ /**
567
+ * Return a fully-qualified adBreak resource name string.
568
+ *
569
+ * @param {string} network_code
570
+ * @param {string} asset_key
571
+ * @param {string} ad_break
572
+ * @returns {string} Resource name string.
573
+ */
574
+ adBreakPath(networkCode, assetKey, adBreak) {
575
+ return this.pathTemplates.adBreakPathTemplate.render({
576
+ network_code: networkCode,
577
+ asset_key: assetKey,
578
+ ad_break: adBreak,
579
+ });
580
+ }
581
+ /**
582
+ * Parse the network_code from AdBreak resource.
583
+ *
584
+ * @param {string} adBreakName
585
+ * A fully-qualified path representing AdBreak resource.
586
+ * @returns {string} A string representing the network_code.
587
+ */
588
+ matchNetworkCodeFromAdBreakName(adBreakName) {
589
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
590
+ .network_code;
591
+ }
592
+ /**
593
+ * Parse the asset_key from AdBreak resource.
594
+ *
595
+ * @param {string} adBreakName
596
+ * A fully-qualified path representing AdBreak resource.
597
+ * @returns {string} A string representing the asset_key.
598
+ */
599
+ matchAssetKeyFromAdBreakName(adBreakName) {
600
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
601
+ }
602
+ /**
603
+ * Parse the ad_break from AdBreak resource.
604
+ *
605
+ * @param {string} adBreakName
606
+ * A fully-qualified path representing AdBreak resource.
607
+ * @returns {string} A string representing the ad_break.
608
+ */
609
+ matchAdBreakFromAdBreakName(adBreakName) {
610
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
611
+ }
612
+ /**
613
+ * Return a fully-qualified adReviewCenterAd resource name string.
614
+ *
615
+ * @param {string} network_code
616
+ * @param {string} web_property_code
617
+ * @param {string} ad_review_center_ad
618
+ * @returns {string} Resource name string.
619
+ */
620
+ adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
621
+ return this.pathTemplates.adReviewCenterAdPathTemplate.render({
622
+ network_code: networkCode,
623
+ web_property_code: webPropertyCode,
624
+ ad_review_center_ad: adReviewCenterAd,
625
+ });
626
+ }
627
+ /**
628
+ * Parse the network_code from AdReviewCenterAd resource.
629
+ *
630
+ * @param {string} adReviewCenterAdName
631
+ * A fully-qualified path representing AdReviewCenterAd resource.
632
+ * @returns {string} A string representing the network_code.
633
+ */
634
+ matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
635
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
636
+ }
637
+ /**
638
+ * Parse the web_property_code from AdReviewCenterAd resource.
639
+ *
640
+ * @param {string} adReviewCenterAdName
641
+ * A fully-qualified path representing AdReviewCenterAd resource.
642
+ * @returns {string} A string representing the web_property_code.
643
+ */
644
+ matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
645
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
646
+ }
647
+ /**
648
+ * Parse the ad_review_center_ad from AdReviewCenterAd resource.
649
+ *
650
+ * @param {string} adReviewCenterAdName
651
+ * A fully-qualified path representing AdReviewCenterAd resource.
652
+ * @returns {string} A string representing the ad_review_center_ad.
653
+ */
654
+ matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
655
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
656
+ }
657
+ /**
658
+ * Return a fully-qualified adUnit resource name string.
659
+ *
660
+ * @param {string} network_code
661
+ * @param {string} ad_unit
662
+ * @returns {string} Resource name string.
663
+ */
664
+ adUnitPath(networkCode, adUnit) {
665
+ return this.pathTemplates.adUnitPathTemplate.render({
666
+ network_code: networkCode,
667
+ ad_unit: adUnit,
668
+ });
669
+ }
670
+ /**
671
+ * Parse the network_code from AdUnit resource.
672
+ *
673
+ * @param {string} adUnitName
674
+ * A fully-qualified path representing AdUnit resource.
675
+ * @returns {string} A string representing the network_code.
676
+ */
677
+ matchNetworkCodeFromAdUnitName(adUnitName) {
678
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
679
+ }
680
+ /**
681
+ * Parse the ad_unit from AdUnit resource.
682
+ *
683
+ * @param {string} adUnitName
684
+ * A fully-qualified path representing AdUnit resource.
685
+ * @returns {string} A string representing the ad_unit.
686
+ */
687
+ matchAdUnitFromAdUnitName(adUnitName) {
688
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
689
+ }
690
+ /**
691
+ * Return a fully-qualified application resource name string.
692
+ *
693
+ * @param {string} network_code
694
+ * @param {string} application
695
+ * @returns {string} Resource name string.
696
+ */
697
+ applicationPath(networkCode, application) {
698
+ return this.pathTemplates.applicationPathTemplate.render({
699
+ network_code: networkCode,
700
+ application: application,
701
+ });
702
+ }
703
+ /**
704
+ * Parse the network_code from Application resource.
705
+ *
706
+ * @param {string} applicationName
707
+ * A fully-qualified path representing Application resource.
708
+ * @returns {string} A string representing the network_code.
709
+ */
710
+ matchNetworkCodeFromApplicationName(applicationName) {
711
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
712
+ .network_code;
713
+ }
714
+ /**
715
+ * Parse the application from Application resource.
716
+ *
717
+ * @param {string} applicationName
718
+ * A fully-qualified path representing Application resource.
719
+ * @returns {string} A string representing the application.
720
+ */
721
+ matchApplicationFromApplicationName(applicationName) {
722
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
723
+ .application;
724
+ }
725
+ /**
726
+ * Return a fully-qualified audienceSegment resource name string.
727
+ *
728
+ * @param {string} network_code
729
+ * @param {string} audience_segment
730
+ * @returns {string} Resource name string.
731
+ */
732
+ audienceSegmentPath(networkCode, audienceSegment) {
733
+ return this.pathTemplates.audienceSegmentPathTemplate.render({
734
+ network_code: networkCode,
735
+ audience_segment: audienceSegment,
736
+ });
737
+ }
738
+ /**
739
+ * Parse the network_code from AudienceSegment resource.
740
+ *
741
+ * @param {string} audienceSegmentName
742
+ * A fully-qualified path representing AudienceSegment resource.
743
+ * @returns {string} A string representing the network_code.
744
+ */
745
+ matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
746
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
747
+ }
748
+ /**
749
+ * Parse the audience_segment from AudienceSegment resource.
750
+ *
751
+ * @param {string} audienceSegmentName
752
+ * A fully-qualified path representing AudienceSegment resource.
753
+ * @returns {string} A string representing the audience_segment.
754
+ */
755
+ matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
756
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
757
+ }
758
+ /**
759
+ * Return a fully-qualified bandwidthGroup resource name string.
760
+ *
761
+ * @param {string} network_code
762
+ * @param {string} bandwidth_group
763
+ * @returns {string} Resource name string.
764
+ */
765
+ bandwidthGroupPath(networkCode, bandwidthGroup) {
766
+ return this.pathTemplates.bandwidthGroupPathTemplate.render({
767
+ network_code: networkCode,
768
+ bandwidth_group: bandwidthGroup,
769
+ });
770
+ }
771
+ /**
772
+ * Parse the network_code from BandwidthGroup resource.
773
+ *
774
+ * @param {string} bandwidthGroupName
775
+ * A fully-qualified path representing BandwidthGroup resource.
776
+ * @returns {string} A string representing the network_code.
777
+ */
778
+ matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
779
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
780
+ }
781
+ /**
782
+ * Parse the bandwidth_group from BandwidthGroup resource.
783
+ *
784
+ * @param {string} bandwidthGroupName
785
+ * A fully-qualified path representing BandwidthGroup resource.
786
+ * @returns {string} A string representing the bandwidth_group.
787
+ */
788
+ matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
789
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
790
+ }
791
+ /**
792
+ * Return a fully-qualified browser resource name string.
793
+ *
794
+ * @param {string} network_code
795
+ * @param {string} browser
796
+ * @returns {string} Resource name string.
797
+ */
798
+ browserPath(networkCode, browser) {
799
+ return this.pathTemplates.browserPathTemplate.render({
800
+ network_code: networkCode,
801
+ browser: browser,
802
+ });
803
+ }
804
+ /**
805
+ * Parse the network_code from Browser resource.
806
+ *
807
+ * @param {string} browserName
808
+ * A fully-qualified path representing Browser resource.
809
+ * @returns {string} A string representing the network_code.
810
+ */
811
+ matchNetworkCodeFromBrowserName(browserName) {
812
+ return this.pathTemplates.browserPathTemplate.match(browserName)
813
+ .network_code;
814
+ }
815
+ /**
816
+ * Parse the browser from Browser resource.
817
+ *
818
+ * @param {string} browserName
819
+ * A fully-qualified path representing Browser resource.
820
+ * @returns {string} A string representing the browser.
821
+ */
822
+ matchBrowserFromBrowserName(browserName) {
823
+ return this.pathTemplates.browserPathTemplate.match(browserName).browser;
824
+ }
825
+ /**
826
+ * Return a fully-qualified browserLanguage resource name string.
827
+ *
828
+ * @param {string} network_code
829
+ * @param {string} browser_language
830
+ * @returns {string} Resource name string.
831
+ */
832
+ browserLanguagePath(networkCode, browserLanguage) {
833
+ return this.pathTemplates.browserLanguagePathTemplate.render({
834
+ network_code: networkCode,
835
+ browser_language: browserLanguage,
836
+ });
837
+ }
838
+ /**
839
+ * Parse the network_code from BrowserLanguage resource.
840
+ *
841
+ * @param {string} browserLanguageName
842
+ * A fully-qualified path representing BrowserLanguage resource.
843
+ * @returns {string} A string representing the network_code.
844
+ */
845
+ matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
846
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
847
+ }
848
+ /**
849
+ * Parse the browser_language from BrowserLanguage resource.
850
+ *
851
+ * @param {string} browserLanguageName
852
+ * A fully-qualified path representing BrowserLanguage resource.
853
+ * @returns {string} A string representing the browser_language.
854
+ */
855
+ matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
856
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
857
+ }
858
+ /**
859
+ * Return a fully-qualified childPublisher resource name string.
860
+ *
861
+ * @param {string} network_code
862
+ * @param {string} child_publisher
863
+ * @returns {string} Resource name string.
864
+ */
865
+ childPublisherPath(networkCode, childPublisher) {
866
+ return this.pathTemplates.childPublisherPathTemplate.render({
867
+ network_code: networkCode,
868
+ child_publisher: childPublisher,
869
+ });
870
+ }
871
+ /**
872
+ * Parse the network_code from ChildPublisher resource.
873
+ *
874
+ * @param {string} childPublisherName
875
+ * A fully-qualified path representing ChildPublisher resource.
876
+ * @returns {string} A string representing the network_code.
877
+ */
878
+ matchNetworkCodeFromChildPublisherName(childPublisherName) {
879
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
880
+ }
881
+ /**
882
+ * Parse the child_publisher from ChildPublisher resource.
883
+ *
884
+ * @param {string} childPublisherName
885
+ * A fully-qualified path representing ChildPublisher resource.
886
+ * @returns {string} A string representing the child_publisher.
887
+ */
888
+ matchChildPublisherFromChildPublisherName(childPublisherName) {
889
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
890
+ }
891
+ /**
892
+ * Return a fully-qualified cmsMetadataKey resource name string.
893
+ *
894
+ * @param {string} network_code
895
+ * @param {string} cms_metadata_key
896
+ * @returns {string} Resource name string.
897
+ */
898
+ cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
899
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
900
+ network_code: networkCode,
901
+ cms_metadata_key: cmsMetadataKey,
902
+ });
903
+ }
904
+ /**
905
+ * Parse the network_code from CmsMetadataKey resource.
906
+ *
907
+ * @param {string} cmsMetadataKeyName
908
+ * A fully-qualified path representing CmsMetadataKey resource.
909
+ * @returns {string} A string representing the network_code.
910
+ */
911
+ matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
912
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
913
+ }
914
+ /**
915
+ * Parse the cms_metadata_key from CmsMetadataKey resource.
916
+ *
917
+ * @param {string} cmsMetadataKeyName
918
+ * A fully-qualified path representing CmsMetadataKey resource.
919
+ * @returns {string} A string representing the cms_metadata_key.
920
+ */
921
+ matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
922
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
923
+ }
924
+ /**
925
+ * Return a fully-qualified cmsMetadataValue resource name string.
926
+ *
927
+ * @param {string} network_code
928
+ * @param {string} cms_metadata_value
929
+ * @returns {string} Resource name string.
930
+ */
931
+ cmsMetadataValuePath(networkCode, cmsMetadataValue) {
932
+ return this.pathTemplates.cmsMetadataValuePathTemplate.render({
933
+ network_code: networkCode,
934
+ cms_metadata_value: cmsMetadataValue,
935
+ });
936
+ }
937
+ /**
938
+ * Parse the network_code from CmsMetadataValue resource.
939
+ *
940
+ * @param {string} cmsMetadataValueName
941
+ * A fully-qualified path representing CmsMetadataValue resource.
942
+ * @returns {string} A string representing the network_code.
943
+ */
944
+ matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
945
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
946
+ }
947
+ /**
948
+ * Parse the cms_metadata_value from CmsMetadataValue resource.
949
+ *
950
+ * @param {string} cmsMetadataValueName
951
+ * A fully-qualified path representing CmsMetadataValue resource.
952
+ * @returns {string} A string representing the cms_metadata_value.
953
+ */
954
+ matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
955
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
956
+ }
957
+ /**
958
+ * Return a fully-qualified company resource name string.
959
+ *
960
+ * @param {string} network_code
961
+ * @param {string} company
962
+ * @returns {string} Resource name string.
963
+ */
964
+ companyPath(networkCode, company) {
965
+ return this.pathTemplates.companyPathTemplate.render({
966
+ network_code: networkCode,
967
+ company: company,
968
+ });
969
+ }
970
+ /**
971
+ * Parse the network_code from Company resource.
972
+ *
973
+ * @param {string} companyName
974
+ * A fully-qualified path representing Company resource.
975
+ * @returns {string} A string representing the network_code.
976
+ */
977
+ matchNetworkCodeFromCompanyName(companyName) {
978
+ return this.pathTemplates.companyPathTemplate.match(companyName)
979
+ .network_code;
980
+ }
981
+ /**
982
+ * Parse the company from Company resource.
983
+ *
984
+ * @param {string} companyName
985
+ * A fully-qualified path representing Company resource.
986
+ * @returns {string} A string representing the company.
987
+ */
988
+ matchCompanyFromCompanyName(companyName) {
989
+ return this.pathTemplates.companyPathTemplate.match(companyName).company;
990
+ }
991
+ /**
992
+ * Return a fully-qualified contact resource name string.
993
+ *
994
+ * @param {string} network_code
995
+ * @param {string} contact
996
+ * @returns {string} Resource name string.
997
+ */
998
+ contactPath(networkCode, contact) {
999
+ return this.pathTemplates.contactPathTemplate.render({
1000
+ network_code: networkCode,
1001
+ contact: contact,
1002
+ });
1003
+ }
1004
+ /**
1005
+ * Parse the network_code from Contact resource.
1006
+ *
1007
+ * @param {string} contactName
1008
+ * A fully-qualified path representing Contact resource.
1009
+ * @returns {string} A string representing the network_code.
1010
+ */
1011
+ matchNetworkCodeFromContactName(contactName) {
1012
+ return this.pathTemplates.contactPathTemplate.match(contactName)
1013
+ .network_code;
1014
+ }
1015
+ /**
1016
+ * Parse the contact from Contact resource.
1017
+ *
1018
+ * @param {string} contactName
1019
+ * A fully-qualified path representing Contact resource.
1020
+ * @returns {string} A string representing the contact.
1021
+ */
1022
+ matchContactFromContactName(contactName) {
1023
+ return this.pathTemplates.contactPathTemplate.match(contactName).contact;
1024
+ }
1025
+ /**
1026
+ * Return a fully-qualified content resource name string.
1027
+ *
1028
+ * @param {string} network_code
1029
+ * @param {string} content
1030
+ * @returns {string} Resource name string.
1031
+ */
1032
+ contentPath(networkCode, content) {
1033
+ return this.pathTemplates.contentPathTemplate.render({
1034
+ network_code: networkCode,
1035
+ content: content,
1036
+ });
1037
+ }
1038
+ /**
1039
+ * Parse the network_code from Content resource.
1040
+ *
1041
+ * @param {string} contentName
1042
+ * A fully-qualified path representing Content resource.
1043
+ * @returns {string} A string representing the network_code.
1044
+ */
1045
+ matchNetworkCodeFromContentName(contentName) {
1046
+ return this.pathTemplates.contentPathTemplate.match(contentName)
1047
+ .network_code;
1048
+ }
1049
+ /**
1050
+ * Parse the content from Content resource.
1051
+ *
1052
+ * @param {string} contentName
1053
+ * A fully-qualified path representing Content resource.
1054
+ * @returns {string} A string representing the content.
1055
+ */
1056
+ matchContentFromContentName(contentName) {
1057
+ return this.pathTemplates.contentPathTemplate.match(contentName).content;
1058
+ }
1059
+ /**
1060
+ * Return a fully-qualified contentBundle resource name string.
1061
+ *
1062
+ * @param {string} network_code
1063
+ * @param {string} content_bundle
1064
+ * @returns {string} Resource name string.
1065
+ */
1066
+ contentBundlePath(networkCode, contentBundle) {
1067
+ return this.pathTemplates.contentBundlePathTemplate.render({
1068
+ network_code: networkCode,
1069
+ content_bundle: contentBundle,
1070
+ });
1071
+ }
1072
+ /**
1073
+ * Parse the network_code from ContentBundle resource.
1074
+ *
1075
+ * @param {string} contentBundleName
1076
+ * A fully-qualified path representing ContentBundle resource.
1077
+ * @returns {string} A string representing the network_code.
1078
+ */
1079
+ matchNetworkCodeFromContentBundleName(contentBundleName) {
1080
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1081
+ .network_code;
1082
+ }
1083
+ /**
1084
+ * Parse the content_bundle from ContentBundle resource.
1085
+ *
1086
+ * @param {string} contentBundleName
1087
+ * A fully-qualified path representing ContentBundle resource.
1088
+ * @returns {string} A string representing the content_bundle.
1089
+ */
1090
+ matchContentBundleFromContentBundleName(contentBundleName) {
1091
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1092
+ .content_bundle;
1093
+ }
1094
+ /**
1095
+ * Return a fully-qualified contentLabel resource name string.
1096
+ *
1097
+ * @param {string} network_code
1098
+ * @param {string} content_label
1099
+ * @returns {string} Resource name string.
1100
+ */
1101
+ contentLabelPath(networkCode, contentLabel) {
1102
+ return this.pathTemplates.contentLabelPathTemplate.render({
1103
+ network_code: networkCode,
1104
+ content_label: contentLabel,
1105
+ });
1106
+ }
1107
+ /**
1108
+ * Parse the network_code from ContentLabel resource.
1109
+ *
1110
+ * @param {string} contentLabelName
1111
+ * A fully-qualified path representing ContentLabel resource.
1112
+ * @returns {string} A string representing the network_code.
1113
+ */
1114
+ matchNetworkCodeFromContentLabelName(contentLabelName) {
1115
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1116
+ .network_code;
1117
+ }
1118
+ /**
1119
+ * Parse the content_label from ContentLabel resource.
1120
+ *
1121
+ * @param {string} contentLabelName
1122
+ * A fully-qualified path representing ContentLabel resource.
1123
+ * @returns {string} A string representing the content_label.
1124
+ */
1125
+ matchContentLabelFromContentLabelName(contentLabelName) {
1126
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1127
+ .content_label;
1128
+ }
1129
+ /**
1130
+ * Return a fully-qualified creativeTemplate resource name string.
1131
+ *
1132
+ * @param {string} network_code
1133
+ * @param {string} creative_template
1134
+ * @returns {string} Resource name string.
1135
+ */
1136
+ creativeTemplatePath(networkCode, creativeTemplate) {
1137
+ return this.pathTemplates.creativeTemplatePathTemplate.render({
1138
+ network_code: networkCode,
1139
+ creative_template: creativeTemplate,
1140
+ });
1141
+ }
1142
+ /**
1143
+ * Parse the network_code from CreativeTemplate resource.
1144
+ *
1145
+ * @param {string} creativeTemplateName
1146
+ * A fully-qualified path representing CreativeTemplate resource.
1147
+ * @returns {string} A string representing the network_code.
1148
+ */
1149
+ matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
1150
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
1151
+ }
1152
+ /**
1153
+ * Parse the creative_template from CreativeTemplate resource.
1154
+ *
1155
+ * @param {string} creativeTemplateName
1156
+ * A fully-qualified path representing CreativeTemplate resource.
1157
+ * @returns {string} A string representing the creative_template.
1158
+ */
1159
+ matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
1160
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
1161
+ }
1162
+ /**
1163
+ * Return a fully-qualified customField resource name string.
1164
+ *
1165
+ * @param {string} network_code
1166
+ * @param {string} custom_field
1167
+ * @returns {string} Resource name string.
1168
+ */
1169
+ customFieldPath(networkCode, customField) {
1170
+ return this.pathTemplates.customFieldPathTemplate.render({
1171
+ network_code: networkCode,
1172
+ custom_field: customField,
1173
+ });
1174
+ }
1175
+ /**
1176
+ * Parse the network_code from CustomField resource.
1177
+ *
1178
+ * @param {string} customFieldName
1179
+ * A fully-qualified path representing CustomField resource.
1180
+ * @returns {string} A string representing the network_code.
1181
+ */
1182
+ matchNetworkCodeFromCustomFieldName(customFieldName) {
1183
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1184
+ .network_code;
1185
+ }
1186
+ /**
1187
+ * Parse the custom_field from CustomField resource.
1188
+ *
1189
+ * @param {string} customFieldName
1190
+ * A fully-qualified path representing CustomField resource.
1191
+ * @returns {string} A string representing the custom_field.
1192
+ */
1193
+ matchCustomFieldFromCustomFieldName(customFieldName) {
1194
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1195
+ .custom_field;
1196
+ }
1197
+ /**
1198
+ * Return a fully-qualified customTargetingKey resource name string.
1199
+ *
1200
+ * @param {string} network_code
1201
+ * @param {string} custom_targeting_key
1202
+ * @returns {string} Resource name string.
1203
+ */
1204
+ customTargetingKeyPath(networkCode, customTargetingKey) {
1205
+ return this.pathTemplates.customTargetingKeyPathTemplate.render({
1206
+ network_code: networkCode,
1207
+ custom_targeting_key: customTargetingKey,
1208
+ });
1209
+ }
1210
+ /**
1211
+ * Parse the network_code from CustomTargetingKey resource.
1212
+ *
1213
+ * @param {string} customTargetingKeyName
1214
+ * A fully-qualified path representing CustomTargetingKey resource.
1215
+ * @returns {string} A string representing the network_code.
1216
+ */
1217
+ matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName) {
1218
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).network_code;
1219
+ }
1220
+ /**
1221
+ * Parse the custom_targeting_key from CustomTargetingKey resource.
1222
+ *
1223
+ * @param {string} customTargetingKeyName
1224
+ * A fully-qualified path representing CustomTargetingKey resource.
1225
+ * @returns {string} A string representing the custom_targeting_key.
1226
+ */
1227
+ matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName) {
1228
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).custom_targeting_key;
1229
+ }
1230
+ /**
1231
+ * Return a fully-qualified customTargetingValue resource name string.
1232
+ *
1233
+ * @param {string} network_code
1234
+ * @param {string} custom_targeting_value
1235
+ * @returns {string} Resource name string.
1236
+ */
1237
+ customTargetingValuePath(networkCode, customTargetingValue) {
1238
+ return this.pathTemplates.customTargetingValuePathTemplate.render({
1239
+ network_code: networkCode,
1240
+ custom_targeting_value: customTargetingValue,
1241
+ });
1242
+ }
1243
+ /**
1244
+ * Parse the network_code from CustomTargetingValue resource.
1245
+ *
1246
+ * @param {string} customTargetingValueName
1247
+ * A fully-qualified path representing CustomTargetingValue resource.
1248
+ * @returns {string} A string representing the network_code.
1249
+ */
1250
+ matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
1251
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
1252
+ }
1253
+ /**
1254
+ * Parse the custom_targeting_value from CustomTargetingValue resource.
1255
+ *
1256
+ * @param {string} customTargetingValueName
1257
+ * A fully-qualified path representing CustomTargetingValue resource.
1258
+ * @returns {string} A string representing the custom_targeting_value.
1259
+ */
1260
+ matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
1261
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
1262
+ }
1263
+ /**
1264
+ * Return a fully-qualified deviceCapability resource name string.
1265
+ *
1266
+ * @param {string} network_code
1267
+ * @param {string} device_capability
1268
+ * @returns {string} Resource name string.
1269
+ */
1270
+ deviceCapabilityPath(networkCode, deviceCapability) {
1271
+ return this.pathTemplates.deviceCapabilityPathTemplate.render({
1272
+ network_code: networkCode,
1273
+ device_capability: deviceCapability,
1274
+ });
1275
+ }
1276
+ /**
1277
+ * Parse the network_code from DeviceCapability resource.
1278
+ *
1279
+ * @param {string} deviceCapabilityName
1280
+ * A fully-qualified path representing DeviceCapability resource.
1281
+ * @returns {string} A string representing the network_code.
1282
+ */
1283
+ matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
1284
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
1285
+ }
1286
+ /**
1287
+ * Parse the device_capability from DeviceCapability resource.
1288
+ *
1289
+ * @param {string} deviceCapabilityName
1290
+ * A fully-qualified path representing DeviceCapability resource.
1291
+ * @returns {string} A string representing the device_capability.
1292
+ */
1293
+ matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
1294
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
1295
+ }
1296
+ /**
1297
+ * Return a fully-qualified deviceCategory resource name string.
1298
+ *
1299
+ * @param {string} network_code
1300
+ * @param {string} device_category
1301
+ * @returns {string} Resource name string.
1302
+ */
1303
+ deviceCategoryPath(networkCode, deviceCategory) {
1304
+ return this.pathTemplates.deviceCategoryPathTemplate.render({
1305
+ network_code: networkCode,
1306
+ device_category: deviceCategory,
1307
+ });
1308
+ }
1309
+ /**
1310
+ * Parse the network_code from DeviceCategory resource.
1311
+ *
1312
+ * @param {string} deviceCategoryName
1313
+ * A fully-qualified path representing DeviceCategory resource.
1314
+ * @returns {string} A string representing the network_code.
1315
+ */
1316
+ matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
1317
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
1318
+ }
1319
+ /**
1320
+ * Parse the device_category from DeviceCategory resource.
1321
+ *
1322
+ * @param {string} deviceCategoryName
1323
+ * A fully-qualified path representing DeviceCategory resource.
1324
+ * @returns {string} A string representing the device_category.
1325
+ */
1326
+ matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
1327
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
1328
+ }
1329
+ /**
1330
+ * Return a fully-qualified deviceManufacturer resource name string.
1331
+ *
1332
+ * @param {string} network_code
1333
+ * @param {string} device_manufacturer
1334
+ * @returns {string} Resource name string.
1335
+ */
1336
+ deviceManufacturerPath(networkCode, deviceManufacturer) {
1337
+ return this.pathTemplates.deviceManufacturerPathTemplate.render({
1338
+ network_code: networkCode,
1339
+ device_manufacturer: deviceManufacturer,
1340
+ });
1341
+ }
1342
+ /**
1343
+ * Parse the network_code from DeviceManufacturer resource.
1344
+ *
1345
+ * @param {string} deviceManufacturerName
1346
+ * A fully-qualified path representing DeviceManufacturer resource.
1347
+ * @returns {string} A string representing the network_code.
1348
+ */
1349
+ matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
1350
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
1351
+ }
1352
+ /**
1353
+ * Parse the device_manufacturer from DeviceManufacturer resource.
1354
+ *
1355
+ * @param {string} deviceManufacturerName
1356
+ * A fully-qualified path representing DeviceManufacturer resource.
1357
+ * @returns {string} A string representing the device_manufacturer.
1358
+ */
1359
+ matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
1360
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
1361
+ }
1362
+ /**
1363
+ * Return a fully-qualified entitySignalsMapping resource name string.
1364
+ *
1365
+ * @param {string} network_code
1366
+ * @param {string} entity_signals_mapping
1367
+ * @returns {string} Resource name string.
1368
+ */
1369
+ entitySignalsMappingPath(networkCode, entitySignalsMapping) {
1370
+ return this.pathTemplates.entitySignalsMappingPathTemplate.render({
1371
+ network_code: networkCode,
1372
+ entity_signals_mapping: entitySignalsMapping,
1373
+ });
1374
+ }
1375
+ /**
1376
+ * Parse the network_code from EntitySignalsMapping resource.
1377
+ *
1378
+ * @param {string} entitySignalsMappingName
1379
+ * A fully-qualified path representing EntitySignalsMapping resource.
1380
+ * @returns {string} A string representing the network_code.
1381
+ */
1382
+ matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName) {
1383
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).network_code;
1384
+ }
1385
+ /**
1386
+ * Parse the entity_signals_mapping from EntitySignalsMapping resource.
1387
+ *
1388
+ * @param {string} entitySignalsMappingName
1389
+ * A fully-qualified path representing EntitySignalsMapping resource.
1390
+ * @returns {string} A string representing the entity_signals_mapping.
1391
+ */
1392
+ matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
1393
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
1394
+ }
1395
+ /**
1396
+ * Return a fully-qualified geoTarget resource name string.
1397
+ *
1398
+ * @param {string} network_code
1399
+ * @param {string} geo_target
1400
+ * @returns {string} Resource name string.
1401
+ */
1402
+ geoTargetPath(networkCode, geoTarget) {
1403
+ return this.pathTemplates.geoTargetPathTemplate.render({
1404
+ network_code: networkCode,
1405
+ geo_target: geoTarget,
1406
+ });
1407
+ }
1408
+ /**
1409
+ * Parse the network_code from GeoTarget resource.
1410
+ *
1411
+ * @param {string} geoTargetName
1412
+ * A fully-qualified path representing GeoTarget resource.
1413
+ * @returns {string} A string representing the network_code.
1414
+ */
1415
+ matchNetworkCodeFromGeoTargetName(geoTargetName) {
1416
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1417
+ .network_code;
1418
+ }
1419
+ /**
1420
+ * Parse the geo_target from GeoTarget resource.
1421
+ *
1422
+ * @param {string} geoTargetName
1423
+ * A fully-qualified path representing GeoTarget resource.
1424
+ * @returns {string} A string representing the geo_target.
1425
+ */
1426
+ matchGeoTargetFromGeoTargetName(geoTargetName) {
1427
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1428
+ .geo_target;
1429
+ }
1430
+ /**
1431
+ * Return a fully-qualified label resource name string.
1432
+ *
1433
+ * @param {string} network_code
1434
+ * @param {string} label
1435
+ * @returns {string} Resource name string.
1436
+ */
1437
+ labelPath(networkCode, label) {
1438
+ return this.pathTemplates.labelPathTemplate.render({
1439
+ network_code: networkCode,
1440
+ label: label,
1441
+ });
1442
+ }
1443
+ /**
1444
+ * Parse the network_code from Label resource.
1445
+ *
1446
+ * @param {string} labelName
1447
+ * A fully-qualified path representing Label resource.
1448
+ * @returns {string} A string representing the network_code.
1449
+ */
1450
+ matchNetworkCodeFromLabelName(labelName) {
1451
+ return this.pathTemplates.labelPathTemplate.match(labelName).network_code;
1452
+ }
1453
+ /**
1454
+ * Parse the label from Label resource.
1455
+ *
1456
+ * @param {string} labelName
1457
+ * A fully-qualified path representing Label resource.
1458
+ * @returns {string} A string representing the label.
1459
+ */
1460
+ matchLabelFromLabelName(labelName) {
1461
+ return this.pathTemplates.labelPathTemplate.match(labelName).label;
1462
+ }
1463
+ /**
1464
+ * Return a fully-qualified lineItem resource name string.
1465
+ *
1466
+ * @param {string} network_code
1467
+ * @param {string} line_item
1468
+ * @returns {string} Resource name string.
1469
+ */
1470
+ lineItemPath(networkCode, lineItem) {
1471
+ return this.pathTemplates.lineItemPathTemplate.render({
1472
+ network_code: networkCode,
1473
+ line_item: lineItem,
1474
+ });
1475
+ }
1476
+ /**
1477
+ * Parse the network_code from LineItem resource.
1478
+ *
1479
+ * @param {string} lineItemName
1480
+ * A fully-qualified path representing LineItem resource.
1481
+ * @returns {string} A string representing the network_code.
1482
+ */
1483
+ matchNetworkCodeFromLineItemName(lineItemName) {
1484
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1485
+ .network_code;
1486
+ }
1487
+ /**
1488
+ * Parse the line_item from LineItem resource.
1489
+ *
1490
+ * @param {string} lineItemName
1491
+ * A fully-qualified path representing LineItem resource.
1492
+ * @returns {string} A string representing the line_item.
1493
+ */
1494
+ matchLineItemFromLineItemName(lineItemName) {
1495
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1496
+ .line_item;
1497
+ }
1498
+ /**
1499
+ * Return a fully-qualified linkedDevice resource name string.
1500
+ *
1501
+ * @param {string} network_code
1502
+ * @param {string} linked_device
1503
+ * @returns {string} Resource name string.
1504
+ */
1505
+ linkedDevicePath(networkCode, linkedDevice) {
1506
+ return this.pathTemplates.linkedDevicePathTemplate.render({
1507
+ network_code: networkCode,
1508
+ linked_device: linkedDevice,
1509
+ });
1510
+ }
1511
+ /**
1512
+ * Parse the network_code from LinkedDevice resource.
1513
+ *
1514
+ * @param {string} linkedDeviceName
1515
+ * A fully-qualified path representing LinkedDevice resource.
1516
+ * @returns {string} A string representing the network_code.
1517
+ */
1518
+ matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
1519
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1520
+ .network_code;
1521
+ }
1522
+ /**
1523
+ * Parse the linked_device from LinkedDevice resource.
1524
+ *
1525
+ * @param {string} linkedDeviceName
1526
+ * A fully-qualified path representing LinkedDevice resource.
1527
+ * @returns {string} A string representing the linked_device.
1528
+ */
1529
+ matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
1530
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1531
+ .linked_device;
1532
+ }
1533
+ /**
1534
+ * Return a fully-qualified liveStreamEvent resource name string.
1535
+ *
1536
+ * @param {string} network_code
1537
+ * @param {string} live_stream_event
1538
+ * @returns {string} Resource name string.
1539
+ */
1540
+ liveStreamEventPath(networkCode, liveStreamEvent) {
1541
+ return this.pathTemplates.liveStreamEventPathTemplate.render({
1542
+ network_code: networkCode,
1543
+ live_stream_event: liveStreamEvent,
1544
+ });
1545
+ }
1546
+ /**
1547
+ * Parse the network_code from LiveStreamEvent resource.
1548
+ *
1549
+ * @param {string} liveStreamEventName
1550
+ * A fully-qualified path representing LiveStreamEvent resource.
1551
+ * @returns {string} A string representing the network_code.
1552
+ */
1553
+ matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
1554
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
1555
+ }
1556
+ /**
1557
+ * Parse the live_stream_event from LiveStreamEvent resource.
1558
+ *
1559
+ * @param {string} liveStreamEventName
1560
+ * A fully-qualified path representing LiveStreamEvent resource.
1561
+ * @returns {string} A string representing the live_stream_event.
1562
+ */
1563
+ matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
1564
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
1565
+ }
1566
+ /**
1567
+ * Return a fully-qualified mobileCarrier resource name string.
1568
+ *
1569
+ * @param {string} network_code
1570
+ * @param {string} mobile_carrier
1571
+ * @returns {string} Resource name string.
1572
+ */
1573
+ mobileCarrierPath(networkCode, mobileCarrier) {
1574
+ return this.pathTemplates.mobileCarrierPathTemplate.render({
1575
+ network_code: networkCode,
1576
+ mobile_carrier: mobileCarrier,
1577
+ });
1578
+ }
1579
+ /**
1580
+ * Parse the network_code from MobileCarrier resource.
1581
+ *
1582
+ * @param {string} mobileCarrierName
1583
+ * A fully-qualified path representing MobileCarrier resource.
1584
+ * @returns {string} A string representing the network_code.
1585
+ */
1586
+ matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
1587
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1588
+ .network_code;
1589
+ }
1590
+ /**
1591
+ * Parse the mobile_carrier from MobileCarrier resource.
1592
+ *
1593
+ * @param {string} mobileCarrierName
1594
+ * A fully-qualified path representing MobileCarrier resource.
1595
+ * @returns {string} A string representing the mobile_carrier.
1596
+ */
1597
+ matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
1598
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1599
+ .mobile_carrier;
1600
+ }
1601
+ /**
1602
+ * Return a fully-qualified mobileDevice resource name string.
1603
+ *
1604
+ * @param {string} network_code
1605
+ * @param {string} mobile_device
1606
+ * @returns {string} Resource name string.
1607
+ */
1608
+ mobileDevicePath(networkCode, mobileDevice) {
1609
+ return this.pathTemplates.mobileDevicePathTemplate.render({
1610
+ network_code: networkCode,
1611
+ mobile_device: mobileDevice,
1612
+ });
1613
+ }
1614
+ /**
1615
+ * Parse the network_code from MobileDevice resource.
1616
+ *
1617
+ * @param {string} mobileDeviceName
1618
+ * A fully-qualified path representing MobileDevice resource.
1619
+ * @returns {string} A string representing the network_code.
1620
+ */
1621
+ matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
1622
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1623
+ .network_code;
1624
+ }
1625
+ /**
1626
+ * Parse the mobile_device from MobileDevice resource.
1627
+ *
1628
+ * @param {string} mobileDeviceName
1629
+ * A fully-qualified path representing MobileDevice resource.
1630
+ * @returns {string} A string representing the mobile_device.
1631
+ */
1632
+ matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
1633
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1634
+ .mobile_device;
1635
+ }
1636
+ /**
1637
+ * Return a fully-qualified mobileDeviceSubmodel resource name string.
1638
+ *
1639
+ * @param {string} network_code
1640
+ * @param {string} mobile_device_submodel
1641
+ * @returns {string} Resource name string.
1642
+ */
1643
+ mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
1644
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
1645
+ network_code: networkCode,
1646
+ mobile_device_submodel: mobileDeviceSubmodel,
1647
+ });
1648
+ }
1649
+ /**
1650
+ * Parse the network_code from MobileDeviceSubmodel resource.
1651
+ *
1652
+ * @param {string} mobileDeviceSubmodelName
1653
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1654
+ * @returns {string} A string representing the network_code.
1655
+ */
1656
+ matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1657
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
1658
+ }
1659
+ /**
1660
+ * Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
1661
+ *
1662
+ * @param {string} mobileDeviceSubmodelName
1663
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1664
+ * @returns {string} A string representing the mobile_device_submodel.
1665
+ */
1666
+ matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1667
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
1668
+ }
1669
+ /**
1670
+ * Return a fully-qualified network resource name string.
1671
+ *
1672
+ * @param {string} network_code
1673
+ * @returns {string} Resource name string.
1674
+ */
1675
+ networkPath(networkCode) {
1676
+ return this.pathTemplates.networkPathTemplate.render({
1677
+ network_code: networkCode,
1678
+ });
1679
+ }
1680
+ /**
1681
+ * Parse the network_code from Network resource.
1682
+ *
1683
+ * @param {string} networkName
1684
+ * A fully-qualified path representing Network resource.
1685
+ * @returns {string} A string representing the network_code.
1686
+ */
1687
+ matchNetworkCodeFromNetworkName(networkName) {
1688
+ return this.pathTemplates.networkPathTemplate.match(networkName)
1689
+ .network_code;
1690
+ }
1691
+ /**
1692
+ * Return a fully-qualified operatingSystem resource name string.
1693
+ *
1694
+ * @param {string} network_code
1695
+ * @param {string} operating_system
1696
+ * @returns {string} Resource name string.
1697
+ */
1698
+ operatingSystemPath(networkCode, operatingSystem) {
1699
+ return this.pathTemplates.operatingSystemPathTemplate.render({
1700
+ network_code: networkCode,
1701
+ operating_system: operatingSystem,
1702
+ });
1703
+ }
1704
+ /**
1705
+ * Parse the network_code from OperatingSystem resource.
1706
+ *
1707
+ * @param {string} operatingSystemName
1708
+ * A fully-qualified path representing OperatingSystem resource.
1709
+ * @returns {string} A string representing the network_code.
1710
+ */
1711
+ matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
1712
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
1713
+ }
1714
+ /**
1715
+ * Parse the operating_system from OperatingSystem resource.
1716
+ *
1717
+ * @param {string} operatingSystemName
1718
+ * A fully-qualified path representing OperatingSystem resource.
1719
+ * @returns {string} A string representing the operating_system.
1720
+ */
1721
+ matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
1722
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
1723
+ }
1724
+ /**
1725
+ * Return a fully-qualified operatingSystemVersion resource name string.
1726
+ *
1727
+ * @param {string} network_code
1728
+ * @param {string} operating_system_version
1729
+ * @returns {string} Resource name string.
1730
+ */
1731
+ operatingSystemVersionPath(networkCode, operatingSystemVersion) {
1732
+ return this.pathTemplates.operatingSystemVersionPathTemplate.render({
1733
+ network_code: networkCode,
1734
+ operating_system_version: operatingSystemVersion,
1735
+ });
1736
+ }
1737
+ /**
1738
+ * Parse the network_code from OperatingSystemVersion resource.
1739
+ *
1740
+ * @param {string} operatingSystemVersionName
1741
+ * A fully-qualified path representing OperatingSystemVersion resource.
1742
+ * @returns {string} A string representing the network_code.
1743
+ */
1744
+ matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
1745
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
1746
+ }
1747
+ /**
1748
+ * Parse the operating_system_version from OperatingSystemVersion resource.
1749
+ *
1750
+ * @param {string} operatingSystemVersionName
1751
+ * A fully-qualified path representing OperatingSystemVersion resource.
1752
+ * @returns {string} A string representing the operating_system_version.
1753
+ */
1754
+ matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
1755
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
1756
+ }
1757
+ /**
1758
+ * Return a fully-qualified order resource name string.
1759
+ *
1760
+ * @param {string} network_code
1761
+ * @param {string} order
1762
+ * @returns {string} Resource name string.
1763
+ */
1764
+ orderPath(networkCode, order) {
1765
+ return this.pathTemplates.orderPathTemplate.render({
1766
+ network_code: networkCode,
1767
+ order: order,
1768
+ });
1769
+ }
1770
+ /**
1771
+ * Parse the network_code from Order resource.
1772
+ *
1773
+ * @param {string} orderName
1774
+ * A fully-qualified path representing Order resource.
1775
+ * @returns {string} A string representing the network_code.
1776
+ */
1777
+ matchNetworkCodeFromOrderName(orderName) {
1778
+ return this.pathTemplates.orderPathTemplate.match(orderName).network_code;
1779
+ }
1780
+ /**
1781
+ * Parse the order from Order resource.
1782
+ *
1783
+ * @param {string} orderName
1784
+ * A fully-qualified path representing Order resource.
1785
+ * @returns {string} A string representing the order.
1786
+ */
1787
+ matchOrderFromOrderName(orderName) {
1788
+ return this.pathTemplates.orderPathTemplate.match(orderName).order;
1789
+ }
1790
+ /**
1791
+ * Return a fully-qualified placement resource name string.
1792
+ *
1793
+ * @param {string} network_code
1794
+ * @param {string} placement
1795
+ * @returns {string} Resource name string.
1796
+ */
1797
+ placementPath(networkCode, placement) {
1798
+ return this.pathTemplates.placementPathTemplate.render({
1799
+ network_code: networkCode,
1800
+ placement: placement,
1801
+ });
1802
+ }
1803
+ /**
1804
+ * Parse the network_code from Placement resource.
1805
+ *
1806
+ * @param {string} placementName
1807
+ * A fully-qualified path representing Placement resource.
1808
+ * @returns {string} A string representing the network_code.
1809
+ */
1810
+ matchNetworkCodeFromPlacementName(placementName) {
1811
+ return this.pathTemplates.placementPathTemplate.match(placementName)
1812
+ .network_code;
1813
+ }
1814
+ /**
1815
+ * Parse the placement from Placement resource.
1816
+ *
1817
+ * @param {string} placementName
1818
+ * A fully-qualified path representing Placement resource.
1819
+ * @returns {string} A string representing the placement.
1820
+ */
1821
+ matchPlacementFromPlacementName(placementName) {
1822
+ return this.pathTemplates.placementPathTemplate.match(placementName)
1823
+ .placement;
1824
+ }
1825
+ /**
1826
+ * Return a fully-qualified privateAuction resource name string.
1827
+ *
1828
+ * @param {string} network_code
1829
+ * @param {string} private_auction
1830
+ * @returns {string} Resource name string.
1831
+ */
1832
+ privateAuctionPath(networkCode, privateAuction) {
1833
+ return this.pathTemplates.privateAuctionPathTemplate.render({
1834
+ network_code: networkCode,
1835
+ private_auction: privateAuction,
1836
+ });
1837
+ }
1838
+ /**
1839
+ * Parse the network_code from PrivateAuction resource.
1840
+ *
1841
+ * @param {string} privateAuctionName
1842
+ * A fully-qualified path representing PrivateAuction resource.
1843
+ * @returns {string} A string representing the network_code.
1844
+ */
1845
+ matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
1846
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
1847
+ }
1848
+ /**
1849
+ * Parse the private_auction from PrivateAuction resource.
1850
+ *
1851
+ * @param {string} privateAuctionName
1852
+ * A fully-qualified path representing PrivateAuction resource.
1853
+ * @returns {string} A string representing the private_auction.
1854
+ */
1855
+ matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
1856
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
1857
+ }
1858
+ /**
1859
+ * Return a fully-qualified privateAuctionDeal resource name string.
1860
+ *
1861
+ * @param {string} network_code
1862
+ * @param {string} private_auction_deal
1863
+ * @returns {string} Resource name string.
1864
+ */
1865
+ privateAuctionDealPath(networkCode, privateAuctionDeal) {
1866
+ return this.pathTemplates.privateAuctionDealPathTemplate.render({
1867
+ network_code: networkCode,
1868
+ private_auction_deal: privateAuctionDeal,
1869
+ });
1870
+ }
1871
+ /**
1872
+ * Parse the network_code from PrivateAuctionDeal resource.
1873
+ *
1874
+ * @param {string} privateAuctionDealName
1875
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1876
+ * @returns {string} A string representing the network_code.
1877
+ */
1878
+ matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
1879
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
1880
+ }
1881
+ /**
1882
+ * Parse the private_auction_deal from PrivateAuctionDeal resource.
1883
+ *
1884
+ * @param {string} privateAuctionDealName
1885
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1886
+ * @returns {string} A string representing the private_auction_deal.
1887
+ */
1888
+ matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
1889
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
1890
+ }
1891
+ /**
1892
+ * Return a fully-qualified programmaticBuyer resource name string.
1893
+ *
1894
+ * @param {string} network_code
1895
+ * @param {string} programmatic_buyer
1896
+ * @returns {string} Resource name string.
1897
+ */
1898
+ programmaticBuyerPath(networkCode, programmaticBuyer) {
1899
+ return this.pathTemplates.programmaticBuyerPathTemplate.render({
1900
+ network_code: networkCode,
1901
+ programmatic_buyer: programmaticBuyer,
1902
+ });
1903
+ }
1904
+ /**
1905
+ * Parse the network_code from ProgrammaticBuyer resource.
1906
+ *
1907
+ * @param {string} programmaticBuyerName
1908
+ * A fully-qualified path representing ProgrammaticBuyer resource.
1909
+ * @returns {string} A string representing the network_code.
1910
+ */
1911
+ matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
1912
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
1913
+ }
1914
+ /**
1915
+ * Parse the programmatic_buyer from ProgrammaticBuyer resource.
1916
+ *
1917
+ * @param {string} programmaticBuyerName
1918
+ * A fully-qualified path representing ProgrammaticBuyer resource.
1919
+ * @returns {string} A string representing the programmatic_buyer.
1920
+ */
1921
+ matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
1922
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
1923
+ }
1924
+ /**
1925
+ * Return a fully-qualified report resource name string.
1926
+ *
1927
+ * @param {string} network_code
1928
+ * @param {string} report
1929
+ * @returns {string} Resource name string.
1930
+ */
1931
+ reportPath(networkCode, report) {
1932
+ return this.pathTemplates.reportPathTemplate.render({
1933
+ network_code: networkCode,
1934
+ report: report,
1935
+ });
1936
+ }
1937
+ /**
1938
+ * Parse the network_code from Report resource.
1939
+ *
1940
+ * @param {string} reportName
1941
+ * A fully-qualified path representing Report resource.
1942
+ * @returns {string} A string representing the network_code.
1943
+ */
1944
+ matchNetworkCodeFromReportName(reportName) {
1945
+ return this.pathTemplates.reportPathTemplate.match(reportName).network_code;
1946
+ }
1947
+ /**
1948
+ * Parse the report from Report resource.
1949
+ *
1950
+ * @param {string} reportName
1951
+ * A fully-qualified path representing Report resource.
1952
+ * @returns {string} A string representing the report.
1953
+ */
1954
+ matchReportFromReportName(reportName) {
1955
+ return this.pathTemplates.reportPathTemplate.match(reportName).report;
1956
+ }
1957
+ /**
1958
+ * Return a fully-qualified richMediaAdsCompany resource name string.
1959
+ *
1960
+ * @param {string} network_code
1961
+ * @param {string} rich_media_ads_company
1962
+ * @returns {string} Resource name string.
1963
+ */
1964
+ richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
1965
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
1966
+ network_code: networkCode,
1967
+ rich_media_ads_company: richMediaAdsCompany,
1968
+ });
1969
+ }
1970
+ /**
1971
+ * Parse the network_code from RichMediaAdsCompany resource.
1972
+ *
1973
+ * @param {string} richMediaAdsCompanyName
1974
+ * A fully-qualified path representing RichMediaAdsCompany resource.
1975
+ * @returns {string} A string representing the network_code.
1976
+ */
1977
+ matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
1978
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
1979
+ }
1980
+ /**
1981
+ * Parse the rich_media_ads_company from RichMediaAdsCompany resource.
1982
+ *
1983
+ * @param {string} richMediaAdsCompanyName
1984
+ * A fully-qualified path representing RichMediaAdsCompany resource.
1985
+ * @returns {string} A string representing the rich_media_ads_company.
1986
+ */
1987
+ matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
1988
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
1989
+ }
1990
+ /**
1991
+ * Return a fully-qualified role resource name string.
1992
+ *
1993
+ * @param {string} network_code
1994
+ * @param {string} role
1995
+ * @returns {string} Resource name string.
1996
+ */
1997
+ rolePath(networkCode, role) {
1998
+ return this.pathTemplates.rolePathTemplate.render({
1999
+ network_code: networkCode,
2000
+ role: role,
2001
+ });
2002
+ }
2003
+ /**
2004
+ * Parse the network_code from Role resource.
2005
+ *
2006
+ * @param {string} roleName
2007
+ * A fully-qualified path representing Role resource.
2008
+ * @returns {string} A string representing the network_code.
2009
+ */
2010
+ matchNetworkCodeFromRoleName(roleName) {
2011
+ return this.pathTemplates.rolePathTemplate.match(roleName).network_code;
2012
+ }
2013
+ /**
2014
+ * Parse the role from Role resource.
2015
+ *
2016
+ * @param {string} roleName
2017
+ * A fully-qualified path representing Role resource.
2018
+ * @returns {string} A string representing the role.
2019
+ */
2020
+ matchRoleFromRoleName(roleName) {
2021
+ return this.pathTemplates.rolePathTemplate.match(roleName).role;
2022
+ }
2023
+ /**
2024
+ * Return a fully-qualified site resource name string.
2025
+ *
2026
+ * @param {string} network_code
2027
+ * @param {string} site
2028
+ * @returns {string} Resource name string.
2029
+ */
2030
+ sitePath(networkCode, site) {
2031
+ return this.pathTemplates.sitePathTemplate.render({
2032
+ network_code: networkCode,
2033
+ site: site,
2034
+ });
2035
+ }
2036
+ /**
2037
+ * Parse the network_code from Site resource.
2038
+ *
2039
+ * @param {string} siteName
2040
+ * A fully-qualified path representing Site resource.
2041
+ * @returns {string} A string representing the network_code.
2042
+ */
2043
+ matchNetworkCodeFromSiteName(siteName) {
2044
+ return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
2045
+ }
2046
+ /**
2047
+ * Parse the site from Site resource.
2048
+ *
2049
+ * @param {string} siteName
2050
+ * A fully-qualified path representing Site resource.
2051
+ * @returns {string} A string representing the site.
2052
+ */
2053
+ matchSiteFromSiteName(siteName) {
2054
+ return this.pathTemplates.sitePathTemplate.match(siteName).site;
2055
+ }
2056
+ /**
2057
+ * Return a fully-qualified taxonomyCategory resource name string.
2058
+ *
2059
+ * @param {string} network_code
2060
+ * @param {string} taxonomy_category
2061
+ * @returns {string} Resource name string.
2062
+ */
2063
+ taxonomyCategoryPath(networkCode, taxonomyCategory) {
2064
+ return this.pathTemplates.taxonomyCategoryPathTemplate.render({
2065
+ network_code: networkCode,
2066
+ taxonomy_category: taxonomyCategory,
2067
+ });
2068
+ }
2069
+ /**
2070
+ * Parse the network_code from TaxonomyCategory resource.
2071
+ *
2072
+ * @param {string} taxonomyCategoryName
2073
+ * A fully-qualified path representing TaxonomyCategory resource.
2074
+ * @returns {string} A string representing the network_code.
2075
+ */
2076
+ matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName) {
2077
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).network_code;
2078
+ }
2079
+ /**
2080
+ * Parse the taxonomy_category from TaxonomyCategory resource.
2081
+ *
2082
+ * @param {string} taxonomyCategoryName
2083
+ * A fully-qualified path representing TaxonomyCategory resource.
2084
+ * @returns {string} A string representing the taxonomy_category.
2085
+ */
2086
+ matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName) {
2087
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).taxonomy_category;
2088
+ }
2089
+ /**
2090
+ * Return a fully-qualified team resource name string.
2091
+ *
2092
+ * @param {string} network_code
2093
+ * @param {string} team
2094
+ * @returns {string} Resource name string.
2095
+ */
2096
+ teamPath(networkCode, team) {
2097
+ return this.pathTemplates.teamPathTemplate.render({
2098
+ network_code: networkCode,
2099
+ team: team,
2100
+ });
2101
+ }
2102
+ /**
2103
+ * Parse the network_code from Team resource.
2104
+ *
2105
+ * @param {string} teamName
2106
+ * A fully-qualified path representing Team resource.
2107
+ * @returns {string} A string representing the network_code.
2108
+ */
2109
+ matchNetworkCodeFromTeamName(teamName) {
2110
+ return this.pathTemplates.teamPathTemplate.match(teamName).network_code;
2111
+ }
2112
+ /**
2113
+ * Parse the team from Team resource.
2114
+ *
2115
+ * @param {string} teamName
2116
+ * A fully-qualified path representing Team resource.
2117
+ * @returns {string} A string representing the team.
2118
+ */
2119
+ matchTeamFromTeamName(teamName) {
2120
+ return this.pathTemplates.teamPathTemplate.match(teamName).team;
2121
+ }
2122
+ /**
2123
+ * Return a fully-qualified user resource name string.
2124
+ *
2125
+ * @param {string} network_code
2126
+ * @param {string} user
2127
+ * @returns {string} Resource name string.
2128
+ */
2129
+ userPath(networkCode, user) {
2130
+ return this.pathTemplates.userPathTemplate.render({
2131
+ network_code: networkCode,
2132
+ user: user,
2133
+ });
2134
+ }
2135
+ /**
2136
+ * Parse the network_code from User resource.
2137
+ *
2138
+ * @param {string} userName
2139
+ * A fully-qualified path representing User resource.
2140
+ * @returns {string} A string representing the network_code.
2141
+ */
2142
+ matchNetworkCodeFromUserName(userName) {
2143
+ return this.pathTemplates.userPathTemplate.match(userName).network_code;
2144
+ }
2145
+ /**
2146
+ * Parse the user from User resource.
2147
+ *
2148
+ * @param {string} userName
2149
+ * A fully-qualified path representing User resource.
2150
+ * @returns {string} A string representing the user.
2151
+ */
2152
+ matchUserFromUserName(userName) {
2153
+ return this.pathTemplates.userPathTemplate.match(userName).user;
2154
+ }
2155
+ /**
2156
+ * Return a fully-qualified webProperty resource name string.
2157
+ *
2158
+ * @param {string} network_code
2159
+ * @param {string} web_property
2160
+ * @returns {string} Resource name string.
2161
+ */
2162
+ webPropertyPath(networkCode, webProperty) {
2163
+ return this.pathTemplates.webPropertyPathTemplate.render({
2164
+ network_code: networkCode,
2165
+ web_property: webProperty,
2166
+ });
2167
+ }
2168
+ /**
2169
+ * Parse the network_code from WebProperty resource.
2170
+ *
2171
+ * @param {string} webPropertyName
2172
+ * A fully-qualified path representing WebProperty resource.
2173
+ * @returns {string} A string representing the network_code.
2174
+ */
2175
+ matchNetworkCodeFromWebPropertyName(webPropertyName) {
2176
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2177
+ .network_code;
2178
+ }
2179
+ /**
2180
+ * Parse the web_property from WebProperty resource.
2181
+ *
2182
+ * @param {string} webPropertyName
2183
+ * A fully-qualified path representing WebProperty resource.
2184
+ * @returns {string} A string representing the web_property.
2185
+ */
2186
+ matchWebPropertyFromWebPropertyName(webPropertyName) {
2187
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2188
+ .web_property;
2189
+ }
2190
+ /**
2191
+ * Terminate the gRPC channel and close the client.
2192
+ *
2193
+ * The client will no longer be usable and all future behavior is undefined.
2194
+ * @returns {Promise} A promise that resolves when the client is closed.
2195
+ */
2196
+ close() {
2197
+ if (this.richMediaAdsCompanyServiceStub && !this._terminated) {
2198
+ return this.richMediaAdsCompanyServiceStub.then((stub) => {
2199
+ this._log.info('ending gRPC channel');
2200
+ this._terminated = true;
2201
+ stub.close();
2202
+ });
2203
+ }
2204
+ return Promise.resolve();
2205
+ }
2206
+ }
2207
+ exports.RichMediaAdsCompanyServiceClient = RichMediaAdsCompanyServiceClient;
2208
+ //# sourceMappingURL=rich_media_ads_company_service_client.js.map