@google-ads/admanager 0.9.0 → 0.11.0

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