@google-ads/admanager 0.5.1 → 0.6.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.
- package/LICENSE +202 -0
- package/README.md +25 -2
- package/build/protos/google/ads/admanager/v1/ad_break_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/ad_break_service.proto +5 -4
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto +26 -1
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +9 -1
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +20 -8
- package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +4 -3
- package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +23 -6
- package/build/protos/google/ads/admanager/v1/application_enums.proto +156 -0
- package/build/protos/google/ads/admanager/v1/application_messages.proto +51 -4
- package/build/protos/google/ads/admanager/v1/application_service.proto +198 -4
- package/build/protos/google/ads/admanager/v1/applied_label.proto +1 -1
- package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +10 -4
- package/build/protos/google/ads/admanager/v1/bandwidth_group_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/browser_language_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/browser_language_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/browser_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/browser_service.proto +13 -4
- package/build/protos/google/ads/admanager/v1/child_publisher_messages.proto +43 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +81 -4
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +83 -4
- package/build/protos/google/ads/admanager/v1/company_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/company_messages.proto +36 -23
- package/build/protos/google/ads/admanager/v1/company_service.proto +22 -4
- package/build/protos/google/ads/admanager/v1/contact_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/contact_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/contact_service.proto +22 -6
- package/build/protos/google/ads/admanager/v1/content_bundle_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/content_label_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/content_label_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/content_messages.proto +2 -2
- package/build/protos/google/ads/admanager/v1/content_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/creative_template_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/creative_template_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/creative_template_service.proto +18 -4
- package/build/protos/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +3 -4
- package/build/protos/google/ads/admanager/v1/custom_field_service.proto +20 -6
- package/build/protos/google/ads/admanager/v1/custom_field_value.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +3 -3
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +17 -6
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +15 -4
- package/build/protos/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_capability_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_capability_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/device_category_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_category_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/device_manufacturer_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/early_ad_break_notification_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +3 -3
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +5 -4
- package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/exchange_syndication_product_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/frequency_cap.proto +1 -1
- package/build/protos/google/ads/admanager/v1/geo_target_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/geo_target_service.proto +14 -4
- package/build/protos/google/ads/admanager/v1/goal.proto +1 -1
- package/build/protos/google/ads/admanager/v1/goal_enums.proto +10 -1
- package/build/protos/google/ads/admanager/v1/label_enums.proto +56 -0
- package/build/protos/google/ads/admanager/v1/label_messages.proto +19 -1
- package/build/protos/google/ads/admanager/v1/label_service.proto +313 -0
- package/build/protos/google/ads/admanager/v1/line_item_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/line_item_messages.proto +5 -4
- package/build/protos/google/ads/admanager/v1/line_item_service.proto +16 -4
- package/build/protos/google/ads/admanager/v1/{company_type_enum.proto → linked_device_enums.proto} +15 -24
- package/build/protos/google/ads/admanager/v1/linked_device_messages.proto +58 -0
- package/build/protos/google/ads/admanager/v1/linked_device_service.proto +138 -0
- package/build/protos/google/ads/admanager/v1/live_stream_event_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/mcm_earnings_messages.proto +124 -0
- package/build/protos/google/ads/admanager/v1/mcm_earnings_service.proto +115 -0
- package/build/protos/google/ads/admanager/v1/mcm_enums.proto +97 -0
- package/build/protos/google/ads/admanager/v1/mobile_carrier_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +12 -4
- package/build/protos/google/ads/admanager/v1/mobile_device_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +12 -4
- package/build/protos/google/ads/admanager/v1/mobile_device_submodel_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +12 -4
- package/build/protos/google/ads/admanager/v1/network_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/network_service.proto +3 -2
- package/build/protos/google/ads/admanager/v1/operating_system_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/operating_system_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/operating_system_version_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +13 -4
- package/build/protos/google/ads/admanager/v1/order_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/order_messages.proto +5 -5
- package/build/protos/google/ads/admanager/v1/order_service.proto +28 -4
- package/build/protos/google/ads/admanager/v1/placement_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/placement_messages.proto +4 -3
- package/build/protos/google/ads/admanager/v1/placement_service.proto +18 -6
- package/build/protos/google/ads/admanager/v1/private_auction_deal_messages.proto +3 -3
- package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +24 -6
- package/build/protos/google/ads/admanager/v1/private_auction_messages.proto +3 -3
- package/build/protos/google/ads/admanager/v1/private_auction_service.proto +5 -4
- package/build/protos/google/ads/admanager/v1/private_marketplace_enums.proto +4 -1
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +17 -4
- package/build/protos/google/ads/admanager/v1/report_definition.proto +1944 -916
- package/build/protos/google/ads/admanager/v1/report_messages.proto +7 -5
- package/build/protos/google/ads/admanager/v1/report_service.proto +5 -4
- package/build/protos/google/ads/admanager/v1/report_value.proto +1 -1
- package/build/protos/google/ads/admanager/v1/request_platform_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/rich_media_ads_company_enums.proto +53 -0
- package/build/protos/google/ads/admanager/v1/rich_media_ads_company_messages.proto +57 -0
- package/build/protos/google/ads/admanager/v1/rich_media_ads_company_service.proto +143 -0
- package/build/protos/google/ads/admanager/v1/role_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/role_messages.proto +4 -3
- package/build/protos/google/ads/admanager/v1/role_service.proto +14 -4
- package/build/protos/google/ads/admanager/v1/site_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/site_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/site_service.proto +16 -6
- package/build/protos/google/ads/admanager/v1/size.proto +1 -1
- package/build/protos/google/ads/admanager/v1/size_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/targeting.proto +4 -4
- package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +3 -3
- package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +3 -2
- package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/team_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/team_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/team_service.proto +18 -6
- package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/user_messages.proto +4 -3
- package/build/protos/google/ads/admanager/v1/user_service.proto +3 -2
- package/build/protos/google/ads/admanager/v1/video_position_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/web_property.proto +1 -1
- package/build/protos/protos.d.ts +15212 -8355
- package/build/protos/protos.js +42222 -24288
- package/build/protos/protos.json +5571 -3409
- package/build/src/index.d.ts +13 -1
- package/build/src/index.js +10 -2
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +121 -49
- package/build/src/v1/ad_break_service_client.js +263 -82
- package/build/src/v1/ad_break_service_client.js.map +1 -1
- package/build/src/v1/ad_break_service_proto_list.json +13 -1
- package/build/src/v1/ad_review_center_ad_service_client.d.ts +185 -95
- package/build/src/v1/ad_review_center_ad_service_client.js +290 -106
- package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
- package/build/src/v1/ad_review_center_ad_service_proto_list.json +13 -1
- package/build/src/v1/ad_unit_service_client.d.ts +206 -86
- package/build/src/v1/ad_unit_service_client.js +376 -121
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_proto_list.json +13 -1
- package/build/src/v1/application_service_client.d.ts +316 -44
- package/build/src/v1/application_service_client.js +515 -68
- package/build/src/v1/application_service_client.js.map +1 -1
- package/build/src/v1/application_service_client_config.json +24 -0
- package/build/src/v1/application_service_proto_list.json +13 -1
- package/build/src/v1/audience_segment_service_client.d.ts +131 -44
- package/build/src/v1/audience_segment_service_client.js +237 -69
- package/build/src/v1/audience_segment_service_client.js.map +1 -1
- package/build/src/v1/audience_segment_service_proto_list.json +13 -1
- package/build/src/v1/bandwidth_group_service_client.d.ts +134 -44
- package/build/src/v1/bandwidth_group_service_client.js +239 -69
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
- package/build/src/v1/bandwidth_group_service_proto_list.json +13 -1
- package/build/src/v1/browser_language_service_client.d.ts +134 -44
- package/build/src/v1/browser_language_service_client.js +239 -69
- package/build/src/v1/browser_language_service_client.js.map +1 -1
- package/build/src/v1/browser_language_service_proto_list.json +13 -1
- package/build/src/v1/browser_service_client.d.ts +140 -44
- package/build/src/v1/browser_service_client.js +237 -67
- package/build/src/v1/browser_service_client.js.map +1 -1
- package/build/src/v1/browser_service_proto_list.json +13 -1
- package/build/src/v1/cms_metadata_key_service_client.d.ts +192 -44
- package/build/src/v1/cms_metadata_key_service_client.js +329 -69
- package/build/src/v1/cms_metadata_key_service_client.js.map +1 -1
- package/build/src/v1/cms_metadata_key_service_client_config.json +8 -0
- package/build/src/v1/cms_metadata_key_service_proto_list.json +13 -1
- package/build/src/v1/cms_metadata_value_service_client.d.ts +196 -44
- package/build/src/v1/cms_metadata_value_service_client.js +331 -69
- package/build/src/v1/cms_metadata_value_service_client.js.map +1 -1
- package/build/src/v1/cms_metadata_value_service_client_config.json +8 -0
- package/build/src/v1/cms_metadata_value_service_proto_list.json +13 -1
- package/build/src/v1/company_service_client.d.ts +167 -44
- package/build/src/v1/company_service_client.js +255 -67
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +13 -1
- package/build/src/v1/contact_service_client.d.ts +163 -46
- package/build/src/v1/contact_service_client.js +311 -92
- package/build/src/v1/contact_service_client.js.map +1 -1
- package/build/src/v1/contact_service_proto_list.json +13 -1
- package/build/src/v1/content_bundle_service_client.d.ts +134 -44
- package/build/src/v1/content_bundle_service_client.js +237 -68
- package/build/src/v1/content_bundle_service_client.js.map +1 -1
- package/build/src/v1/content_bundle_service_proto_list.json +13 -1
- package/build/src/v1/content_label_service_client.d.ts +134 -44
- package/build/src/v1/content_label_service_client.js +237 -68
- package/build/src/v1/content_label_service_client.js.map +1 -1
- package/build/src/v1/content_label_service_proto_list.json +13 -1
- package/build/src/v1/content_service_client.d.ts +134 -44
- package/build/src/v1/content_service_client.js +233 -67
- package/build/src/v1/content_service_client.js.map +1 -1
- package/build/src/v1/content_service_proto_list.json +13 -1
- package/build/src/v1/creative_template_service_client.d.ts +155 -44
- package/build/src/v1/creative_template_service_client.js +253 -69
- package/build/src/v1/creative_template_service_client.js.map +1 -1
- package/build/src/v1/creative_template_service_proto_list.json +13 -1
- package/build/src/v1/custom_field_service_client.d.ts +161 -50
- package/build/src/v1/custom_field_service_client.js +335 -104
- package/build/src/v1/custom_field_service_client.js.map +1 -1
- package/build/src/v1/custom_field_service_proto_list.json +13 -1
- package/build/src/v1/custom_targeting_key_service_client.d.ts +154 -52
- package/build/src/v1/custom_targeting_key_service_client.js +332 -105
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_proto_list.json +13 -1
- package/build/src/v1/custom_targeting_value_service_client.d.ts +150 -48
- package/build/src/v1/custom_targeting_value_service_client.js +248 -69
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +13 -1
- package/build/src/v1/device_capability_service_client.d.ts +134 -44
- package/build/src/v1/device_capability_service_client.js +239 -69
- package/build/src/v1/device_capability_service_client.js.map +1 -1
- package/build/src/v1/device_capability_service_proto_list.json +13 -1
- package/build/src/v1/device_category_service_client.d.ts +134 -44
- package/build/src/v1/device_category_service_client.js +239 -69
- package/build/src/v1/device_category_service_client.js.map +1 -1
- package/build/src/v1/device_category_service_proto_list.json +13 -1
- package/build/src/v1/device_manufacturer_service_client.d.ts +134 -44
- package/build/src/v1/device_manufacturer_service_client.js +240 -69
- package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
- package/build/src/v1/device_manufacturer_service_proto_list.json +13 -1
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +121 -49
- package/build/src/v1/entity_signals_mapping_service_client.js +280 -89
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +13 -1
- package/build/src/v1/gapic_metadata.json +302 -0
- package/build/src/v1/geo_target_service_client.d.ts +143 -44
- package/build/src/v1/geo_target_service_client.js +239 -67
- package/build/src/v1/geo_target_service_client.js.map +1 -1
- package/build/src/v1/geo_target_service_proto_list.json +13 -1
- package/build/src/v1/index.d.ts +4 -0
- package/build/src/v1/index.js +9 -1
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/label_service_client.d.ts +1631 -0
- package/build/src/v1/label_service_client.js +2466 -0
- package/build/src/v1/label_service_client.js.map +1 -0
- package/build/src/v1/label_service_client_config.json +58 -0
- package/build/src/v1/label_service_proto_list.json +139 -0
- package/build/src/v1/line_item_service_client.d.ts +149 -44
- package/build/src/v1/line_item_service_client.js +243 -67
- package/build/src/v1/line_item_service_client.js.map +1 -1
- package/build/src/v1/line_item_service_proto_list.json +13 -1
- package/build/src/v1/linked_device_service_client.d.ts +1465 -0
- package/build/src/v1/linked_device_service_client.js +2200 -0
- package/build/src/v1/linked_device_service_client.js.map +1 -0
- package/build/src/v1/linked_device_service_client_config.json +34 -0
- package/build/src/v1/linked_device_service_proto_list.json +139 -0
- package/build/src/v1/mcm_earnings_service_client.d.ts +1426 -0
- package/build/src/v1/mcm_earnings_service_client.js +2144 -0
- package/build/src/v1/mcm_earnings_service_client.js.map +1 -0
- package/build/src/v1/mcm_earnings_service_client_config.json +30 -0
- package/build/src/v1/mcm_earnings_service_proto_list.json +139 -0
- package/build/src/v1/mobile_carrier_service_client.d.ts +137 -44
- package/build/src/v1/mobile_carrier_service_client.js +239 -68
- package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
- package/build/src/v1/mobile_carrier_service_proto_list.json +13 -1
- package/build/src/v1/mobile_device_service_client.d.ts +137 -44
- package/build/src/v1/mobile_device_service_client.js +239 -68
- package/build/src/v1/mobile_device_service_client.js.map +1 -1
- package/build/src/v1/mobile_device_service_proto_list.json +13 -1
- package/build/src/v1/mobile_device_submodel_service_client.d.ts +140 -47
- package/build/src/v1/mobile_device_submodel_service_client.js +242 -69
- package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
- package/build/src/v1/mobile_device_submodel_service_proto_list.json +13 -1
- package/build/src/v1/network_service_client.d.ts +101 -29
- package/build/src/v1/network_service_client.js +206 -55
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_proto_list.json +13 -1
- package/build/src/v1/operating_system_service_client.d.ts +134 -44
- package/build/src/v1/operating_system_service_client.js +239 -69
- package/build/src/v1/operating_system_service_client.js.map +1 -1
- package/build/src/v1/operating_system_service_proto_list.json +13 -1
- package/build/src/v1/operating_system_version_service_client.d.ts +143 -47
- package/build/src/v1/operating_system_version_service_client.js +244 -69
- package/build/src/v1/operating_system_version_service_client.js.map +1 -1
- package/build/src/v1/operating_system_version_service_proto_list.json +13 -1
- package/build/src/v1/order_service_client.d.ts +190 -49
- package/build/src/v1/order_service_client.js +267 -67
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +13 -1
- package/build/src/v1/placement_service_client.d.ts +153 -48
- package/build/src/v1/placement_service_client.js +345 -110
- package/build/src/v1/placement_service_client.js.map +1 -1
- package/build/src/v1/placement_service_proto_list.json +13 -1
- package/build/src/v1/private_auction_deal_service_client.d.ts +173 -50
- package/build/src/v1/private_auction_deal_service_client.js +290 -81
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
- package/build/src/v1/private_auction_deal_service_proto_list.json +13 -1
- package/build/src/v1/private_auction_service_client.d.ts +115 -43
- package/build/src/v1/private_auction_service_client.js +251 -77
- package/build/src/v1/private_auction_service_client.js.map +1 -1
- package/build/src/v1/private_auction_service_proto_list.json +13 -1
- package/build/src/v1/programmatic_buyer_service_client.d.ts +152 -44
- package/build/src/v1/programmatic_buyer_service_client.js +252 -69
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
- package/build/src/v1/programmatic_buyer_service_proto_list.json +13 -1
- package/build/src/v1/report_service_client.d.ts +174 -102
- package/build/src/v1/report_service_client.js +322 -122
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +13 -1
- package/build/src/v1/rich_media_ads_company_service_client.d.ts +1475 -0
- package/build/src/v1/rich_media_ads_company_service_client.js +2208 -0
- package/build/src/v1/rich_media_ads_company_service_client.js.map +1 -0
- package/build/src/v1/rich_media_ads_company_service_client_config.json +34 -0
- package/build/src/v1/rich_media_ads_company_service_proto_list.json +139 -0
- package/build/src/v1/role_service_client.d.ts +143 -44
- package/build/src/v1/role_service_client.js +239 -67
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +13 -1
- package/build/src/v1/site_service_client.d.ts +146 -47
- package/build/src/v1/site_service_client.js +327 -104
- package/build/src/v1/site_service_client.js.map +1 -1
- package/build/src/v1/site_service_proto_list.json +13 -1
- package/build/src/v1/taxonomy_category_service_client.d.ts +112 -40
- package/build/src/v1/taxonomy_category_service_client.js +223 -65
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +13 -1
- package/build/src/v1/team_service_client.d.ts +151 -46
- package/build/src/v1/team_service_client.js +331 -104
- package/build/src/v1/team_service_client.js.map +1 -1
- package/build/src/v1/team_service_proto_list.json +13 -1
- package/build/src/v1/user_service_client.d.ts +72 -0
- package/build/src/v1/user_service_client.js +195 -49
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +13 -1
- package/package.json +1 -1
- package/build/protos/google/ads/admanager/v1/company_credit_status_enum.proto +0 -97
|
@@ -96,11 +96,19 @@ class NetworkServiceClient {
|
|
|
96
96
|
constructor(opts, gaxInstance) {
|
|
97
97
|
// Ensure that options include all the required fields.
|
|
98
98
|
const staticMembers = this.constructor;
|
|
99
|
-
if (opts?.universe_domain &&
|
|
99
|
+
if (opts?.universe_domain &&
|
|
100
|
+
opts?.universeDomain &&
|
|
101
|
+
opts?.universe_domain !== opts?.universeDomain) {
|
|
100
102
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
101
103
|
}
|
|
102
|
-
const universeDomainEnvVar =
|
|
103
|
-
|
|
104
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
105
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
106
|
+
: undefined;
|
|
107
|
+
this._universeDomain =
|
|
108
|
+
opts?.universeDomain ??
|
|
109
|
+
opts?.universe_domain ??
|
|
110
|
+
universeDomainEnvVar ??
|
|
111
|
+
'googleapis.com';
|
|
104
112
|
this._servicePath = 'admanager.' + this._universeDomain;
|
|
105
113
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
106
114
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
@@ -113,7 +121,8 @@ class NetworkServiceClient {
|
|
|
113
121
|
else {
|
|
114
122
|
opts.fallback = opts.fallback ?? true;
|
|
115
123
|
}
|
|
116
|
-
const fallback = opts?.fallback ??
|
|
124
|
+
const fallback = opts?.fallback ??
|
|
125
|
+
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
117
126
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
118
127
|
// Request numeric enum values if REST transport is used.
|
|
119
128
|
opts.numericEnums = true;
|
|
@@ -142,10 +151,7 @@ class NetworkServiceClient {
|
|
|
142
151
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
143
152
|
}
|
|
144
153
|
// Determine the client header string.
|
|
145
|
-
const clientHeader = [
|
|
146
|
-
`gax/${this._gaxModule.version}`,
|
|
147
|
-
`gapic/${version}`,
|
|
148
|
-
];
|
|
154
|
+
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
|
149
155
|
if (typeof process === 'object' && 'versions' in process) {
|
|
150
156
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
151
157
|
}
|
|
@@ -175,6 +181,7 @@ class NetworkServiceClient {
|
|
|
175
181
|
bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
|
|
176
182
|
browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
|
|
177
183
|
browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
|
|
184
|
+
childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
|
|
178
185
|
cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
|
|
179
186
|
cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
|
|
180
187
|
companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
|
|
@@ -193,6 +200,7 @@ class NetworkServiceClient {
|
|
|
193
200
|
geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
|
|
194
201
|
labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
|
|
195
202
|
lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
|
|
203
|
+
linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
|
|
196
204
|
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
197
205
|
mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
|
|
198
206
|
mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
|
|
@@ -206,6 +214,7 @@ class NetworkServiceClient {
|
|
|
206
214
|
privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
|
|
207
215
|
programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
|
|
208
216
|
reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
|
|
217
|
+
richMediaAdsCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company}'),
|
|
209
218
|
rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
|
|
210
219
|
sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
|
|
211
220
|
taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
|
|
@@ -217,7 +226,7 @@ class NetworkServiceClient {
|
|
|
217
226
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
218
227
|
// pages). Denote the keys used for pagination and results.
|
|
219
228
|
this.descriptors.page = {
|
|
220
|
-
listNetworks: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'networks')
|
|
229
|
+
listNetworks: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'networks'),
|
|
221
230
|
};
|
|
222
231
|
// Put together the default options sent with requests.
|
|
223
232
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.NetworkService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -246,15 +255,15 @@ class NetworkServiceClient {
|
|
|
246
255
|
}
|
|
247
256
|
// Put together the "service stub" for
|
|
248
257
|
// google.ads.admanager.v1.NetworkService.
|
|
249
|
-
this.networkServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
250
|
-
this._protos.lookupService('google.ads.admanager.v1.NetworkService')
|
|
251
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
252
|
-
|
|
258
|
+
this.networkServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
259
|
+
? this._protos.lookupService('google.ads.admanager.v1.NetworkService')
|
|
260
|
+
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
261
|
+
this._protos.google.ads.admanager.v1.NetworkService, this._opts, this._providedCustomServicePath);
|
|
253
262
|
// Iterate over each of the methods that the service provides
|
|
254
263
|
// and create an API call method for each.
|
|
255
264
|
const networkServiceStubMethods = ['getNetwork', 'listNetworks'];
|
|
256
265
|
for (const methodName of networkServiceStubMethods) {
|
|
257
|
-
const callPromise = this.networkServiceStub.then(stub => (...args) => {
|
|
266
|
+
const callPromise = this.networkServiceStub.then((stub) => (...args) => {
|
|
258
267
|
if (this._terminated) {
|
|
259
268
|
return Promise.reject('The client has already been closed.');
|
|
260
269
|
}
|
|
@@ -263,8 +272,7 @@ class NetworkServiceClient {
|
|
|
263
272
|
}, (err) => () => {
|
|
264
273
|
throw err;
|
|
265
274
|
});
|
|
266
|
-
const descriptor = this.descriptors.page[methodName] ||
|
|
267
|
-
undefined;
|
|
275
|
+
const descriptor = this.descriptors.page[methodName] || undefined;
|
|
268
276
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
269
277
|
this.innerApiCalls[methodName] = apiCall;
|
|
270
278
|
}
|
|
@@ -276,7 +284,8 @@ class NetworkServiceClient {
|
|
|
276
284
|
* @returns {string} The DNS address for this service.
|
|
277
285
|
*/
|
|
278
286
|
static get servicePath() {
|
|
279
|
-
if (typeof process === 'object' &&
|
|
287
|
+
if (typeof process === 'object' &&
|
|
288
|
+
typeof process.emitWarning === 'function') {
|
|
280
289
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
281
290
|
}
|
|
282
291
|
return 'admanager.googleapis.com';
|
|
@@ -287,7 +296,8 @@ class NetworkServiceClient {
|
|
|
287
296
|
* @returns {string} The DNS address for this service.
|
|
288
297
|
*/
|
|
289
298
|
static get apiEndpoint() {
|
|
290
|
-
if (typeof process === 'object' &&
|
|
299
|
+
if (typeof process === 'object' &&
|
|
300
|
+
typeof process.emitWarning === 'function') {
|
|
291
301
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
292
302
|
}
|
|
293
303
|
return 'admanager.googleapis.com';
|
|
@@ -316,7 +326,8 @@ class NetworkServiceClient {
|
|
|
316
326
|
*/
|
|
317
327
|
static get scopes() {
|
|
318
328
|
return [
|
|
319
|
-
'https://www.googleapis.com/auth/admanager'
|
|
329
|
+
'https://www.googleapis.com/auth/admanager',
|
|
330
|
+
'https://www.googleapis.com/auth/admanager.readonly',
|
|
320
331
|
];
|
|
321
332
|
}
|
|
322
333
|
/**
|
|
@@ -343,10 +354,13 @@ class NetworkServiceClient {
|
|
|
343
354
|
options = options || {};
|
|
344
355
|
options.otherArgs = options.otherArgs || {};
|
|
345
356
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
346
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
347
|
-
|
|
357
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
358
|
+
this._gaxModule.routingHeader.fromParams({
|
|
359
|
+
name: request.name ?? '',
|
|
360
|
+
});
|
|
361
|
+
this.initialize().catch((err) => {
|
|
362
|
+
throw err;
|
|
348
363
|
});
|
|
349
|
-
this.initialize().catch(err => { throw err; });
|
|
350
364
|
this._log.info('getNetwork request %j', request);
|
|
351
365
|
const wrappedCallback = callback
|
|
352
366
|
? (error, response, options, rawResponse) => {
|
|
@@ -354,12 +368,16 @@ class NetworkServiceClient {
|
|
|
354
368
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
355
369
|
}
|
|
356
370
|
: undefined;
|
|
357
|
-
return this.innerApiCalls
|
|
371
|
+
return this.innerApiCalls
|
|
372
|
+
.getNetwork(request, options, wrappedCallback)
|
|
358
373
|
?.then(([response, options, rawResponse]) => {
|
|
359
374
|
this._log.info('getNetwork response %j', response);
|
|
360
375
|
return [response, options, rawResponse];
|
|
361
|
-
})
|
|
362
|
-
|
|
376
|
+
})
|
|
377
|
+
.catch((error) => {
|
|
378
|
+
if (error &&
|
|
379
|
+
'statusDetails' in error &&
|
|
380
|
+
error.statusDetails instanceof Array) {
|
|
363
381
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
364
382
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
365
383
|
}
|
|
@@ -379,7 +397,9 @@ class NetworkServiceClient {
|
|
|
379
397
|
options = options || {};
|
|
380
398
|
options.otherArgs = options.otherArgs || {};
|
|
381
399
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
382
|
-
this.initialize().catch(err => {
|
|
400
|
+
this.initialize().catch((err) => {
|
|
401
|
+
throw err;
|
|
402
|
+
});
|
|
383
403
|
const wrappedCallback = callback
|
|
384
404
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
385
405
|
this._log.info('listNetworks values %j', values);
|
|
@@ -429,7 +449,9 @@ class NetworkServiceClient {
|
|
|
429
449
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
430
450
|
const defaultCallSettings = this._defaults['listNetworks'];
|
|
431
451
|
const callSettings = defaultCallSettings.merge(options);
|
|
432
|
-
this.initialize().catch(err => {
|
|
452
|
+
this.initialize().catch((err) => {
|
|
453
|
+
throw err;
|
|
454
|
+
});
|
|
433
455
|
this._log.info('listNetworks stream %j', request);
|
|
434
456
|
return this.descriptors.page.listNetworks.createStream(this.innerApiCalls.listNetworks, request, callSettings);
|
|
435
457
|
}
|
|
@@ -471,7 +493,9 @@ class NetworkServiceClient {
|
|
|
471
493
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
472
494
|
const defaultCallSettings = this._defaults['listNetworks'];
|
|
473
495
|
const callSettings = defaultCallSettings.merge(options);
|
|
474
|
-
this.initialize().catch(err => {
|
|
496
|
+
this.initialize().catch((err) => {
|
|
497
|
+
throw err;
|
|
498
|
+
});
|
|
475
499
|
this._log.info('listNetworks iterate %j', request);
|
|
476
500
|
return this.descriptors.page.listNetworks.asyncIterate(this.innerApiCalls['listNetworks'], request, callSettings);
|
|
477
501
|
}
|
|
@@ -501,7 +525,8 @@ class NetworkServiceClient {
|
|
|
501
525
|
* @returns {string} A string representing the network_code.
|
|
502
526
|
*/
|
|
503
527
|
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
504
|
-
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
528
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
529
|
+
.network_code;
|
|
505
530
|
}
|
|
506
531
|
/**
|
|
507
532
|
* Parse the asset_key from AdBreak resource.
|
|
@@ -622,7 +647,8 @@ class NetworkServiceClient {
|
|
|
622
647
|
* @returns {string} A string representing the network_code.
|
|
623
648
|
*/
|
|
624
649
|
matchNetworkCodeFromApplicationName(applicationName) {
|
|
625
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
650
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
651
|
+
.network_code;
|
|
626
652
|
}
|
|
627
653
|
/**
|
|
628
654
|
* Parse the application from Application resource.
|
|
@@ -632,7 +658,8 @@ class NetworkServiceClient {
|
|
|
632
658
|
* @returns {string} A string representing the application.
|
|
633
659
|
*/
|
|
634
660
|
matchApplicationFromApplicationName(applicationName) {
|
|
635
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
661
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
662
|
+
.application;
|
|
636
663
|
}
|
|
637
664
|
/**
|
|
638
665
|
* Return a fully-qualified audienceSegment resource name string.
|
|
@@ -721,7 +748,8 @@ class NetworkServiceClient {
|
|
|
721
748
|
* @returns {string} A string representing the network_code.
|
|
722
749
|
*/
|
|
723
750
|
matchNetworkCodeFromBrowserName(browserName) {
|
|
724
|
-
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
751
|
+
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
752
|
+
.network_code;
|
|
725
753
|
}
|
|
726
754
|
/**
|
|
727
755
|
* Parse the browser from Browser resource.
|
|
@@ -766,6 +794,39 @@ class NetworkServiceClient {
|
|
|
766
794
|
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
767
795
|
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
768
796
|
}
|
|
797
|
+
/**
|
|
798
|
+
* Return a fully-qualified childPublisher resource name string.
|
|
799
|
+
*
|
|
800
|
+
* @param {string} network_code
|
|
801
|
+
* @param {string} child_publisher
|
|
802
|
+
* @returns {string} Resource name string.
|
|
803
|
+
*/
|
|
804
|
+
childPublisherPath(networkCode, childPublisher) {
|
|
805
|
+
return this.pathTemplates.childPublisherPathTemplate.render({
|
|
806
|
+
network_code: networkCode,
|
|
807
|
+
child_publisher: childPublisher,
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* Parse the network_code from ChildPublisher resource.
|
|
812
|
+
*
|
|
813
|
+
* @param {string} childPublisherName
|
|
814
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
815
|
+
* @returns {string} A string representing the network_code.
|
|
816
|
+
*/
|
|
817
|
+
matchNetworkCodeFromChildPublisherName(childPublisherName) {
|
|
818
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Parse the child_publisher from ChildPublisher resource.
|
|
822
|
+
*
|
|
823
|
+
* @param {string} childPublisherName
|
|
824
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
825
|
+
* @returns {string} A string representing the child_publisher.
|
|
826
|
+
*/
|
|
827
|
+
matchChildPublisherFromChildPublisherName(childPublisherName) {
|
|
828
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
|
|
829
|
+
}
|
|
769
830
|
/**
|
|
770
831
|
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
771
832
|
*
|
|
@@ -853,7 +914,8 @@ class NetworkServiceClient {
|
|
|
853
914
|
* @returns {string} A string representing the network_code.
|
|
854
915
|
*/
|
|
855
916
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
856
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
917
|
+
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
918
|
+
.network_code;
|
|
857
919
|
}
|
|
858
920
|
/**
|
|
859
921
|
* Parse the company from Company resource.
|
|
@@ -886,7 +948,8 @@ class NetworkServiceClient {
|
|
|
886
948
|
* @returns {string} A string representing the network_code.
|
|
887
949
|
*/
|
|
888
950
|
matchNetworkCodeFromContactName(contactName) {
|
|
889
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
951
|
+
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
952
|
+
.network_code;
|
|
890
953
|
}
|
|
891
954
|
/**
|
|
892
955
|
* Parse the contact from Contact resource.
|
|
@@ -919,7 +982,8 @@ class NetworkServiceClient {
|
|
|
919
982
|
* @returns {string} A string representing the network_code.
|
|
920
983
|
*/
|
|
921
984
|
matchNetworkCodeFromContentName(contentName) {
|
|
922
|
-
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
985
|
+
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
986
|
+
.network_code;
|
|
923
987
|
}
|
|
924
988
|
/**
|
|
925
989
|
* Parse the content from Content resource.
|
|
@@ -952,7 +1016,8 @@ class NetworkServiceClient {
|
|
|
952
1016
|
* @returns {string} A string representing the network_code.
|
|
953
1017
|
*/
|
|
954
1018
|
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
955
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1019
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1020
|
+
.network_code;
|
|
956
1021
|
}
|
|
957
1022
|
/**
|
|
958
1023
|
* Parse the content_bundle from ContentBundle resource.
|
|
@@ -962,7 +1027,8 @@ class NetworkServiceClient {
|
|
|
962
1027
|
* @returns {string} A string representing the content_bundle.
|
|
963
1028
|
*/
|
|
964
1029
|
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
965
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1030
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1031
|
+
.content_bundle;
|
|
966
1032
|
}
|
|
967
1033
|
/**
|
|
968
1034
|
* Return a fully-qualified contentLabel resource name string.
|
|
@@ -985,7 +1051,8 @@ class NetworkServiceClient {
|
|
|
985
1051
|
* @returns {string} A string representing the network_code.
|
|
986
1052
|
*/
|
|
987
1053
|
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
988
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1054
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1055
|
+
.network_code;
|
|
989
1056
|
}
|
|
990
1057
|
/**
|
|
991
1058
|
* Parse the content_label from ContentLabel resource.
|
|
@@ -995,7 +1062,8 @@ class NetworkServiceClient {
|
|
|
995
1062
|
* @returns {string} A string representing the content_label.
|
|
996
1063
|
*/
|
|
997
1064
|
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
998
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1065
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1066
|
+
.content_label;
|
|
999
1067
|
}
|
|
1000
1068
|
/**
|
|
1001
1069
|
* Return a fully-qualified creativeTemplate resource name string.
|
|
@@ -1051,7 +1119,8 @@ class NetworkServiceClient {
|
|
|
1051
1119
|
* @returns {string} A string representing the network_code.
|
|
1052
1120
|
*/
|
|
1053
1121
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
1054
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1122
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1123
|
+
.network_code;
|
|
1055
1124
|
}
|
|
1056
1125
|
/**
|
|
1057
1126
|
* Parse the custom_field from CustomField resource.
|
|
@@ -1061,7 +1130,8 @@ class NetworkServiceClient {
|
|
|
1061
1130
|
* @returns {string} A string representing the custom_field.
|
|
1062
1131
|
*/
|
|
1063
1132
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
1064
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1133
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1134
|
+
.custom_field;
|
|
1065
1135
|
}
|
|
1066
1136
|
/**
|
|
1067
1137
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -1282,7 +1352,8 @@ class NetworkServiceClient {
|
|
|
1282
1352
|
* @returns {string} A string representing the network_code.
|
|
1283
1353
|
*/
|
|
1284
1354
|
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
1285
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1355
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1356
|
+
.network_code;
|
|
1286
1357
|
}
|
|
1287
1358
|
/**
|
|
1288
1359
|
* Parse the geo_target from GeoTarget resource.
|
|
@@ -1292,7 +1363,8 @@ class NetworkServiceClient {
|
|
|
1292
1363
|
* @returns {string} A string representing the geo_target.
|
|
1293
1364
|
*/
|
|
1294
1365
|
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
1295
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1366
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1367
|
+
.geo_target;
|
|
1296
1368
|
}
|
|
1297
1369
|
/**
|
|
1298
1370
|
* Return a fully-qualified label resource name string.
|
|
@@ -1348,7 +1420,8 @@ class NetworkServiceClient {
|
|
|
1348
1420
|
* @returns {string} A string representing the network_code.
|
|
1349
1421
|
*/
|
|
1350
1422
|
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1351
|
-
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1423
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1424
|
+
.network_code;
|
|
1352
1425
|
}
|
|
1353
1426
|
/**
|
|
1354
1427
|
* Parse the line_item from LineItem resource.
|
|
@@ -1358,7 +1431,43 @@ class NetworkServiceClient {
|
|
|
1358
1431
|
* @returns {string} A string representing the line_item.
|
|
1359
1432
|
*/
|
|
1360
1433
|
matchLineItemFromLineItemName(lineItemName) {
|
|
1361
|
-
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1434
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1435
|
+
.line_item;
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Return a fully-qualified linkedDevice resource name string.
|
|
1439
|
+
*
|
|
1440
|
+
* @param {string} network_code
|
|
1441
|
+
* @param {string} linked_device
|
|
1442
|
+
* @returns {string} Resource name string.
|
|
1443
|
+
*/
|
|
1444
|
+
linkedDevicePath(networkCode, linkedDevice) {
|
|
1445
|
+
return this.pathTemplates.linkedDevicePathTemplate.render({
|
|
1446
|
+
network_code: networkCode,
|
|
1447
|
+
linked_device: linkedDevice,
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
/**
|
|
1451
|
+
* Parse the network_code from LinkedDevice resource.
|
|
1452
|
+
*
|
|
1453
|
+
* @param {string} linkedDeviceName
|
|
1454
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1455
|
+
* @returns {string} A string representing the network_code.
|
|
1456
|
+
*/
|
|
1457
|
+
matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
|
|
1458
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1459
|
+
.network_code;
|
|
1460
|
+
}
|
|
1461
|
+
/**
|
|
1462
|
+
* Parse the linked_device from LinkedDevice resource.
|
|
1463
|
+
*
|
|
1464
|
+
* @param {string} linkedDeviceName
|
|
1465
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1466
|
+
* @returns {string} A string representing the linked_device.
|
|
1467
|
+
*/
|
|
1468
|
+
matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
|
|
1469
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1470
|
+
.linked_device;
|
|
1362
1471
|
}
|
|
1363
1472
|
/**
|
|
1364
1473
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
@@ -1414,7 +1523,8 @@ class NetworkServiceClient {
|
|
|
1414
1523
|
* @returns {string} A string representing the network_code.
|
|
1415
1524
|
*/
|
|
1416
1525
|
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1417
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1526
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1527
|
+
.network_code;
|
|
1418
1528
|
}
|
|
1419
1529
|
/**
|
|
1420
1530
|
* Parse the mobile_carrier from MobileCarrier resource.
|
|
@@ -1424,7 +1534,8 @@ class NetworkServiceClient {
|
|
|
1424
1534
|
* @returns {string} A string representing the mobile_carrier.
|
|
1425
1535
|
*/
|
|
1426
1536
|
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1427
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1537
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1538
|
+
.mobile_carrier;
|
|
1428
1539
|
}
|
|
1429
1540
|
/**
|
|
1430
1541
|
* Return a fully-qualified mobileDevice resource name string.
|
|
@@ -1447,7 +1558,8 @@ class NetworkServiceClient {
|
|
|
1447
1558
|
* @returns {string} A string representing the network_code.
|
|
1448
1559
|
*/
|
|
1449
1560
|
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1450
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1561
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1562
|
+
.network_code;
|
|
1451
1563
|
}
|
|
1452
1564
|
/**
|
|
1453
1565
|
* Parse the mobile_device from MobileDevice resource.
|
|
@@ -1457,7 +1569,8 @@ class NetworkServiceClient {
|
|
|
1457
1569
|
* @returns {string} A string representing the mobile_device.
|
|
1458
1570
|
*/
|
|
1459
1571
|
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1460
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1572
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1573
|
+
.mobile_device;
|
|
1461
1574
|
}
|
|
1462
1575
|
/**
|
|
1463
1576
|
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
@@ -1511,7 +1624,8 @@ class NetworkServiceClient {
|
|
|
1511
1624
|
* @returns {string} A string representing the network_code.
|
|
1512
1625
|
*/
|
|
1513
1626
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
1514
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1627
|
+
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1628
|
+
.network_code;
|
|
1515
1629
|
}
|
|
1516
1630
|
/**
|
|
1517
1631
|
* Return a fully-qualified operatingSystem resource name string.
|
|
@@ -1633,7 +1747,8 @@ class NetworkServiceClient {
|
|
|
1633
1747
|
* @returns {string} A string representing the network_code.
|
|
1634
1748
|
*/
|
|
1635
1749
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
1636
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1750
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1751
|
+
.network_code;
|
|
1637
1752
|
}
|
|
1638
1753
|
/**
|
|
1639
1754
|
* Parse the placement from Placement resource.
|
|
@@ -1643,7 +1758,8 @@ class NetworkServiceClient {
|
|
|
1643
1758
|
* @returns {string} A string representing the placement.
|
|
1644
1759
|
*/
|
|
1645
1760
|
matchPlacementFromPlacementName(placementName) {
|
|
1646
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1761
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1762
|
+
.placement;
|
|
1647
1763
|
}
|
|
1648
1764
|
/**
|
|
1649
1765
|
* Return a fully-qualified privateAuction resource name string.
|
|
@@ -1777,6 +1893,39 @@ class NetworkServiceClient {
|
|
|
1777
1893
|
matchReportFromReportName(reportName) {
|
|
1778
1894
|
return this.pathTemplates.reportPathTemplate.match(reportName).report;
|
|
1779
1895
|
}
|
|
1896
|
+
/**
|
|
1897
|
+
* Return a fully-qualified richMediaAdsCompany resource name string.
|
|
1898
|
+
*
|
|
1899
|
+
* @param {string} network_code
|
|
1900
|
+
* @param {string} rich_media_ads_company
|
|
1901
|
+
* @returns {string} Resource name string.
|
|
1902
|
+
*/
|
|
1903
|
+
richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
|
|
1904
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
|
|
1905
|
+
network_code: networkCode,
|
|
1906
|
+
rich_media_ads_company: richMediaAdsCompany,
|
|
1907
|
+
});
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* Parse the network_code from RichMediaAdsCompany resource.
|
|
1911
|
+
*
|
|
1912
|
+
* @param {string} richMediaAdsCompanyName
|
|
1913
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
1914
|
+
* @returns {string} A string representing the network_code.
|
|
1915
|
+
*/
|
|
1916
|
+
matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
1917
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
|
|
1918
|
+
}
|
|
1919
|
+
/**
|
|
1920
|
+
* Parse the rich_media_ads_company from RichMediaAdsCompany resource.
|
|
1921
|
+
*
|
|
1922
|
+
* @param {string} richMediaAdsCompanyName
|
|
1923
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
1924
|
+
* @returns {string} A string representing the rich_media_ads_company.
|
|
1925
|
+
*/
|
|
1926
|
+
matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
1927
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
|
|
1928
|
+
}
|
|
1780
1929
|
/**
|
|
1781
1930
|
* Return a fully-qualified role resource name string.
|
|
1782
1931
|
*
|
|
@@ -1963,7 +2112,8 @@ class NetworkServiceClient {
|
|
|
1963
2112
|
* @returns {string} A string representing the network_code.
|
|
1964
2113
|
*/
|
|
1965
2114
|
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
1966
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2115
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2116
|
+
.network_code;
|
|
1967
2117
|
}
|
|
1968
2118
|
/**
|
|
1969
2119
|
* Parse the web_property from WebProperty resource.
|
|
@@ -1973,7 +2123,8 @@ class NetworkServiceClient {
|
|
|
1973
2123
|
* @returns {string} A string representing the web_property.
|
|
1974
2124
|
*/
|
|
1975
2125
|
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
1976
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2126
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2127
|
+
.web_property;
|
|
1977
2128
|
}
|
|
1978
2129
|
/**
|
|
1979
2130
|
* Terminate the gRPC channel and close the client.
|
|
@@ -1983,7 +2134,7 @@ class NetworkServiceClient {
|
|
|
1983
2134
|
*/
|
|
1984
2135
|
close() {
|
|
1985
2136
|
if (this.networkServiceStub && !this._terminated) {
|
|
1986
|
-
return this.networkServiceStub.then(stub => {
|
|
2137
|
+
return this.networkServiceStub.then((stub) => {
|
|
1987
2138
|
this._log.info('ending gRPC channel');
|
|
1988
2139
|
this._terminated = true;
|
|
1989
2140
|
stub.close();
|