@google-ads/admanager 0.8.0 → 0.10.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 (336) hide show
  1. package/build/protos/google/ads/admanager/v1/ad_rule_service.proto +6 -7
  2. package/build/protos/google/ads/admanager/v1/ad_spot_service.proto +7 -8
  3. package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +20 -0
  4. package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +7 -0
  5. package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +14 -15
  6. package/build/protos/google/ads/admanager/v1/application_service.proto +11 -12
  7. package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +5 -6
  8. package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +4 -5
  9. package/build/protos/google/ads/admanager/v1/browser_language_service.proto +4 -5
  10. package/build/protos/google/ads/admanager/v1/browser_service.proto +6 -7
  11. package/build/protos/google/ads/admanager/v1/cdn_config_service.proto +7 -8
  12. package/build/protos/google/ads/admanager/v1/child_publisher_messages.proto +99 -0
  13. package/build/protos/google/ads/admanager/v1/child_publisher_service.proto +283 -0
  14. package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +5 -6
  15. package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +6 -7
  16. package/build/protos/google/ads/admanager/v1/company_service.proto +150 -30
  17. package/build/protos/google/ads/admanager/v1/contact_service.proto +13 -14
  18. package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +6 -7
  19. package/build/protos/google/ads/admanager/v1/content_label_service.proto +4 -5
  20. package/build/protos/google/ads/admanager/v1/content_service.proto +17 -18
  21. package/build/protos/google/ads/admanager/v1/conversion_event_enum.proto +123 -0
  22. package/build/protos/google/ads/admanager/v1/creative_set_service.proto +7 -8
  23. package/build/protos/google/ads/admanager/v1/creative_template_service.proto +11 -12
  24. package/build/protos/google/ads/admanager/v1/creative_wrapper_enums.proto +81 -0
  25. package/build/protos/google/ads/admanager/v1/creative_wrapper_messages.proto +127 -0
  26. package/build/protos/google/ads/admanager/v1/creative_wrapper_service.proto +324 -0
  27. package/build/protos/google/ads/admanager/v1/custom_field_service.proto +11 -12
  28. package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +8 -9
  29. package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +8 -9
  30. package/build/protos/google/ads/admanager/v1/dai_authentication_key_enums.proto +62 -0
  31. package/build/protos/google/ads/admanager/v1/dai_authentication_key_messages.proto +63 -0
  32. package/build/protos/google/ads/admanager/v1/dai_authentication_key_service.proto +329 -0
  33. package/build/protos/google/ads/admanager/v1/dai_encoding_profile_enums.proto +82 -0
  34. package/build/protos/google/ads/admanager/v1/dai_encoding_profile_messages.proto +117 -0
  35. package/build/protos/google/ads/admanager/v1/dai_encoding_profile_service.proto +345 -0
  36. package/build/protos/google/ads/admanager/v1/device_capability_service.proto +4 -5
  37. package/build/protos/google/ads/admanager/v1/device_category_service.proto +4 -5
  38. package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +4 -5
  39. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +6 -6
  40. package/build/protos/google/ads/admanager/v1/geo_target_service.proto +7 -8
  41. package/build/protos/google/ads/admanager/v1/label_service.proto +7 -8
  42. package/build/protos/google/ads/admanager/v1/line_item_service.proto +36 -37
  43. package/build/protos/google/ads/admanager/v1/linked_device_service.proto +6 -7
  44. package/build/protos/google/ads/admanager/v1/live_stream_messages.proto +46 -0
  45. package/build/protos/google/ads/admanager/v1/live_stream_service.proto +18 -15
  46. package/build/protos/google/ads/admanager/v1/mcm_enums.proto +245 -0
  47. package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +5 -6
  48. package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +5 -6
  49. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +5 -6
  50. package/build/protos/google/ads/admanager/v1/operating_system_service.proto +4 -5
  51. package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +6 -7
  52. package/build/protos/google/ads/admanager/v1/order_service.proto +24 -25
  53. package/build/protos/google/ads/admanager/v1/partner_messages.proto +126 -0
  54. package/build/protos/google/ads/admanager/v1/partner_service.proto +205 -0
  55. package/build/protos/google/ads/admanager/v1/placement_service.proto +9 -10
  56. package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +15 -16
  57. package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +10 -11
  58. package/build/protos/google/ads/admanager/v1/report_definition.proto +112 -7
  59. package/build/protos/google/ads/admanager/v1/report_messages.proto +3 -23
  60. package/build/protos/google/ads/admanager/v1/report_visibility_enum.proto +38 -0
  61. package/build/protos/google/ads/admanager/v1/rich_media_ads_company_service.proto +7 -8
  62. package/build/protos/google/ads/admanager/v1/role_service.proto +7 -8
  63. package/build/protos/google/ads/admanager/v1/site_service.proto +7 -8
  64. package/build/protos/google/ads/admanager/v1/slate_service.proto +5 -6
  65. package/build/protos/google/ads/admanager/v1/suggested_ad_unit_service.proto +6 -7
  66. package/build/protos/google/ads/admanager/v1/targeting_preset_service.proto +5 -6
  67. package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +2 -2
  68. package/build/protos/google/ads/admanager/v1/team_service.proto +9 -10
  69. package/build/protos/google/ads/admanager/v1/third_party_company_service.proto +6 -7
  70. package/build/protos/google/ads/admanager/v1/third_party_data_declaration.proto +48 -0
  71. package/build/protos/google/ads/admanager/v1/third_party_data_declaration_type_enum.proto +42 -0
  72. package/build/protos/google/ads/admanager/v1/video_tracking_url.proto +40 -0
  73. package/build/protos/google/ads/admanager/v1/viewability_provider_messages.proto +118 -0
  74. package/build/protos/google/ads/admanager/v1/viewability_provider_service.proto +294 -0
  75. package/build/protos/protos.d.ts +40041 -27882
  76. package/build/protos/protos.js +1 -1
  77. package/build/protos/protos.json +7233 -3583
  78. package/build/src/index.d.ts +19 -1
  79. package/build/src/index.js +15 -3
  80. package/build/src/index.js.map +1 -1
  81. package/build/src/v1/ad_break_service_client.d.ts +120 -0
  82. package/build/src/v1/ad_break_service_client.js +171 -0
  83. package/build/src/v1/ad_break_service_client.js.map +1 -1
  84. package/build/src/v1/ad_break_service_proto_list.json +19 -0
  85. package/build/src/v1/ad_review_center_ad_service_client.d.ts +120 -0
  86. package/build/src/v1/ad_review_center_ad_service_client.js +171 -0
  87. package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
  88. package/build/src/v1/ad_review_center_ad_service_proto_list.json +19 -0
  89. package/build/src/v1/ad_rule_service_client.d.ts +138 -21
  90. package/build/src/v1/ad_rule_service_client.js +183 -14
  91. package/build/src/v1/ad_rule_service_client.js.map +1 -1
  92. package/build/src/v1/ad_rule_service_proto_list.json +19 -0
  93. package/build/src/v1/ad_spot_service_client.d.ts +141 -24
  94. package/build/src/v1/ad_spot_service_client.js +185 -16
  95. package/build/src/v1/ad_spot_service_client.js.map +1 -1
  96. package/build/src/v1/ad_spot_service_proto_list.json +19 -0
  97. package/build/src/v1/ad_unit_service_client.d.ts +162 -45
  98. package/build/src/v1/ad_unit_service_client.js +199 -30
  99. package/build/src/v1/ad_unit_service_client.js.map +1 -1
  100. package/build/src/v1/ad_unit_service_proto_list.json +19 -0
  101. package/build/src/v1/application_service_client.d.ts +153 -36
  102. package/build/src/v1/application_service_client.js +193 -24
  103. package/build/src/v1/application_service_client.js.map +1 -1
  104. package/build/src/v1/application_service_proto_list.json +19 -0
  105. package/build/src/v1/audience_segment_service_client.d.ts +131 -14
  106. package/build/src/v1/audience_segment_service_client.js +177 -8
  107. package/build/src/v1/audience_segment_service_client.js.map +1 -1
  108. package/build/src/v1/audience_segment_service_proto_list.json +19 -0
  109. package/build/src/v1/bandwidth_group_service_client.d.ts +132 -15
  110. package/build/src/v1/bandwidth_group_service_client.js +179 -10
  111. package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
  112. package/build/src/v1/bandwidth_group_service_proto_list.json +19 -0
  113. package/build/src/v1/browser_language_service_client.d.ts +132 -15
  114. package/build/src/v1/browser_language_service_client.js +179 -10
  115. package/build/src/v1/browser_language_service_client.js.map +1 -1
  116. package/build/src/v1/browser_language_service_proto_list.json +19 -0
  117. package/build/src/v1/browser_service_client.d.ts +138 -21
  118. package/build/src/v1/browser_service_client.js +183 -14
  119. package/build/src/v1/browser_service_client.js.map +1 -1
  120. package/build/src/v1/browser_service_proto_list.json +19 -0
  121. package/build/src/v1/cdn_config_service_client.d.ts +141 -24
  122. package/build/src/v1/cdn_config_service_client.js +185 -16
  123. package/build/src/v1/cdn_config_service_client.js.map +1 -1
  124. package/build/src/v1/cdn_config_service_proto_list.json +19 -0
  125. package/build/src/v1/child_publisher_service_client.d.ts +1986 -0
  126. package/build/src/v1/child_publisher_service_client.js +2922 -0
  127. package/build/src/v1/child_publisher_service_client.js.map +1 -0
  128. package/build/src/v1/child_publisher_service_client_config.json +50 -0
  129. package/build/src/v1/child_publisher_service_proto_list.json +221 -0
  130. package/build/src/v1/cms_metadata_key_service_client.d.ts +135 -18
  131. package/build/src/v1/cms_metadata_key_service_client.js +181 -12
  132. package/build/src/v1/cms_metadata_key_service_client.js.map +1 -1
  133. package/build/src/v1/cms_metadata_key_service_proto_list.json +19 -0
  134. package/build/src/v1/cms_metadata_value_service_client.d.ts +138 -21
  135. package/build/src/v1/cms_metadata_value_service_client.js +183 -14
  136. package/build/src/v1/cms_metadata_value_service_client.js.map +1 -1
  137. package/build/src/v1/cms_metadata_value_service_proto_list.json +19 -0
  138. package/build/src/v1/company_service_client.d.ts +297 -66
  139. package/build/src/v1/company_service_client.js +393 -44
  140. package/build/src/v1/company_service_client.js.map +1 -1
  141. package/build/src/v1/company_service_client_config.json +16 -0
  142. package/build/src/v1/company_service_proto_list.json +19 -0
  143. package/build/src/v1/contact_service_client.d.ts +159 -42
  144. package/build/src/v1/contact_service_client.js +197 -28
  145. package/build/src/v1/contact_service_client.js.map +1 -1
  146. package/build/src/v1/contact_service_proto_list.json +19 -0
  147. package/build/src/v1/content_bundle_service_client.d.ts +138 -21
  148. package/build/src/v1/content_bundle_service_client.js +183 -14
  149. package/build/src/v1/content_bundle_service_client.js.map +1 -1
  150. package/build/src/v1/content_bundle_service_proto_list.json +19 -0
  151. package/build/src/v1/content_label_service_client.d.ts +132 -15
  152. package/build/src/v1/content_label_service_client.js +179 -10
  153. package/build/src/v1/content_label_service_client.js.map +1 -1
  154. package/build/src/v1/content_label_service_proto_list.json +19 -0
  155. package/build/src/v1/content_service_client.d.ts +171 -54
  156. package/build/src/v1/content_service_client.js +205 -36
  157. package/build/src/v1/content_service_client.js.map +1 -1
  158. package/build/src/v1/content_service_proto_list.json +19 -0
  159. package/build/src/v1/creative_set_service_client.d.ts +141 -24
  160. package/build/src/v1/creative_set_service_client.js +185 -16
  161. package/build/src/v1/creative_set_service_client.js.map +1 -1
  162. package/build/src/v1/creative_set_service_proto_list.json +19 -0
  163. package/build/src/v1/creative_template_service_client.d.ts +153 -36
  164. package/build/src/v1/creative_template_service_client.js +193 -24
  165. package/build/src/v1/creative_template_service_client.js.map +1 -1
  166. package/build/src/v1/creative_template_service_proto_list.json +19 -0
  167. package/build/src/v1/creative_wrapper_service_client.d.ts +1990 -0
  168. package/build/src/v1/creative_wrapper_service_client.js +2983 -0
  169. package/build/src/v1/creative_wrapper_service_client.js.map +1 -0
  170. package/build/src/v1/creative_wrapper_service_client_config.json +58 -0
  171. package/build/src/v1/creative_wrapper_service_proto_list.json +221 -0
  172. package/build/src/v1/custom_field_service_client.d.ts +153 -36
  173. package/build/src/v1/custom_field_service_client.js +193 -24
  174. package/build/src/v1/custom_field_service_client.js.map +1 -1
  175. package/build/src/v1/custom_field_service_proto_list.json +19 -0
  176. package/build/src/v1/custom_targeting_key_service_client.d.ts +144 -27
  177. package/build/src/v1/custom_targeting_key_service_client.js +187 -18
  178. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
  179. package/build/src/v1/custom_targeting_key_service_proto_list.json +19 -0
  180. package/build/src/v1/custom_targeting_value_service_client.d.ts +144 -27
  181. package/build/src/v1/custom_targeting_value_service_client.js +187 -18
  182. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
  183. package/build/src/v1/custom_targeting_value_service_proto_list.json +19 -0
  184. package/build/src/v1/dai_authentication_key_service_client.d.ts +1990 -0
  185. package/build/src/v1/dai_authentication_key_service_client.js +2984 -0
  186. package/build/src/v1/dai_authentication_key_service_client.js.map +1 -0
  187. package/build/src/v1/dai_authentication_key_service_client_config.json +58 -0
  188. package/build/src/v1/dai_authentication_key_service_proto_list.json +221 -0
  189. package/build/src/v1/dai_encoding_profile_service_client.d.ts +1990 -0
  190. package/build/src/v1/dai_encoding_profile_service_client.js +2984 -0
  191. package/build/src/v1/dai_encoding_profile_service_client.js.map +1 -0
  192. package/build/src/v1/dai_encoding_profile_service_client_config.json +58 -0
  193. package/build/src/v1/dai_encoding_profile_service_proto_list.json +221 -0
  194. package/build/src/v1/device_capability_service_client.d.ts +132 -15
  195. package/build/src/v1/device_capability_service_client.js +179 -10
  196. package/build/src/v1/device_capability_service_client.js.map +1 -1
  197. package/build/src/v1/device_capability_service_proto_list.json +19 -0
  198. package/build/src/v1/device_category_service_client.d.ts +132 -15
  199. package/build/src/v1/device_category_service_client.js +179 -10
  200. package/build/src/v1/device_category_service_client.js.map +1 -1
  201. package/build/src/v1/device_category_service_proto_list.json +19 -0
  202. package/build/src/v1/device_manufacturer_service_client.d.ts +132 -15
  203. package/build/src/v1/device_manufacturer_service_client.js +179 -10
  204. package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
  205. package/build/src/v1/device_manufacturer_service_proto_list.json +19 -0
  206. package/build/src/v1/entity_signals_mapping_service_client.d.ts +126 -6
  207. package/build/src/v1/entity_signals_mapping_service_client.js +171 -0
  208. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
  209. package/build/src/v1/entity_signals_mapping_service_proto_list.json +19 -0
  210. package/build/src/v1/gapic_metadata.json +548 -0
  211. package/build/src/v1/geo_target_service_client.d.ts +141 -24
  212. package/build/src/v1/geo_target_service_client.js +185 -16
  213. package/build/src/v1/geo_target_service_client.js.map +1 -1
  214. package/build/src/v1/geo_target_service_proto_list.json +19 -0
  215. package/build/src/v1/index.d.ts +6 -0
  216. package/build/src/v1/index.js +14 -2
  217. package/build/src/v1/index.js.map +1 -1
  218. package/build/src/v1/label_service_client.d.ts +141 -24
  219. package/build/src/v1/label_service_client.js +185 -16
  220. package/build/src/v1/label_service_client.js.map +1 -1
  221. package/build/src/v1/label_service_proto_list.json +19 -0
  222. package/build/src/v1/line_item_service_client.d.ts +228 -111
  223. package/build/src/v1/line_item_service_client.js +243 -74
  224. package/build/src/v1/line_item_service_client.js.map +1 -1
  225. package/build/src/v1/line_item_service_proto_list.json +19 -0
  226. package/build/src/v1/linked_device_service_client.d.ts +138 -21
  227. package/build/src/v1/linked_device_service_client.js +183 -14
  228. package/build/src/v1/linked_device_service_client.js.map +1 -1
  229. package/build/src/v1/linked_device_service_proto_list.json +19 -0
  230. package/build/src/v1/live_stream_service_client.d.ts +174 -45
  231. package/build/src/v1/live_stream_service_client.js +207 -30
  232. package/build/src/v1/live_stream_service_client.js.map +1 -1
  233. package/build/src/v1/live_stream_service_proto_list.json +19 -0
  234. package/build/src/v1/mcm_earnings_service_client.d.ts +120 -0
  235. package/build/src/v1/mcm_earnings_service_client.js +171 -0
  236. package/build/src/v1/mcm_earnings_service_client.js.map +1 -1
  237. package/build/src/v1/mcm_earnings_service_proto_list.json +19 -0
  238. package/build/src/v1/mobile_carrier_service_client.d.ts +135 -18
  239. package/build/src/v1/mobile_carrier_service_client.js +181 -12
  240. package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
  241. package/build/src/v1/mobile_carrier_service_proto_list.json +19 -0
  242. package/build/src/v1/mobile_device_service_client.d.ts +135 -18
  243. package/build/src/v1/mobile_device_service_client.js +181 -12
  244. package/build/src/v1/mobile_device_service_client.js.map +1 -1
  245. package/build/src/v1/mobile_device_service_proto_list.json +19 -0
  246. package/build/src/v1/mobile_device_submodel_service_client.d.ts +135 -18
  247. package/build/src/v1/mobile_device_submodel_service_client.js +181 -12
  248. package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
  249. package/build/src/v1/mobile_device_submodel_service_proto_list.json +19 -0
  250. package/build/src/v1/network_service_client.d.ts +120 -0
  251. package/build/src/v1/network_service_client.js +171 -0
  252. package/build/src/v1/network_service_client.js.map +1 -1
  253. package/build/src/v1/network_service_proto_list.json +19 -0
  254. package/build/src/v1/operating_system_service_client.d.ts +132 -15
  255. package/build/src/v1/operating_system_service_client.js +179 -10
  256. package/build/src/v1/operating_system_service_client.js.map +1 -1
  257. package/build/src/v1/operating_system_service_proto_list.json +19 -0
  258. package/build/src/v1/operating_system_version_service_client.d.ts +138 -21
  259. package/build/src/v1/operating_system_version_service_client.js +183 -14
  260. package/build/src/v1/operating_system_version_service_client.js.map +1 -1
  261. package/build/src/v1/operating_system_version_service_proto_list.json +19 -0
  262. package/build/src/v1/order_service_client.d.ts +192 -75
  263. package/build/src/v1/order_service_client.js +219 -50
  264. package/build/src/v1/order_service_client.js.map +1 -1
  265. package/build/src/v1/order_service_proto_list.json +19 -0
  266. package/build/src/v1/partner_service_client.d.ts +1900 -0
  267. package/build/src/v1/partner_service_client.js +2817 -0
  268. package/build/src/v1/partner_service_client.js.map +1 -0
  269. package/build/src/v1/partner_service_client_config.json +42 -0
  270. package/build/src/v1/partner_service_proto_list.json +221 -0
  271. package/build/src/v1/placement_service_client.d.ts +147 -30
  272. package/build/src/v1/placement_service_client.js +189 -20
  273. package/build/src/v1/placement_service_client.js.map +1 -1
  274. package/build/src/v1/placement_service_proto_list.json +19 -0
  275. package/build/src/v1/private_auction_deal_service_client.d.ts +165 -48
  276. package/build/src/v1/private_auction_deal_service_client.js +201 -32
  277. package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
  278. package/build/src/v1/private_auction_deal_service_proto_list.json +19 -0
  279. package/build/src/v1/private_auction_service_client.d.ts +120 -0
  280. package/build/src/v1/private_auction_service_client.js +171 -0
  281. package/build/src/v1/private_auction_service_client.js.map +1 -1
  282. package/build/src/v1/private_auction_service_proto_list.json +19 -0
  283. package/build/src/v1/programmatic_buyer_service_client.d.ts +150 -33
  284. package/build/src/v1/programmatic_buyer_service_client.js +191 -22
  285. package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
  286. package/build/src/v1/programmatic_buyer_service_proto_list.json +19 -0
  287. package/build/src/v1/report_service_client.d.ts +120 -0
  288. package/build/src/v1/report_service_client.js +171 -0
  289. package/build/src/v1/report_service_client.js.map +1 -1
  290. package/build/src/v1/report_service_proto_list.json +19 -0
  291. package/build/src/v1/rich_media_ads_company_service_client.d.ts +141 -24
  292. package/build/src/v1/rich_media_ads_company_service_client.js +185 -16
  293. package/build/src/v1/rich_media_ads_company_service_client.js.map +1 -1
  294. package/build/src/v1/rich_media_ads_company_service_proto_list.json +19 -0
  295. package/build/src/v1/role_service_client.d.ts +141 -24
  296. package/build/src/v1/role_service_client.js +185 -16
  297. package/build/src/v1/role_service_client.js.map +1 -1
  298. package/build/src/v1/role_service_proto_list.json +19 -0
  299. package/build/src/v1/site_service_client.d.ts +141 -24
  300. package/build/src/v1/site_service_client.js +185 -16
  301. package/build/src/v1/site_service_client.js.map +1 -1
  302. package/build/src/v1/site_service_proto_list.json +19 -0
  303. package/build/src/v1/slate_service_client.d.ts +135 -18
  304. package/build/src/v1/slate_service_client.js +181 -12
  305. package/build/src/v1/slate_service_client.js.map +1 -1
  306. package/build/src/v1/slate_service_proto_list.json +19 -0
  307. package/build/src/v1/suggested_ad_unit_service_client.d.ts +135 -18
  308. package/build/src/v1/suggested_ad_unit_service_client.js +181 -12
  309. package/build/src/v1/suggested_ad_unit_service_client.js.map +1 -1
  310. package/build/src/v1/suggested_ad_unit_service_proto_list.json +19 -0
  311. package/build/src/v1/targeting_preset_service_client.d.ts +135 -18
  312. package/build/src/v1/targeting_preset_service_client.js +181 -12
  313. package/build/src/v1/targeting_preset_service_client.js.map +1 -1
  314. package/build/src/v1/targeting_preset_service_proto_list.json +19 -0
  315. package/build/src/v1/taxonomy_category_service_client.d.ts +122 -2
  316. package/build/src/v1/taxonomy_category_service_client.js +171 -0
  317. package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
  318. package/build/src/v1/taxonomy_category_service_proto_list.json +19 -0
  319. package/build/src/v1/team_service_client.d.ts +147 -30
  320. package/build/src/v1/team_service_client.js +189 -20
  321. package/build/src/v1/team_service_client.js.map +1 -1
  322. package/build/src/v1/team_service_proto_list.json +19 -0
  323. package/build/src/v1/third_party_company_service_client.d.ts +138 -21
  324. package/build/src/v1/third_party_company_service_client.js +183 -14
  325. package/build/src/v1/third_party_company_service_client.js.map +1 -1
  326. package/build/src/v1/third_party_company_service_proto_list.json +19 -0
  327. package/build/src/v1/user_service_client.d.ts +120 -0
  328. package/build/src/v1/user_service_client.js +171 -0
  329. package/build/src/v1/user_service_client.js.map +1 -1
  330. package/build/src/v1/user_service_proto_list.json +19 -0
  331. package/build/src/v1/viewability_provider_service_client.d.ts +1993 -0
  332. package/build/src/v1/viewability_provider_service_client.js +2923 -0
  333. package/build/src/v1/viewability_provider_service_client.js.map +1 -0
  334. package/build/src/v1/viewability_provider_service_client_config.json +50 -0
  335. package/build/src/v1/viewability_provider_service_proto_list.json +221 -0
  336. package/package.json +7 -7
