@google-ads/admanager 0.9.0 → 0.10.0

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