@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 TeamServiceClient {
|
|
|
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 TeamServiceClient {
|
|
|
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 TeamServiceClient {
|
|
|
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 TeamServiceClient {
|
|
|
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 TeamServiceClient {
|
|
|
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 TeamServiceClient {
|
|
|
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 TeamServiceClient {
|
|
|
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
|
-
listTeams: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'teams')
|
|
229
|
+
listTeams: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'teams'),
|
|
221
230
|
};
|
|
222
231
|
// Put together the default options sent with requests.
|
|
223
232
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.TeamService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -246,15 +255,24 @@ class TeamServiceClient {
|
|
|
246
255
|
}
|
|
247
256
|
// Put together the "service stub" for
|
|
248
257
|
// google.ads.admanager.v1.TeamService.
|
|
249
|
-
this.teamServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
250
|
-
this._protos.lookupService('google.ads.admanager.v1.TeamService')
|
|
251
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
252
|
-
|
|
258
|
+
this.teamServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
259
|
+
? this._protos.lookupService('google.ads.admanager.v1.TeamService')
|
|
260
|
+
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
261
|
+
this._protos.google.ads.admanager.v1.TeamService, 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
|
-
const teamServiceStubMethods = [
|
|
264
|
+
const teamServiceStubMethods = [
|
|
265
|
+
'getTeam',
|
|
266
|
+
'listTeams',
|
|
267
|
+
'createTeam',
|
|
268
|
+
'batchCreateTeams',
|
|
269
|
+
'updateTeam',
|
|
270
|
+
'batchUpdateTeams',
|
|
271
|
+
'batchActivateTeams',
|
|
272
|
+
'batchDeactivateTeams',
|
|
273
|
+
];
|
|
256
274
|
for (const methodName of teamServiceStubMethods) {
|
|
257
|
-
const callPromise = this.teamServiceStub.then(stub => (...args) => {
|
|
275
|
+
const callPromise = this.teamServiceStub.then((stub) => (...args) => {
|
|
258
276
|
if (this._terminated) {
|
|
259
277
|
return Promise.reject('The client has already been closed.');
|
|
260
278
|
}
|
|
@@ -263,8 +281,7 @@ class TeamServiceClient {
|
|
|
263
281
|
}, (err) => () => {
|
|
264
282
|
throw err;
|
|
265
283
|
});
|
|
266
|
-
const descriptor = this.descriptors.page[methodName] ||
|
|
267
|
-
undefined;
|
|
284
|
+
const descriptor = this.descriptors.page[methodName] || undefined;
|
|
268
285
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
269
286
|
this.innerApiCalls[methodName] = apiCall;
|
|
270
287
|
}
|
|
@@ -276,7 +293,8 @@ class TeamServiceClient {
|
|
|
276
293
|
* @returns {string} The DNS address for this service.
|
|
277
294
|
*/
|
|
278
295
|
static get servicePath() {
|
|
279
|
-
if (typeof process === 'object' &&
|
|
296
|
+
if (typeof process === 'object' &&
|
|
297
|
+
typeof process.emitWarning === 'function') {
|
|
280
298
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
281
299
|
}
|
|
282
300
|
return 'admanager.googleapis.com';
|
|
@@ -287,7 +305,8 @@ class TeamServiceClient {
|
|
|
287
305
|
* @returns {string} The DNS address for this service.
|
|
288
306
|
*/
|
|
289
307
|
static get apiEndpoint() {
|
|
290
|
-
if (typeof process === 'object' &&
|
|
308
|
+
if (typeof process === 'object' &&
|
|
309
|
+
typeof process.emitWarning === 'function') {
|
|
291
310
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
292
311
|
}
|
|
293
312
|
return 'admanager.googleapis.com';
|
|
@@ -316,7 +335,8 @@ class TeamServiceClient {
|
|
|
316
335
|
*/
|
|
317
336
|
static get scopes() {
|
|
318
337
|
return [
|
|
319
|
-
'https://www.googleapis.com/auth/admanager'
|
|
338
|
+
'https://www.googleapis.com/auth/admanager',
|
|
339
|
+
'https://www.googleapis.com/auth/admanager.readonly',
|
|
320
340
|
];
|
|
321
341
|
}
|
|
322
342
|
/**
|
|
@@ -343,10 +363,13 @@ class TeamServiceClient {
|
|
|
343
363
|
options = options || {};
|
|
344
364
|
options.otherArgs = options.otherArgs || {};
|
|
345
365
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
346
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
347
|
-
|
|
366
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
367
|
+
this._gaxModule.routingHeader.fromParams({
|
|
368
|
+
name: request.name ?? '',
|
|
369
|
+
});
|
|
370
|
+
this.initialize().catch((err) => {
|
|
371
|
+
throw err;
|
|
348
372
|
});
|
|
349
|
-
this.initialize().catch(err => { throw err; });
|
|
350
373
|
this._log.info('getTeam request %j', request);
|
|
351
374
|
const wrappedCallback = callback
|
|
352
375
|
? (error, response, options, rawResponse) => {
|
|
@@ -354,12 +377,16 @@ class TeamServiceClient {
|
|
|
354
377
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
355
378
|
}
|
|
356
379
|
: undefined;
|
|
357
|
-
return this.innerApiCalls
|
|
380
|
+
return this.innerApiCalls
|
|
381
|
+
.getTeam(request, options, wrappedCallback)
|
|
358
382
|
?.then(([response, options, rawResponse]) => {
|
|
359
383
|
this._log.info('getTeam response %j', response);
|
|
360
384
|
return [response, options, rawResponse];
|
|
361
|
-
})
|
|
362
|
-
|
|
385
|
+
})
|
|
386
|
+
.catch((error) => {
|
|
387
|
+
if (error &&
|
|
388
|
+
'statusDetails' in error &&
|
|
389
|
+
error.statusDetails instanceof Array) {
|
|
363
390
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
364
391
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
365
392
|
}
|
|
@@ -379,10 +406,13 @@ class TeamServiceClient {
|
|
|
379
406
|
options = options || {};
|
|
380
407
|
options.otherArgs = options.otherArgs || {};
|
|
381
408
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
382
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
383
|
-
|
|
409
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
410
|
+
this._gaxModule.routingHeader.fromParams({
|
|
411
|
+
parent: request.parent ?? '',
|
|
412
|
+
});
|
|
413
|
+
this.initialize().catch((err) => {
|
|
414
|
+
throw err;
|
|
384
415
|
});
|
|
385
|
-
this.initialize().catch(err => { throw err; });
|
|
386
416
|
this._log.info('createTeam request %j', request);
|
|
387
417
|
const wrappedCallback = callback
|
|
388
418
|
? (error, response, options, rawResponse) => {
|
|
@@ -390,12 +420,16 @@ class TeamServiceClient {
|
|
|
390
420
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
391
421
|
}
|
|
392
422
|
: undefined;
|
|
393
|
-
return this.innerApiCalls
|
|
423
|
+
return this.innerApiCalls
|
|
424
|
+
.createTeam(request, options, wrappedCallback)
|
|
394
425
|
?.then(([response, options, rawResponse]) => {
|
|
395
426
|
this._log.info('createTeam response %j', response);
|
|
396
427
|
return [response, options, rawResponse];
|
|
397
|
-
})
|
|
398
|
-
|
|
428
|
+
})
|
|
429
|
+
.catch((error) => {
|
|
430
|
+
if (error &&
|
|
431
|
+
'statusDetails' in error &&
|
|
432
|
+
error.statusDetails instanceof Array) {
|
|
399
433
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
400
434
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
401
435
|
}
|
|
@@ -415,10 +449,13 @@ class TeamServiceClient {
|
|
|
415
449
|
options = options || {};
|
|
416
450
|
options.otherArgs = options.otherArgs || {};
|
|
417
451
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
418
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
419
|
-
|
|
452
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
453
|
+
this._gaxModule.routingHeader.fromParams({
|
|
454
|
+
parent: request.parent ?? '',
|
|
455
|
+
});
|
|
456
|
+
this.initialize().catch((err) => {
|
|
457
|
+
throw err;
|
|
420
458
|
});
|
|
421
|
-
this.initialize().catch(err => { throw err; });
|
|
422
459
|
this._log.info('batchCreateTeams request %j', request);
|
|
423
460
|
const wrappedCallback = callback
|
|
424
461
|
? (error, response, options, rawResponse) => {
|
|
@@ -426,12 +463,16 @@ class TeamServiceClient {
|
|
|
426
463
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
427
464
|
}
|
|
428
465
|
: undefined;
|
|
429
|
-
return this.innerApiCalls
|
|
466
|
+
return this.innerApiCalls
|
|
467
|
+
.batchCreateTeams(request, options, wrappedCallback)
|
|
430
468
|
?.then(([response, options, rawResponse]) => {
|
|
431
469
|
this._log.info('batchCreateTeams response %j', response);
|
|
432
470
|
return [response, options, rawResponse];
|
|
433
|
-
})
|
|
434
|
-
|
|
471
|
+
})
|
|
472
|
+
.catch((error) => {
|
|
473
|
+
if (error &&
|
|
474
|
+
'statusDetails' in error &&
|
|
475
|
+
error.statusDetails instanceof Array) {
|
|
435
476
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
436
477
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
437
478
|
}
|
|
@@ -451,10 +492,13 @@ class TeamServiceClient {
|
|
|
451
492
|
options = options || {};
|
|
452
493
|
options.otherArgs = options.otherArgs || {};
|
|
453
494
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
454
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
455
|
-
|
|
495
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
496
|
+
this._gaxModule.routingHeader.fromParams({
|
|
497
|
+
'team.name': request.team.name ?? '',
|
|
498
|
+
});
|
|
499
|
+
this.initialize().catch((err) => {
|
|
500
|
+
throw err;
|
|
456
501
|
});
|
|
457
|
-
this.initialize().catch(err => { throw err; });
|
|
458
502
|
this._log.info('updateTeam request %j', request);
|
|
459
503
|
const wrappedCallback = callback
|
|
460
504
|
? (error, response, options, rawResponse) => {
|
|
@@ -462,12 +506,16 @@ class TeamServiceClient {
|
|
|
462
506
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
463
507
|
}
|
|
464
508
|
: undefined;
|
|
465
|
-
return this.innerApiCalls
|
|
509
|
+
return this.innerApiCalls
|
|
510
|
+
.updateTeam(request, options, wrappedCallback)
|
|
466
511
|
?.then(([response, options, rawResponse]) => {
|
|
467
512
|
this._log.info('updateTeam response %j', response);
|
|
468
513
|
return [response, options, rawResponse];
|
|
469
|
-
})
|
|
470
|
-
|
|
514
|
+
})
|
|
515
|
+
.catch((error) => {
|
|
516
|
+
if (error &&
|
|
517
|
+
'statusDetails' in error &&
|
|
518
|
+
error.statusDetails instanceof Array) {
|
|
471
519
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
472
520
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
473
521
|
}
|
|
@@ -487,10 +535,13 @@ class TeamServiceClient {
|
|
|
487
535
|
options = options || {};
|
|
488
536
|
options.otherArgs = options.otherArgs || {};
|
|
489
537
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
490
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
491
|
-
|
|
538
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
539
|
+
this._gaxModule.routingHeader.fromParams({
|
|
540
|
+
parent: request.parent ?? '',
|
|
541
|
+
});
|
|
542
|
+
this.initialize().catch((err) => {
|
|
543
|
+
throw err;
|
|
492
544
|
});
|
|
493
|
-
this.initialize().catch(err => { throw err; });
|
|
494
545
|
this._log.info('batchUpdateTeams request %j', request);
|
|
495
546
|
const wrappedCallback = callback
|
|
496
547
|
? (error, response, options, rawResponse) => {
|
|
@@ -498,12 +549,16 @@ class TeamServiceClient {
|
|
|
498
549
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
499
550
|
}
|
|
500
551
|
: undefined;
|
|
501
|
-
return this.innerApiCalls
|
|
552
|
+
return this.innerApiCalls
|
|
553
|
+
.batchUpdateTeams(request, options, wrappedCallback)
|
|
502
554
|
?.then(([response, options, rawResponse]) => {
|
|
503
555
|
this._log.info('batchUpdateTeams response %j', response);
|
|
504
556
|
return [response, options, rawResponse];
|
|
505
|
-
})
|
|
506
|
-
|
|
557
|
+
})
|
|
558
|
+
.catch((error) => {
|
|
559
|
+
if (error &&
|
|
560
|
+
'statusDetails' in error &&
|
|
561
|
+
error.statusDetails instanceof Array) {
|
|
507
562
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
508
563
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
509
564
|
}
|
|
@@ -523,10 +578,13 @@ class TeamServiceClient {
|
|
|
523
578
|
options = options || {};
|
|
524
579
|
options.otherArgs = options.otherArgs || {};
|
|
525
580
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
526
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
527
|
-
|
|
581
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
582
|
+
this._gaxModule.routingHeader.fromParams({
|
|
583
|
+
parent: request.parent ?? '',
|
|
584
|
+
});
|
|
585
|
+
this.initialize().catch((err) => {
|
|
586
|
+
throw err;
|
|
528
587
|
});
|
|
529
|
-
this.initialize().catch(err => { throw err; });
|
|
530
588
|
this._log.info('batchActivateTeams request %j', request);
|
|
531
589
|
const wrappedCallback = callback
|
|
532
590
|
? (error, response, options, rawResponse) => {
|
|
@@ -534,12 +592,16 @@ class TeamServiceClient {
|
|
|
534
592
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
535
593
|
}
|
|
536
594
|
: undefined;
|
|
537
|
-
return this.innerApiCalls
|
|
595
|
+
return this.innerApiCalls
|
|
596
|
+
.batchActivateTeams(request, options, wrappedCallback)
|
|
538
597
|
?.then(([response, options, rawResponse]) => {
|
|
539
598
|
this._log.info('batchActivateTeams response %j', response);
|
|
540
599
|
return [response, options, rawResponse];
|
|
541
|
-
})
|
|
542
|
-
|
|
600
|
+
})
|
|
601
|
+
.catch((error) => {
|
|
602
|
+
if (error &&
|
|
603
|
+
'statusDetails' in error &&
|
|
604
|
+
error.statusDetails instanceof Array) {
|
|
543
605
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
544
606
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
545
607
|
}
|
|
@@ -559,10 +621,13 @@ class TeamServiceClient {
|
|
|
559
621
|
options = options || {};
|
|
560
622
|
options.otherArgs = options.otherArgs || {};
|
|
561
623
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
562
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
563
|
-
|
|
624
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
625
|
+
this._gaxModule.routingHeader.fromParams({
|
|
626
|
+
parent: request.parent ?? '',
|
|
627
|
+
});
|
|
628
|
+
this.initialize().catch((err) => {
|
|
629
|
+
throw err;
|
|
564
630
|
});
|
|
565
|
-
this.initialize().catch(err => { throw err; });
|
|
566
631
|
this._log.info('batchDeactivateTeams request %j', request);
|
|
567
632
|
const wrappedCallback = callback
|
|
568
633
|
? (error, response, options, rawResponse) => {
|
|
@@ -570,12 +635,16 @@ class TeamServiceClient {
|
|
|
570
635
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
571
636
|
}
|
|
572
637
|
: undefined;
|
|
573
|
-
return this.innerApiCalls
|
|
638
|
+
return this.innerApiCalls
|
|
639
|
+
.batchDeactivateTeams(request, options, wrappedCallback)
|
|
574
640
|
?.then(([response, options, rawResponse]) => {
|
|
575
641
|
this._log.info('batchDeactivateTeams response %j', response);
|
|
576
642
|
return [response, options, rawResponse];
|
|
577
|
-
})
|
|
578
|
-
|
|
643
|
+
})
|
|
644
|
+
.catch((error) => {
|
|
645
|
+
if (error &&
|
|
646
|
+
'statusDetails' in error &&
|
|
647
|
+
error.statusDetails instanceof Array) {
|
|
579
648
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
580
649
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
581
650
|
}
|
|
@@ -595,10 +664,13 @@ class TeamServiceClient {
|
|
|
595
664
|
options = options || {};
|
|
596
665
|
options.otherArgs = options.otherArgs || {};
|
|
597
666
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
598
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
599
|
-
|
|
667
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
668
|
+
this._gaxModule.routingHeader.fromParams({
|
|
669
|
+
parent: request.parent ?? '',
|
|
670
|
+
});
|
|
671
|
+
this.initialize().catch((err) => {
|
|
672
|
+
throw err;
|
|
600
673
|
});
|
|
601
|
-
this.initialize().catch(err => { throw err; });
|
|
602
674
|
const wrappedCallback = callback
|
|
603
675
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
604
676
|
this._log.info('listTeams values %j', values);
|
|
@@ -633,8 +705,19 @@ class TeamServiceClient {
|
|
|
633
705
|
* the call that provided the page token.
|
|
634
706
|
* @param {string} [request.filter]
|
|
635
707
|
* Optional. Expression to filter the response.
|
|
636
|
-
*
|
|
637
|
-
*
|
|
708
|
+
* See syntax details at
|
|
709
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
710
|
+
*
|
|
711
|
+
* <b>Filterable fields:</b>
|
|
712
|
+
* <ul style="list-style-type:none">
|
|
713
|
+
* <li><code>accessType</code></li>
|
|
714
|
+
* <li><code>allCompaniesAccess</code></li>
|
|
715
|
+
* <li><code>allInventoryAccess</code></li>
|
|
716
|
+
* <li><code>description</code></li>
|
|
717
|
+
* <li><code>displayName</code></li>
|
|
718
|
+
* <li><code>name</code></li>
|
|
719
|
+
* <li><code>status</code></li>
|
|
720
|
+
* </ul>
|
|
638
721
|
* @param {string} [request.orderBy]
|
|
639
722
|
* Optional. Expression to specify sorting order.
|
|
640
723
|
* See syntax details at
|
|
@@ -657,12 +740,15 @@ class TeamServiceClient {
|
|
|
657
740
|
options = options || {};
|
|
658
741
|
options.otherArgs = options.otherArgs || {};
|
|
659
742
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
660
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
661
|
-
|
|
662
|
-
|
|
743
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
744
|
+
this._gaxModule.routingHeader.fromParams({
|
|
745
|
+
parent: request.parent ?? '',
|
|
746
|
+
});
|
|
663
747
|
const defaultCallSettings = this._defaults['listTeams'];
|
|
664
748
|
const callSettings = defaultCallSettings.merge(options);
|
|
665
|
-
this.initialize().catch(err => {
|
|
749
|
+
this.initialize().catch((err) => {
|
|
750
|
+
throw err;
|
|
751
|
+
});
|
|
666
752
|
this._log.info('listTeams stream %j', request);
|
|
667
753
|
return this.descriptors.page.listTeams.createStream(this.innerApiCalls.listTeams, request, callSettings);
|
|
668
754
|
}
|
|
@@ -688,8 +774,19 @@ class TeamServiceClient {
|
|
|
688
774
|
* the call that provided the page token.
|
|
689
775
|
* @param {string} [request.filter]
|
|
690
776
|
* Optional. Expression to filter the response.
|
|
691
|
-
*
|
|
692
|
-
*
|
|
777
|
+
* See syntax details at
|
|
778
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
779
|
+
*
|
|
780
|
+
* <b>Filterable fields:</b>
|
|
781
|
+
* <ul style="list-style-type:none">
|
|
782
|
+
* <li><code>accessType</code></li>
|
|
783
|
+
* <li><code>allCompaniesAccess</code></li>
|
|
784
|
+
* <li><code>allInventoryAccess</code></li>
|
|
785
|
+
* <li><code>description</code></li>
|
|
786
|
+
* <li><code>displayName</code></li>
|
|
787
|
+
* <li><code>name</code></li>
|
|
788
|
+
* <li><code>status</code></li>
|
|
789
|
+
* </ul>
|
|
693
790
|
* @param {string} [request.orderBy]
|
|
694
791
|
* Optional. Expression to specify sorting order.
|
|
695
792
|
* See syntax details at
|
|
@@ -713,12 +810,15 @@ class TeamServiceClient {
|
|
|
713
810
|
options = options || {};
|
|
714
811
|
options.otherArgs = options.otherArgs || {};
|
|
715
812
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
716
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
717
|
-
|
|
718
|
-
|
|
813
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
814
|
+
this._gaxModule.routingHeader.fromParams({
|
|
815
|
+
parent: request.parent ?? '',
|
|
816
|
+
});
|
|
719
817
|
const defaultCallSettings = this._defaults['listTeams'];
|
|
720
818
|
const callSettings = defaultCallSettings.merge(options);
|
|
721
|
-
this.initialize().catch(err => {
|
|
819
|
+
this.initialize().catch((err) => {
|
|
820
|
+
throw err;
|
|
821
|
+
});
|
|
722
822
|
this._log.info('listTeams iterate %j', request);
|
|
723
823
|
return this.descriptors.page.listTeams.asyncIterate(this.innerApiCalls['listTeams'], request, callSettings);
|
|
724
824
|
}
|
|
@@ -748,7 +848,8 @@ class TeamServiceClient {
|
|
|
748
848
|
* @returns {string} A string representing the network_code.
|
|
749
849
|
*/
|
|
750
850
|
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
751
|
-
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
851
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
852
|
+
.network_code;
|
|
752
853
|
}
|
|
753
854
|
/**
|
|
754
855
|
* Parse the asset_key from AdBreak resource.
|
|
@@ -869,7 +970,8 @@ class TeamServiceClient {
|
|
|
869
970
|
* @returns {string} A string representing the network_code.
|
|
870
971
|
*/
|
|
871
972
|
matchNetworkCodeFromApplicationName(applicationName) {
|
|
872
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
973
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
974
|
+
.network_code;
|
|
873
975
|
}
|
|
874
976
|
/**
|
|
875
977
|
* Parse the application from Application resource.
|
|
@@ -879,7 +981,8 @@ class TeamServiceClient {
|
|
|
879
981
|
* @returns {string} A string representing the application.
|
|
880
982
|
*/
|
|
881
983
|
matchApplicationFromApplicationName(applicationName) {
|
|
882
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
984
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
985
|
+
.application;
|
|
883
986
|
}
|
|
884
987
|
/**
|
|
885
988
|
* Return a fully-qualified audienceSegment resource name string.
|
|
@@ -968,7 +1071,8 @@ class TeamServiceClient {
|
|
|
968
1071
|
* @returns {string} A string representing the network_code.
|
|
969
1072
|
*/
|
|
970
1073
|
matchNetworkCodeFromBrowserName(browserName) {
|
|
971
|
-
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
1074
|
+
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
1075
|
+
.network_code;
|
|
972
1076
|
}
|
|
973
1077
|
/**
|
|
974
1078
|
* Parse the browser from Browser resource.
|
|
@@ -1013,6 +1117,39 @@ class TeamServiceClient {
|
|
|
1013
1117
|
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
1014
1118
|
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
1015
1119
|
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Return a fully-qualified childPublisher resource name string.
|
|
1122
|
+
*
|
|
1123
|
+
* @param {string} network_code
|
|
1124
|
+
* @param {string} child_publisher
|
|
1125
|
+
* @returns {string} Resource name string.
|
|
1126
|
+
*/
|
|
1127
|
+
childPublisherPath(networkCode, childPublisher) {
|
|
1128
|
+
return this.pathTemplates.childPublisherPathTemplate.render({
|
|
1129
|
+
network_code: networkCode,
|
|
1130
|
+
child_publisher: childPublisher,
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Parse the network_code from ChildPublisher resource.
|
|
1135
|
+
*
|
|
1136
|
+
* @param {string} childPublisherName
|
|
1137
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
1138
|
+
* @returns {string} A string representing the network_code.
|
|
1139
|
+
*/
|
|
1140
|
+
matchNetworkCodeFromChildPublisherName(childPublisherName) {
|
|
1141
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Parse the child_publisher from ChildPublisher resource.
|
|
1145
|
+
*
|
|
1146
|
+
* @param {string} childPublisherName
|
|
1147
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
1148
|
+
* @returns {string} A string representing the child_publisher.
|
|
1149
|
+
*/
|
|
1150
|
+
matchChildPublisherFromChildPublisherName(childPublisherName) {
|
|
1151
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
|
|
1152
|
+
}
|
|
1016
1153
|
/**
|
|
1017
1154
|
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
1018
1155
|
*
|
|
@@ -1100,7 +1237,8 @@ class TeamServiceClient {
|
|
|
1100
1237
|
* @returns {string} A string representing the network_code.
|
|
1101
1238
|
*/
|
|
1102
1239
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
1103
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
1240
|
+
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
1241
|
+
.network_code;
|
|
1104
1242
|
}
|
|
1105
1243
|
/**
|
|
1106
1244
|
* Parse the company from Company resource.
|
|
@@ -1133,7 +1271,8 @@ class TeamServiceClient {
|
|
|
1133
1271
|
* @returns {string} A string representing the network_code.
|
|
1134
1272
|
*/
|
|
1135
1273
|
matchNetworkCodeFromContactName(contactName) {
|
|
1136
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
1274
|
+
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
1275
|
+
.network_code;
|
|
1137
1276
|
}
|
|
1138
1277
|
/**
|
|
1139
1278
|
* Parse the contact from Contact resource.
|
|
@@ -1166,7 +1305,8 @@ class TeamServiceClient {
|
|
|
1166
1305
|
* @returns {string} A string representing the network_code.
|
|
1167
1306
|
*/
|
|
1168
1307
|
matchNetworkCodeFromContentName(contentName) {
|
|
1169
|
-
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
1308
|
+
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
1309
|
+
.network_code;
|
|
1170
1310
|
}
|
|
1171
1311
|
/**
|
|
1172
1312
|
* Parse the content from Content resource.
|
|
@@ -1199,7 +1339,8 @@ class TeamServiceClient {
|
|
|
1199
1339
|
* @returns {string} A string representing the network_code.
|
|
1200
1340
|
*/
|
|
1201
1341
|
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
1202
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1342
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1343
|
+
.network_code;
|
|
1203
1344
|
}
|
|
1204
1345
|
/**
|
|
1205
1346
|
* Parse the content_bundle from ContentBundle resource.
|
|
@@ -1209,7 +1350,8 @@ class TeamServiceClient {
|
|
|
1209
1350
|
* @returns {string} A string representing the content_bundle.
|
|
1210
1351
|
*/
|
|
1211
1352
|
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
1212
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1353
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1354
|
+
.content_bundle;
|
|
1213
1355
|
}
|
|
1214
1356
|
/**
|
|
1215
1357
|
* Return a fully-qualified contentLabel resource name string.
|
|
@@ -1232,7 +1374,8 @@ class TeamServiceClient {
|
|
|
1232
1374
|
* @returns {string} A string representing the network_code.
|
|
1233
1375
|
*/
|
|
1234
1376
|
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
1235
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1377
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1378
|
+
.network_code;
|
|
1236
1379
|
}
|
|
1237
1380
|
/**
|
|
1238
1381
|
* Parse the content_label from ContentLabel resource.
|
|
@@ -1242,7 +1385,8 @@ class TeamServiceClient {
|
|
|
1242
1385
|
* @returns {string} A string representing the content_label.
|
|
1243
1386
|
*/
|
|
1244
1387
|
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
1245
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1388
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1389
|
+
.content_label;
|
|
1246
1390
|
}
|
|
1247
1391
|
/**
|
|
1248
1392
|
* Return a fully-qualified creativeTemplate resource name string.
|
|
@@ -1298,7 +1442,8 @@ class TeamServiceClient {
|
|
|
1298
1442
|
* @returns {string} A string representing the network_code.
|
|
1299
1443
|
*/
|
|
1300
1444
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
1301
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1445
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1446
|
+
.network_code;
|
|
1302
1447
|
}
|
|
1303
1448
|
/**
|
|
1304
1449
|
* Parse the custom_field from CustomField resource.
|
|
@@ -1308,7 +1453,8 @@ class TeamServiceClient {
|
|
|
1308
1453
|
* @returns {string} A string representing the custom_field.
|
|
1309
1454
|
*/
|
|
1310
1455
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
1311
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1456
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1457
|
+
.custom_field;
|
|
1312
1458
|
}
|
|
1313
1459
|
/**
|
|
1314
1460
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -1529,7 +1675,8 @@ class TeamServiceClient {
|
|
|
1529
1675
|
* @returns {string} A string representing the network_code.
|
|
1530
1676
|
*/
|
|
1531
1677
|
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
1532
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1678
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1679
|
+
.network_code;
|
|
1533
1680
|
}
|
|
1534
1681
|
/**
|
|
1535
1682
|
* Parse the geo_target from GeoTarget resource.
|
|
@@ -1539,7 +1686,8 @@ class TeamServiceClient {
|
|
|
1539
1686
|
* @returns {string} A string representing the geo_target.
|
|
1540
1687
|
*/
|
|
1541
1688
|
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
1542
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1689
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1690
|
+
.geo_target;
|
|
1543
1691
|
}
|
|
1544
1692
|
/**
|
|
1545
1693
|
* Return a fully-qualified label resource name string.
|
|
@@ -1595,7 +1743,8 @@ class TeamServiceClient {
|
|
|
1595
1743
|
* @returns {string} A string representing the network_code.
|
|
1596
1744
|
*/
|
|
1597
1745
|
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1598
|
-
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1746
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1747
|
+
.network_code;
|
|
1599
1748
|
}
|
|
1600
1749
|
/**
|
|
1601
1750
|
* Parse the line_item from LineItem resource.
|
|
@@ -1605,7 +1754,43 @@ class TeamServiceClient {
|
|
|
1605
1754
|
* @returns {string} A string representing the line_item.
|
|
1606
1755
|
*/
|
|
1607
1756
|
matchLineItemFromLineItemName(lineItemName) {
|
|
1608
|
-
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1757
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1758
|
+
.line_item;
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* Return a fully-qualified linkedDevice resource name string.
|
|
1762
|
+
*
|
|
1763
|
+
* @param {string} network_code
|
|
1764
|
+
* @param {string} linked_device
|
|
1765
|
+
* @returns {string} Resource name string.
|
|
1766
|
+
*/
|
|
1767
|
+
linkedDevicePath(networkCode, linkedDevice) {
|
|
1768
|
+
return this.pathTemplates.linkedDevicePathTemplate.render({
|
|
1769
|
+
network_code: networkCode,
|
|
1770
|
+
linked_device: linkedDevice,
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* Parse the network_code from LinkedDevice resource.
|
|
1775
|
+
*
|
|
1776
|
+
* @param {string} linkedDeviceName
|
|
1777
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1778
|
+
* @returns {string} A string representing the network_code.
|
|
1779
|
+
*/
|
|
1780
|
+
matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
|
|
1781
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1782
|
+
.network_code;
|
|
1783
|
+
}
|
|
1784
|
+
/**
|
|
1785
|
+
* Parse the linked_device from LinkedDevice resource.
|
|
1786
|
+
*
|
|
1787
|
+
* @param {string} linkedDeviceName
|
|
1788
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1789
|
+
* @returns {string} A string representing the linked_device.
|
|
1790
|
+
*/
|
|
1791
|
+
matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
|
|
1792
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1793
|
+
.linked_device;
|
|
1609
1794
|
}
|
|
1610
1795
|
/**
|
|
1611
1796
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
@@ -1661,7 +1846,8 @@ class TeamServiceClient {
|
|
|
1661
1846
|
* @returns {string} A string representing the network_code.
|
|
1662
1847
|
*/
|
|
1663
1848
|
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1664
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1849
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1850
|
+
.network_code;
|
|
1665
1851
|
}
|
|
1666
1852
|
/**
|
|
1667
1853
|
* Parse the mobile_carrier from MobileCarrier resource.
|
|
@@ -1671,7 +1857,8 @@ class TeamServiceClient {
|
|
|
1671
1857
|
* @returns {string} A string representing the mobile_carrier.
|
|
1672
1858
|
*/
|
|
1673
1859
|
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1674
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1860
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1861
|
+
.mobile_carrier;
|
|
1675
1862
|
}
|
|
1676
1863
|
/**
|
|
1677
1864
|
* Return a fully-qualified mobileDevice resource name string.
|
|
@@ -1694,7 +1881,8 @@ class TeamServiceClient {
|
|
|
1694
1881
|
* @returns {string} A string representing the network_code.
|
|
1695
1882
|
*/
|
|
1696
1883
|
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1697
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1884
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1885
|
+
.network_code;
|
|
1698
1886
|
}
|
|
1699
1887
|
/**
|
|
1700
1888
|
* Parse the mobile_device from MobileDevice resource.
|
|
@@ -1704,7 +1892,8 @@ class TeamServiceClient {
|
|
|
1704
1892
|
* @returns {string} A string representing the mobile_device.
|
|
1705
1893
|
*/
|
|
1706
1894
|
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1707
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1895
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1896
|
+
.mobile_device;
|
|
1708
1897
|
}
|
|
1709
1898
|
/**
|
|
1710
1899
|
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
@@ -1758,7 +1947,8 @@ class TeamServiceClient {
|
|
|
1758
1947
|
* @returns {string} A string representing the network_code.
|
|
1759
1948
|
*/
|
|
1760
1949
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
1761
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1950
|
+
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1951
|
+
.network_code;
|
|
1762
1952
|
}
|
|
1763
1953
|
/**
|
|
1764
1954
|
* Return a fully-qualified operatingSystem resource name string.
|
|
@@ -1880,7 +2070,8 @@ class TeamServiceClient {
|
|
|
1880
2070
|
* @returns {string} A string representing the network_code.
|
|
1881
2071
|
*/
|
|
1882
2072
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
1883
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2073
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2074
|
+
.network_code;
|
|
1884
2075
|
}
|
|
1885
2076
|
/**
|
|
1886
2077
|
* Parse the placement from Placement resource.
|
|
@@ -1890,7 +2081,8 @@ class TeamServiceClient {
|
|
|
1890
2081
|
* @returns {string} A string representing the placement.
|
|
1891
2082
|
*/
|
|
1892
2083
|
matchPlacementFromPlacementName(placementName) {
|
|
1893
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2084
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2085
|
+
.placement;
|
|
1894
2086
|
}
|
|
1895
2087
|
/**
|
|
1896
2088
|
* Return a fully-qualified privateAuction resource name string.
|
|
@@ -2024,6 +2216,39 @@ class TeamServiceClient {
|
|
|
2024
2216
|
matchReportFromReportName(reportName) {
|
|
2025
2217
|
return this.pathTemplates.reportPathTemplate.match(reportName).report;
|
|
2026
2218
|
}
|
|
2219
|
+
/**
|
|
2220
|
+
* Return a fully-qualified richMediaAdsCompany resource name string.
|
|
2221
|
+
*
|
|
2222
|
+
* @param {string} network_code
|
|
2223
|
+
* @param {string} rich_media_ads_company
|
|
2224
|
+
* @returns {string} Resource name string.
|
|
2225
|
+
*/
|
|
2226
|
+
richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
|
|
2227
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
|
|
2228
|
+
network_code: networkCode,
|
|
2229
|
+
rich_media_ads_company: richMediaAdsCompany,
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
/**
|
|
2233
|
+
* Parse the network_code from RichMediaAdsCompany resource.
|
|
2234
|
+
*
|
|
2235
|
+
* @param {string} richMediaAdsCompanyName
|
|
2236
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
2237
|
+
* @returns {string} A string representing the network_code.
|
|
2238
|
+
*/
|
|
2239
|
+
matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
2240
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
* Parse the rich_media_ads_company from RichMediaAdsCompany resource.
|
|
2244
|
+
*
|
|
2245
|
+
* @param {string} richMediaAdsCompanyName
|
|
2246
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
2247
|
+
* @returns {string} A string representing the rich_media_ads_company.
|
|
2248
|
+
*/
|
|
2249
|
+
matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
2250
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
|
|
2251
|
+
}
|
|
2027
2252
|
/**
|
|
2028
2253
|
* Return a fully-qualified role resource name string.
|
|
2029
2254
|
*
|
|
@@ -2210,7 +2435,8 @@ class TeamServiceClient {
|
|
|
2210
2435
|
* @returns {string} A string representing the network_code.
|
|
2211
2436
|
*/
|
|
2212
2437
|
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
2213
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2438
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2439
|
+
.network_code;
|
|
2214
2440
|
}
|
|
2215
2441
|
/**
|
|
2216
2442
|
* Parse the web_property from WebProperty resource.
|
|
@@ -2220,7 +2446,8 @@ class TeamServiceClient {
|
|
|
2220
2446
|
* @returns {string} A string representing the web_property.
|
|
2221
2447
|
*/
|
|
2222
2448
|
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
2223
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2449
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2450
|
+
.web_property;
|
|
2224
2451
|
}
|
|
2225
2452
|
/**
|
|
2226
2453
|
* Terminate the gRPC channel and close the client.
|
|
@@ -2230,7 +2457,7 @@ class TeamServiceClient {
|
|
|
2230
2457
|
*/
|
|
2231
2458
|
close() {
|
|
2232
2459
|
if (this.teamServiceStub && !this._terminated) {
|
|
2233
|
-
return this.teamServiceStub.then(stub => {
|
|
2460
|
+
return this.teamServiceStub.then((stub) => {
|
|
2234
2461
|
this._log.info('ending gRPC channel');
|
|
2235
2462
|
this._terminated = true;
|
|
2236
2463
|
stub.close();
|