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