@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 PlacementServiceClient {
|
|
|
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 PlacementServiceClient {
|
|
|
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 PlacementServiceClient {
|
|
|
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 PlacementServiceClient {
|
|
|
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 PlacementServiceClient {
|
|
|
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 PlacementServiceClient {
|
|
|
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}'),
|
|
@@ -216,7 +226,7 @@ class PlacementServiceClient {
|
|
|
216
226
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
217
227
|
// pages). Denote the keys used for pagination and results.
|
|
218
228
|
this.descriptors.page = {
|
|
219
|
-
listPlacements: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'placements')
|
|
229
|
+
listPlacements: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'placements'),
|
|
220
230
|
};
|
|
221
231
|
// Put together the default options sent with requests.
|
|
222
232
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.PlacementService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -245,15 +255,25 @@ class PlacementServiceClient {
|
|
|
245
255
|
}
|
|
246
256
|
// Put together the "service stub" for
|
|
247
257
|
// google.ads.admanager.v1.PlacementService.
|
|
248
|
-
this.placementServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
249
|
-
this._protos.lookupService('google.ads.admanager.v1.PlacementService')
|
|
250
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
251
|
-
|
|
258
|
+
this.placementServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
259
|
+
? this._protos.lookupService('google.ads.admanager.v1.PlacementService')
|
|
260
|
+
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
261
|
+
this._protos.google.ads.admanager.v1.PlacementService, this._opts, this._providedCustomServicePath);
|
|
252
262
|
// Iterate over each of the methods that the service provides
|
|
253
263
|
// and create an API call method for each.
|
|
254
|
-
const placementServiceStubMethods = [
|
|
264
|
+
const placementServiceStubMethods = [
|
|
265
|
+
'getPlacement',
|
|
266
|
+
'listPlacements',
|
|
267
|
+
'createPlacement',
|
|
268
|
+
'updatePlacement',
|
|
269
|
+
'batchCreatePlacements',
|
|
270
|
+
'batchUpdatePlacements',
|
|
271
|
+
'batchActivatePlacements',
|
|
272
|
+
'batchDeactivatePlacements',
|
|
273
|
+
'batchArchivePlacements',
|
|
274
|
+
];
|
|
255
275
|
for (const methodName of placementServiceStubMethods) {
|
|
256
|
-
const callPromise = this.placementServiceStub.then(stub => (...args) => {
|
|
276
|
+
const callPromise = this.placementServiceStub.then((stub) => (...args) => {
|
|
257
277
|
if (this._terminated) {
|
|
258
278
|
return Promise.reject('The client has already been closed.');
|
|
259
279
|
}
|
|
@@ -262,8 +282,7 @@ class PlacementServiceClient {
|
|
|
262
282
|
}, (err) => () => {
|
|
263
283
|
throw err;
|
|
264
284
|
});
|
|
265
|
-
const descriptor = this.descriptors.page[methodName] ||
|
|
266
|
-
undefined;
|
|
285
|
+
const descriptor = this.descriptors.page[methodName] || undefined;
|
|
267
286
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
268
287
|
this.innerApiCalls[methodName] = apiCall;
|
|
269
288
|
}
|
|
@@ -275,7 +294,8 @@ class PlacementServiceClient {
|
|
|
275
294
|
* @returns {string} The DNS address for this service.
|
|
276
295
|
*/
|
|
277
296
|
static get servicePath() {
|
|
278
|
-
if (typeof process === 'object' &&
|
|
297
|
+
if (typeof process === 'object' &&
|
|
298
|
+
typeof process.emitWarning === 'function') {
|
|
279
299
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
280
300
|
}
|
|
281
301
|
return 'admanager.googleapis.com';
|
|
@@ -286,7 +306,8 @@ class PlacementServiceClient {
|
|
|
286
306
|
* @returns {string} The DNS address for this service.
|
|
287
307
|
*/
|
|
288
308
|
static get apiEndpoint() {
|
|
289
|
-
if (typeof process === 'object' &&
|
|
309
|
+
if (typeof process === 'object' &&
|
|
310
|
+
typeof process.emitWarning === 'function') {
|
|
290
311
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
291
312
|
}
|
|
292
313
|
return 'admanager.googleapis.com';
|
|
@@ -315,7 +336,8 @@ class PlacementServiceClient {
|
|
|
315
336
|
*/
|
|
316
337
|
static get scopes() {
|
|
317
338
|
return [
|
|
318
|
-
'https://www.googleapis.com/auth/admanager'
|
|
339
|
+
'https://www.googleapis.com/auth/admanager',
|
|
340
|
+
'https://www.googleapis.com/auth/admanager.readonly',
|
|
319
341
|
];
|
|
320
342
|
}
|
|
321
343
|
/**
|
|
@@ -342,10 +364,13 @@ class PlacementServiceClient {
|
|
|
342
364
|
options = options || {};
|
|
343
365
|
options.otherArgs = options.otherArgs || {};
|
|
344
366
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
345
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
346
|
-
|
|
367
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
368
|
+
this._gaxModule.routingHeader.fromParams({
|
|
369
|
+
name: request.name ?? '',
|
|
370
|
+
});
|
|
371
|
+
this.initialize().catch((err) => {
|
|
372
|
+
throw err;
|
|
347
373
|
});
|
|
348
|
-
this.initialize().catch(err => { throw err; });
|
|
349
374
|
this._log.info('getPlacement request %j', request);
|
|
350
375
|
const wrappedCallback = callback
|
|
351
376
|
? (error, response, options, rawResponse) => {
|
|
@@ -353,12 +378,16 @@ class PlacementServiceClient {
|
|
|
353
378
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
354
379
|
}
|
|
355
380
|
: undefined;
|
|
356
|
-
return this.innerApiCalls
|
|
381
|
+
return this.innerApiCalls
|
|
382
|
+
.getPlacement(request, options, wrappedCallback)
|
|
357
383
|
?.then(([response, options, rawResponse]) => {
|
|
358
384
|
this._log.info('getPlacement response %j', response);
|
|
359
385
|
return [response, options, rawResponse];
|
|
360
|
-
})
|
|
361
|
-
|
|
386
|
+
})
|
|
387
|
+
.catch((error) => {
|
|
388
|
+
if (error &&
|
|
389
|
+
'statusDetails' in error &&
|
|
390
|
+
error.statusDetails instanceof Array) {
|
|
362
391
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
363
392
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
364
393
|
}
|
|
@@ -378,10 +407,13 @@ class PlacementServiceClient {
|
|
|
378
407
|
options = options || {};
|
|
379
408
|
options.otherArgs = options.otherArgs || {};
|
|
380
409
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
381
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
382
|
-
|
|
410
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
411
|
+
this._gaxModule.routingHeader.fromParams({
|
|
412
|
+
parent: request.parent ?? '',
|
|
413
|
+
});
|
|
414
|
+
this.initialize().catch((err) => {
|
|
415
|
+
throw err;
|
|
383
416
|
});
|
|
384
|
-
this.initialize().catch(err => { throw err; });
|
|
385
417
|
this._log.info('createPlacement request %j', request);
|
|
386
418
|
const wrappedCallback = callback
|
|
387
419
|
? (error, response, options, rawResponse) => {
|
|
@@ -389,12 +421,16 @@ class PlacementServiceClient {
|
|
|
389
421
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
390
422
|
}
|
|
391
423
|
: undefined;
|
|
392
|
-
return this.innerApiCalls
|
|
424
|
+
return this.innerApiCalls
|
|
425
|
+
.createPlacement(request, options, wrappedCallback)
|
|
393
426
|
?.then(([response, options, rawResponse]) => {
|
|
394
427
|
this._log.info('createPlacement response %j', response);
|
|
395
428
|
return [response, options, rawResponse];
|
|
396
|
-
})
|
|
397
|
-
|
|
429
|
+
})
|
|
430
|
+
.catch((error) => {
|
|
431
|
+
if (error &&
|
|
432
|
+
'statusDetails' in error &&
|
|
433
|
+
error.statusDetails instanceof Array) {
|
|
398
434
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
399
435
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
400
436
|
}
|
|
@@ -414,10 +450,13 @@ class PlacementServiceClient {
|
|
|
414
450
|
options = options || {};
|
|
415
451
|
options.otherArgs = options.otherArgs || {};
|
|
416
452
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
417
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
418
|
-
|
|
453
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
454
|
+
this._gaxModule.routingHeader.fromParams({
|
|
455
|
+
'placement.name': request.placement.name ?? '',
|
|
456
|
+
});
|
|
457
|
+
this.initialize().catch((err) => {
|
|
458
|
+
throw err;
|
|
419
459
|
});
|
|
420
|
-
this.initialize().catch(err => { throw err; });
|
|
421
460
|
this._log.info('updatePlacement request %j', request);
|
|
422
461
|
const wrappedCallback = callback
|
|
423
462
|
? (error, response, options, rawResponse) => {
|
|
@@ -425,12 +464,16 @@ class PlacementServiceClient {
|
|
|
425
464
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
426
465
|
}
|
|
427
466
|
: undefined;
|
|
428
|
-
return this.innerApiCalls
|
|
467
|
+
return this.innerApiCalls
|
|
468
|
+
.updatePlacement(request, options, wrappedCallback)
|
|
429
469
|
?.then(([response, options, rawResponse]) => {
|
|
430
470
|
this._log.info('updatePlacement response %j', response);
|
|
431
471
|
return [response, options, rawResponse];
|
|
432
|
-
})
|
|
433
|
-
|
|
472
|
+
})
|
|
473
|
+
.catch((error) => {
|
|
474
|
+
if (error &&
|
|
475
|
+
'statusDetails' in error &&
|
|
476
|
+
error.statusDetails instanceof Array) {
|
|
434
477
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
435
478
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
436
479
|
}
|
|
@@ -450,10 +493,13 @@ class PlacementServiceClient {
|
|
|
450
493
|
options = options || {};
|
|
451
494
|
options.otherArgs = options.otherArgs || {};
|
|
452
495
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
453
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
454
|
-
|
|
496
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
497
|
+
this._gaxModule.routingHeader.fromParams({
|
|
498
|
+
parent: request.parent ?? '',
|
|
499
|
+
});
|
|
500
|
+
this.initialize().catch((err) => {
|
|
501
|
+
throw err;
|
|
455
502
|
});
|
|
456
|
-
this.initialize().catch(err => { throw err; });
|
|
457
503
|
this._log.info('batchCreatePlacements request %j', request);
|
|
458
504
|
const wrappedCallback = callback
|
|
459
505
|
? (error, response, options, rawResponse) => {
|
|
@@ -461,12 +507,16 @@ class PlacementServiceClient {
|
|
|
461
507
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
462
508
|
}
|
|
463
509
|
: undefined;
|
|
464
|
-
return this.innerApiCalls
|
|
510
|
+
return this.innerApiCalls
|
|
511
|
+
.batchCreatePlacements(request, options, wrappedCallback)
|
|
465
512
|
?.then(([response, options, rawResponse]) => {
|
|
466
513
|
this._log.info('batchCreatePlacements response %j', response);
|
|
467
514
|
return [response, options, rawResponse];
|
|
468
|
-
})
|
|
469
|
-
|
|
515
|
+
})
|
|
516
|
+
.catch((error) => {
|
|
517
|
+
if (error &&
|
|
518
|
+
'statusDetails' in error &&
|
|
519
|
+
error.statusDetails instanceof Array) {
|
|
470
520
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
471
521
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
472
522
|
}
|
|
@@ -486,10 +536,13 @@ class PlacementServiceClient {
|
|
|
486
536
|
options = options || {};
|
|
487
537
|
options.otherArgs = options.otherArgs || {};
|
|
488
538
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
489
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
490
|
-
|
|
539
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
540
|
+
this._gaxModule.routingHeader.fromParams({
|
|
541
|
+
parent: request.parent ?? '',
|
|
542
|
+
});
|
|
543
|
+
this.initialize().catch((err) => {
|
|
544
|
+
throw err;
|
|
491
545
|
});
|
|
492
|
-
this.initialize().catch(err => { throw err; });
|
|
493
546
|
this._log.info('batchUpdatePlacements request %j', request);
|
|
494
547
|
const wrappedCallback = callback
|
|
495
548
|
? (error, response, options, rawResponse) => {
|
|
@@ -497,12 +550,16 @@ class PlacementServiceClient {
|
|
|
497
550
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
498
551
|
}
|
|
499
552
|
: undefined;
|
|
500
|
-
return this.innerApiCalls
|
|
553
|
+
return this.innerApiCalls
|
|
554
|
+
.batchUpdatePlacements(request, options, wrappedCallback)
|
|
501
555
|
?.then(([response, options, rawResponse]) => {
|
|
502
556
|
this._log.info('batchUpdatePlacements response %j', response);
|
|
503
557
|
return [response, options, rawResponse];
|
|
504
|
-
})
|
|
505
|
-
|
|
558
|
+
})
|
|
559
|
+
.catch((error) => {
|
|
560
|
+
if (error &&
|
|
561
|
+
'statusDetails' in error &&
|
|
562
|
+
error.statusDetails instanceof Array) {
|
|
506
563
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
507
564
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
508
565
|
}
|
|
@@ -522,10 +579,13 @@ class PlacementServiceClient {
|
|
|
522
579
|
options = options || {};
|
|
523
580
|
options.otherArgs = options.otherArgs || {};
|
|
524
581
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
525
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
526
|
-
|
|
582
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
583
|
+
this._gaxModule.routingHeader.fromParams({
|
|
584
|
+
parent: request.parent ?? '',
|
|
585
|
+
});
|
|
586
|
+
this.initialize().catch((err) => {
|
|
587
|
+
throw err;
|
|
527
588
|
});
|
|
528
|
-
this.initialize().catch(err => { throw err; });
|
|
529
589
|
this._log.info('batchActivatePlacements request %j', request);
|
|
530
590
|
const wrappedCallback = callback
|
|
531
591
|
? (error, response, options, rawResponse) => {
|
|
@@ -533,12 +593,16 @@ class PlacementServiceClient {
|
|
|
533
593
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
534
594
|
}
|
|
535
595
|
: undefined;
|
|
536
|
-
return this.innerApiCalls
|
|
596
|
+
return this.innerApiCalls
|
|
597
|
+
.batchActivatePlacements(request, options, wrappedCallback)
|
|
537
598
|
?.then(([response, options, rawResponse]) => {
|
|
538
599
|
this._log.info('batchActivatePlacements response %j', response);
|
|
539
600
|
return [response, options, rawResponse];
|
|
540
|
-
})
|
|
541
|
-
|
|
601
|
+
})
|
|
602
|
+
.catch((error) => {
|
|
603
|
+
if (error &&
|
|
604
|
+
'statusDetails' in error &&
|
|
605
|
+
error.statusDetails instanceof Array) {
|
|
542
606
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
543
607
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
544
608
|
}
|
|
@@ -558,10 +622,13 @@ class PlacementServiceClient {
|
|
|
558
622
|
options = options || {};
|
|
559
623
|
options.otherArgs = options.otherArgs || {};
|
|
560
624
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
561
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
562
|
-
|
|
625
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
626
|
+
this._gaxModule.routingHeader.fromParams({
|
|
627
|
+
parent: request.parent ?? '',
|
|
628
|
+
});
|
|
629
|
+
this.initialize().catch((err) => {
|
|
630
|
+
throw err;
|
|
563
631
|
});
|
|
564
|
-
this.initialize().catch(err => { throw err; });
|
|
565
632
|
this._log.info('batchDeactivatePlacements request %j', request);
|
|
566
633
|
const wrappedCallback = callback
|
|
567
634
|
? (error, response, options, rawResponse) => {
|
|
@@ -569,12 +636,16 @@ class PlacementServiceClient {
|
|
|
569
636
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
570
637
|
}
|
|
571
638
|
: undefined;
|
|
572
|
-
return this.innerApiCalls
|
|
639
|
+
return this.innerApiCalls
|
|
640
|
+
.batchDeactivatePlacements(request, options, wrappedCallback)
|
|
573
641
|
?.then(([response, options, rawResponse]) => {
|
|
574
642
|
this._log.info('batchDeactivatePlacements response %j', response);
|
|
575
643
|
return [response, options, rawResponse];
|
|
576
|
-
})
|
|
577
|
-
|
|
644
|
+
})
|
|
645
|
+
.catch((error) => {
|
|
646
|
+
if (error &&
|
|
647
|
+
'statusDetails' in error &&
|
|
648
|
+
error.statusDetails instanceof Array) {
|
|
578
649
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
579
650
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
580
651
|
}
|
|
@@ -594,10 +665,13 @@ class PlacementServiceClient {
|
|
|
594
665
|
options = options || {};
|
|
595
666
|
options.otherArgs = options.otherArgs || {};
|
|
596
667
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
597
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
598
|
-
|
|
668
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
669
|
+
this._gaxModule.routingHeader.fromParams({
|
|
670
|
+
parent: request.parent ?? '',
|
|
671
|
+
});
|
|
672
|
+
this.initialize().catch((err) => {
|
|
673
|
+
throw err;
|
|
599
674
|
});
|
|
600
|
-
this.initialize().catch(err => { throw err; });
|
|
601
675
|
this._log.info('batchArchivePlacements request %j', request);
|
|
602
676
|
const wrappedCallback = callback
|
|
603
677
|
? (error, response, options, rawResponse) => {
|
|
@@ -605,12 +679,16 @@ class PlacementServiceClient {
|
|
|
605
679
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
606
680
|
}
|
|
607
681
|
: undefined;
|
|
608
|
-
return this.innerApiCalls
|
|
682
|
+
return this.innerApiCalls
|
|
683
|
+
.batchArchivePlacements(request, options, wrappedCallback)
|
|
609
684
|
?.then(([response, options, rawResponse]) => {
|
|
610
685
|
this._log.info('batchArchivePlacements response %j', response);
|
|
611
686
|
return [response, options, rawResponse];
|
|
612
|
-
})
|
|
613
|
-
|
|
687
|
+
})
|
|
688
|
+
.catch((error) => {
|
|
689
|
+
if (error &&
|
|
690
|
+
'statusDetails' in error &&
|
|
691
|
+
error.statusDetails instanceof Array) {
|
|
614
692
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
615
693
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
616
694
|
}
|
|
@@ -630,10 +708,13 @@ class PlacementServiceClient {
|
|
|
630
708
|
options = options || {};
|
|
631
709
|
options.otherArgs = options.otherArgs || {};
|
|
632
710
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
633
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
634
|
-
|
|
711
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
712
|
+
this._gaxModule.routingHeader.fromParams({
|
|
713
|
+
parent: request.parent ?? '',
|
|
714
|
+
});
|
|
715
|
+
this.initialize().catch((err) => {
|
|
716
|
+
throw err;
|
|
635
717
|
});
|
|
636
|
-
this.initialize().catch(err => { throw err; });
|
|
637
718
|
const wrappedCallback = callback
|
|
638
719
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
639
720
|
this._log.info('listPlacements values %j', values);
|
|
@@ -668,8 +749,19 @@ class PlacementServiceClient {
|
|
|
668
749
|
* match the call that provided the page token.
|
|
669
750
|
* @param {string} [request.filter]
|
|
670
751
|
* Optional. Expression to filter the response.
|
|
671
|
-
*
|
|
672
|
-
*
|
|
752
|
+
* See syntax details at
|
|
753
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
754
|
+
*
|
|
755
|
+
* <b>Filterable fields:</b>
|
|
756
|
+
* <ul style="list-style-type:none">
|
|
757
|
+
* <li><code>description</code></li>
|
|
758
|
+
* <li><code>displayName</code></li>
|
|
759
|
+
* <li><code>name</code></li>
|
|
760
|
+
* <li><code>placementCode</code></li>
|
|
761
|
+
* <li><code>status</code></li>
|
|
762
|
+
* <li><code>targetedAdUnits</code></li>
|
|
763
|
+
* <li><code>updateTime</code></li>
|
|
764
|
+
* </ul>
|
|
673
765
|
* @param {string} [request.orderBy]
|
|
674
766
|
* Optional. Expression to specify sorting order.
|
|
675
767
|
* See syntax details at
|
|
@@ -692,12 +784,15 @@ class PlacementServiceClient {
|
|
|
692
784
|
options = options || {};
|
|
693
785
|
options.otherArgs = options.otherArgs || {};
|
|
694
786
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
695
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
696
|
-
|
|
697
|
-
|
|
787
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
788
|
+
this._gaxModule.routingHeader.fromParams({
|
|
789
|
+
parent: request.parent ?? '',
|
|
790
|
+
});
|
|
698
791
|
const defaultCallSettings = this._defaults['listPlacements'];
|
|
699
792
|
const callSettings = defaultCallSettings.merge(options);
|
|
700
|
-
this.initialize().catch(err => {
|
|
793
|
+
this.initialize().catch((err) => {
|
|
794
|
+
throw err;
|
|
795
|
+
});
|
|
701
796
|
this._log.info('listPlacements stream %j', request);
|
|
702
797
|
return this.descriptors.page.listPlacements.createStream(this.innerApiCalls.listPlacements, request, callSettings);
|
|
703
798
|
}
|
|
@@ -723,8 +818,19 @@ class PlacementServiceClient {
|
|
|
723
818
|
* match the call that provided the page token.
|
|
724
819
|
* @param {string} [request.filter]
|
|
725
820
|
* Optional. Expression to filter the response.
|
|
726
|
-
*
|
|
727
|
-
*
|
|
821
|
+
* See syntax details at
|
|
822
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
823
|
+
*
|
|
824
|
+
* <b>Filterable fields:</b>
|
|
825
|
+
* <ul style="list-style-type:none">
|
|
826
|
+
* <li><code>description</code></li>
|
|
827
|
+
* <li><code>displayName</code></li>
|
|
828
|
+
* <li><code>name</code></li>
|
|
829
|
+
* <li><code>placementCode</code></li>
|
|
830
|
+
* <li><code>status</code></li>
|
|
831
|
+
* <li><code>targetedAdUnits</code></li>
|
|
832
|
+
* <li><code>updateTime</code></li>
|
|
833
|
+
* </ul>
|
|
728
834
|
* @param {string} [request.orderBy]
|
|
729
835
|
* Optional. Expression to specify sorting order.
|
|
730
836
|
* See syntax details at
|
|
@@ -748,12 +854,15 @@ class PlacementServiceClient {
|
|
|
748
854
|
options = options || {};
|
|
749
855
|
options.otherArgs = options.otherArgs || {};
|
|
750
856
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
751
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
752
|
-
|
|
753
|
-
|
|
857
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
858
|
+
this._gaxModule.routingHeader.fromParams({
|
|
859
|
+
parent: request.parent ?? '',
|
|
860
|
+
});
|
|
754
861
|
const defaultCallSettings = this._defaults['listPlacements'];
|
|
755
862
|
const callSettings = defaultCallSettings.merge(options);
|
|
756
|
-
this.initialize().catch(err => {
|
|
863
|
+
this.initialize().catch((err) => {
|
|
864
|
+
throw err;
|
|
865
|
+
});
|
|
757
866
|
this._log.info('listPlacements iterate %j', request);
|
|
758
867
|
return this.descriptors.page.listPlacements.asyncIterate(this.innerApiCalls['listPlacements'], request, callSettings);
|
|
759
868
|
}
|
|
@@ -783,7 +892,8 @@ class PlacementServiceClient {
|
|
|
783
892
|
* @returns {string} A string representing the network_code.
|
|
784
893
|
*/
|
|
785
894
|
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
786
|
-
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
895
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
896
|
+
.network_code;
|
|
787
897
|
}
|
|
788
898
|
/**
|
|
789
899
|
* Parse the asset_key from AdBreak resource.
|
|
@@ -904,7 +1014,8 @@ class PlacementServiceClient {
|
|
|
904
1014
|
* @returns {string} A string representing the network_code.
|
|
905
1015
|
*/
|
|
906
1016
|
matchNetworkCodeFromApplicationName(applicationName) {
|
|
907
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1017
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1018
|
+
.network_code;
|
|
908
1019
|
}
|
|
909
1020
|
/**
|
|
910
1021
|
* Parse the application from Application resource.
|
|
@@ -914,7 +1025,8 @@ class PlacementServiceClient {
|
|
|
914
1025
|
* @returns {string} A string representing the application.
|
|
915
1026
|
*/
|
|
916
1027
|
matchApplicationFromApplicationName(applicationName) {
|
|
917
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1028
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1029
|
+
.application;
|
|
918
1030
|
}
|
|
919
1031
|
/**
|
|
920
1032
|
* Return a fully-qualified audienceSegment resource name string.
|
|
@@ -1003,7 +1115,8 @@ class PlacementServiceClient {
|
|
|
1003
1115
|
* @returns {string} A string representing the network_code.
|
|
1004
1116
|
*/
|
|
1005
1117
|
matchNetworkCodeFromBrowserName(browserName) {
|
|
1006
|
-
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
1118
|
+
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
1119
|
+
.network_code;
|
|
1007
1120
|
}
|
|
1008
1121
|
/**
|
|
1009
1122
|
* Parse the browser from Browser resource.
|
|
@@ -1048,6 +1161,39 @@ class PlacementServiceClient {
|
|
|
1048
1161
|
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
1049
1162
|
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
1050
1163
|
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Return a fully-qualified childPublisher resource name string.
|
|
1166
|
+
*
|
|
1167
|
+
* @param {string} network_code
|
|
1168
|
+
* @param {string} child_publisher
|
|
1169
|
+
* @returns {string} Resource name string.
|
|
1170
|
+
*/
|
|
1171
|
+
childPublisherPath(networkCode, childPublisher) {
|
|
1172
|
+
return this.pathTemplates.childPublisherPathTemplate.render({
|
|
1173
|
+
network_code: networkCode,
|
|
1174
|
+
child_publisher: childPublisher,
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* Parse the network_code from ChildPublisher resource.
|
|
1179
|
+
*
|
|
1180
|
+
* @param {string} childPublisherName
|
|
1181
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
1182
|
+
* @returns {string} A string representing the network_code.
|
|
1183
|
+
*/
|
|
1184
|
+
matchNetworkCodeFromChildPublisherName(childPublisherName) {
|
|
1185
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
|
|
1186
|
+
}
|
|
1187
|
+
/**
|
|
1188
|
+
* Parse the child_publisher from ChildPublisher resource.
|
|
1189
|
+
*
|
|
1190
|
+
* @param {string} childPublisherName
|
|
1191
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
1192
|
+
* @returns {string} A string representing the child_publisher.
|
|
1193
|
+
*/
|
|
1194
|
+
matchChildPublisherFromChildPublisherName(childPublisherName) {
|
|
1195
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
|
|
1196
|
+
}
|
|
1051
1197
|
/**
|
|
1052
1198
|
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
1053
1199
|
*
|
|
@@ -1135,7 +1281,8 @@ class PlacementServiceClient {
|
|
|
1135
1281
|
* @returns {string} A string representing the network_code.
|
|
1136
1282
|
*/
|
|
1137
1283
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
1138
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
1284
|
+
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
1285
|
+
.network_code;
|
|
1139
1286
|
}
|
|
1140
1287
|
/**
|
|
1141
1288
|
* Parse the company from Company resource.
|
|
@@ -1168,7 +1315,8 @@ class PlacementServiceClient {
|
|
|
1168
1315
|
* @returns {string} A string representing the network_code.
|
|
1169
1316
|
*/
|
|
1170
1317
|
matchNetworkCodeFromContactName(contactName) {
|
|
1171
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
1318
|
+
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
1319
|
+
.network_code;
|
|
1172
1320
|
}
|
|
1173
1321
|
/**
|
|
1174
1322
|
* Parse the contact from Contact resource.
|
|
@@ -1201,7 +1349,8 @@ class PlacementServiceClient {
|
|
|
1201
1349
|
* @returns {string} A string representing the network_code.
|
|
1202
1350
|
*/
|
|
1203
1351
|
matchNetworkCodeFromContentName(contentName) {
|
|
1204
|
-
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
1352
|
+
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
1353
|
+
.network_code;
|
|
1205
1354
|
}
|
|
1206
1355
|
/**
|
|
1207
1356
|
* Parse the content from Content resource.
|
|
@@ -1234,7 +1383,8 @@ class PlacementServiceClient {
|
|
|
1234
1383
|
* @returns {string} A string representing the network_code.
|
|
1235
1384
|
*/
|
|
1236
1385
|
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
1237
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1386
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1387
|
+
.network_code;
|
|
1238
1388
|
}
|
|
1239
1389
|
/**
|
|
1240
1390
|
* Parse the content_bundle from ContentBundle resource.
|
|
@@ -1244,7 +1394,8 @@ class PlacementServiceClient {
|
|
|
1244
1394
|
* @returns {string} A string representing the content_bundle.
|
|
1245
1395
|
*/
|
|
1246
1396
|
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
1247
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1397
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1398
|
+
.content_bundle;
|
|
1248
1399
|
}
|
|
1249
1400
|
/**
|
|
1250
1401
|
* Return a fully-qualified contentLabel resource name string.
|
|
@@ -1267,7 +1418,8 @@ class PlacementServiceClient {
|
|
|
1267
1418
|
* @returns {string} A string representing the network_code.
|
|
1268
1419
|
*/
|
|
1269
1420
|
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
1270
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1421
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1422
|
+
.network_code;
|
|
1271
1423
|
}
|
|
1272
1424
|
/**
|
|
1273
1425
|
* Parse the content_label from ContentLabel resource.
|
|
@@ -1277,7 +1429,8 @@ class PlacementServiceClient {
|
|
|
1277
1429
|
* @returns {string} A string representing the content_label.
|
|
1278
1430
|
*/
|
|
1279
1431
|
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
1280
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1432
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1433
|
+
.content_label;
|
|
1281
1434
|
}
|
|
1282
1435
|
/**
|
|
1283
1436
|
* Return a fully-qualified creativeTemplate resource name string.
|
|
@@ -1333,7 +1486,8 @@ class PlacementServiceClient {
|
|
|
1333
1486
|
* @returns {string} A string representing the network_code.
|
|
1334
1487
|
*/
|
|
1335
1488
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
1336
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1489
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1490
|
+
.network_code;
|
|
1337
1491
|
}
|
|
1338
1492
|
/**
|
|
1339
1493
|
* Parse the custom_field from CustomField resource.
|
|
@@ -1343,7 +1497,8 @@ class PlacementServiceClient {
|
|
|
1343
1497
|
* @returns {string} A string representing the custom_field.
|
|
1344
1498
|
*/
|
|
1345
1499
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
1346
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1500
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1501
|
+
.custom_field;
|
|
1347
1502
|
}
|
|
1348
1503
|
/**
|
|
1349
1504
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -1564,7 +1719,8 @@ class PlacementServiceClient {
|
|
|
1564
1719
|
* @returns {string} A string representing the network_code.
|
|
1565
1720
|
*/
|
|
1566
1721
|
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
1567
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1722
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1723
|
+
.network_code;
|
|
1568
1724
|
}
|
|
1569
1725
|
/**
|
|
1570
1726
|
* Parse the geo_target from GeoTarget resource.
|
|
@@ -1574,7 +1730,8 @@ class PlacementServiceClient {
|
|
|
1574
1730
|
* @returns {string} A string representing the geo_target.
|
|
1575
1731
|
*/
|
|
1576
1732
|
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
1577
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1733
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1734
|
+
.geo_target;
|
|
1578
1735
|
}
|
|
1579
1736
|
/**
|
|
1580
1737
|
* Return a fully-qualified label resource name string.
|
|
@@ -1609,6 +1766,76 @@ class PlacementServiceClient {
|
|
|
1609
1766
|
matchLabelFromLabelName(labelName) {
|
|
1610
1767
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
1611
1768
|
}
|
|
1769
|
+
/**
|
|
1770
|
+
* Return a fully-qualified lineItem resource name string.
|
|
1771
|
+
*
|
|
1772
|
+
* @param {string} network_code
|
|
1773
|
+
* @param {string} line_item
|
|
1774
|
+
* @returns {string} Resource name string.
|
|
1775
|
+
*/
|
|
1776
|
+
lineItemPath(networkCode, lineItem) {
|
|
1777
|
+
return this.pathTemplates.lineItemPathTemplate.render({
|
|
1778
|
+
network_code: networkCode,
|
|
1779
|
+
line_item: lineItem,
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
/**
|
|
1783
|
+
* Parse the network_code from LineItem resource.
|
|
1784
|
+
*
|
|
1785
|
+
* @param {string} lineItemName
|
|
1786
|
+
* A fully-qualified path representing LineItem resource.
|
|
1787
|
+
* @returns {string} A string representing the network_code.
|
|
1788
|
+
*/
|
|
1789
|
+
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1790
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1791
|
+
.network_code;
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* Parse the line_item from LineItem resource.
|
|
1795
|
+
*
|
|
1796
|
+
* @param {string} lineItemName
|
|
1797
|
+
* A fully-qualified path representing LineItem resource.
|
|
1798
|
+
* @returns {string} A string representing the line_item.
|
|
1799
|
+
*/
|
|
1800
|
+
matchLineItemFromLineItemName(lineItemName) {
|
|
1801
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1802
|
+
.line_item;
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* Return a fully-qualified linkedDevice resource name string.
|
|
1806
|
+
*
|
|
1807
|
+
* @param {string} network_code
|
|
1808
|
+
* @param {string} linked_device
|
|
1809
|
+
* @returns {string} Resource name string.
|
|
1810
|
+
*/
|
|
1811
|
+
linkedDevicePath(networkCode, linkedDevice) {
|
|
1812
|
+
return this.pathTemplates.linkedDevicePathTemplate.render({
|
|
1813
|
+
network_code: networkCode,
|
|
1814
|
+
linked_device: linkedDevice,
|
|
1815
|
+
});
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* Parse the network_code from LinkedDevice resource.
|
|
1819
|
+
*
|
|
1820
|
+
* @param {string} linkedDeviceName
|
|
1821
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1822
|
+
* @returns {string} A string representing the network_code.
|
|
1823
|
+
*/
|
|
1824
|
+
matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
|
|
1825
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1826
|
+
.network_code;
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
* Parse the linked_device from LinkedDevice resource.
|
|
1830
|
+
*
|
|
1831
|
+
* @param {string} linkedDeviceName
|
|
1832
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1833
|
+
* @returns {string} A string representing the linked_device.
|
|
1834
|
+
*/
|
|
1835
|
+
matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
|
|
1836
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1837
|
+
.linked_device;
|
|
1838
|
+
}
|
|
1612
1839
|
/**
|
|
1613
1840
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
1614
1841
|
*
|
|
@@ -1663,7 +1890,8 @@ class PlacementServiceClient {
|
|
|
1663
1890
|
* @returns {string} A string representing the network_code.
|
|
1664
1891
|
*/
|
|
1665
1892
|
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1666
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1893
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1894
|
+
.network_code;
|
|
1667
1895
|
}
|
|
1668
1896
|
/**
|
|
1669
1897
|
* Parse the mobile_carrier from MobileCarrier resource.
|
|
@@ -1673,7 +1901,8 @@ class PlacementServiceClient {
|
|
|
1673
1901
|
* @returns {string} A string representing the mobile_carrier.
|
|
1674
1902
|
*/
|
|
1675
1903
|
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1676
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1904
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1905
|
+
.mobile_carrier;
|
|
1677
1906
|
}
|
|
1678
1907
|
/**
|
|
1679
1908
|
* Return a fully-qualified mobileDevice resource name string.
|
|
@@ -1696,7 +1925,8 @@ class PlacementServiceClient {
|
|
|
1696
1925
|
* @returns {string} A string representing the network_code.
|
|
1697
1926
|
*/
|
|
1698
1927
|
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1699
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1928
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1929
|
+
.network_code;
|
|
1700
1930
|
}
|
|
1701
1931
|
/**
|
|
1702
1932
|
* Parse the mobile_device from MobileDevice resource.
|
|
@@ -1706,7 +1936,8 @@ class PlacementServiceClient {
|
|
|
1706
1936
|
* @returns {string} A string representing the mobile_device.
|
|
1707
1937
|
*/
|
|
1708
1938
|
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1709
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1939
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1940
|
+
.mobile_device;
|
|
1710
1941
|
}
|
|
1711
1942
|
/**
|
|
1712
1943
|
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
@@ -1760,7 +1991,8 @@ class PlacementServiceClient {
|
|
|
1760
1991
|
* @returns {string} A string representing the network_code.
|
|
1761
1992
|
*/
|
|
1762
1993
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
1763
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1994
|
+
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1995
|
+
.network_code;
|
|
1764
1996
|
}
|
|
1765
1997
|
/**
|
|
1766
1998
|
* Return a fully-qualified operatingSystem resource name string.
|
|
@@ -1882,7 +2114,8 @@ class PlacementServiceClient {
|
|
|
1882
2114
|
* @returns {string} A string representing the network_code.
|
|
1883
2115
|
*/
|
|
1884
2116
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
1885
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2117
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2118
|
+
.network_code;
|
|
1886
2119
|
}
|
|
1887
2120
|
/**
|
|
1888
2121
|
* Parse the placement from Placement resource.
|
|
@@ -1892,7 +2125,8 @@ class PlacementServiceClient {
|
|
|
1892
2125
|
* @returns {string} A string representing the placement.
|
|
1893
2126
|
*/
|
|
1894
2127
|
matchPlacementFromPlacementName(placementName) {
|
|
1895
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2128
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2129
|
+
.placement;
|
|
1896
2130
|
}
|
|
1897
2131
|
/**
|
|
1898
2132
|
* Return a fully-qualified privateAuction resource name string.
|
|
@@ -2026,6 +2260,39 @@ class PlacementServiceClient {
|
|
|
2026
2260
|
matchReportFromReportName(reportName) {
|
|
2027
2261
|
return this.pathTemplates.reportPathTemplate.match(reportName).report;
|
|
2028
2262
|
}
|
|
2263
|
+
/**
|
|
2264
|
+
* Return a fully-qualified richMediaAdsCompany resource name string.
|
|
2265
|
+
*
|
|
2266
|
+
* @param {string} network_code
|
|
2267
|
+
* @param {string} rich_media_ads_company
|
|
2268
|
+
* @returns {string} Resource name string.
|
|
2269
|
+
*/
|
|
2270
|
+
richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
|
|
2271
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
|
|
2272
|
+
network_code: networkCode,
|
|
2273
|
+
rich_media_ads_company: richMediaAdsCompany,
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
/**
|
|
2277
|
+
* Parse the network_code from RichMediaAdsCompany resource.
|
|
2278
|
+
*
|
|
2279
|
+
* @param {string} richMediaAdsCompanyName
|
|
2280
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
2281
|
+
* @returns {string} A string representing the network_code.
|
|
2282
|
+
*/
|
|
2283
|
+
matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
2284
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
|
|
2285
|
+
}
|
|
2286
|
+
/**
|
|
2287
|
+
* Parse the rich_media_ads_company from RichMediaAdsCompany resource.
|
|
2288
|
+
*
|
|
2289
|
+
* @param {string} richMediaAdsCompanyName
|
|
2290
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
2291
|
+
* @returns {string} A string representing the rich_media_ads_company.
|
|
2292
|
+
*/
|
|
2293
|
+
matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
2294
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
|
|
2295
|
+
}
|
|
2029
2296
|
/**
|
|
2030
2297
|
* Return a fully-qualified role resource name string.
|
|
2031
2298
|
*
|
|
@@ -2212,7 +2479,8 @@ class PlacementServiceClient {
|
|
|
2212
2479
|
* @returns {string} A string representing the network_code.
|
|
2213
2480
|
*/
|
|
2214
2481
|
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
2215
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2482
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2483
|
+
.network_code;
|
|
2216
2484
|
}
|
|
2217
2485
|
/**
|
|
2218
2486
|
* Parse the web_property from WebProperty resource.
|
|
@@ -2222,7 +2490,8 @@ class PlacementServiceClient {
|
|
|
2222
2490
|
* @returns {string} A string representing the web_property.
|
|
2223
2491
|
*/
|
|
2224
2492
|
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
2225
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2493
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2494
|
+
.web_property;
|
|
2226
2495
|
}
|
|
2227
2496
|
/**
|
|
2228
2497
|
* Terminate the gRPC channel and close the client.
|
|
@@ -2232,7 +2501,7 @@ class PlacementServiceClient {
|
|
|
2232
2501
|
*/
|
|
2233
2502
|
close() {
|
|
2234
2503
|
if (this.placementServiceStub && !this._terminated) {
|
|
2235
|
-
return this.placementServiceStub.then(stub => {
|
|
2504
|
+
return this.placementServiceStub.then((stub) => {
|
|
2236
2505
|
this._log.info('ending gRPC channel');
|
|
2237
2506
|
this._terminated = true;
|
|
2238
2507
|
stub.close();
|