@google-ads/admanager 0.5.0 → 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/README.md +40 -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 +22 -9
- 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 +237 -4
- 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 +85 -6
- 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 +205 -4
- 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 +57 -0
- package/build/protos/google/ads/admanager/v1/goal_enums.proto +138 -0
- 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 +86 -0
- package/build/protos/google/ads/admanager/v1/line_item_messages.proto +94 -0
- package/build/protos/google/ads/admanager/v1/line_item_service.proto +140 -0
- 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 +9 -9
- package/build/protos/google/ads/admanager/v1/network_service.proto +35 -3
- 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 +9 -7
- 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 +2898 -1001
- package/build/protos/google/ads/admanager/v1/report_messages.proto +10 -3
- 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 +18344 -7945
- package/build/protos/protos.js +50285 -23131
- package/build/protos/protos.json +6302 -3054
- package/build/src/index.d.ts +16 -1
- package/build/src/index.js +13 -3
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +145 -49
- package/build/src/v1/ad_break_service_client.js +296 -81
- package/build/src/v1/ad_break_service_client.js.map +1 -1
- package/build/src/v1/ad_break_service_proto_list.json +18 -1
- package/build/src/v1/ad_review_center_ad_service_client.d.ts +213 -96
- package/build/src/v1/ad_review_center_ad_service_client.js +327 -107
- 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 +18 -1
- package/build/src/v1/ad_unit_service_client.d.ts +418 -84
- package/build/src/v1/ad_unit_service_client.js +619 -78
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_client_config.json +28 -0
- package/build/src/v1/ad_unit_service_proto_list.json +18 -1
- package/build/src/v1/application_service_client.d.ts +340 -44
- package/build/src/v1/application_service_client.js +548 -67
- 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 +18 -1
- package/build/src/v1/audience_segment_service_client.d.ts +155 -44
- package/build/src/v1/audience_segment_service_client.js +270 -68
- package/build/src/v1/audience_segment_service_client.js.map +1 -1
- package/build/src/v1/audience_segment_service_proto_list.json +18 -1
- package/build/src/v1/bandwidth_group_service_client.d.ts +158 -44
- package/build/src/v1/bandwidth_group_service_client.js +272 -68
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
- package/build/src/v1/bandwidth_group_service_proto_list.json +18 -1
- package/build/src/v1/browser_language_service_client.d.ts +158 -44
- package/build/src/v1/browser_language_service_client.js +272 -68
- package/build/src/v1/browser_language_service_client.js.map +1 -1
- package/build/src/v1/browser_language_service_proto_list.json +18 -1
- package/build/src/v1/browser_service_client.d.ts +164 -44
- package/build/src/v1/browser_service_client.js +270 -66
- package/build/src/v1/browser_service_client.js.map +1 -1
- package/build/src/v1/browser_service_proto_list.json +18 -1
- package/build/src/v1/cms_metadata_key_service_client.d.ts +216 -44
- package/build/src/v1/cms_metadata_key_service_client.js +362 -68
- 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 +18 -1
- package/build/src/v1/cms_metadata_value_service_client.d.ts +222 -46
- package/build/src/v1/cms_metadata_value_service_client.js +364 -68
- 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 +18 -1
- package/build/src/v1/company_service_client.d.ts +191 -44
- package/build/src/v1/company_service_client.js +288 -66
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +18 -1
- package/build/src/v1/contact_service_client.d.ts +187 -46
- package/build/src/v1/contact_service_client.js +344 -91
- package/build/src/v1/contact_service_client.js.map +1 -1
- package/build/src/v1/contact_service_proto_list.json +18 -1
- package/build/src/v1/content_bundle_service_client.d.ts +158 -44
- package/build/src/v1/content_bundle_service_client.js +270 -67
- package/build/src/v1/content_bundle_service_client.js.map +1 -1
- package/build/src/v1/content_bundle_service_proto_list.json +18 -1
- package/build/src/v1/content_label_service_client.d.ts +158 -44
- package/build/src/v1/content_label_service_client.js +270 -67
- package/build/src/v1/content_label_service_client.js.map +1 -1
- package/build/src/v1/content_label_service_proto_list.json +18 -1
- package/build/src/v1/content_service_client.d.ts +158 -44
- package/build/src/v1/content_service_client.js +266 -66
- package/build/src/v1/content_service_client.js.map +1 -1
- package/build/src/v1/content_service_proto_list.json +18 -1
- package/build/src/v1/creative_template_service_client.d.ts +179 -44
- package/build/src/v1/creative_template_service_client.js +286 -68
- package/build/src/v1/creative_template_service_client.js.map +1 -1
- package/build/src/v1/creative_template_service_proto_list.json +18 -1
- package/build/src/v1/custom_field_service_client.d.ts +185 -50
- package/build/src/v1/custom_field_service_client.js +368 -103
- package/build/src/v1/custom_field_service_client.js.map +1 -1
- package/build/src/v1/custom_field_service_proto_list.json +18 -1
- package/build/src/v1/custom_targeting_key_service_client.d.ts +336 -44
- package/build/src/v1/custom_targeting_key_service_client.js +545 -68
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_client_config.json +24 -0
- package/build/src/v1/custom_targeting_key_service_proto_list.json +18 -1
- package/build/src/v1/custom_targeting_value_service_client.d.ts +174 -48
- package/build/src/v1/custom_targeting_value_service_client.js +281 -68
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +18 -1
- package/build/src/v1/device_capability_service_client.d.ts +158 -44
- package/build/src/v1/device_capability_service_client.js +272 -68
- package/build/src/v1/device_capability_service_client.js.map +1 -1
- package/build/src/v1/device_capability_service_proto_list.json +18 -1
- package/build/src/v1/device_category_service_client.d.ts +158 -44
- package/build/src/v1/device_category_service_client.js +272 -68
- package/build/src/v1/device_category_service_client.js.map +1 -1
- package/build/src/v1/device_category_service_proto_list.json +18 -1
- package/build/src/v1/device_manufacturer_service_client.d.ts +158 -44
- package/build/src/v1/device_manufacturer_service_client.js +273 -68
- package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
- package/build/src/v1/device_manufacturer_service_proto_list.json +18 -1
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +145 -49
- package/build/src/v1/entity_signals_mapping_service_client.js +313 -88
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +18 -1
- package/build/src/v1/gapic_metadata.json +476 -2
- package/build/src/v1/geo_target_service_client.d.ts +167 -44
- package/build/src/v1/geo_target_service_client.js +272 -66
- package/build/src/v1/geo_target_service_client.js.map +1 -1
- package/build/src/v1/geo_target_service_proto_list.json +18 -1
- package/build/src/v1/index.d.ts +5 -0
- package/build/src/v1/index.js +12 -2
- 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 +1474 -0
- package/build/src/v1/line_item_service_client.js +2203 -0
- package/build/src/v1/line_item_service_client.js.map +1 -0
- package/build/src/v1/line_item_service_client_config.json +34 -0
- package/build/src/v1/line_item_service_proto_list.json +139 -0
- 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 +161 -44
- package/build/src/v1/mobile_carrier_service_client.js +272 -67
- package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
- package/build/src/v1/mobile_carrier_service_proto_list.json +18 -1
- package/build/src/v1/mobile_device_service_client.d.ts +161 -44
- package/build/src/v1/mobile_device_service_client.js +272 -67
- package/build/src/v1/mobile_device_service_client.js.map +1 -1
- package/build/src/v1/mobile_device_service_proto_list.json +18 -1
- package/build/src/v1/mobile_device_submodel_service_client.d.ts +164 -47
- package/build/src/v1/mobile_device_submodel_service_client.js +275 -68
- package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
- package/build/src/v1/mobile_device_submodel_service_proto_list.json +18 -1
- package/build/src/v1/network_service_client.d.ts +184 -10
- package/build/src/v1/network_service_client.js +332 -64
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_proto_list.json +18 -1
- package/build/src/v1/operating_system_service_client.d.ts +158 -44
- package/build/src/v1/operating_system_service_client.js +272 -68
- package/build/src/v1/operating_system_service_client.js.map +1 -1
- package/build/src/v1/operating_system_service_proto_list.json +18 -1
- package/build/src/v1/operating_system_version_service_client.d.ts +167 -47
- package/build/src/v1/operating_system_version_service_client.js +277 -68
- package/build/src/v1/operating_system_version_service_client.js.map +1 -1
- package/build/src/v1/operating_system_version_service_proto_list.json +18 -1
- package/build/src/v1/order_service_client.d.ts +214 -49
- package/build/src/v1/order_service_client.js +300 -66
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +18 -1
- package/build/src/v1/placement_service_client.d.ts +177 -48
- package/build/src/v1/placement_service_client.js +378 -109
- package/build/src/v1/placement_service_client.js.map +1 -1
- package/build/src/v1/placement_service_proto_list.json +18 -1
- package/build/src/v1/private_auction_deal_service_client.d.ts +197 -50
- package/build/src/v1/private_auction_deal_service_client.js +323 -80
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
- package/build/src/v1/private_auction_deal_service_proto_list.json +18 -1
- package/build/src/v1/private_auction_service_client.d.ts +139 -43
- package/build/src/v1/private_auction_service_client.js +284 -76
- package/build/src/v1/private_auction_service_client.js.map +1 -1
- package/build/src/v1/private_auction_service_proto_list.json +18 -1
- package/build/src/v1/programmatic_buyer_service_client.d.ts +176 -44
- package/build/src/v1/programmatic_buyer_service_client.js +285 -68
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
- package/build/src/v1/programmatic_buyer_service_proto_list.json +18 -1
- package/build/src/v1/report_service_client.d.ts +198 -102
- package/build/src/v1/report_service_client.js +355 -121
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +18 -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 +167 -44
- package/build/src/v1/role_service_client.js +272 -66
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +18 -1
- package/build/src/v1/site_service_client.d.ts +170 -47
- package/build/src/v1/site_service_client.js +360 -103
- package/build/src/v1/site_service_client.js.map +1 -1
- package/build/src/v1/site_service_proto_list.json +18 -1
- package/build/src/v1/taxonomy_category_service_client.d.ts +136 -40
- package/build/src/v1/taxonomy_category_service_client.js +256 -64
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +18 -1
- package/build/src/v1/team_service_client.d.ts +175 -46
- package/build/src/v1/team_service_client.js +364 -103
- package/build/src/v1/team_service_client.js.map +1 -1
- package/build/src/v1/team_service_proto_list.json +18 -1
- package/build/src/v1/user_service_client.d.ts +96 -0
- package/build/src/v1/user_service_client.js +228 -48
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +18 -1
- package/package.json +10 -2
- package/build/protos/google/ads/admanager/v1/company_credit_status_enum.proto +0 -97
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2026 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -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}'),
|
|
@@ -192,6 +199,8 @@ class NetworkServiceClient {
|
|
|
192
199
|
entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
|
|
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}'),
|
|
202
|
+
lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
|
|
203
|
+
linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
|
|
195
204
|
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
196
205
|
mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
|
|
197
206
|
mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
|
|
@@ -205,6 +214,7 @@ class NetworkServiceClient {
|
|
|
205
214
|
privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
|
|
206
215
|
programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
|
|
207
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}'),
|
|
208
218
|
rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
|
|
209
219
|
sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
|
|
210
220
|
taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
|
|
@@ -212,6 +222,12 @@ class NetworkServiceClient {
|
|
|
212
222
|
userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
|
|
213
223
|
webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
|
|
214
224
|
};
|
|
225
|
+
// Some of the methods on this service return "paged" results,
|
|
226
|
+
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
227
|
+
// pages). Denote the keys used for pagination and results.
|
|
228
|
+
this.descriptors.page = {
|
|
229
|
+
listNetworks: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'networks'),
|
|
230
|
+
};
|
|
215
231
|
// Put together the default options sent with requests.
|
|
216
232
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.NetworkService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
217
233
|
// Set up a dictionary of "inner API calls"; the core implementation
|
|
@@ -239,15 +255,15 @@ class NetworkServiceClient {
|
|
|
239
255
|
}
|
|
240
256
|
// Put together the "service stub" for
|
|
241
257
|
// google.ads.admanager.v1.NetworkService.
|
|
242
|
-
this.networkServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
243
|
-
this._protos.lookupService('google.ads.admanager.v1.NetworkService')
|
|
244
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
245
|
-
|
|
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);
|
|
246
262
|
// Iterate over each of the methods that the service provides
|
|
247
263
|
// and create an API call method for each.
|
|
248
264
|
const networkServiceStubMethods = ['getNetwork', 'listNetworks'];
|
|
249
265
|
for (const methodName of networkServiceStubMethods) {
|
|
250
|
-
const callPromise = this.networkServiceStub.then(stub => (...args) => {
|
|
266
|
+
const callPromise = this.networkServiceStub.then((stub) => (...args) => {
|
|
251
267
|
if (this._terminated) {
|
|
252
268
|
return Promise.reject('The client has already been closed.');
|
|
253
269
|
}
|
|
@@ -256,7 +272,7 @@ class NetworkServiceClient {
|
|
|
256
272
|
}, (err) => () => {
|
|
257
273
|
throw err;
|
|
258
274
|
});
|
|
259
|
-
const descriptor = undefined;
|
|
275
|
+
const descriptor = this.descriptors.page[methodName] || undefined;
|
|
260
276
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
261
277
|
this.innerApiCalls[methodName] = apiCall;
|
|
262
278
|
}
|
|
@@ -268,7 +284,8 @@ class NetworkServiceClient {
|
|
|
268
284
|
* @returns {string} The DNS address for this service.
|
|
269
285
|
*/
|
|
270
286
|
static get servicePath() {
|
|
271
|
-
if (typeof process === 'object' &&
|
|
287
|
+
if (typeof process === 'object' &&
|
|
288
|
+
typeof process.emitWarning === 'function') {
|
|
272
289
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
273
290
|
}
|
|
274
291
|
return 'admanager.googleapis.com';
|
|
@@ -279,7 +296,8 @@ class NetworkServiceClient {
|
|
|
279
296
|
* @returns {string} The DNS address for this service.
|
|
280
297
|
*/
|
|
281
298
|
static get apiEndpoint() {
|
|
282
|
-
if (typeof process === 'object' &&
|
|
299
|
+
if (typeof process === 'object' &&
|
|
300
|
+
typeof process.emitWarning === 'function') {
|
|
283
301
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
284
302
|
}
|
|
285
303
|
return 'admanager.googleapis.com';
|
|
@@ -308,7 +326,8 @@ class NetworkServiceClient {
|
|
|
308
326
|
*/
|
|
309
327
|
static get scopes() {
|
|
310
328
|
return [
|
|
311
|
-
'https://www.googleapis.com/auth/admanager'
|
|
329
|
+
'https://www.googleapis.com/auth/admanager',
|
|
330
|
+
'https://www.googleapis.com/auth/admanager.readonly',
|
|
312
331
|
];
|
|
313
332
|
}
|
|
314
333
|
/**
|
|
@@ -335,10 +354,13 @@ class NetworkServiceClient {
|
|
|
335
354
|
options = options || {};
|
|
336
355
|
options.otherArgs = options.otherArgs || {};
|
|
337
356
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
338
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
339
|
-
|
|
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;
|
|
340
363
|
});
|
|
341
|
-
this.initialize().catch(err => { throw err; });
|
|
342
364
|
this._log.info('getNetwork request %j', request);
|
|
343
365
|
const wrappedCallback = callback
|
|
344
366
|
? (error, response, options, rawResponse) => {
|
|
@@ -346,12 +368,16 @@ class NetworkServiceClient {
|
|
|
346
368
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
347
369
|
}
|
|
348
370
|
: undefined;
|
|
349
|
-
return this.innerApiCalls
|
|
371
|
+
return this.innerApiCalls
|
|
372
|
+
.getNetwork(request, options, wrappedCallback)
|
|
350
373
|
?.then(([response, options, rawResponse]) => {
|
|
351
374
|
this._log.info('getNetwork response %j', response);
|
|
352
375
|
return [response, options, rawResponse];
|
|
353
|
-
})
|
|
354
|
-
|
|
376
|
+
})
|
|
377
|
+
.catch((error) => {
|
|
378
|
+
if (error &&
|
|
379
|
+
'statusDetails' in error &&
|
|
380
|
+
error.statusDetails instanceof Array) {
|
|
355
381
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
356
382
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
357
383
|
}
|
|
@@ -371,25 +397,107 @@ class NetworkServiceClient {
|
|
|
371
397
|
options = options || {};
|
|
372
398
|
options.otherArgs = options.otherArgs || {};
|
|
373
399
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
374
|
-
this.initialize().catch(err => {
|
|
375
|
-
|
|
400
|
+
this.initialize().catch((err) => {
|
|
401
|
+
throw err;
|
|
402
|
+
});
|
|
376
403
|
const wrappedCallback = callback
|
|
377
|
-
? (error,
|
|
378
|
-
this._log.info('listNetworks
|
|
379
|
-
callback(error,
|
|
404
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
405
|
+
this._log.info('listNetworks values %j', values);
|
|
406
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
380
407
|
}
|
|
381
408
|
: undefined;
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
409
|
+
this._log.info('listNetworks request %j', request);
|
|
410
|
+
return this.innerApiCalls
|
|
411
|
+
.listNetworks(request, options, wrappedCallback)
|
|
412
|
+
?.then(([response, input, output]) => {
|
|
413
|
+
this._log.info('listNetworks values %j', response);
|
|
414
|
+
return [response, input, output];
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Equivalent to `listNetworks`, but returns a NodeJS Stream object.
|
|
419
|
+
* @param {Object} request
|
|
420
|
+
* The request object that will be sent.
|
|
421
|
+
* @param {number} [request.pageSize]
|
|
422
|
+
* Optional. The maximum number of `Network`s to return. The service may
|
|
423
|
+
* return fewer than this value. If unspecified, at most 50 `Network`s will be
|
|
424
|
+
* returned. The maximum value is 1000; values greater than 1000 will be
|
|
425
|
+
* coerced to 1000.
|
|
426
|
+
* @param {string} [request.pageToken]
|
|
427
|
+
* Optional. A page token, received from a previous `ListNetworks` call.
|
|
428
|
+
* Provide this to retrieve the subsequent page.
|
|
429
|
+
*
|
|
430
|
+
* When paginating, all other parameters provided to `ListNetworks` must match
|
|
431
|
+
* the call that provided the page token.
|
|
432
|
+
* @param {number} [request.skip]
|
|
433
|
+
* Optional. Number of individual resources to skip while paginating.
|
|
434
|
+
* @param {object} [options]
|
|
435
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
436
|
+
* @returns {Stream}
|
|
437
|
+
* An object stream which emits an object representing {@link protos.google.ads.admanager.v1.Network|Network} on 'data' event.
|
|
438
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
439
|
+
* times as needed. Note that it can affect your quota.
|
|
440
|
+
* We recommend using `listNetworksAsync()`
|
|
441
|
+
* method described below for async iteration which you can stop as needed.
|
|
442
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
443
|
+
* for more details and examples.
|
|
444
|
+
*/
|
|
445
|
+
listNetworksStream(request, options) {
|
|
446
|
+
request = request || {};
|
|
447
|
+
options = options || {};
|
|
448
|
+
options.otherArgs = options.otherArgs || {};
|
|
449
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
450
|
+
const defaultCallSettings = this._defaults['listNetworks'];
|
|
451
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
452
|
+
this.initialize().catch((err) => {
|
|
453
|
+
throw err;
|
|
454
|
+
});
|
|
455
|
+
this._log.info('listNetworks stream %j', request);
|
|
456
|
+
return this.descriptors.page.listNetworks.createStream(this.innerApiCalls.listNetworks, request, callSettings);
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Equivalent to `listNetworks`, but returns an iterable object.
|
|
460
|
+
*
|
|
461
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
462
|
+
* @param {Object} request
|
|
463
|
+
* The request object that will be sent.
|
|
464
|
+
* @param {number} [request.pageSize]
|
|
465
|
+
* Optional. The maximum number of `Network`s to return. The service may
|
|
466
|
+
* return fewer than this value. If unspecified, at most 50 `Network`s will be
|
|
467
|
+
* returned. The maximum value is 1000; values greater than 1000 will be
|
|
468
|
+
* coerced to 1000.
|
|
469
|
+
* @param {string} [request.pageToken]
|
|
470
|
+
* Optional. A page token, received from a previous `ListNetworks` call.
|
|
471
|
+
* Provide this to retrieve the subsequent page.
|
|
472
|
+
*
|
|
473
|
+
* When paginating, all other parameters provided to `ListNetworks` must match
|
|
474
|
+
* the call that provided the page token.
|
|
475
|
+
* @param {number} [request.skip]
|
|
476
|
+
* Optional. Number of individual resources to skip while paginating.
|
|
477
|
+
* @param {object} [options]
|
|
478
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
479
|
+
* @returns {Object}
|
|
480
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
481
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
482
|
+
* {@link protos.google.ads.admanager.v1.Network|Network}. The API will be called under the hood as needed, once per the page,
|
|
483
|
+
* so you can stop the iteration when you don't need more results.
|
|
484
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
485
|
+
* for more details and examples.
|
|
486
|
+
* @example <caption>include:samples/generated/v1/network_service.list_networks.js</caption>
|
|
487
|
+
* region_tag:admanager_v1_generated_NetworkService_ListNetworks_async
|
|
488
|
+
*/
|
|
489
|
+
listNetworksAsync(request, options) {
|
|
490
|
+
request = request || {};
|
|
491
|
+
options = options || {};
|
|
492
|
+
options.otherArgs = options.otherArgs || {};
|
|
493
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
494
|
+
const defaultCallSettings = this._defaults['listNetworks'];
|
|
495
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
496
|
+
this.initialize().catch((err) => {
|
|
497
|
+
throw err;
|
|
392
498
|
});
|
|
499
|
+
this._log.info('listNetworks iterate %j', request);
|
|
500
|
+
return this.descriptors.page.listNetworks.asyncIterate(this.innerApiCalls['listNetworks'], request, callSettings);
|
|
393
501
|
}
|
|
394
502
|
// --------------------
|
|
395
503
|
// -- Path templates --
|
|
@@ -417,7 +525,8 @@ class NetworkServiceClient {
|
|
|
417
525
|
* @returns {string} A string representing the network_code.
|
|
418
526
|
*/
|
|
419
527
|
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
420
|
-
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
528
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
529
|
+
.network_code;
|
|
421
530
|
}
|
|
422
531
|
/**
|
|
423
532
|
* Parse the asset_key from AdBreak resource.
|
|
@@ -538,7 +647,8 @@ class NetworkServiceClient {
|
|
|
538
647
|
* @returns {string} A string representing the network_code.
|
|
539
648
|
*/
|
|
540
649
|
matchNetworkCodeFromApplicationName(applicationName) {
|
|
541
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
650
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
651
|
+
.network_code;
|
|
542
652
|
}
|
|
543
653
|
/**
|
|
544
654
|
* Parse the application from Application resource.
|
|
@@ -548,7 +658,8 @@ class NetworkServiceClient {
|
|
|
548
658
|
* @returns {string} A string representing the application.
|
|
549
659
|
*/
|
|
550
660
|
matchApplicationFromApplicationName(applicationName) {
|
|
551
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
661
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
662
|
+
.application;
|
|
552
663
|
}
|
|
553
664
|
/**
|
|
554
665
|
* Return a fully-qualified audienceSegment resource name string.
|
|
@@ -637,7 +748,8 @@ class NetworkServiceClient {
|
|
|
637
748
|
* @returns {string} A string representing the network_code.
|
|
638
749
|
*/
|
|
639
750
|
matchNetworkCodeFromBrowserName(browserName) {
|
|
640
|
-
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
751
|
+
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
752
|
+
.network_code;
|
|
641
753
|
}
|
|
642
754
|
/**
|
|
643
755
|
* Parse the browser from Browser resource.
|
|
@@ -682,6 +794,39 @@ class NetworkServiceClient {
|
|
|
682
794
|
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
683
795
|
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
684
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
|
+
}
|
|
685
830
|
/**
|
|
686
831
|
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
687
832
|
*
|
|
@@ -769,7 +914,8 @@ class NetworkServiceClient {
|
|
|
769
914
|
* @returns {string} A string representing the network_code.
|
|
770
915
|
*/
|
|
771
916
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
772
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
917
|
+
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
918
|
+
.network_code;
|
|
773
919
|
}
|
|
774
920
|
/**
|
|
775
921
|
* Parse the company from Company resource.
|
|
@@ -802,7 +948,8 @@ class NetworkServiceClient {
|
|
|
802
948
|
* @returns {string} A string representing the network_code.
|
|
803
949
|
*/
|
|
804
950
|
matchNetworkCodeFromContactName(contactName) {
|
|
805
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
951
|
+
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
952
|
+
.network_code;
|
|
806
953
|
}
|
|
807
954
|
/**
|
|
808
955
|
* Parse the contact from Contact resource.
|
|
@@ -835,7 +982,8 @@ class NetworkServiceClient {
|
|
|
835
982
|
* @returns {string} A string representing the network_code.
|
|
836
983
|
*/
|
|
837
984
|
matchNetworkCodeFromContentName(contentName) {
|
|
838
|
-
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
985
|
+
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
986
|
+
.network_code;
|
|
839
987
|
}
|
|
840
988
|
/**
|
|
841
989
|
* Parse the content from Content resource.
|
|
@@ -868,7 +1016,8 @@ class NetworkServiceClient {
|
|
|
868
1016
|
* @returns {string} A string representing the network_code.
|
|
869
1017
|
*/
|
|
870
1018
|
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
871
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1019
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1020
|
+
.network_code;
|
|
872
1021
|
}
|
|
873
1022
|
/**
|
|
874
1023
|
* Parse the content_bundle from ContentBundle resource.
|
|
@@ -878,7 +1027,8 @@ class NetworkServiceClient {
|
|
|
878
1027
|
* @returns {string} A string representing the content_bundle.
|
|
879
1028
|
*/
|
|
880
1029
|
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
881
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1030
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1031
|
+
.content_bundle;
|
|
882
1032
|
}
|
|
883
1033
|
/**
|
|
884
1034
|
* Return a fully-qualified contentLabel resource name string.
|
|
@@ -901,7 +1051,8 @@ class NetworkServiceClient {
|
|
|
901
1051
|
* @returns {string} A string representing the network_code.
|
|
902
1052
|
*/
|
|
903
1053
|
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
904
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1054
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1055
|
+
.network_code;
|
|
905
1056
|
}
|
|
906
1057
|
/**
|
|
907
1058
|
* Parse the content_label from ContentLabel resource.
|
|
@@ -911,7 +1062,8 @@ class NetworkServiceClient {
|
|
|
911
1062
|
* @returns {string} A string representing the content_label.
|
|
912
1063
|
*/
|
|
913
1064
|
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
914
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1065
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1066
|
+
.content_label;
|
|
915
1067
|
}
|
|
916
1068
|
/**
|
|
917
1069
|
* Return a fully-qualified creativeTemplate resource name string.
|
|
@@ -967,7 +1119,8 @@ class NetworkServiceClient {
|
|
|
967
1119
|
* @returns {string} A string representing the network_code.
|
|
968
1120
|
*/
|
|
969
1121
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
970
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1122
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1123
|
+
.network_code;
|
|
971
1124
|
}
|
|
972
1125
|
/**
|
|
973
1126
|
* Parse the custom_field from CustomField resource.
|
|
@@ -977,7 +1130,8 @@ class NetworkServiceClient {
|
|
|
977
1130
|
* @returns {string} A string representing the custom_field.
|
|
978
1131
|
*/
|
|
979
1132
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
980
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1133
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1134
|
+
.custom_field;
|
|
981
1135
|
}
|
|
982
1136
|
/**
|
|
983
1137
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -1198,7 +1352,8 @@ class NetworkServiceClient {
|
|
|
1198
1352
|
* @returns {string} A string representing the network_code.
|
|
1199
1353
|
*/
|
|
1200
1354
|
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
1201
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1355
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1356
|
+
.network_code;
|
|
1202
1357
|
}
|
|
1203
1358
|
/**
|
|
1204
1359
|
* Parse the geo_target from GeoTarget resource.
|
|
@@ -1208,7 +1363,8 @@ class NetworkServiceClient {
|
|
|
1208
1363
|
* @returns {string} A string representing the geo_target.
|
|
1209
1364
|
*/
|
|
1210
1365
|
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
1211
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1366
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1367
|
+
.geo_target;
|
|
1212
1368
|
}
|
|
1213
1369
|
/**
|
|
1214
1370
|
* Return a fully-qualified label resource name string.
|
|
@@ -1243,6 +1399,76 @@ class NetworkServiceClient {
|
|
|
1243
1399
|
matchLabelFromLabelName(labelName) {
|
|
1244
1400
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
1245
1401
|
}
|
|
1402
|
+
/**
|
|
1403
|
+
* Return a fully-qualified lineItem resource name string.
|
|
1404
|
+
*
|
|
1405
|
+
* @param {string} network_code
|
|
1406
|
+
* @param {string} line_item
|
|
1407
|
+
* @returns {string} Resource name string.
|
|
1408
|
+
*/
|
|
1409
|
+
lineItemPath(networkCode, lineItem) {
|
|
1410
|
+
return this.pathTemplates.lineItemPathTemplate.render({
|
|
1411
|
+
network_code: networkCode,
|
|
1412
|
+
line_item: lineItem,
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Parse the network_code from LineItem resource.
|
|
1417
|
+
*
|
|
1418
|
+
* @param {string} lineItemName
|
|
1419
|
+
* A fully-qualified path representing LineItem resource.
|
|
1420
|
+
* @returns {string} A string representing the network_code.
|
|
1421
|
+
*/
|
|
1422
|
+
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1423
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1424
|
+
.network_code;
|
|
1425
|
+
}
|
|
1426
|
+
/**
|
|
1427
|
+
* Parse the line_item from LineItem resource.
|
|
1428
|
+
*
|
|
1429
|
+
* @param {string} lineItemName
|
|
1430
|
+
* A fully-qualified path representing LineItem resource.
|
|
1431
|
+
* @returns {string} A string representing the line_item.
|
|
1432
|
+
*/
|
|
1433
|
+
matchLineItemFromLineItemName(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;
|
|
1471
|
+
}
|
|
1246
1472
|
/**
|
|
1247
1473
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
1248
1474
|
*
|
|
@@ -1297,7 +1523,8 @@ class NetworkServiceClient {
|
|
|
1297
1523
|
* @returns {string} A string representing the network_code.
|
|
1298
1524
|
*/
|
|
1299
1525
|
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1300
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1526
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1527
|
+
.network_code;
|
|
1301
1528
|
}
|
|
1302
1529
|
/**
|
|
1303
1530
|
* Parse the mobile_carrier from MobileCarrier resource.
|
|
@@ -1307,7 +1534,8 @@ class NetworkServiceClient {
|
|
|
1307
1534
|
* @returns {string} A string representing the mobile_carrier.
|
|
1308
1535
|
*/
|
|
1309
1536
|
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1310
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1537
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1538
|
+
.mobile_carrier;
|
|
1311
1539
|
}
|
|
1312
1540
|
/**
|
|
1313
1541
|
* Return a fully-qualified mobileDevice resource name string.
|
|
@@ -1330,7 +1558,8 @@ class NetworkServiceClient {
|
|
|
1330
1558
|
* @returns {string} A string representing the network_code.
|
|
1331
1559
|
*/
|
|
1332
1560
|
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1333
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1561
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1562
|
+
.network_code;
|
|
1334
1563
|
}
|
|
1335
1564
|
/**
|
|
1336
1565
|
* Parse the mobile_device from MobileDevice resource.
|
|
@@ -1340,7 +1569,8 @@ class NetworkServiceClient {
|
|
|
1340
1569
|
* @returns {string} A string representing the mobile_device.
|
|
1341
1570
|
*/
|
|
1342
1571
|
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1343
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1572
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1573
|
+
.mobile_device;
|
|
1344
1574
|
}
|
|
1345
1575
|
/**
|
|
1346
1576
|
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
@@ -1394,7 +1624,8 @@ class NetworkServiceClient {
|
|
|
1394
1624
|
* @returns {string} A string representing the network_code.
|
|
1395
1625
|
*/
|
|
1396
1626
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
1397
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1627
|
+
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1628
|
+
.network_code;
|
|
1398
1629
|
}
|
|
1399
1630
|
/**
|
|
1400
1631
|
* Return a fully-qualified operatingSystem resource name string.
|
|
@@ -1516,7 +1747,8 @@ class NetworkServiceClient {
|
|
|
1516
1747
|
* @returns {string} A string representing the network_code.
|
|
1517
1748
|
*/
|
|
1518
1749
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
1519
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1750
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1751
|
+
.network_code;
|
|
1520
1752
|
}
|
|
1521
1753
|
/**
|
|
1522
1754
|
* Parse the placement from Placement resource.
|
|
@@ -1526,7 +1758,8 @@ class NetworkServiceClient {
|
|
|
1526
1758
|
* @returns {string} A string representing the placement.
|
|
1527
1759
|
*/
|
|
1528
1760
|
matchPlacementFromPlacementName(placementName) {
|
|
1529
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1761
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1762
|
+
.placement;
|
|
1530
1763
|
}
|
|
1531
1764
|
/**
|
|
1532
1765
|
* Return a fully-qualified privateAuction resource name string.
|
|
@@ -1660,6 +1893,39 @@ class NetworkServiceClient {
|
|
|
1660
1893
|
matchReportFromReportName(reportName) {
|
|
1661
1894
|
return this.pathTemplates.reportPathTemplate.match(reportName).report;
|
|
1662
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
|
+
}
|
|
1663
1929
|
/**
|
|
1664
1930
|
* Return a fully-qualified role resource name string.
|
|
1665
1931
|
*
|
|
@@ -1846,7 +2112,8 @@ class NetworkServiceClient {
|
|
|
1846
2112
|
* @returns {string} A string representing the network_code.
|
|
1847
2113
|
*/
|
|
1848
2114
|
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
1849
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2115
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2116
|
+
.network_code;
|
|
1850
2117
|
}
|
|
1851
2118
|
/**
|
|
1852
2119
|
* Parse the web_property from WebProperty resource.
|
|
@@ -1856,7 +2123,8 @@ class NetworkServiceClient {
|
|
|
1856
2123
|
* @returns {string} A string representing the web_property.
|
|
1857
2124
|
*/
|
|
1858
2125
|
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
1859
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2126
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2127
|
+
.web_property;
|
|
1860
2128
|
}
|
|
1861
2129
|
/**
|
|
1862
2130
|
* Terminate the gRPC channel and close the client.
|
|
@@ -1866,7 +2134,7 @@ class NetworkServiceClient {
|
|
|
1866
2134
|
*/
|
|
1867
2135
|
close() {
|
|
1868
2136
|
if (this.networkServiceStub && !this._terminated) {
|
|
1869
|
-
return this.networkServiceStub.then(stub => {
|
|
2137
|
+
return this.networkServiceStub.then((stub) => {
|
|
1870
2138
|
this._log.info('ending gRPC channel');
|
|
1871
2139
|
this._terminated = true;
|
|
1872
2140
|
stub.close();
|