@@ -0,0 +1,2922 @@
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.ChildPublisherServiceClient = 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/child_publisher_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./child_publisher_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Provides methods for handling
32
+ * {@link protos.google.ads.admanager.v1.ChildPublisher|ChildPublisher} objects.
33
+ * @class
34
+ * @memberof v1
35
+ */
36
+ class ChildPublisherServiceClient {
37
+ _terminated = false;
38
+ _opts;
39
+ _providedCustomServicePath;
40
+ _gaxModule;
41
+ _gaxGrpc;
42
+ _protos;
43
+ _defaults;
44
+ _universeDomain;
45
+ _servicePath;
46
+ _log = google_gax_1.loggingUtils.log('admanager');
47
+ auth;
48
+ descriptors = {
49
+ page: {},
50
+ stream: {},
51
+ longrunning: {},
52
+ batching: {},
53
+ };
54
+ warn;
55
+ innerApiCalls;
56
+ pathTemplates;
57
+ childPublisherServiceStub;
58
+ /**
59
+ * Construct an instance of ChildPublisherServiceClient.
60
+ *
61
+ * @param {object} [options] - The configuration object.
62
+ * The options accepted by the constructor are described in detail
63
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
64
+ * The common options are:
65
+ * @param {object} [options.credentials] - Credentials object.
66
+ * @param {string} [options.credentials.client_email]
67
+ * @param {string} [options.credentials.private_key]
68
+ * @param {string} [options.email] - Account email address. Required when
69
+ * using a .pem or .p12 keyFilename.
70
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
71
+ * .p12 key downloaded from the Google Developers Console. If you provide
72
+ * a path to a JSON file, the projectId option below is not necessary.
73
+ * NOTE: .pem and .p12 require you to specify options.email as well.
74
+ * @param {number} [options.port] - The port on which to connect to
75
+ * the remote host.
76
+ * @param {string} [options.projectId] - The project ID from the Google
77
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
78
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
79
+ * app is running in an environment which supports
80
+ * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
81
+ * your project ID will be detected automatically.
82
+ * @param {string} [options.apiEndpoint] - The domain name of the
83
+ * API remote host.
84
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
85
+ * Follows the structure of {@link gapicConfig}.
86
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
87
+ * For more information, please check the
88
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
89
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
90
+ * need to avoid loading the default gRPC version and want to use the fallback
91
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
92
+ * ```
93
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
94
+ * const client = new ChildPublisherServiceClient({fallback: true}, gax);
95
+ * ```
96
+ */
97
+ constructor(opts, gaxInstance) {
98
+ // Ensure that options include all the required fields.
99
+ const staticMembers = this
100
+ .constructor;
101
+ if (opts?.universe_domain &&
102
+ opts?.universeDomain &&
103
+ opts?.universe_domain !== opts?.universeDomain) {
104
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
105
+ }
106
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
107
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
108
+ : undefined;
109
+ this._universeDomain =
110
+ opts?.universeDomain ??
111
+ opts?.universe_domain ??
112
+ universeDomainEnvVar ??
113
+ 'googleapis.com';
114
+ this._servicePath = 'admanager.' + this._universeDomain;
115
+ const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
116
+ this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
117
+ const port = opts?.port || staticMembers.port;
118
+ const clientConfig = opts?.clientConfig ?? {};
119
+ // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute).
120
+ if (!opts) {
121
+ opts = { fallback: true };
122
+ }
123
+ else {
124
+ opts.fallback = opts.fallback ?? true;
125
+ }
126
+ const fallback = opts?.fallback ??
127
+ (typeof window !== 'undefined' && typeof window?.fetch === 'function');
128
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
129
+ // Request numeric enum values if REST transport is used.
130
+ opts.numericEnums = true;
131
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
132
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
133
+ opts['scopes'] = staticMembers.scopes;
134
+ }
135
+ // Load google-gax module synchronously if needed
136
+ if (!gaxInstance) {
137
+ gaxInstance = require('google-gax');
138
+ }
139
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
140
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
141
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
142
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
143
+ // Save options to use in initialize() method.
144
+ this._opts = opts;
145
+ // Save the auth object to the client, for use by other methods.
146
+ this.auth = this._gaxGrpc.auth;
147
+ // Set useJWTAccessWithScope on the auth object.
148
+ this.auth.useJWTAccessWithScope = true;
149
+ // Set defaultServicePath on the auth object.
150
+ this.auth.defaultServicePath = this._servicePath;
151
+ // Set the default scopes in auth client if needed.
152
+ if (servicePath === this._servicePath) {
153
+ this.auth.defaultScopes = staticMembers.scopes;
154
+ }
155
+ // Determine the client header string.
156
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
157
+ if (typeof process === 'object' && 'versions' in process) {
158
+ clientHeader.push(`gl-node/${process.versions.node}`);
159
+ }
160
+ else {
161
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
162
+ }
163
+ if (!opts.fallback) {
164
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
165
+ }
166
+ else {
167
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
168
+ }
169
+ if (opts.libName && opts.libVersion) {
170
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
171
+ }
172
+ // Load the applicable protos.
173
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
174
+ // This API contains "path templates"; forward-slash-separated
175
+ // identifiers to uniquely identify resources within the API.
176
+ // Create useful helper objects for these.
177
+ this.pathTemplates = {
178
+ adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
179
+ adReviewCenterAdPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}'),
180
+ adRulePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adRules/{ad_rule}'),
181
+ adSpotPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adSpots/{ad_spot}'),
182
+ adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
183
+ applicationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/applications/{application}'),
184
+ audienceSegmentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/audienceSegments/{audience_segment}'),
185
+ bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
186
+ browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
187
+ browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
188
+ cdnConfigPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cdnConfigs/{cdn_config}'),
189
+ childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
190
+ cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
191
+ cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
192
+ companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
193
+ contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
194
+ contentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/content/{content}'),
195
+ contentBundlePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentBundles/{content_bundle}'),
196
+ contentLabelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentLabels/{content_label}'),
197
+ creativePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creatives/{creative}'),
198
+ creativeSetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeSets/{creative_set}'),
199
+ creativeTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeTemplates/{creative_template}'),
200
+ creativeWrapperPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeWrappers/{creative_wrapper}'),
201
+ customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
202
+ customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
203
+ customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
204
+ daiAuthenticationKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}'),
205
+ daiEncodingProfilePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile}'),
206
+ deviceCapabilityPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCapabilities/{device_capability}'),
207
+ deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
208
+ deviceManufacturerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceManufacturers/{device_manufacturer}'),
209
+ entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
210
+ geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
211
+ labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
212
+ lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
213
+ linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
214
+ liveStreamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreams/{live_stream}'),
215
+ liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
216
+ mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
217
+ mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
218
+ mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
219
+ networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
220
+ operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
221
+ operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
222
+ orderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/orders/{order}'),
223
+ partnerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/partners/{partner}'),
224
+ placementPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/placements/{placement}'),
225
+ privateAuctionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctions/{private_auction}'),
226
+ privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
227
+ programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
228
+ reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
229
+ richMediaAdsCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company}'),
230
+ rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
231
+ sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
232
+ slatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/slates/{slate}'),
233
+ suggestedAdUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/suggestedAdUnits/{suggested_ad_unit}'),
234
+ targetingPresetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/targetingPresets/{targeting_preset}'),
235
+ taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
236
+ teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
237
+ thirdPartyCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/thirdPartyCompanies/{third_party_company}'),
238
+ userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
239
+ viewabilityProviderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/viewabilityProviders/{viewability_provider}'),
240
+ webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
241
+ };
242
+ // Some of the methods on this service return "paged" results,
243
+ // (e.g. 50 results at a time, with tokens to get subsequent
244
+ // pages). Denote the keys used for pagination and results.
245
+ this.descriptors.page = {
246
+ listChildPublishers: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'childPublishers'),
247
+ };
248
+ // Put together the default options sent with requests.
249
+ this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.ChildPublisherService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
250
+ // Set up a dictionary of "inner API calls"; the core implementation
251
+ // of calling the API is handled in `google-gax`, with this code
252
+ // merely providing the destination and request information.
253
+ this.innerApiCalls = {};
254
+ // Add a warn function to the client constructor so it can be easily tested.
255
+ this.warn = this._gaxModule.warn;
256
+ }
257
+ /**
258
+ * Initialize the client.
259
+ * Performs asynchronous operations (such as authentication) and prepares the client.
260
+ * This function will be called automatically when any class method is called for the
261
+ * first time, but if you need to initialize it before calling an actual method,
262
+ * feel free to call initialize() directly.
263
+ *
264
+ * You can await on this method if you want to make sure the client is initialized.
265
+ *
266
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
267
+ */
268
+ initialize() {
269
+ // If the client stub promise is already initialized, return immediately.
270
+ if (this.childPublisherServiceStub) {
271
+ return this.childPublisherServiceStub;
272
+ }
273
+ // Put together the "service stub" for
274
+ // google.ads.admanager.v1.ChildPublisherService.
275
+ this.childPublisherServiceStub = this._gaxGrpc.createStub(this._opts.fallback
276
+ ? this._protos.lookupService('google.ads.admanager.v1.ChildPublisherService')
277
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
278
+ this._protos.google.ads.admanager.v1.ChildPublisherService, this._opts, this._providedCustomServicePath);
279
+ // Iterate over each of the methods that the service provides
280
+ // and create an API call method for each.
281
+ const childPublisherServiceStubMethods = [
282
+ 'getChildPublisher',
283
+ 'listChildPublishers',
284
+ 'createChildPublisher',
285
+ 'batchCreateChildPublishers',
286
+ 'updateChildPublisher',
287
+ 'batchUpdateChildPublishers',
288
+ ];
289
+ for (const methodName of childPublisherServiceStubMethods) {
290
+ const callPromise = this.childPublisherServiceStub.then((stub) => (...args) => {
291
+ if (this._terminated) {
292
+ return Promise.reject('The client has already been closed.');
293
+ }
294
+ const func = stub[methodName];
295
+ return func.apply(stub, args);
296
+ }, (err) => () => {
297
+ throw err;
298
+ });
299
+ const descriptor = this.descriptors.page[methodName] || undefined;
300
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
301
+ this.innerApiCalls[methodName] = apiCall;
302
+ }
303
+ return this.childPublisherServiceStub;
304
+ }
305
+ /**
306
+ * The DNS address for this API service.
307
+ * @deprecated Use the apiEndpoint method of the client instance.
308
+ * @returns {string} The DNS address for this service.
309
+ */
310
+ static get servicePath() {
311
+ if (typeof process === 'object' &&
312
+ typeof process.emitWarning === 'function') {
313
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
314
+ }
315
+ return 'admanager.googleapis.com';
316
+ }
317
+ /**
318
+ * The DNS address for this API service - same as servicePath.
319
+ * @deprecated Use the apiEndpoint method of the client instance.
320
+ * @returns {string} The DNS address for this service.
321
+ */
322
+ static get apiEndpoint() {
323
+ if (typeof process === 'object' &&
324
+ typeof process.emitWarning === 'function') {
325
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
326
+ }
327
+ return 'admanager.googleapis.com';
328
+ }
329
+ /**
330
+ * The DNS address for this API service.
331
+ * @returns {string} The DNS address for this service.
332
+ */
333
+ get apiEndpoint() {
334
+ return this._servicePath;
335
+ }
336
+ get universeDomain() {
337
+ return this._universeDomain;
338
+ }
339
+ /**
340
+ * The port for this API service.
341
+ * @returns {number} The default port for this service.
342
+ */
343
+ static get port() {
344
+ return 443;
345
+ }
346
+ /**
347
+ * The scopes needed to make gRPC calls for every method defined
348
+ * in this service.
349
+ * @returns {string[]} List of default scopes.
350
+ */
351
+ static get scopes() {
352
+ return [
353
+ 'https://www.googleapis.com/auth/admanager',
354
+ 'https://www.googleapis.com/auth/admanager.readonly',
355
+ ];
356
+ }
357
+ /**
358
+ * Return the project ID used by this class.
359
+ * @returns {Promise} A promise that resolves to string containing the project ID.
360
+ */
361
+ getProjectId(callback) {
362
+ if (callback) {
363
+ this.auth.getProjectId(callback);
364
+ return;
365
+ }
366
+ return this.auth.getProjectId();
367
+ }
368
+ getChildPublisher(request, optionsOrCallback, callback) {
369
+ request = request || {};
370
+ let options;
371
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
372
+ callback = optionsOrCallback;
373
+ options = {};
374
+ }
375
+ else {
376
+ options = optionsOrCallback;
377
+ }
378
+ options = options || {};
379
+ options.otherArgs = options.otherArgs || {};
380
+ options.otherArgs.headers = options.otherArgs.headers || {};
381
+ options.otherArgs.headers['x-goog-request-params'] =
382
+ this._gaxModule.routingHeader.fromParams({
383
+ name: request.name ?? '',
384
+ });
385
+ this.initialize().catch((err) => {
386
+ throw err;
387
+ });
388
+ this._log.info('getChildPublisher request %j', request);
389
+ const wrappedCallback = callback
390
+ ? (error, response, options, rawResponse) => {
391
+ this._log.info('getChildPublisher response %j', response);
392
+ callback(error, response, options, rawResponse); // We verified callback above.
393
+ }
394
+ : undefined;
395
+ return this.innerApiCalls
396
+ .getChildPublisher(request, options, wrappedCallback)
397
+ ?.then(([response, options, rawResponse]) => {
398
+ this._log.info('getChildPublisher response %j', response);
399
+ return [response, options, rawResponse];
400
+ })
401
+ .catch((error) => {
402
+ if (error &&
403
+ 'statusDetails' in error &&
404
+ error.statusDetails instanceof Array) {
405
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
406
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
407
+ }
408
+ throw error;
409
+ });
410
+ }
411
+ createChildPublisher(request, optionsOrCallback, callback) {
412
+ request = request || {};
413
+ let options;
414
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
415
+ callback = optionsOrCallback;
416
+ options = {};
417
+ }
418
+ else {
419
+ options = optionsOrCallback;
420
+ }
421
+ options = options || {};
422
+ options.otherArgs = options.otherArgs || {};
423
+ options.otherArgs.headers = options.otherArgs.headers || {};
424
+ options.otherArgs.headers['x-goog-request-params'] =
425
+ this._gaxModule.routingHeader.fromParams({
426
+ parent: request.parent ?? '',
427
+ });
428
+ this.initialize().catch((err) => {
429
+ throw err;
430
+ });
431
+ this._log.info('createChildPublisher request %j', request);
432
+ const wrappedCallback = callback
433
+ ? (error, response, options, rawResponse) => {
434
+ this._log.info('createChildPublisher response %j', response);
435
+ callback(error, response, options, rawResponse); // We verified callback above.
436
+ }
437
+ : undefined;
438
+ return this.innerApiCalls
439
+ .createChildPublisher(request, options, wrappedCallback)
440
+ ?.then(([response, options, rawResponse]) => {
441
+ this._log.info('createChildPublisher response %j', response);
442
+ return [response, options, rawResponse];
443
+ })
444
+ .catch((error) => {
445
+ if (error &&
446
+ 'statusDetails' in error &&
447
+ error.statusDetails instanceof Array) {
448
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
449
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
450
+ }
451
+ throw error;
452
+ });
453
+ }
454
+ batchCreateChildPublishers(request, optionsOrCallback, callback) {
455
+ request = request || {};
456
+ let options;
457
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
458
+ callback = optionsOrCallback;
459
+ options = {};
460
+ }
461
+ else {
462
+ options = optionsOrCallback;
463
+ }
464
+ options = options || {};
465
+ options.otherArgs = options.otherArgs || {};
466
+ options.otherArgs.headers = options.otherArgs.headers || {};
467
+ options.otherArgs.headers['x-goog-request-params'] =
468
+ this._gaxModule.routingHeader.fromParams({
469
+ parent: request.parent ?? '',
470
+ });
471
+ this.initialize().catch((err) => {
472
+ throw err;
473
+ });
474
+ this._log.info('batchCreateChildPublishers request %j', request);
475
+ const wrappedCallback = callback
476
+ ? (error, response, options, rawResponse) => {
477
+ this._log.info('batchCreateChildPublishers response %j', response);
478
+ callback(error, response, options, rawResponse); // We verified callback above.
479
+ }
480
+ : undefined;
481
+ return this.innerApiCalls
482
+ .batchCreateChildPublishers(request, options, wrappedCallback)
483
+ ?.then(([response, options, rawResponse]) => {
484
+ this._log.info('batchCreateChildPublishers response %j', response);
485
+ return [response, options, rawResponse];
486
+ })
487
+ .catch((error) => {
488
+ if (error &&
489
+ 'statusDetails' in error &&
490
+ error.statusDetails instanceof Array) {
491
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
492
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
493
+ }
494
+ throw error;
495
+ });
496
+ }
497
+ updateChildPublisher(request, optionsOrCallback, callback) {
498
+ request = request || {};
499
+ let options;
500
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
501
+ callback = optionsOrCallback;
502
+ options = {};
503
+ }
504
+ else {
505
+ options = optionsOrCallback;
506
+ }
507
+ options = options || {};
508
+ options.otherArgs = options.otherArgs || {};
509
+ options.otherArgs.headers = options.otherArgs.headers || {};
510
+ options.otherArgs.headers['x-goog-request-params'] =
511
+ this._gaxModule.routingHeader.fromParams({
512
+ 'child_publisher.name': request.childPublisher.name ?? '',
513
+ });
514
+ this.initialize().catch((err) => {
515
+ throw err;
516
+ });
517
+ this._log.info('updateChildPublisher request %j', request);
518
+ const wrappedCallback = callback
519
+ ? (error, response, options, rawResponse) => {
520
+ this._log.info('updateChildPublisher response %j', response);
521
+ callback(error, response, options, rawResponse); // We verified callback above.
522
+ }
523
+ : undefined;
524
+ return this.innerApiCalls
525
+ .updateChildPublisher(request, options, wrappedCallback)
526
+ ?.then(([response, options, rawResponse]) => {
527
+ this._log.info('updateChildPublisher response %j', response);
528
+ return [response, options, rawResponse];
529
+ })
530
+ .catch((error) => {
531
+ if (error &&
532
+ 'statusDetails' in error &&
533
+ error.statusDetails instanceof Array) {
534
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
535
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
536
+ }
537
+ throw error;
538
+ });
539
+ }
540
+ batchUpdateChildPublishers(request, optionsOrCallback, callback) {
541
+ request = request || {};
542
+ let options;
543
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
544
+ callback = optionsOrCallback;
545
+ options = {};
546
+ }
547
+ else {
548
+ options = optionsOrCallback;
549
+ }
550
+ options = options || {};
551
+ options.otherArgs = options.otherArgs || {};
552
+ options.otherArgs.headers = options.otherArgs.headers || {};
553
+ options.otherArgs.headers['x-goog-request-params'] =
554
+ this._gaxModule.routingHeader.fromParams({
555
+ parent: request.parent ?? '',
556
+ });
557
+ this.initialize().catch((err) => {
558
+ throw err;
559
+ });
560
+ this._log.info('batchUpdateChildPublishers request %j', request);
561
+ const wrappedCallback = callback
562
+ ? (error, response, options, rawResponse) => {
563
+ this._log.info('batchUpdateChildPublishers response %j', response);
564
+ callback(error, response, options, rawResponse); // We verified callback above.
565
+ }
566
+ : undefined;
567
+ return this.innerApiCalls
568
+ .batchUpdateChildPublishers(request, options, wrappedCallback)
569
+ ?.then(([response, options, rawResponse]) => {
570
+ this._log.info('batchUpdateChildPublishers response %j', response);
571
+ return [response, options, rawResponse];
572
+ })
573
+ .catch((error) => {
574
+ if (error &&
575
+ 'statusDetails' in error &&
576
+ error.statusDetails instanceof Array) {
577
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
578
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
579
+ }
580
+ throw error;
581
+ });
582
+ }
583
+ listChildPublishers(request, optionsOrCallback, callback) {
584
+ request = request || {};
585
+ let options;
586
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
587
+ callback = optionsOrCallback;
588
+ options = {};
589
+ }
590
+ else {
591
+ options = optionsOrCallback;
592
+ }
593
+ options = options || {};
594
+ options.otherArgs = options.otherArgs || {};
595
+ options.otherArgs.headers = options.otherArgs.headers || {};
596
+ options.otherArgs.headers['x-goog-request-params'] =
597
+ this._gaxModule.routingHeader.fromParams({
598
+ parent: request.parent ?? '',
599
+ });
600
+ this.initialize().catch((err) => {
601
+ throw err;
602
+ });
603
+ const wrappedCallback = callback
604
+ ? (error, values, nextPageRequest, rawResponse) => {
605
+ this._log.info('listChildPublishers values %j', values);
606
+ callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
607
+ }
608
+ : undefined;
609
+ this._log.info('listChildPublishers request %j', request);
610
+ return this.innerApiCalls
611
+ .listChildPublishers(request, options, wrappedCallback)
612
+ ?.then(([response, input, output]) => {
613
+ this._log.info('listChildPublishers values %j', response);
614
+ return [response, input, output];
615
+ });
616
+ }
617
+ /**
618
+ * Equivalent to `listChildPublishers`, but returns a NodeJS Stream object.
619
+ * @param {Object} request
620
+ * The request object that will be sent.
621
+ * @param {string} request.parent
622
+ * Required. The parent, which owns this collection of
623
+ * {@link protos.google.ads.admanager.v1.ChildPublisher|ChildPublisher}s. Format:
624
+ * `networks/{network_code}`
625
+ * @param {number} [request.pageSize]
626
+ * Optional. The maximum number of
627
+ * {@link protos.google.ads.admanager.v1.ChildPublisher|ChildPublisher}s to return. The
628
+ * service may return fewer than this value. If unspecified, at most 50
629
+ * {@link protos.google.ads.admanager.v1.ChildPublisher|ChildPublisher}s will be returned.
630
+ * The maximum value is 1000; values greater than 1000 will be coerced to
631
+ * 1000.
632
+ * @param {string} [request.pageToken]
633
+ * Optional. A page token, received from a previous {@link protos.|ListChildPublishers}
634
+ * call. Provide this to retrieve the subsequent page.
635
+ *
636
+ * When paginating, all other parameters provided to {@link protos.|ListChildPublishers}
637
+ * must match the call that provided the page token.
638
+ * @param {string} [request.filter]
639
+ * Optional. Expression to filter the response.
640
+ * See syntax details at
641
+ * https://developers.google.com/ad-manager/api/beta/filters
642
+ *
643
+ * **Filterable fields:**
644
+ *
645
+ * * `accountStatus`
646
+ * * `addressVerificationStatus`
647
+ * * `approvalStatus`
648
+ * * `approvedManageAccountRevenueShareMillipercent`
649
+ * * `childNetwork`
650
+ * * `delegationType`
651
+ * * `displayName`
652
+ * * `email`
653
+ * * `identityVerificationStatus`
654
+ * * `invitationStatus`
655
+ * * `name`
656
+ * * `parentRevenueShareMillipercent`
657
+ * * `pendingOnboardingTasks`
658
+ * * `readinessStatus`
659
+ * * `sellerId`
660
+ * @param {string} [request.orderBy]
661
+ * Optional. Expression to specify sorting order.
662
+ * See syntax details at
663
+ * https://developers.google.com/ad-manager/api/beta/filters#order
664
+ * @param {number} [request.skip]
665
+ * Optional. Number of individual resources to skip while paginating.
666
+ * @param {object} [options]
667
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
668
+ * @returns {Stream}
669
+ * An object stream which emits an object representing {@link protos.google.ads.admanager.v1.ChildPublisher|ChildPublisher} on 'data' event.
670
+ * The client library will perform auto-pagination by default: it will call the API as many
671
+ * times as needed. Note that it can affect your quota.
672
+ * We recommend using `listChildPublishersAsync()`
673
+ * method described below for async iteration which you can stop as needed.
674
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
675
+ * for more details and examples.
676
+ */
677
+ listChildPublishersStream(request, options) {
678
+ request = request || {};
679
+ options = options || {};
680
+ options.otherArgs = options.otherArgs || {};
681
+ options.otherArgs.headers = options.otherArgs.headers || {};
682
+ options.otherArgs.headers['x-goog-request-params'] =
683
+ this._gaxModule.routingHeader.fromParams({
684
+ parent: request.parent ?? '',
685
+ });
686
+ const defaultCallSettings = this._defaults['listChildPublishers'];
687
+ const callSettings = defaultCallSettings.merge(options);
688
+ this.initialize().catch((err) => {
689
+ throw err;
690
+ });
691
+ this._log.info('listChildPublishers stream %j', request);
692
+ return this.descriptors.page.listChildPublishers.createStream(this.innerApiCalls.listChildPublishers, request, callSettings);
693
+ }
694
+ /**
695
+ * Equivalent to `listChildPublishers`, but returns an iterable object.
696
+ *
697
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
698
+ * @param {Object} request
699
+ * The request object that will be sent.
700
+ * @param {string} request.parent
701
+ * Required. The parent, which owns this collection of
702
+ * {@link protos.google.ads.admanager.v1.ChildPublisher|ChildPublisher}s. Format:
703
+ * `networks/{network_code}`
704
+ * @param {number} [request.pageSize]
705
+ * Optional. The maximum number of
706
+ * {@link protos.google.ads.admanager.v1.ChildPublisher|ChildPublisher}s to return. The
707
+ * service may return fewer than this value. If unspecified, at most 50
708
+ * {@link protos.google.ads.admanager.v1.ChildPublisher|ChildPublisher}s will be returned.
709
+ * The maximum value is 1000; values greater than 1000 will be coerced to
710
+ * 1000.
711
+ * @param {string} [request.pageToken]
712
+ * Optional. A page token, received from a previous {@link protos.|ListChildPublishers}
713
+ * call. Provide this to retrieve the subsequent page.
714
+ *
715
+ * When paginating, all other parameters provided to {@link protos.|ListChildPublishers}
716
+ * must match the call that provided the page token.
717
+ * @param {string} [request.filter]
718
+ * Optional. Expression to filter the response.
719
+ * See syntax details at
720
+ * https://developers.google.com/ad-manager/api/beta/filters
721
+ *
722
+ * **Filterable fields:**
723
+ *
724
+ * * `accountStatus`
725
+ * * `addressVerificationStatus`
726
+ * * `approvalStatus`
727
+ * * `approvedManageAccountRevenueShareMillipercent`
728
+ * * `childNetwork`
729
+ * * `delegationType`
730
+ * * `displayName`
731
+ * * `email`
732
+ * * `identityVerificationStatus`
733
+ * * `invitationStatus`
734
+ * * `name`
735
+ * * `parentRevenueShareMillipercent`
736
+ * * `pendingOnboardingTasks`
737
+ * * `readinessStatus`
738
+ * * `sellerId`
739
+ * @param {string} [request.orderBy]
740
+ * Optional. Expression to specify sorting order.
741
+ * See syntax details at
742
+ * https://developers.google.com/ad-manager/api/beta/filters#order
743
+ * @param {number} [request.skip]
744
+ * Optional. Number of individual resources to skip while paginating.
745
+ * @param {object} [options]
746
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
747
+ * @returns {Object}
748
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
749
+ * When you iterate the returned iterable, each element will be an object representing
750
+ * {@link protos.google.ads.admanager.v1.ChildPublisher|ChildPublisher}. The API will be called under the hood as needed, once per the page,
751
+ * so you can stop the iteration when you don't need more results.
752
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
753
+ * for more details and examples.
754
+ * @example <caption>include:samples/generated/v1/child_publisher_service.list_child_publishers.js</caption>
755
+ * region_tag:admanager_v1_generated_ChildPublisherService_ListChildPublishers_async
756
+ */
757
+ listChildPublishersAsync(request, options) {
758
+ request = request || {};
759
+ options = options || {};
760
+ options.otherArgs = options.otherArgs || {};
761
+ options.otherArgs.headers = options.otherArgs.headers || {};
762
+ options.otherArgs.headers['x-goog-request-params'] =
763
+ this._gaxModule.routingHeader.fromParams({
764
+ parent: request.parent ?? '',
765
+ });
766
+ const defaultCallSettings = this._defaults['listChildPublishers'];
767
+ const callSettings = defaultCallSettings.merge(options);
768
+ this.initialize().catch((err) => {
769
+ throw err;
770
+ });
771
+ this._log.info('listChildPublishers iterate %j', request);
772
+ return this.descriptors.page.listChildPublishers.asyncIterate(this.innerApiCalls['listChildPublishers'], request, callSettings);
773
+ }
774
+ // --------------------
775
+ // -- Path templates --
776
+ // --------------------
777
+ /**
778
+ * Return a fully-qualified adBreak resource name string.
779
+ *
780
+ * @param {string} network_code
781
+ * @param {string} asset_key
782
+ * @param {string} ad_break
783
+ * @returns {string} Resource name string.
784
+ */
785
+ adBreakPath(networkCode, assetKey, adBreak) {
786
+ return this.pathTemplates.adBreakPathTemplate.render({
787
+ network_code: networkCode,
788
+ asset_key: assetKey,
789
+ ad_break: adBreak,
790
+ });
791
+ }
792
+ /**
793
+ * Parse the network_code from AdBreak resource.
794
+ *
795
+ * @param {string} adBreakName
796
+ * A fully-qualified path representing AdBreak resource.
797
+ * @returns {string} A string representing the network_code.
798
+ */
799
+ matchNetworkCodeFromAdBreakName(adBreakName) {
800
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
801
+ .network_code;
802
+ }
803
+ /**
804
+ * Parse the asset_key from AdBreak resource.
805
+ *
806
+ * @param {string} adBreakName
807
+ * A fully-qualified path representing AdBreak resource.
808
+ * @returns {string} A string representing the asset_key.
809
+ */
810
+ matchAssetKeyFromAdBreakName(adBreakName) {
811
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
812
+ }
813
+ /**
814
+ * Parse the ad_break from AdBreak resource.
815
+ *
816
+ * @param {string} adBreakName
817
+ * A fully-qualified path representing AdBreak resource.
818
+ * @returns {string} A string representing the ad_break.
819
+ */
820
+ matchAdBreakFromAdBreakName(adBreakName) {
821
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
822
+ }
823
+ /**
824
+ * Return a fully-qualified adReviewCenterAd resource name string.
825
+ *
826
+ * @param {string} network_code
827
+ * @param {string} web_property_code
828
+ * @param {string} ad_review_center_ad
829
+ * @returns {string} Resource name string.
830
+ */
831
+ adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
832
+ return this.pathTemplates.adReviewCenterAdPathTemplate.render({
833
+ network_code: networkCode,
834
+ web_property_code: webPropertyCode,
835
+ ad_review_center_ad: adReviewCenterAd,
836
+ });
837
+ }
838
+ /**
839
+ * Parse the network_code from AdReviewCenterAd resource.
840
+ *
841
+ * @param {string} adReviewCenterAdName
842
+ * A fully-qualified path representing AdReviewCenterAd resource.
843
+ * @returns {string} A string representing the network_code.
844
+ */
845
+ matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
846
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
847
+ }
848
+ /**
849
+ * Parse the web_property_code from AdReviewCenterAd resource.
850
+ *
851
+ * @param {string} adReviewCenterAdName
852
+ * A fully-qualified path representing AdReviewCenterAd resource.
853
+ * @returns {string} A string representing the web_property_code.
854
+ */
855
+ matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
856
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
857
+ }
858
+ /**
859
+ * Parse the ad_review_center_ad from AdReviewCenterAd resource.
860
+ *
861
+ * @param {string} adReviewCenterAdName
862
+ * A fully-qualified path representing AdReviewCenterAd resource.
863
+ * @returns {string} A string representing the ad_review_center_ad.
864
+ */
865
+ matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
866
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
867
+ }
868
+ /**
869
+ * Return a fully-qualified adRule resource name string.
870
+ *
871
+ * @param {string} network_code
872
+ * @param {string} ad_rule
873
+ * @returns {string} Resource name string.
874
+ */
875
+ adRulePath(networkCode, adRule) {
876
+ return this.pathTemplates.adRulePathTemplate.render({
877
+ network_code: networkCode,
878
+ ad_rule: adRule,
879
+ });
880
+ }
881
+ /**
882
+ * Parse the network_code from AdRule resource.
883
+ *
884
+ * @param {string} adRuleName
885
+ * A fully-qualified path representing AdRule resource.
886
+ * @returns {string} A string representing the network_code.
887
+ */
888
+ matchNetworkCodeFromAdRuleName(adRuleName) {
889
+ return this.pathTemplates.adRulePathTemplate.match(adRuleName).network_code;
890
+ }
891
+ /**
892
+ * Parse the ad_rule from AdRule resource.
893
+ *
894
+ * @param {string} adRuleName
895
+ * A fully-qualified path representing AdRule resource.
896
+ * @returns {string} A string representing the ad_rule.
897
+ */
898
+ matchAdRuleFromAdRuleName(adRuleName) {
899
+ return this.pathTemplates.adRulePathTemplate.match(adRuleName).ad_rule;
900
+ }
901
+ /**
902
+ * Return a fully-qualified adSpot resource name string.
903
+ *
904
+ * @param {string} network_code
905
+ * @param {string} ad_spot
906
+ * @returns {string} Resource name string.
907
+ */
908
+ adSpotPath(networkCode, adSpot) {
909
+ return this.pathTemplates.adSpotPathTemplate.render({
910
+ network_code: networkCode,
911
+ ad_spot: adSpot,
912
+ });
913
+ }
914
+ /**
915
+ * Parse the network_code from AdSpot resource.
916
+ *
917
+ * @param {string} adSpotName
918
+ * A fully-qualified path representing AdSpot resource.
919
+ * @returns {string} A string representing the network_code.
920
+ */
921
+ matchNetworkCodeFromAdSpotName(adSpotName) {
922
+ return this.pathTemplates.adSpotPathTemplate.match(adSpotName).network_code;
923
+ }
924
+ /**
925
+ * Parse the ad_spot from AdSpot resource.
926
+ *
927
+ * @param {string} adSpotName
928
+ * A fully-qualified path representing AdSpot resource.
929
+ * @returns {string} A string representing the ad_spot.
930
+ */
931
+ matchAdSpotFromAdSpotName(adSpotName) {
932
+ return this.pathTemplates.adSpotPathTemplate.match(adSpotName).ad_spot;
933
+ }
934
+ /**
935
+ * Return a fully-qualified adUnit resource name string.
936
+ *
937
+ * @param {string} network_code
938
+ * @param {string} ad_unit
939
+ * @returns {string} Resource name string.
940
+ */
941
+ adUnitPath(networkCode, adUnit) {
942
+ return this.pathTemplates.adUnitPathTemplate.render({
943
+ network_code: networkCode,
944
+ ad_unit: adUnit,
945
+ });
946
+ }
947
+ /**
948
+ * Parse the network_code from AdUnit resource.
949
+ *
950
+ * @param {string} adUnitName
951
+ * A fully-qualified path representing AdUnit resource.
952
+ * @returns {string} A string representing the network_code.
953
+ */
954
+ matchNetworkCodeFromAdUnitName(adUnitName) {
955
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
956
+ }
957
+ /**
958
+ * Parse the ad_unit from AdUnit resource.
959
+ *
960
+ * @param {string} adUnitName
961
+ * A fully-qualified path representing AdUnit resource.
962
+ * @returns {string} A string representing the ad_unit.
963
+ */
964
+ matchAdUnitFromAdUnitName(adUnitName) {
965
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
966
+ }
967
+ /**
968
+ * Return a fully-qualified application resource name string.
969
+ *
970
+ * @param {string} network_code
971
+ * @param {string} application
972
+ * @returns {string} Resource name string.
973
+ */
974
+ applicationPath(networkCode, application) {
975
+ return this.pathTemplates.applicationPathTemplate.render({
976
+ network_code: networkCode,
977
+ application: application,
978
+ });
979
+ }
980
+ /**
981
+ * Parse the network_code from Application resource.
982
+ *
983
+ * @param {string} applicationName
984
+ * A fully-qualified path representing Application resource.
985
+ * @returns {string} A string representing the network_code.
986
+ */
987
+ matchNetworkCodeFromApplicationName(applicationName) {
988
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
989
+ .network_code;
990
+ }
991
+ /**
992
+ * Parse the application from Application resource.
993
+ *
994
+ * @param {string} applicationName
995
+ * A fully-qualified path representing Application resource.
996
+ * @returns {string} A string representing the application.
997
+ */
998
+ matchApplicationFromApplicationName(applicationName) {
999
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
1000
+ .application;
1001
+ }
1002
+ /**
1003
+ * Return a fully-qualified audienceSegment resource name string.
1004
+ *
1005
+ * @param {string} network_code
1006
+ * @param {string} audience_segment
1007
+ * @returns {string} Resource name string.
1008
+ */
1009
+ audienceSegmentPath(networkCode, audienceSegment) {
1010
+ return this.pathTemplates.audienceSegmentPathTemplate.render({
1011
+ network_code: networkCode,
1012
+ audience_segment: audienceSegment,
1013
+ });
1014
+ }
1015
+ /**
1016
+ * Parse the network_code from AudienceSegment resource.
1017
+ *
1018
+ * @param {string} audienceSegmentName
1019
+ * A fully-qualified path representing AudienceSegment resource.
1020
+ * @returns {string} A string representing the network_code.
1021
+ */
1022
+ matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
1023
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
1024
+ }
1025
+ /**
1026
+ * Parse the audience_segment from AudienceSegment resource.
1027
+ *
1028
+ * @param {string} audienceSegmentName
1029
+ * A fully-qualified path representing AudienceSegment resource.
1030
+ * @returns {string} A string representing the audience_segment.
1031
+ */
1032
+ matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
1033
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
1034
+ }
1035
+ /**
1036
+ * Return a fully-qualified bandwidthGroup resource name string.
1037
+ *
1038
+ * @param {string} network_code
1039
+ * @param {string} bandwidth_group
1040
+ * @returns {string} Resource name string.
1041
+ */
1042
+ bandwidthGroupPath(networkCode, bandwidthGroup) {
1043
+ return this.pathTemplates.bandwidthGroupPathTemplate.render({
1044
+ network_code: networkCode,
1045
+ bandwidth_group: bandwidthGroup,
1046
+ });
1047
+ }
1048
+ /**
1049
+ * Parse the network_code from BandwidthGroup resource.
1050
+ *
1051
+ * @param {string} bandwidthGroupName
1052
+ * A fully-qualified path representing BandwidthGroup resource.
1053
+ * @returns {string} A string representing the network_code.
1054
+ */
1055
+ matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
1056
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
1057
+ }
1058
+ /**
1059
+ * Parse the bandwidth_group from BandwidthGroup resource.
1060
+ *
1061
+ * @param {string} bandwidthGroupName
1062
+ * A fully-qualified path representing BandwidthGroup resource.
1063
+ * @returns {string} A string representing the bandwidth_group.
1064
+ */
1065
+ matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
1066
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
1067
+ }
1068
+ /**
1069
+ * Return a fully-qualified browser resource name string.
1070
+ *
1071
+ * @param {string} network_code
1072
+ * @param {string} browser
1073
+ * @returns {string} Resource name string.
1074
+ */
1075
+ browserPath(networkCode, browser) {
1076
+ return this.pathTemplates.browserPathTemplate.render({
1077
+ network_code: networkCode,
1078
+ browser: browser,
1079
+ });
1080
+ }
1081
+ /**
1082
+ * Parse the network_code from Browser resource.
1083
+ *
1084
+ * @param {string} browserName
1085
+ * A fully-qualified path representing Browser resource.
1086
+ * @returns {string} A string representing the network_code.
1087
+ */
1088
+ matchNetworkCodeFromBrowserName(browserName) {
1089
+ return this.pathTemplates.browserPathTemplate.match(browserName)
1090
+ .network_code;
1091
+ }
1092
+ /**
1093
+ * Parse the browser from Browser resource.
1094
+ *
1095
+ * @param {string} browserName
1096
+ * A fully-qualified path representing Browser resource.
1097
+ * @returns {string} A string representing the browser.
1098
+ */
1099
+ matchBrowserFromBrowserName(browserName) {
1100
+ return this.pathTemplates.browserPathTemplate.match(browserName).browser;
1101
+ }
1102
+ /**
1103
+ * Return a fully-qualified browserLanguage resource name string.
1104
+ *
1105
+ * @param {string} network_code
1106
+ * @param {string} browser_language
1107
+ * @returns {string} Resource name string.
1108
+ */
1109
+ browserLanguagePath(networkCode, browserLanguage) {
1110
+ return this.pathTemplates.browserLanguagePathTemplate.render({
1111
+ network_code: networkCode,
1112
+ browser_language: browserLanguage,
1113
+ });
1114
+ }
1115
+ /**
1116
+ * Parse the network_code from BrowserLanguage resource.
1117
+ *
1118
+ * @param {string} browserLanguageName
1119
+ * A fully-qualified path representing BrowserLanguage resource.
1120
+ * @returns {string} A string representing the network_code.
1121
+ */
1122
+ matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
1123
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
1124
+ }
1125
+ /**
1126
+ * Parse the browser_language from BrowserLanguage resource.
1127
+ *
1128
+ * @param {string} browserLanguageName
1129
+ * A fully-qualified path representing BrowserLanguage resource.
1130
+ * @returns {string} A string representing the browser_language.
1131
+ */
1132
+ matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
1133
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
1134
+ }
1135
+ /**
1136
+ * Return a fully-qualified cdnConfig resource name string.
1137
+ *
1138
+ * @param {string} network_code
1139
+ * @param {string} cdn_config
1140
+ * @returns {string} Resource name string.
1141
+ */
1142
+ cdnConfigPath(networkCode, cdnConfig) {
1143
+ return this.pathTemplates.cdnConfigPathTemplate.render({
1144
+ network_code: networkCode,
1145
+ cdn_config: cdnConfig,
1146
+ });
1147
+ }
1148
+ /**
1149
+ * Parse the network_code from CdnConfig resource.
1150
+ *
1151
+ * @param {string} cdnConfigName
1152
+ * A fully-qualified path representing CdnConfig resource.
1153
+ * @returns {string} A string representing the network_code.
1154
+ */
1155
+ matchNetworkCodeFromCdnConfigName(cdnConfigName) {
1156
+ return this.pathTemplates.cdnConfigPathTemplate.match(cdnConfigName)
1157
+ .network_code;
1158
+ }
1159
+ /**
1160
+ * Parse the cdn_config from CdnConfig resource.
1161
+ *
1162
+ * @param {string} cdnConfigName
1163
+ * A fully-qualified path representing CdnConfig resource.
1164
+ * @returns {string} A string representing the cdn_config.
1165
+ */
1166
+ matchCdnConfigFromCdnConfigName(cdnConfigName) {
1167
+ return this.pathTemplates.cdnConfigPathTemplate.match(cdnConfigName)
1168
+ .cdn_config;
1169
+ }
1170
+ /**
1171
+ * Return a fully-qualified childPublisher resource name string.
1172
+ *
1173
+ * @param {string} network_code
1174
+ * @param {string} child_publisher
1175
+ * @returns {string} Resource name string.
1176
+ */
1177
+ childPublisherPath(networkCode, childPublisher) {
1178
+ return this.pathTemplates.childPublisherPathTemplate.render({
1179
+ network_code: networkCode,
1180
+ child_publisher: childPublisher,
1181
+ });
1182
+ }
1183
+ /**
1184
+ * Parse the network_code from ChildPublisher resource.
1185
+ *
1186
+ * @param {string} childPublisherName
1187
+ * A fully-qualified path representing ChildPublisher resource.
1188
+ * @returns {string} A string representing the network_code.
1189
+ */
1190
+ matchNetworkCodeFromChildPublisherName(childPublisherName) {
1191
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
1192
+ }
1193
+ /**
1194
+ * Parse the child_publisher from ChildPublisher resource.
1195
+ *
1196
+ * @param {string} childPublisherName
1197
+ * A fully-qualified path representing ChildPublisher resource.
1198
+ * @returns {string} A string representing the child_publisher.
1199
+ */
1200
+ matchChildPublisherFromChildPublisherName(childPublisherName) {
1201
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
1202
+ }
1203
+ /**
1204
+ * Return a fully-qualified cmsMetadataKey resource name string.
1205
+ *
1206
+ * @param {string} network_code
1207
+ * @param {string} cms_metadata_key
1208
+ * @returns {string} Resource name string.
1209
+ */
1210
+ cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
1211
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
1212
+ network_code: networkCode,
1213
+ cms_metadata_key: cmsMetadataKey,
1214
+ });
1215
+ }
1216
+ /**
1217
+ * Parse the network_code from CmsMetadataKey resource.
1218
+ *
1219
+ * @param {string} cmsMetadataKeyName
1220
+ * A fully-qualified path representing CmsMetadataKey resource.
1221
+ * @returns {string} A string representing the network_code.
1222
+ */
1223
+ matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
1224
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
1225
+ }
1226
+ /**
1227
+ * Parse the cms_metadata_key from CmsMetadataKey resource.
1228
+ *
1229
+ * @param {string} cmsMetadataKeyName
1230
+ * A fully-qualified path representing CmsMetadataKey resource.
1231
+ * @returns {string} A string representing the cms_metadata_key.
1232
+ */
1233
+ matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
1234
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
1235
+ }
1236
+ /**
1237
+ * Return a fully-qualified cmsMetadataValue resource name string.
1238
+ *
1239
+ * @param {string} network_code
1240
+ * @param {string} cms_metadata_value
1241
+ * @returns {string} Resource name string.
1242
+ */
1243
+ cmsMetadataValuePath(networkCode, cmsMetadataValue) {
1244
+ return this.pathTemplates.cmsMetadataValuePathTemplate.render({
1245
+ network_code: networkCode,
1246
+ cms_metadata_value: cmsMetadataValue,
1247
+ });
1248
+ }
1249
+ /**
1250
+ * Parse the network_code from CmsMetadataValue resource.
1251
+ *
1252
+ * @param {string} cmsMetadataValueName
1253
+ * A fully-qualified path representing CmsMetadataValue resource.
1254
+ * @returns {string} A string representing the network_code.
1255
+ */
1256
+ matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
1257
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
1258
+ }
1259
+ /**
1260
+ * Parse the cms_metadata_value from CmsMetadataValue resource.
1261
+ *
1262
+ * @param {string} cmsMetadataValueName
1263
+ * A fully-qualified path representing CmsMetadataValue resource.
1264
+ * @returns {string} A string representing the cms_metadata_value.
1265
+ */
1266
+ matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
1267
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
1268
+ }
1269
+ /**
1270
+ * Return a fully-qualified company resource name string.
1271
+ *
1272
+ * @param {string} network_code
1273
+ * @param {string} company
1274
+ * @returns {string} Resource name string.
1275
+ */
1276
+ companyPath(networkCode, company) {
1277
+ return this.pathTemplates.companyPathTemplate.render({
1278
+ network_code: networkCode,
1279
+ company: company,
1280
+ });
1281
+ }
1282
+ /**
1283
+ * Parse the network_code from Company resource.
1284
+ *
1285
+ * @param {string} companyName
1286
+ * A fully-qualified path representing Company resource.
1287
+ * @returns {string} A string representing the network_code.
1288
+ */
1289
+ matchNetworkCodeFromCompanyName(companyName) {
1290
+ return this.pathTemplates.companyPathTemplate.match(companyName)
1291
+ .network_code;
1292
+ }
1293
+ /**
1294
+ * Parse the company from Company resource.
1295
+ *
1296
+ * @param {string} companyName
1297
+ * A fully-qualified path representing Company resource.
1298
+ * @returns {string} A string representing the company.
1299
+ */
1300
+ matchCompanyFromCompanyName(companyName) {
1301
+ return this.pathTemplates.companyPathTemplate.match(companyName).company;
1302
+ }
1303
+ /**
1304
+ * Return a fully-qualified contact resource name string.
1305
+ *
1306
+ * @param {string} network_code
1307
+ * @param {string} contact
1308
+ * @returns {string} Resource name string.
1309
+ */
1310
+ contactPath(networkCode, contact) {
1311
+ return this.pathTemplates.contactPathTemplate.render({
1312
+ network_code: networkCode,
1313
+ contact: contact,
1314
+ });
1315
+ }
1316
+ /**
1317
+ * Parse the network_code from Contact resource.
1318
+ *
1319
+ * @param {string} contactName
1320
+ * A fully-qualified path representing Contact resource.
1321
+ * @returns {string} A string representing the network_code.
1322
+ */
1323
+ matchNetworkCodeFromContactName(contactName) {
1324
+ return this.pathTemplates.contactPathTemplate.match(contactName)
1325
+ .network_code;
1326
+ }
1327
+ /**
1328
+ * Parse the contact from Contact resource.
1329
+ *
1330
+ * @param {string} contactName
1331
+ * A fully-qualified path representing Contact resource.
1332
+ * @returns {string} A string representing the contact.
1333
+ */
1334
+ matchContactFromContactName(contactName) {
1335
+ return this.pathTemplates.contactPathTemplate.match(contactName).contact;
1336
+ }
1337
+ /**
1338
+ * Return a fully-qualified content resource name string.
1339
+ *
1340
+ * @param {string} network_code
1341
+ * @param {string} content
1342
+ * @returns {string} Resource name string.
1343
+ */
1344
+ contentPath(networkCode, content) {
1345
+ return this.pathTemplates.contentPathTemplate.render({
1346
+ network_code: networkCode,
1347
+ content: content,
1348
+ });
1349
+ }
1350
+ /**
1351
+ * Parse the network_code from Content resource.
1352
+ *
1353
+ * @param {string} contentName
1354
+ * A fully-qualified path representing Content resource.
1355
+ * @returns {string} A string representing the network_code.
1356
+ */
1357
+ matchNetworkCodeFromContentName(contentName) {
1358
+ return this.pathTemplates.contentPathTemplate.match(contentName)
1359
+ .network_code;
1360
+ }
1361
+ /**
1362
+ * Parse the content from Content resource.
1363
+ *
1364
+ * @param {string} contentName
1365
+ * A fully-qualified path representing Content resource.
1366
+ * @returns {string} A string representing the content.
1367
+ */
1368
+ matchContentFromContentName(contentName) {
1369
+ return this.pathTemplates.contentPathTemplate.match(contentName).content;
1370
+ }
1371
+ /**
1372
+ * Return a fully-qualified contentBundle resource name string.
1373
+ *
1374
+ * @param {string} network_code
1375
+ * @param {string} content_bundle
1376
+ * @returns {string} Resource name string.
1377
+ */
1378
+ contentBundlePath(networkCode, contentBundle) {
1379
+ return this.pathTemplates.contentBundlePathTemplate.render({
1380
+ network_code: networkCode,
1381
+ content_bundle: contentBundle,
1382
+ });
1383
+ }
1384
+ /**
1385
+ * Parse the network_code from ContentBundle resource.
1386
+ *
1387
+ * @param {string} contentBundleName
1388
+ * A fully-qualified path representing ContentBundle resource.
1389
+ * @returns {string} A string representing the network_code.
1390
+ */
1391
+ matchNetworkCodeFromContentBundleName(contentBundleName) {
1392
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1393
+ .network_code;
1394
+ }
1395
+ /**
1396
+ * Parse the content_bundle from ContentBundle resource.
1397
+ *
1398
+ * @param {string} contentBundleName
1399
+ * A fully-qualified path representing ContentBundle resource.
1400
+ * @returns {string} A string representing the content_bundle.
1401
+ */
1402
+ matchContentBundleFromContentBundleName(contentBundleName) {
1403
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1404
+ .content_bundle;
1405
+ }
1406
+ /**
1407
+ * Return a fully-qualified contentLabel resource name string.
1408
+ *
1409
+ * @param {string} network_code
1410
+ * @param {string} content_label
1411
+ * @returns {string} Resource name string.
1412
+ */
1413
+ contentLabelPath(networkCode, contentLabel) {
1414
+ return this.pathTemplates.contentLabelPathTemplate.render({
1415
+ network_code: networkCode,
1416
+ content_label: contentLabel,
1417
+ });
1418
+ }
1419
+ /**
1420
+ * Parse the network_code from ContentLabel resource.
1421
+ *
1422
+ * @param {string} contentLabelName
1423
+ * A fully-qualified path representing ContentLabel resource.
1424
+ * @returns {string} A string representing the network_code.
1425
+ */
1426
+ matchNetworkCodeFromContentLabelName(contentLabelName) {
1427
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1428
+ .network_code;
1429
+ }
1430
+ /**
1431
+ * Parse the content_label from ContentLabel resource.
1432
+ *
1433
+ * @param {string} contentLabelName
1434
+ * A fully-qualified path representing ContentLabel resource.
1435
+ * @returns {string} A string representing the content_label.
1436
+ */
1437
+ matchContentLabelFromContentLabelName(contentLabelName) {
1438
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1439
+ .content_label;
1440
+ }
1441
+ /**
1442
+ * Return a fully-qualified creative resource name string.
1443
+ *
1444
+ * @param {string} network_code
1445
+ * @param {string} creative
1446
+ * @returns {string} Resource name string.
1447
+ */
1448
+ creativePath(networkCode, creative) {
1449
+ return this.pathTemplates.creativePathTemplate.render({
1450
+ network_code: networkCode,
1451
+ creative: creative,
1452
+ });
1453
+ }
1454
+ /**
1455
+ * Parse the network_code from Creative resource.
1456
+ *
1457
+ * @param {string} creativeName
1458
+ * A fully-qualified path representing Creative resource.
1459
+ * @returns {string} A string representing the network_code.
1460
+ */
1461
+ matchNetworkCodeFromCreativeName(creativeName) {
1462
+ return this.pathTemplates.creativePathTemplate.match(creativeName)
1463
+ .network_code;
1464
+ }
1465
+ /**
1466
+ * Parse the creative from Creative resource.
1467
+ *
1468
+ * @param {string} creativeName
1469
+ * A fully-qualified path representing Creative resource.
1470
+ * @returns {string} A string representing the creative.
1471
+ */
1472
+ matchCreativeFromCreativeName(creativeName) {
1473
+ return this.pathTemplates.creativePathTemplate.match(creativeName).creative;
1474
+ }
1475
+ /**
1476
+ * Return a fully-qualified creativeSet resource name string.
1477
+ *
1478
+ * @param {string} network_code
1479
+ * @param {string} creative_set
1480
+ * @returns {string} Resource name string.
1481
+ */
1482
+ creativeSetPath(networkCode, creativeSet) {
1483
+ return this.pathTemplates.creativeSetPathTemplate.render({
1484
+ network_code: networkCode,
1485
+ creative_set: creativeSet,
1486
+ });
1487
+ }
1488
+ /**
1489
+ * Parse the network_code from CreativeSet resource.
1490
+ *
1491
+ * @param {string} creativeSetName
1492
+ * A fully-qualified path representing CreativeSet resource.
1493
+ * @returns {string} A string representing the network_code.
1494
+ */
1495
+ matchNetworkCodeFromCreativeSetName(creativeSetName) {
1496
+ return this.pathTemplates.creativeSetPathTemplate.match(creativeSetName)
1497
+ .network_code;
1498
+ }
1499
+ /**
1500
+ * Parse the creative_set from CreativeSet resource.
1501
+ *
1502
+ * @param {string} creativeSetName
1503
+ * A fully-qualified path representing CreativeSet resource.
1504
+ * @returns {string} A string representing the creative_set.
1505
+ */
1506
+ matchCreativeSetFromCreativeSetName(creativeSetName) {
1507
+ return this.pathTemplates.creativeSetPathTemplate.match(creativeSetName)
1508
+ .creative_set;
1509
+ }
1510
+ /**
1511
+ * Return a fully-qualified creativeTemplate resource name string.
1512
+ *
1513
+ * @param {string} network_code
1514
+ * @param {string} creative_template
1515
+ * @returns {string} Resource name string.
1516
+ */
1517
+ creativeTemplatePath(networkCode, creativeTemplate) {
1518
+ return this.pathTemplates.creativeTemplatePathTemplate.render({
1519
+ network_code: networkCode,
1520
+ creative_template: creativeTemplate,
1521
+ });
1522
+ }
1523
+ /**
1524
+ * Parse the network_code from CreativeTemplate resource.
1525
+ *
1526
+ * @param {string} creativeTemplateName
1527
+ * A fully-qualified path representing CreativeTemplate resource.
1528
+ * @returns {string} A string representing the network_code.
1529
+ */
1530
+ matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
1531
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
1532
+ }
1533
+ /**
1534
+ * Parse the creative_template from CreativeTemplate resource.
1535
+ *
1536
+ * @param {string} creativeTemplateName
1537
+ * A fully-qualified path representing CreativeTemplate resource.
1538
+ * @returns {string} A string representing the creative_template.
1539
+ */
1540
+ matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
1541
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
1542
+ }
1543
+ /**
1544
+ * Return a fully-qualified creativeWrapper resource name string.
1545
+ *
1546
+ * @param {string} network_code
1547
+ * @param {string} creative_wrapper
1548
+ * @returns {string} Resource name string.
1549
+ */
1550
+ creativeWrapperPath(networkCode, creativeWrapper) {
1551
+ return this.pathTemplates.creativeWrapperPathTemplate.render({
1552
+ network_code: networkCode,
1553
+ creative_wrapper: creativeWrapper,
1554
+ });
1555
+ }
1556
+ /**
1557
+ * Parse the network_code from CreativeWrapper resource.
1558
+ *
1559
+ * @param {string} creativeWrapperName
1560
+ * A fully-qualified path representing CreativeWrapper resource.
1561
+ * @returns {string} A string representing the network_code.
1562
+ */
1563
+ matchNetworkCodeFromCreativeWrapperName(creativeWrapperName) {
1564
+ return this.pathTemplates.creativeWrapperPathTemplate.match(creativeWrapperName).network_code;
1565
+ }
1566
+ /**
1567
+ * Parse the creative_wrapper from CreativeWrapper resource.
1568
+ *
1569
+ * @param {string} creativeWrapperName
1570
+ * A fully-qualified path representing CreativeWrapper resource.
1571
+ * @returns {string} A string representing the creative_wrapper.
1572
+ */
1573
+ matchCreativeWrapperFromCreativeWrapperName(creativeWrapperName) {
1574
+ return this.pathTemplates.creativeWrapperPathTemplate.match(creativeWrapperName).creative_wrapper;
1575
+ }
1576
+ /**
1577
+ * Return a fully-qualified customField resource name string.
1578
+ *
1579
+ * @param {string} network_code
1580
+ * @param {string} custom_field
1581
+ * @returns {string} Resource name string.
1582
+ */
1583
+ customFieldPath(networkCode, customField) {
1584
+ return this.pathTemplates.customFieldPathTemplate.render({
1585
+ network_code: networkCode,
1586
+ custom_field: customField,
1587
+ });
1588
+ }
1589
+ /**
1590
+ * Parse the network_code from CustomField resource.
1591
+ *
1592
+ * @param {string} customFieldName
1593
+ * A fully-qualified path representing CustomField resource.
1594
+ * @returns {string} A string representing the network_code.
1595
+ */
1596
+ matchNetworkCodeFromCustomFieldName(customFieldName) {
1597
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1598
+ .network_code;
1599
+ }
1600
+ /**
1601
+ * Parse the custom_field from CustomField resource.
1602
+ *
1603
+ * @param {string} customFieldName
1604
+ * A fully-qualified path representing CustomField resource.
1605
+ * @returns {string} A string representing the custom_field.
1606
+ */
1607
+ matchCustomFieldFromCustomFieldName(customFieldName) {
1608
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1609
+ .custom_field;
1610
+ }
1611
+ /**
1612
+ * Return a fully-qualified customTargetingKey resource name string.
1613
+ *
1614
+ * @param {string} network_code
1615
+ * @param {string} custom_targeting_key
1616
+ * @returns {string} Resource name string.
1617
+ */
1618
+ customTargetingKeyPath(networkCode, customTargetingKey) {
1619
+ return this.pathTemplates.customTargetingKeyPathTemplate.render({
1620
+ network_code: networkCode,
1621
+ custom_targeting_key: customTargetingKey,
1622
+ });
1623
+ }
1624
+ /**
1625
+ * Parse the network_code from CustomTargetingKey resource.
1626
+ *
1627
+ * @param {string} customTargetingKeyName
1628
+ * A fully-qualified path representing CustomTargetingKey resource.
1629
+ * @returns {string} A string representing the network_code.
1630
+ */
1631
+ matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName) {
1632
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).network_code;
1633
+ }
1634
+ /**
1635
+ * Parse the custom_targeting_key from CustomTargetingKey resource.
1636
+ *
1637
+ * @param {string} customTargetingKeyName
1638
+ * A fully-qualified path representing CustomTargetingKey resource.
1639
+ * @returns {string} A string representing the custom_targeting_key.
1640
+ */
1641
+ matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName) {
1642
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).custom_targeting_key;
1643
+ }
1644
+ /**
1645
+ * Return a fully-qualified customTargetingValue resource name string.
1646
+ *
1647
+ * @param {string} network_code
1648
+ * @param {string} custom_targeting_value
1649
+ * @returns {string} Resource name string.
1650
+ */
1651
+ customTargetingValuePath(networkCode, customTargetingValue) {
1652
+ return this.pathTemplates.customTargetingValuePathTemplate.render({
1653
+ network_code: networkCode,
1654
+ custom_targeting_value: customTargetingValue,
1655
+ });
1656
+ }
1657
+ /**
1658
+ * Parse the network_code from CustomTargetingValue resource.
1659
+ *
1660
+ * @param {string} customTargetingValueName
1661
+ * A fully-qualified path representing CustomTargetingValue resource.
1662
+ * @returns {string} A string representing the network_code.
1663
+ */
1664
+ matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
1665
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
1666
+ }
1667
+ /**
1668
+ * Parse the custom_targeting_value from CustomTargetingValue resource.
1669
+ *
1670
+ * @param {string} customTargetingValueName
1671
+ * A fully-qualified path representing CustomTargetingValue resource.
1672
+ * @returns {string} A string representing the custom_targeting_value.
1673
+ */
1674
+ matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
1675
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
1676
+ }
1677
+ /**
1678
+ * Return a fully-qualified daiAuthenticationKey resource name string.
1679
+ *
1680
+ * @param {string} network_code
1681
+ * @param {string} dai_authentication_key
1682
+ * @returns {string} Resource name string.
1683
+ */
1684
+ daiAuthenticationKeyPath(networkCode, daiAuthenticationKey) {
1685
+ return this.pathTemplates.daiAuthenticationKeyPathTemplate.render({
1686
+ network_code: networkCode,
1687
+ dai_authentication_key: daiAuthenticationKey,
1688
+ });
1689
+ }
1690
+ /**
1691
+ * Parse the network_code from DaiAuthenticationKey resource.
1692
+ *
1693
+ * @param {string} daiAuthenticationKeyName
1694
+ * A fully-qualified path representing DaiAuthenticationKey resource.
1695
+ * @returns {string} A string representing the network_code.
1696
+ */
1697
+ matchNetworkCodeFromDaiAuthenticationKeyName(daiAuthenticationKeyName) {
1698
+ return this.pathTemplates.daiAuthenticationKeyPathTemplate.match(daiAuthenticationKeyName).network_code;
1699
+ }
1700
+ /**
1701
+ * Parse the dai_authentication_key from DaiAuthenticationKey resource.
1702
+ *
1703
+ * @param {string} daiAuthenticationKeyName
1704
+ * A fully-qualified path representing DaiAuthenticationKey resource.
1705
+ * @returns {string} A string representing the dai_authentication_key.
1706
+ */
1707
+ matchDaiAuthenticationKeyFromDaiAuthenticationKeyName(daiAuthenticationKeyName) {
1708
+ return this.pathTemplates.daiAuthenticationKeyPathTemplate.match(daiAuthenticationKeyName).dai_authentication_key;
1709
+ }
1710
+ /**
1711
+ * Return a fully-qualified daiEncodingProfile resource name string.
1712
+ *
1713
+ * @param {string} network_code
1714
+ * @param {string} dai_encoding_profile
1715
+ * @returns {string} Resource name string.
1716
+ */
1717
+ daiEncodingProfilePath(networkCode, daiEncodingProfile) {
1718
+ return this.pathTemplates.daiEncodingProfilePathTemplate.render({
1719
+ network_code: networkCode,
1720
+ dai_encoding_profile: daiEncodingProfile,
1721
+ });
1722
+ }
1723
+ /**
1724
+ * Parse the network_code from DaiEncodingProfile resource.
1725
+ *
1726
+ * @param {string} daiEncodingProfileName
1727
+ * A fully-qualified path representing DaiEncodingProfile resource.
1728
+ * @returns {string} A string representing the network_code.
1729
+ */
1730
+ matchNetworkCodeFromDaiEncodingProfileName(daiEncodingProfileName) {
1731
+ return this.pathTemplates.daiEncodingProfilePathTemplate.match(daiEncodingProfileName).network_code;
1732
+ }
1733
+ /**
1734
+ * Parse the dai_encoding_profile from DaiEncodingProfile resource.
1735
+ *
1736
+ * @param {string} daiEncodingProfileName
1737
+ * A fully-qualified path representing DaiEncodingProfile resource.
1738
+ * @returns {string} A string representing the dai_encoding_profile.
1739
+ */
1740
+ matchDaiEncodingProfileFromDaiEncodingProfileName(daiEncodingProfileName) {
1741
+ return this.pathTemplates.daiEncodingProfilePathTemplate.match(daiEncodingProfileName).dai_encoding_profile;
1742
+ }
1743
+ /**
1744
+ * Return a fully-qualified deviceCapability resource name string.
1745
+ *
1746
+ * @param {string} network_code
1747
+ * @param {string} device_capability
1748
+ * @returns {string} Resource name string.
1749
+ */
1750
+ deviceCapabilityPath(networkCode, deviceCapability) {
1751
+ return this.pathTemplates.deviceCapabilityPathTemplate.render({
1752
+ network_code: networkCode,
1753
+ device_capability: deviceCapability,
1754
+ });
1755
+ }
1756
+ /**
1757
+ * Parse the network_code from DeviceCapability resource.
1758
+ *
1759
+ * @param {string} deviceCapabilityName
1760
+ * A fully-qualified path representing DeviceCapability resource.
1761
+ * @returns {string} A string representing the network_code.
1762
+ */
1763
+ matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
1764
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
1765
+ }
1766
+ /**
1767
+ * Parse the device_capability from DeviceCapability resource.
1768
+ *
1769
+ * @param {string} deviceCapabilityName
1770
+ * A fully-qualified path representing DeviceCapability resource.
1771
+ * @returns {string} A string representing the device_capability.
1772
+ */
1773
+ matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
1774
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
1775
+ }
1776
+ /**
1777
+ * Return a fully-qualified deviceCategory resource name string.
1778
+ *
1779
+ * @param {string} network_code
1780
+ * @param {string} device_category
1781
+ * @returns {string} Resource name string.
1782
+ */
1783
+ deviceCategoryPath(networkCode, deviceCategory) {
1784
+ return this.pathTemplates.deviceCategoryPathTemplate.render({
1785
+ network_code: networkCode,
1786
+ device_category: deviceCategory,
1787
+ });
1788
+ }
1789
+ /**
1790
+ * Parse the network_code from DeviceCategory resource.
1791
+ *
1792
+ * @param {string} deviceCategoryName
1793
+ * A fully-qualified path representing DeviceCategory resource.
1794
+ * @returns {string} A string representing the network_code.
1795
+ */
1796
+ matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
1797
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
1798
+ }
1799
+ /**
1800
+ * Parse the device_category from DeviceCategory resource.
1801
+ *
1802
+ * @param {string} deviceCategoryName
1803
+ * A fully-qualified path representing DeviceCategory resource.
1804
+ * @returns {string} A string representing the device_category.
1805
+ */
1806
+ matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
1807
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
1808
+ }
1809
+ /**
1810
+ * Return a fully-qualified deviceManufacturer resource name string.
1811
+ *
1812
+ * @param {string} network_code
1813
+ * @param {string} device_manufacturer
1814
+ * @returns {string} Resource name string.
1815
+ */
1816
+ deviceManufacturerPath(networkCode, deviceManufacturer) {
1817
+ return this.pathTemplates.deviceManufacturerPathTemplate.render({
1818
+ network_code: networkCode,
1819
+ device_manufacturer: deviceManufacturer,
1820
+ });
1821
+ }
1822
+ /**
1823
+ * Parse the network_code from DeviceManufacturer resource.
1824
+ *
1825
+ * @param {string} deviceManufacturerName
1826
+ * A fully-qualified path representing DeviceManufacturer resource.
1827
+ * @returns {string} A string representing the network_code.
1828
+ */
1829
+ matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
1830
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
1831
+ }
1832
+ /**
1833
+ * Parse the device_manufacturer from DeviceManufacturer resource.
1834
+ *
1835
+ * @param {string} deviceManufacturerName
1836
+ * A fully-qualified path representing DeviceManufacturer resource.
1837
+ * @returns {string} A string representing the device_manufacturer.
1838
+ */
1839
+ matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
1840
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
1841
+ }
1842
+ /**
1843
+ * Return a fully-qualified entitySignalsMapping resource name string.
1844
+ *
1845
+ * @param {string} network_code
1846
+ * @param {string} entity_signals_mapping
1847
+ * @returns {string} Resource name string.
1848
+ */
1849
+ entitySignalsMappingPath(networkCode, entitySignalsMapping) {
1850
+ return this.pathTemplates.entitySignalsMappingPathTemplate.render({
1851
+ network_code: networkCode,
1852
+ entity_signals_mapping: entitySignalsMapping,
1853
+ });
1854
+ }
1855
+ /**
1856
+ * Parse the network_code from EntitySignalsMapping resource.
1857
+ *
1858
+ * @param {string} entitySignalsMappingName
1859
+ * A fully-qualified path representing EntitySignalsMapping resource.
1860
+ * @returns {string} A string representing the network_code.
1861
+ */
1862
+ matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName) {
1863
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).network_code;
1864
+ }
1865
+ /**
1866
+ * Parse the entity_signals_mapping from EntitySignalsMapping resource.
1867
+ *
1868
+ * @param {string} entitySignalsMappingName
1869
+ * A fully-qualified path representing EntitySignalsMapping resource.
1870
+ * @returns {string} A string representing the entity_signals_mapping.
1871
+ */
1872
+ matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
1873
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
1874
+ }
1875
+ /**
1876
+ * Return a fully-qualified geoTarget resource name string.
1877
+ *
1878
+ * @param {string} network_code
1879
+ * @param {string} geo_target
1880
+ * @returns {string} Resource name string.
1881
+ */
1882
+ geoTargetPath(networkCode, geoTarget) {
1883
+ return this.pathTemplates.geoTargetPathTemplate.render({
1884
+ network_code: networkCode,
1885
+ geo_target: geoTarget,
1886
+ });
1887
+ }
1888
+ /**
1889
+ * Parse the network_code from GeoTarget resource.
1890
+ *
1891
+ * @param {string} geoTargetName
1892
+ * A fully-qualified path representing GeoTarget resource.
1893
+ * @returns {string} A string representing the network_code.
1894
+ */
1895
+ matchNetworkCodeFromGeoTargetName(geoTargetName) {
1896
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1897
+ .network_code;
1898
+ }
1899
+ /**
1900
+ * Parse the geo_target from GeoTarget resource.
1901
+ *
1902
+ * @param {string} geoTargetName
1903
+ * A fully-qualified path representing GeoTarget resource.
1904
+ * @returns {string} A string representing the geo_target.
1905
+ */
1906
+ matchGeoTargetFromGeoTargetName(geoTargetName) {
1907
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1908
+ .geo_target;
1909
+ }
1910
+ /**
1911
+ * Return a fully-qualified label resource name string.
1912
+ *
1913
+ * @param {string} network_code
1914
+ * @param {string} label
1915
+ * @returns {string} Resource name string.
1916
+ */
1917
+ labelPath(networkCode, label) {
1918
+ return this.pathTemplates.labelPathTemplate.render({
1919
+ network_code: networkCode,
1920
+ label: label,
1921
+ });
1922
+ }
1923
+ /**
1924
+ * Parse the network_code from Label resource.
1925
+ *
1926
+ * @param {string} labelName
1927
+ * A fully-qualified path representing Label resource.
1928
+ * @returns {string} A string representing the network_code.
1929
+ */
1930
+ matchNetworkCodeFromLabelName(labelName) {
1931
+ return this.pathTemplates.labelPathTemplate.match(labelName).network_code;
1932
+ }
1933
+ /**
1934
+ * Parse the label from Label resource.
1935
+ *
1936
+ * @param {string} labelName
1937
+ * A fully-qualified path representing Label resource.
1938
+ * @returns {string} A string representing the label.
1939
+ */
1940
+ matchLabelFromLabelName(labelName) {
1941
+ return this.pathTemplates.labelPathTemplate.match(labelName).label;
1942
+ }
1943
+ /**
1944
+ * Return a fully-qualified lineItem resource name string.
1945
+ *
1946
+ * @param {string} network_code
1947
+ * @param {string} line_item
1948
+ * @returns {string} Resource name string.
1949
+ */
1950
+ lineItemPath(networkCode, lineItem) {
1951
+ return this.pathTemplates.lineItemPathTemplate.render({
1952
+ network_code: networkCode,
1953
+ line_item: lineItem,
1954
+ });
1955
+ }
1956
+ /**
1957
+ * Parse the network_code from LineItem resource.
1958
+ *
1959
+ * @param {string} lineItemName
1960
+ * A fully-qualified path representing LineItem resource.
1961
+ * @returns {string} A string representing the network_code.
1962
+ */
1963
+ matchNetworkCodeFromLineItemName(lineItemName) {
1964
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1965
+ .network_code;
1966
+ }
1967
+ /**
1968
+ * Parse the line_item from LineItem resource.
1969
+ *
1970
+ * @param {string} lineItemName
1971
+ * A fully-qualified path representing LineItem resource.
1972
+ * @returns {string} A string representing the line_item.
1973
+ */
1974
+ matchLineItemFromLineItemName(lineItemName) {
1975
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1976
+ .line_item;
1977
+ }
1978
+ /**
1979
+ * Return a fully-qualified linkedDevice resource name string.
1980
+ *
1981
+ * @param {string} network_code
1982
+ * @param {string} linked_device
1983
+ * @returns {string} Resource name string.
1984
+ */
1985
+ linkedDevicePath(networkCode, linkedDevice) {
1986
+ return this.pathTemplates.linkedDevicePathTemplate.render({
1987
+ network_code: networkCode,
1988
+ linked_device: linkedDevice,
1989
+ });
1990
+ }
1991
+ /**
1992
+ * Parse the network_code from LinkedDevice resource.
1993
+ *
1994
+ * @param {string} linkedDeviceName
1995
+ * A fully-qualified path representing LinkedDevice resource.
1996
+ * @returns {string} A string representing the network_code.
1997
+ */
1998
+ matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
1999
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
2000
+ .network_code;
2001
+ }
2002
+ /**
2003
+ * Parse the linked_device from LinkedDevice resource.
2004
+ *
2005
+ * @param {string} linkedDeviceName
2006
+ * A fully-qualified path representing LinkedDevice resource.
2007
+ * @returns {string} A string representing the linked_device.
2008
+ */
2009
+ matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
2010
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
2011
+ .linked_device;
2012
+ }
2013
+ /**
2014
+ * Return a fully-qualified liveStream resource name string.
2015
+ *
2016
+ * @param {string} network_code
2017
+ * @param {string} live_stream
2018
+ * @returns {string} Resource name string.
2019
+ */
2020
+ liveStreamPath(networkCode, liveStream) {
2021
+ return this.pathTemplates.liveStreamPathTemplate.render({
2022
+ network_code: networkCode,
2023
+ live_stream: liveStream,
2024
+ });
2025
+ }
2026
+ /**
2027
+ * Parse the network_code from LiveStream resource.
2028
+ *
2029
+ * @param {string} liveStreamName
2030
+ * A fully-qualified path representing LiveStream resource.
2031
+ * @returns {string} A string representing the network_code.
2032
+ */
2033
+ matchNetworkCodeFromLiveStreamName(liveStreamName) {
2034
+ return this.pathTemplates.liveStreamPathTemplate.match(liveStreamName)
2035
+ .network_code;
2036
+ }
2037
+ /**
2038
+ * Parse the live_stream from LiveStream resource.
2039
+ *
2040
+ * @param {string} liveStreamName
2041
+ * A fully-qualified path representing LiveStream resource.
2042
+ * @returns {string} A string representing the live_stream.
2043
+ */
2044
+ matchLiveStreamFromLiveStreamName(liveStreamName) {
2045
+ return this.pathTemplates.liveStreamPathTemplate.match(liveStreamName)
2046
+ .live_stream;
2047
+ }
2048
+ /**
2049
+ * Return a fully-qualified liveStreamEvent resource name string.
2050
+ *
2051
+ * @param {string} network_code
2052
+ * @param {string} live_stream_event
2053
+ * @returns {string} Resource name string.
2054
+ */
2055
+ liveStreamEventPath(networkCode, liveStreamEvent) {
2056
+ return this.pathTemplates.liveStreamEventPathTemplate.render({
2057
+ network_code: networkCode,
2058
+ live_stream_event: liveStreamEvent,
2059
+ });
2060
+ }
2061
+ /**
2062
+ * Parse the network_code from LiveStreamEvent resource.
2063
+ *
2064
+ * @param {string} liveStreamEventName
2065
+ * A fully-qualified path representing LiveStreamEvent resource.
2066
+ * @returns {string} A string representing the network_code.
2067
+ */
2068
+ matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
2069
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
2070
+ }
2071
+ /**
2072
+ * Parse the live_stream_event from LiveStreamEvent resource.
2073
+ *
2074
+ * @param {string} liveStreamEventName
2075
+ * A fully-qualified path representing LiveStreamEvent resource.
2076
+ * @returns {string} A string representing the live_stream_event.
2077
+ */
2078
+ matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
2079
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
2080
+ }
2081
+ /**
2082
+ * Return a fully-qualified mobileCarrier resource name string.
2083
+ *
2084
+ * @param {string} network_code
2085
+ * @param {string} mobile_carrier
2086
+ * @returns {string} Resource name string.
2087
+ */
2088
+ mobileCarrierPath(networkCode, mobileCarrier) {
2089
+ return this.pathTemplates.mobileCarrierPathTemplate.render({
2090
+ network_code: networkCode,
2091
+ mobile_carrier: mobileCarrier,
2092
+ });
2093
+ }
2094
+ /**
2095
+ * Parse the network_code from MobileCarrier resource.
2096
+ *
2097
+ * @param {string} mobileCarrierName
2098
+ * A fully-qualified path representing MobileCarrier resource.
2099
+ * @returns {string} A string representing the network_code.
2100
+ */
2101
+ matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
2102
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
2103
+ .network_code;
2104
+ }
2105
+ /**
2106
+ * Parse the mobile_carrier from MobileCarrier resource.
2107
+ *
2108
+ * @param {string} mobileCarrierName
2109
+ * A fully-qualified path representing MobileCarrier resource.
2110
+ * @returns {string} A string representing the mobile_carrier.
2111
+ */
2112
+ matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
2113
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
2114
+ .mobile_carrier;
2115
+ }
2116
+ /**
2117
+ * Return a fully-qualified mobileDevice resource name string.
2118
+ *
2119
+ * @param {string} network_code
2120
+ * @param {string} mobile_device
2121
+ * @returns {string} Resource name string.
2122
+ */
2123
+ mobileDevicePath(networkCode, mobileDevice) {
2124
+ return this.pathTemplates.mobileDevicePathTemplate.render({
2125
+ network_code: networkCode,
2126
+ mobile_device: mobileDevice,
2127
+ });
2128
+ }
2129
+ /**
2130
+ * Parse the network_code from MobileDevice resource.
2131
+ *
2132
+ * @param {string} mobileDeviceName
2133
+ * A fully-qualified path representing MobileDevice resource.
2134
+ * @returns {string} A string representing the network_code.
2135
+ */
2136
+ matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
2137
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
2138
+ .network_code;
2139
+ }
2140
+ /**
2141
+ * Parse the mobile_device from MobileDevice resource.
2142
+ *
2143
+ * @param {string} mobileDeviceName
2144
+ * A fully-qualified path representing MobileDevice resource.
2145
+ * @returns {string} A string representing the mobile_device.
2146
+ */
2147
+ matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
2148
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
2149
+ .mobile_device;
2150
+ }
2151
+ /**
2152
+ * Return a fully-qualified mobileDeviceSubmodel resource name string.
2153
+ *
2154
+ * @param {string} network_code
2155
+ * @param {string} mobile_device_submodel
2156
+ * @returns {string} Resource name string.
2157
+ */
2158
+ mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
2159
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
2160
+ network_code: networkCode,
2161
+ mobile_device_submodel: mobileDeviceSubmodel,
2162
+ });
2163
+ }
2164
+ /**
2165
+ * Parse the network_code from MobileDeviceSubmodel resource.
2166
+ *
2167
+ * @param {string} mobileDeviceSubmodelName
2168
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
2169
+ * @returns {string} A string representing the network_code.
2170
+ */
2171
+ matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
2172
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
2173
+ }
2174
+ /**
2175
+ * Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
2176
+ *
2177
+ * @param {string} mobileDeviceSubmodelName
2178
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
2179
+ * @returns {string} A string representing the mobile_device_submodel.
2180
+ */
2181
+ matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
2182
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
2183
+ }
2184
+ /**
2185
+ * Return a fully-qualified network resource name string.
2186
+ *
2187
+ * @param {string} network_code
2188
+ * @returns {string} Resource name string.
2189
+ */
2190
+ networkPath(networkCode) {
2191
+ return this.pathTemplates.networkPathTemplate.render({
2192
+ network_code: networkCode,
2193
+ });
2194
+ }
2195
+ /**
2196
+ * Parse the network_code from Network resource.
2197
+ *
2198
+ * @param {string} networkName
2199
+ * A fully-qualified path representing Network resource.
2200
+ * @returns {string} A string representing the network_code.
2201
+ */
2202
+ matchNetworkCodeFromNetworkName(networkName) {
2203
+ return this.pathTemplates.networkPathTemplate.match(networkName)
2204
+ .network_code;
2205
+ }
2206
+ /**
2207
+ * Return a fully-qualified operatingSystem resource name string.
2208
+ *
2209
+ * @param {string} network_code
2210
+ * @param {string} operating_system
2211
+ * @returns {string} Resource name string.
2212
+ */
2213
+ operatingSystemPath(networkCode, operatingSystem) {
2214
+ return this.pathTemplates.operatingSystemPathTemplate.render({
2215
+ network_code: networkCode,
2216
+ operating_system: operatingSystem,
2217
+ });
2218
+ }
2219
+ /**
2220
+ * Parse the network_code from OperatingSystem resource.
2221
+ *
2222
+ * @param {string} operatingSystemName
2223
+ * A fully-qualified path representing OperatingSystem resource.
2224
+ * @returns {string} A string representing the network_code.
2225
+ */
2226
+ matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
2227
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
2228
+ }
2229
+ /**
2230
+ * Parse the operating_system from OperatingSystem resource.
2231
+ *
2232
+ * @param {string} operatingSystemName
2233
+ * A fully-qualified path representing OperatingSystem resource.
2234
+ * @returns {string} A string representing the operating_system.
2235
+ */
2236
+ matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
2237
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
2238
+ }
2239
+ /**
2240
+ * Return a fully-qualified operatingSystemVersion resource name string.
2241
+ *
2242
+ * @param {string} network_code
2243
+ * @param {string} operating_system_version
2244
+ * @returns {string} Resource name string.
2245
+ */
2246
+ operatingSystemVersionPath(networkCode, operatingSystemVersion) {
2247
+ return this.pathTemplates.operatingSystemVersionPathTemplate.render({
2248
+ network_code: networkCode,
2249
+ operating_system_version: operatingSystemVersion,
2250
+ });
2251
+ }
2252
+ /**
2253
+ * Parse the network_code from OperatingSystemVersion resource.
2254
+ *
2255
+ * @param {string} operatingSystemVersionName
2256
+ * A fully-qualified path representing OperatingSystemVersion resource.
2257
+ * @returns {string} A string representing the network_code.
2258
+ */
2259
+ matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
2260
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
2261
+ }
2262
+ /**
2263
+ * Parse the operating_system_version from OperatingSystemVersion resource.
2264
+ *
2265
+ * @param {string} operatingSystemVersionName
2266
+ * A fully-qualified path representing OperatingSystemVersion resource.
2267
+ * @returns {string} A string representing the operating_system_version.
2268
+ */
2269
+ matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
2270
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
2271
+ }
2272
+ /**
2273
+ * Return a fully-qualified order resource name string.
2274
+ *
2275
+ * @param {string} network_code
2276
+ * @param {string} order
2277
+ * @returns {string} Resource name string.
2278
+ */
2279
+ orderPath(networkCode, order) {
2280
+ return this.pathTemplates.orderPathTemplate.render({
2281
+ network_code: networkCode,
2282
+ order: order,
2283
+ });
2284
+ }
2285
+ /**
2286
+ * Parse the network_code from Order resource.
2287
+ *
2288
+ * @param {string} orderName
2289
+ * A fully-qualified path representing Order resource.
2290
+ * @returns {string} A string representing the network_code.
2291
+ */
2292
+ matchNetworkCodeFromOrderName(orderName) {
2293
+ return this.pathTemplates.orderPathTemplate.match(orderName).network_code;
2294
+ }
2295
+ /**
2296
+ * Parse the order from Order resource.
2297
+ *
2298
+ * @param {string} orderName
2299
+ * A fully-qualified path representing Order resource.
2300
+ * @returns {string} A string representing the order.
2301
+ */
2302
+ matchOrderFromOrderName(orderName) {
2303
+ return this.pathTemplates.orderPathTemplate.match(orderName).order;
2304
+ }
2305
+ /**
2306
+ * Return a fully-qualified partner resource name string.
2307
+ *
2308
+ * @param {string} network_code
2309
+ * @param {string} partner
2310
+ * @returns {string} Resource name string.
2311
+ */
2312
+ partnerPath(networkCode, partner) {
2313
+ return this.pathTemplates.partnerPathTemplate.render({
2314
+ network_code: networkCode,
2315
+ partner: partner,
2316
+ });
2317
+ }
2318
+ /**
2319
+ * Parse the network_code from Partner resource.
2320
+ *
2321
+ * @param {string} partnerName
2322
+ * A fully-qualified path representing Partner resource.
2323
+ * @returns {string} A string representing the network_code.
2324
+ */
2325
+ matchNetworkCodeFromPartnerName(partnerName) {
2326
+ return this.pathTemplates.partnerPathTemplate.match(partnerName)
2327
+ .network_code;
2328
+ }
2329
+ /**
2330
+ * Parse the partner from Partner resource.
2331
+ *
2332
+ * @param {string} partnerName
2333
+ * A fully-qualified path representing Partner resource.
2334
+ * @returns {string} A string representing the partner.
2335
+ */
2336
+ matchPartnerFromPartnerName(partnerName) {
2337
+ return this.pathTemplates.partnerPathTemplate.match(partnerName).partner;
2338
+ }
2339
+ /**
2340
+ * Return a fully-qualified placement resource name string.
2341
+ *
2342
+ * @param {string} network_code
2343
+ * @param {string} placement
2344
+ * @returns {string} Resource name string.
2345
+ */
2346
+ placementPath(networkCode, placement) {
2347
+ return this.pathTemplates.placementPathTemplate.render({
2348
+ network_code: networkCode,
2349
+ placement: placement,
2350
+ });
2351
+ }
2352
+ /**
2353
+ * Parse the network_code from Placement resource.
2354
+ *
2355
+ * @param {string} placementName
2356
+ * A fully-qualified path representing Placement resource.
2357
+ * @returns {string} A string representing the network_code.
2358
+ */
2359
+ matchNetworkCodeFromPlacementName(placementName) {
2360
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2361
+ .network_code;
2362
+ }
2363
+ /**
2364
+ * Parse the placement from Placement resource.
2365
+ *
2366
+ * @param {string} placementName
2367
+ * A fully-qualified path representing Placement resource.
2368
+ * @returns {string} A string representing the placement.
2369
+ */
2370
+ matchPlacementFromPlacementName(placementName) {
2371
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2372
+ .placement;
2373
+ }
2374
+ /**
2375
+ * Return a fully-qualified privateAuction resource name string.
2376
+ *
2377
+ * @param {string} network_code
2378
+ * @param {string} private_auction
2379
+ * @returns {string} Resource name string.
2380
+ */
2381
+ privateAuctionPath(networkCode, privateAuction) {
2382
+ return this.pathTemplates.privateAuctionPathTemplate.render({
2383
+ network_code: networkCode,
2384
+ private_auction: privateAuction,
2385
+ });
2386
+ }
2387
+ /**
2388
+ * Parse the network_code from PrivateAuction resource.
2389
+ *
2390
+ * @param {string} privateAuctionName
2391
+ * A fully-qualified path representing PrivateAuction resource.
2392
+ * @returns {string} A string representing the network_code.
2393
+ */
2394
+ matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
2395
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
2396
+ }
2397
+ /**
2398
+ * Parse the private_auction from PrivateAuction resource.
2399
+ *
2400
+ * @param {string} privateAuctionName
2401
+ * A fully-qualified path representing PrivateAuction resource.
2402
+ * @returns {string} A string representing the private_auction.
2403
+ */
2404
+ matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
2405
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
2406
+ }
2407
+ /**
2408
+ * Return a fully-qualified privateAuctionDeal resource name string.
2409
+ *
2410
+ * @param {string} network_code
2411
+ * @param {string} private_auction_deal
2412
+ * @returns {string} Resource name string.
2413
+ */
2414
+ privateAuctionDealPath(networkCode, privateAuctionDeal) {
2415
+ return this.pathTemplates.privateAuctionDealPathTemplate.render({
2416
+ network_code: networkCode,
2417
+ private_auction_deal: privateAuctionDeal,
2418
+ });
2419
+ }
2420
+ /**
2421
+ * Parse the network_code from PrivateAuctionDeal resource.
2422
+ *
2423
+ * @param {string} privateAuctionDealName
2424
+ * A fully-qualified path representing PrivateAuctionDeal resource.
2425
+ * @returns {string} A string representing the network_code.
2426
+ */
2427
+ matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
2428
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
2429
+ }
2430
+ /**
2431
+ * Parse the private_auction_deal from PrivateAuctionDeal resource.
2432
+ *
2433
+ * @param {string} privateAuctionDealName
2434
+ * A fully-qualified path representing PrivateAuctionDeal resource.
2435
+ * @returns {string} A string representing the private_auction_deal.
2436
+ */
2437
+ matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
2438
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
2439
+ }
2440
+ /**
2441
+ * Return a fully-qualified programmaticBuyer resource name string.
2442
+ *
2443
+ * @param {string} network_code
2444
+ * @param {string} programmatic_buyer
2445
+ * @returns {string} Resource name string.
2446
+ */
2447
+ programmaticBuyerPath(networkCode, programmaticBuyer) {
2448
+ return this.pathTemplates.programmaticBuyerPathTemplate.render({
2449
+ network_code: networkCode,
2450
+ programmatic_buyer: programmaticBuyer,
2451
+ });
2452
+ }
2453
+ /**
2454
+ * Parse the network_code from ProgrammaticBuyer resource.
2455
+ *
2456
+ * @param {string} programmaticBuyerName
2457
+ * A fully-qualified path representing ProgrammaticBuyer resource.
2458
+ * @returns {string} A string representing the network_code.
2459
+ */
2460
+ matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
2461
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
2462
+ }
2463
+ /**
2464
+ * Parse the programmatic_buyer from ProgrammaticBuyer resource.
2465
+ *
2466
+ * @param {string} programmaticBuyerName
2467
+ * A fully-qualified path representing ProgrammaticBuyer resource.
2468
+ * @returns {string} A string representing the programmatic_buyer.
2469
+ */
2470
+ matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
2471
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
2472
+ }
2473
+ /**
2474
+ * Return a fully-qualified report resource name string.
2475
+ *
2476
+ * @param {string} network_code
2477
+ * @param {string} report
2478
+ * @returns {string} Resource name string.
2479
+ */
2480
+ reportPath(networkCode, report) {
2481
+ return this.pathTemplates.reportPathTemplate.render({
2482
+ network_code: networkCode,
2483
+ report: report,
2484
+ });
2485
+ }
2486
+ /**
2487
+ * Parse the network_code from Report resource.
2488
+ *
2489
+ * @param {string} reportName
2490
+ * A fully-qualified path representing Report resource.
2491
+ * @returns {string} A string representing the network_code.
2492
+ */
2493
+ matchNetworkCodeFromReportName(reportName) {
2494
+ return this.pathTemplates.reportPathTemplate.match(reportName).network_code;
2495
+ }
2496
+ /**
2497
+ * Parse the report from Report resource.
2498
+ *
2499
+ * @param {string} reportName
2500
+ * A fully-qualified path representing Report resource.
2501
+ * @returns {string} A string representing the report.
2502
+ */
2503
+ matchReportFromReportName(reportName) {
2504
+ return this.pathTemplates.reportPathTemplate.match(reportName).report;
2505
+ }
2506
+ /**
2507
+ * Return a fully-qualified richMediaAdsCompany resource name string.
2508
+ *
2509
+ * @param {string} network_code
2510
+ * @param {string} rich_media_ads_company
2511
+ * @returns {string} Resource name string.
2512
+ */
2513
+ richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
2514
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
2515
+ network_code: networkCode,
2516
+ rich_media_ads_company: richMediaAdsCompany,
2517
+ });
2518
+ }
2519
+ /**
2520
+ * Parse the network_code from RichMediaAdsCompany resource.
2521
+ *
2522
+ * @param {string} richMediaAdsCompanyName
2523
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2524
+ * @returns {string} A string representing the network_code.
2525
+ */
2526
+ matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2527
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
2528
+ }
2529
+ /**
2530
+ * Parse the rich_media_ads_company from RichMediaAdsCompany resource.
2531
+ *
2532
+ * @param {string} richMediaAdsCompanyName
2533
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2534
+ * @returns {string} A string representing the rich_media_ads_company.
2535
+ */
2536
+ matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2537
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
2538
+ }
2539
+ /**
2540
+ * Return a fully-qualified role resource name string.
2541
+ *
2542
+ * @param {string} network_code
2543
+ * @param {string} role
2544
+ * @returns {string} Resource name string.
2545
+ */
2546
+ rolePath(networkCode, role) {
2547
+ return this.pathTemplates.rolePathTemplate.render({
2548
+ network_code: networkCode,
2549
+ role: role,
2550
+ });
2551
+ }
2552
+ /**
2553
+ * Parse the network_code from Role resource.
2554
+ *
2555
+ * @param {string} roleName
2556
+ * A fully-qualified path representing Role resource.
2557
+ * @returns {string} A string representing the network_code.
2558
+ */
2559
+ matchNetworkCodeFromRoleName(roleName) {
2560
+ return this.pathTemplates.rolePathTemplate.match(roleName).network_code;
2561
+ }
2562
+ /**
2563
+ * Parse the role from Role resource.
2564
+ *
2565
+ * @param {string} roleName
2566
+ * A fully-qualified path representing Role resource.
2567
+ * @returns {string} A string representing the role.
2568
+ */
2569
+ matchRoleFromRoleName(roleName) {
2570
+ return this.pathTemplates.rolePathTemplate.match(roleName).role;
2571
+ }
2572
+ /**
2573
+ * Return a fully-qualified site resource name string.
2574
+ *
2575
+ * @param {string} network_code
2576
+ * @param {string} site
2577
+ * @returns {string} Resource name string.
2578
+ */
2579
+ sitePath(networkCode, site) {
2580
+ return this.pathTemplates.sitePathTemplate.render({
2581
+ network_code: networkCode,
2582
+ site: site,
2583
+ });
2584
+ }
2585
+ /**
2586
+ * Parse the network_code from Site resource.
2587
+ *
2588
+ * @param {string} siteName
2589
+ * A fully-qualified path representing Site resource.
2590
+ * @returns {string} A string representing the network_code.
2591
+ */
2592
+ matchNetworkCodeFromSiteName(siteName) {
2593
+ return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
2594
+ }
2595
+ /**
2596
+ * Parse the site from Site resource.
2597
+ *
2598
+ * @param {string} siteName
2599
+ * A fully-qualified path representing Site resource.
2600
+ * @returns {string} A string representing the site.
2601
+ */
2602
+ matchSiteFromSiteName(siteName) {
2603
+ return this.pathTemplates.sitePathTemplate.match(siteName).site;
2604
+ }
2605
+ /**
2606
+ * Return a fully-qualified slate resource name string.
2607
+ *
2608
+ * @param {string} network_code
2609
+ * @param {string} slate
2610
+ * @returns {string} Resource name string.
2611
+ */
2612
+ slatePath(networkCode, slate) {
2613
+ return this.pathTemplates.slatePathTemplate.render({
2614
+ network_code: networkCode,
2615
+ slate: slate,
2616
+ });
2617
+ }
2618
+ /**
2619
+ * Parse the network_code from Slate resource.
2620
+ *
2621
+ * @param {string} slateName
2622
+ * A fully-qualified path representing Slate resource.
2623
+ * @returns {string} A string representing the network_code.
2624
+ */
2625
+ matchNetworkCodeFromSlateName(slateName) {
2626
+ return this.pathTemplates.slatePathTemplate.match(slateName).network_code;
2627
+ }
2628
+ /**
2629
+ * Parse the slate from Slate resource.
2630
+ *
2631
+ * @param {string} slateName
2632
+ * A fully-qualified path representing Slate resource.
2633
+ * @returns {string} A string representing the slate.
2634
+ */
2635
+ matchSlateFromSlateName(slateName) {
2636
+ return this.pathTemplates.slatePathTemplate.match(slateName).slate;
2637
+ }
2638
+ /**
2639
+ * Return a fully-qualified suggestedAdUnit resource name string.
2640
+ *
2641
+ * @param {string} network_code
2642
+ * @param {string} suggested_ad_unit
2643
+ * @returns {string} Resource name string.
2644
+ */
2645
+ suggestedAdUnitPath(networkCode, suggestedAdUnit) {
2646
+ return this.pathTemplates.suggestedAdUnitPathTemplate.render({
2647
+ network_code: networkCode,
2648
+ suggested_ad_unit: suggestedAdUnit,
2649
+ });
2650
+ }
2651
+ /**
2652
+ * Parse the network_code from SuggestedAdUnit resource.
2653
+ *
2654
+ * @param {string} suggestedAdUnitName
2655
+ * A fully-qualified path representing SuggestedAdUnit resource.
2656
+ * @returns {string} A string representing the network_code.
2657
+ */
2658
+ matchNetworkCodeFromSuggestedAdUnitName(suggestedAdUnitName) {
2659
+ return this.pathTemplates.suggestedAdUnitPathTemplate.match(suggestedAdUnitName).network_code;
2660
+ }
2661
+ /**
2662
+ * Parse the suggested_ad_unit from SuggestedAdUnit resource.
2663
+ *
2664
+ * @param {string} suggestedAdUnitName
2665
+ * A fully-qualified path representing SuggestedAdUnit resource.
2666
+ * @returns {string} A string representing the suggested_ad_unit.
2667
+ */
2668
+ matchSuggestedAdUnitFromSuggestedAdUnitName(suggestedAdUnitName) {
2669
+ return this.pathTemplates.suggestedAdUnitPathTemplate.match(suggestedAdUnitName).suggested_ad_unit;
2670
+ }
2671
+ /**
2672
+ * Return a fully-qualified targetingPreset resource name string.
2673
+ *
2674
+ * @param {string} network_code
2675
+ * @param {string} targeting_preset
2676
+ * @returns {string} Resource name string.
2677
+ */
2678
+ targetingPresetPath(networkCode, targetingPreset) {
2679
+ return this.pathTemplates.targetingPresetPathTemplate.render({
2680
+ network_code: networkCode,
2681
+ targeting_preset: targetingPreset,
2682
+ });
2683
+ }
2684
+ /**
2685
+ * Parse the network_code from TargetingPreset resource.
2686
+ *
2687
+ * @param {string} targetingPresetName
2688
+ * A fully-qualified path representing TargetingPreset resource.
2689
+ * @returns {string} A string representing the network_code.
2690
+ */
2691
+ matchNetworkCodeFromTargetingPresetName(targetingPresetName) {
2692
+ return this.pathTemplates.targetingPresetPathTemplate.match(targetingPresetName).network_code;
2693
+ }
2694
+ /**
2695
+ * Parse the targeting_preset from TargetingPreset resource.
2696
+ *
2697
+ * @param {string} targetingPresetName
2698
+ * A fully-qualified path representing TargetingPreset resource.
2699
+ * @returns {string} A string representing the targeting_preset.
2700
+ */
2701
+ matchTargetingPresetFromTargetingPresetName(targetingPresetName) {
2702
+ return this.pathTemplates.targetingPresetPathTemplate.match(targetingPresetName).targeting_preset;
2703
+ }
2704
+ /**
2705
+ * Return a fully-qualified taxonomyCategory resource name string.
2706
+ *
2707
+ * @param {string} network_code
2708
+ * @param {string} taxonomy_category
2709
+ * @returns {string} Resource name string.
2710
+ */
2711
+ taxonomyCategoryPath(networkCode, taxonomyCategory) {
2712
+ return this.pathTemplates.taxonomyCategoryPathTemplate.render({
2713
+ network_code: networkCode,
2714
+ taxonomy_category: taxonomyCategory,
2715
+ });
2716
+ }
2717
+ /**
2718
+ * Parse the network_code from TaxonomyCategory resource.
2719
+ *
2720
+ * @param {string} taxonomyCategoryName
2721
+ * A fully-qualified path representing TaxonomyCategory resource.
2722
+ * @returns {string} A string representing the network_code.
2723
+ */
2724
+ matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName) {
2725
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).network_code;
2726
+ }
2727
+ /**
2728
+ * Parse the taxonomy_category from TaxonomyCategory resource.
2729
+ *
2730
+ * @param {string} taxonomyCategoryName
2731
+ * A fully-qualified path representing TaxonomyCategory resource.
2732
+ * @returns {string} A string representing the taxonomy_category.
2733
+ */
2734
+ matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName) {
2735
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).taxonomy_category;
2736
+ }
2737
+ /**
2738
+ * Return a fully-qualified team resource name string.
2739
+ *
2740
+ * @param {string} network_code
2741
+ * @param {string} team
2742
+ * @returns {string} Resource name string.
2743
+ */
2744
+ teamPath(networkCode, team) {
2745
+ return this.pathTemplates.teamPathTemplate.render({
2746
+ network_code: networkCode,
2747
+ team: team,
2748
+ });
2749
+ }
2750
+ /**
2751
+ * Parse the network_code from Team resource.
2752
+ *
2753
+ * @param {string} teamName
2754
+ * A fully-qualified path representing Team resource.
2755
+ * @returns {string} A string representing the network_code.
2756
+ */
2757
+ matchNetworkCodeFromTeamName(teamName) {
2758
+ return this.pathTemplates.teamPathTemplate.match(teamName).network_code;
2759
+ }
2760
+ /**
2761
+ * Parse the team from Team resource.
2762
+ *
2763
+ * @param {string} teamName
2764
+ * A fully-qualified path representing Team resource.
2765
+ * @returns {string} A string representing the team.
2766
+ */
2767
+ matchTeamFromTeamName(teamName) {
2768
+ return this.pathTemplates.teamPathTemplate.match(teamName).team;
2769
+ }
2770
+ /**
2771
+ * Return a fully-qualified thirdPartyCompany resource name string.
2772
+ *
2773
+ * @param {string} network_code
2774
+ * @param {string} third_party_company
2775
+ * @returns {string} Resource name string.
2776
+ */
2777
+ thirdPartyCompanyPath(networkCode, thirdPartyCompany) {
2778
+ return this.pathTemplates.thirdPartyCompanyPathTemplate.render({
2779
+ network_code: networkCode,
2780
+ third_party_company: thirdPartyCompany,
2781
+ });
2782
+ }
2783
+ /**
2784
+ * Parse the network_code from ThirdPartyCompany resource.
2785
+ *
2786
+ * @param {string} thirdPartyCompanyName
2787
+ * A fully-qualified path representing ThirdPartyCompany resource.
2788
+ * @returns {string} A string representing the network_code.
2789
+ */
2790
+ matchNetworkCodeFromThirdPartyCompanyName(thirdPartyCompanyName) {
2791
+ return this.pathTemplates.thirdPartyCompanyPathTemplate.match(thirdPartyCompanyName).network_code;
2792
+ }
2793
+ /**
2794
+ * Parse the third_party_company from ThirdPartyCompany resource.
2795
+ *
2796
+ * @param {string} thirdPartyCompanyName
2797
+ * A fully-qualified path representing ThirdPartyCompany resource.
2798
+ * @returns {string} A string representing the third_party_company.
2799
+ */
2800
+ matchThirdPartyCompanyFromThirdPartyCompanyName(thirdPartyCompanyName) {
2801
+ return this.pathTemplates.thirdPartyCompanyPathTemplate.match(thirdPartyCompanyName).third_party_company;
2802
+ }
2803
+ /**
2804
+ * Return a fully-qualified user resource name string.
2805
+ *
2806
+ * @param {string} network_code
2807
+ * @param {string} user
2808
+ * @returns {string} Resource name string.
2809
+ */
2810
+ userPath(networkCode, user) {
2811
+ return this.pathTemplates.userPathTemplate.render({
2812
+ network_code: networkCode,
2813
+ user: user,
2814
+ });
2815
+ }
2816
+ /**
2817
+ * Parse the network_code from User resource.
2818
+ *
2819
+ * @param {string} userName
2820
+ * A fully-qualified path representing User resource.
2821
+ * @returns {string} A string representing the network_code.
2822
+ */
2823
+ matchNetworkCodeFromUserName(userName) {
2824
+ return this.pathTemplates.userPathTemplate.match(userName).network_code;
2825
+ }
2826
+ /**
2827
+ * Parse the user from User resource.
2828
+ *
2829
+ * @param {string} userName
2830
+ * A fully-qualified path representing User resource.
2831
+ * @returns {string} A string representing the user.
2832
+ */
2833
+ matchUserFromUserName(userName) {
2834
+ return this.pathTemplates.userPathTemplate.match(userName).user;
2835
+ }
2836
+ /**
2837
+ * Return a fully-qualified viewabilityProvider resource name string.
2838
+ *
2839
+ * @param {string} network_code
2840
+ * @param {string} viewability_provider
2841
+ * @returns {string} Resource name string.
2842
+ */
2843
+ viewabilityProviderPath(networkCode, viewabilityProvider) {
2844
+ return this.pathTemplates.viewabilityProviderPathTemplate.render({
2845
+ network_code: networkCode,
2846
+ viewability_provider: viewabilityProvider,
2847
+ });
2848
+ }
2849
+ /**
2850
+ * Parse the network_code from ViewabilityProvider resource.
2851
+ *
2852
+ * @param {string} viewabilityProviderName
2853
+ * A fully-qualified path representing ViewabilityProvider resource.
2854
+ * @returns {string} A string representing the network_code.
2855
+ */
2856
+ matchNetworkCodeFromViewabilityProviderName(viewabilityProviderName) {
2857
+ return this.pathTemplates.viewabilityProviderPathTemplate.match(viewabilityProviderName).network_code;
2858
+ }
2859
+ /**
2860
+ * Parse the viewability_provider from ViewabilityProvider resource.
2861
+ *
2862
+ * @param {string} viewabilityProviderName
2863
+ * A fully-qualified path representing ViewabilityProvider resource.
2864
+ * @returns {string} A string representing the viewability_provider.
2865
+ */
2866
+ matchViewabilityProviderFromViewabilityProviderName(viewabilityProviderName) {
2867
+ return this.pathTemplates.viewabilityProviderPathTemplate.match(viewabilityProviderName).viewability_provider;
2868
+ }
2869
+ /**
2870
+ * Return a fully-qualified webProperty resource name string.
2871
+ *
2872
+ * @param {string} network_code
2873
+ * @param {string} web_property
2874
+ * @returns {string} Resource name string.
2875
+ */
2876
+ webPropertyPath(networkCode, webProperty) {
2877
+ return this.pathTemplates.webPropertyPathTemplate.render({
2878
+ network_code: networkCode,
2879
+ web_property: webProperty,
2880
+ });
2881
+ }
2882
+ /**
2883
+ * Parse the network_code from WebProperty resource.
2884
+ *
2885
+ * @param {string} webPropertyName
2886
+ * A fully-qualified path representing WebProperty resource.
2887
+ * @returns {string} A string representing the network_code.
2888
+ */
2889
+ matchNetworkCodeFromWebPropertyName(webPropertyName) {
2890
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2891
+ .network_code;
2892
+ }
2893
+ /**
2894
+ * Parse the web_property from WebProperty resource.
2895
+ *
2896
+ * @param {string} webPropertyName
2897
+ * A fully-qualified path representing WebProperty resource.
2898
+ * @returns {string} A string representing the web_property.
2899
+ */
2900
+ matchWebPropertyFromWebPropertyName(webPropertyName) {
2901
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2902
+ .web_property;
2903
+ }
2904
+ /**
2905
+ * Terminate the gRPC channel and close the client.
2906
+ *
2907
+ * The client will no longer be usable and all future behavior is undefined.
2908
+ * @returns {Promise} A promise that resolves when the client is closed.
2909
+ */
2910
+ close() {
2911
+ if (this.childPublisherServiceStub && !this._terminated) {
2912
+ return this.childPublisherServiceStub.then((stub) => {
2913
+ this._log.info('ending gRPC channel');
2914
+ this._terminated = true;
2915
+ stub.close();
2916
+ });
2917
+ }
2918
+ return Promise.resolve();
2919
+ }
2920
+ }
2921
+ exports.ChildPublisherServiceClient = ChildPublisherServiceClient;
2922
+ //# sourceMappingURL=child_publisher_service_client.js.map