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