@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.
|
|
@@ -95,12 +95,21 @@ class ProgrammaticBuyerServiceClient {
|
|
|
95
95
|
*/
|
|
96
96
|
constructor(opts, gaxInstance) {
|
|
97
97
|
// Ensure that options include all the required fields.
|
|
98
|
-
const staticMembers = this
|
|
99
|
-
|
|
98
|
+
const staticMembers = this
|
|
99
|
+
.constructor;
|
|
100
|
+
if (opts?.universe_domain &&
|
|
101
|
+
opts?.universeDomain &&
|
|
102
|
+
opts?.universe_domain !== opts?.universeDomain) {
|
|
100
103
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
101
104
|
}
|
|
102
|
-
const universeDomainEnvVar =
|
|
103
|
-
|
|
105
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
106
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
107
|
+
: undefined;
|
|
108
|
+
this._universeDomain =
|
|
109
|
+
opts?.universeDomain ??
|
|
110
|
+
opts?.universe_domain ??
|
|
111
|
+
universeDomainEnvVar ??
|
|
112
|
+
'googleapis.com';
|
|
104
113
|
this._servicePath = 'admanager.' + this._universeDomain;
|
|
105
114
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
106
115
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
@@ -113,7 +122,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
113
122
|
else {
|
|
114
123
|
opts.fallback = opts.fallback ?? true;
|
|
115
124
|
}
|
|
116
|
-
const fallback = opts?.fallback ??
|
|
125
|
+
const fallback = opts?.fallback ??
|
|
126
|
+
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
117
127
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
118
128
|
// Request numeric enum values if REST transport is used.
|
|
119
129
|
opts.numericEnums = true;
|
|
@@ -142,10 +152,7 @@ class ProgrammaticBuyerServiceClient {
|
|
|
142
152
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
143
153
|
}
|
|
144
154
|
// Determine the client header string.
|
|
145
|
-
const clientHeader = [
|
|
146
|
-
`gax/${this._gaxModule.version}`,
|
|
147
|
-
`gapic/${version}`,
|
|
148
|
-
];
|
|
155
|
+
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
|
149
156
|
if (typeof process === 'object' && 'versions' in process) {
|
|
150
157
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
151
158
|
}
|
|
@@ -175,6 +182,7 @@ class ProgrammaticBuyerServiceClient {
|
|
|
175
182
|
bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
|
|
176
183
|
browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
|
|
177
184
|
browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
|
|
185
|
+
childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
|
|
178
186
|
cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
|
|
179
187
|
cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
|
|
180
188
|
companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
|
|
@@ -192,6 +200,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
192
200
|
entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
|
|
193
201
|
geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
|
|
194
202
|
labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
|
|
203
|
+
lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
|
|
204
|
+
linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
|
|
195
205
|
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
196
206
|
mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
|
|
197
207
|
mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
|
|
@@ -205,6 +215,7 @@ class ProgrammaticBuyerServiceClient {
|
|
|
205
215
|
privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
|
|
206
216
|
programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
|
|
207
217
|
reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
|
|
218
|
+
richMediaAdsCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company}'),
|
|
208
219
|
rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
|
|
209
220
|
sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
|
|
210
221
|
taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
|
|
@@ -216,7 +227,7 @@ class ProgrammaticBuyerServiceClient {
|
|
|
216
227
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
217
228
|
// pages). Denote the keys used for pagination and results.
|
|
218
229
|
this.descriptors.page = {
|
|
219
|
-
listProgrammaticBuyers: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'programmaticBuyers')
|
|
230
|
+
listProgrammaticBuyers: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'programmaticBuyers'),
|
|
220
231
|
};
|
|
221
232
|
// Put together the default options sent with requests.
|
|
222
233
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.ProgrammaticBuyerService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -245,15 +256,19 @@ class ProgrammaticBuyerServiceClient {
|
|
|
245
256
|
}
|
|
246
257
|
// Put together the "service stub" for
|
|
247
258
|
// google.ads.admanager.v1.ProgrammaticBuyerService.
|
|
248
|
-
this.programmaticBuyerServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
249
|
-
this._protos.lookupService('google.ads.admanager.v1.ProgrammaticBuyerService')
|
|
250
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
251
|
-
|
|
259
|
+
this.programmaticBuyerServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
260
|
+
? this._protos.lookupService('google.ads.admanager.v1.ProgrammaticBuyerService')
|
|
261
|
+
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
262
|
+
this._protos.google.ads.admanager.v1
|
|
263
|
+
.ProgrammaticBuyerService, this._opts, this._providedCustomServicePath);
|
|
252
264
|
// Iterate over each of the methods that the service provides
|
|
253
265
|
// and create an API call method for each.
|
|
254
|
-
const programmaticBuyerServiceStubMethods = [
|
|
266
|
+
const programmaticBuyerServiceStubMethods = [
|
|
267
|
+
'getProgrammaticBuyer',
|
|
268
|
+
'listProgrammaticBuyers',
|
|
269
|
+
];
|
|
255
270
|
for (const methodName of programmaticBuyerServiceStubMethods) {
|
|
256
|
-
const callPromise = this.programmaticBuyerServiceStub.then(stub => (...args) => {
|
|
271
|
+
const callPromise = this.programmaticBuyerServiceStub.then((stub) => (...args) => {
|
|
257
272
|
if (this._terminated) {
|
|
258
273
|
return Promise.reject('The client has already been closed.');
|
|
259
274
|
}
|
|
@@ -262,8 +277,7 @@ class ProgrammaticBuyerServiceClient {
|
|
|
262
277
|
}, (err) => () => {
|
|
263
278
|
throw err;
|
|
264
279
|
});
|
|
265
|
-
const descriptor = this.descriptors.page[methodName] ||
|
|
266
|
-
undefined;
|
|
280
|
+
const descriptor = this.descriptors.page[methodName] || undefined;
|
|
267
281
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
268
282
|
this.innerApiCalls[methodName] = apiCall;
|
|
269
283
|
}
|
|
@@ -275,7 +289,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
275
289
|
* @returns {string} The DNS address for this service.
|
|
276
290
|
*/
|
|
277
291
|
static get servicePath() {
|
|
278
|
-
if (typeof process === 'object' &&
|
|
292
|
+
if (typeof process === 'object' &&
|
|
293
|
+
typeof process.emitWarning === 'function') {
|
|
279
294
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
280
295
|
}
|
|
281
296
|
return 'admanager.googleapis.com';
|
|
@@ -286,7 +301,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
286
301
|
* @returns {string} The DNS address for this service.
|
|
287
302
|
*/
|
|
288
303
|
static get apiEndpoint() {
|
|
289
|
-
if (typeof process === 'object' &&
|
|
304
|
+
if (typeof process === 'object' &&
|
|
305
|
+
typeof process.emitWarning === 'function') {
|
|
290
306
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
291
307
|
}
|
|
292
308
|
return 'admanager.googleapis.com';
|
|
@@ -315,7 +331,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
315
331
|
*/
|
|
316
332
|
static get scopes() {
|
|
317
333
|
return [
|
|
318
|
-
'https://www.googleapis.com/auth/admanager'
|
|
334
|
+
'https://www.googleapis.com/auth/admanager',
|
|
335
|
+
'https://www.googleapis.com/auth/admanager.readonly',
|
|
319
336
|
];
|
|
320
337
|
}
|
|
321
338
|
/**
|
|
@@ -342,10 +359,13 @@ class ProgrammaticBuyerServiceClient {
|
|
|
342
359
|
options = options || {};
|
|
343
360
|
options.otherArgs = options.otherArgs || {};
|
|
344
361
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
345
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
346
|
-
|
|
362
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
363
|
+
this._gaxModule.routingHeader.fromParams({
|
|
364
|
+
name: request.name ?? '',
|
|
365
|
+
});
|
|
366
|
+
this.initialize().catch((err) => {
|
|
367
|
+
throw err;
|
|
347
368
|
});
|
|
348
|
-
this.initialize().catch(err => { throw err; });
|
|
349
369
|
this._log.info('getProgrammaticBuyer request %j', request);
|
|
350
370
|
const wrappedCallback = callback
|
|
351
371
|
? (error, response, options, rawResponse) => {
|
|
@@ -353,12 +373,16 @@ class ProgrammaticBuyerServiceClient {
|
|
|
353
373
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
354
374
|
}
|
|
355
375
|
: undefined;
|
|
356
|
-
return this.innerApiCalls
|
|
376
|
+
return this.innerApiCalls
|
|
377
|
+
.getProgrammaticBuyer(request, options, wrappedCallback)
|
|
357
378
|
?.then(([response, options, rawResponse]) => {
|
|
358
379
|
this._log.info('getProgrammaticBuyer response %j', response);
|
|
359
380
|
return [response, options, rawResponse];
|
|
360
|
-
})
|
|
361
|
-
|
|
381
|
+
})
|
|
382
|
+
.catch((error) => {
|
|
383
|
+
if (error &&
|
|
384
|
+
'statusDetails' in error &&
|
|
385
|
+
error.statusDetails instanceof Array) {
|
|
362
386
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
363
387
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
364
388
|
}
|
|
@@ -378,10 +402,13 @@ class ProgrammaticBuyerServiceClient {
|
|
|
378
402
|
options = options || {};
|
|
379
403
|
options.otherArgs = options.otherArgs || {};
|
|
380
404
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
381
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
382
|
-
|
|
405
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
406
|
+
this._gaxModule.routingHeader.fromParams({
|
|
407
|
+
parent: request.parent ?? '',
|
|
408
|
+
});
|
|
409
|
+
this.initialize().catch((err) => {
|
|
410
|
+
throw err;
|
|
383
411
|
});
|
|
384
|
-
this.initialize().catch(err => { throw err; });
|
|
385
412
|
const wrappedCallback = callback
|
|
386
413
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
387
414
|
this._log.info('listProgrammaticBuyers values %j', values);
|
|
@@ -416,8 +443,20 @@ class ProgrammaticBuyerServiceClient {
|
|
|
416
443
|
* must match the call that provided the page token.
|
|
417
444
|
* @param {string} [request.filter]
|
|
418
445
|
* Optional. Expression to filter the response.
|
|
419
|
-
*
|
|
420
|
-
*
|
|
446
|
+
* See syntax details at
|
|
447
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
448
|
+
*
|
|
449
|
+
* <b>Filterable fields:</b>
|
|
450
|
+
* <ul style="list-style-type:none">
|
|
451
|
+
* <li><code>agency</code></li>
|
|
452
|
+
* <li><code>buyerAccountId</code></li>
|
|
453
|
+
* <li><code>displayName</code></li>
|
|
454
|
+
* <li><code>name</code></li>
|
|
455
|
+
* <li><code>parentAccountId</code></li>
|
|
456
|
+
* <li><code>partnerClientId</code></li>
|
|
457
|
+
* <li><code>preferredDealsEnabled</code></li>
|
|
458
|
+
* <li><code>programmaticGuaranteedEnabled</code></li>
|
|
459
|
+
* </ul>
|
|
421
460
|
* @param {string} [request.orderBy]
|
|
422
461
|
* Optional. Expression to specify sorting order.
|
|
423
462
|
* See syntax details at
|
|
@@ -440,12 +479,15 @@ class ProgrammaticBuyerServiceClient {
|
|
|
440
479
|
options = options || {};
|
|
441
480
|
options.otherArgs = options.otherArgs || {};
|
|
442
481
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
443
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
444
|
-
|
|
445
|
-
|
|
482
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
483
|
+
this._gaxModule.routingHeader.fromParams({
|
|
484
|
+
parent: request.parent ?? '',
|
|
485
|
+
});
|
|
446
486
|
const defaultCallSettings = this._defaults['listProgrammaticBuyers'];
|
|
447
487
|
const callSettings = defaultCallSettings.merge(options);
|
|
448
|
-
this.initialize().catch(err => {
|
|
488
|
+
this.initialize().catch((err) => {
|
|
489
|
+
throw err;
|
|
490
|
+
});
|
|
449
491
|
this._log.info('listProgrammaticBuyers stream %j', request);
|
|
450
492
|
return this.descriptors.page.listProgrammaticBuyers.createStream(this.innerApiCalls.listProgrammaticBuyers, request, callSettings);
|
|
451
493
|
}
|
|
@@ -471,8 +513,20 @@ class ProgrammaticBuyerServiceClient {
|
|
|
471
513
|
* must match the call that provided the page token.
|
|
472
514
|
* @param {string} [request.filter]
|
|
473
515
|
* Optional. Expression to filter the response.
|
|
474
|
-
*
|
|
475
|
-
*
|
|
516
|
+
* See syntax details at
|
|
517
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
518
|
+
*
|
|
519
|
+
* <b>Filterable fields:</b>
|
|
520
|
+
* <ul style="list-style-type:none">
|
|
521
|
+
* <li><code>agency</code></li>
|
|
522
|
+
* <li><code>buyerAccountId</code></li>
|
|
523
|
+
* <li><code>displayName</code></li>
|
|
524
|
+
* <li><code>name</code></li>
|
|
525
|
+
* <li><code>parentAccountId</code></li>
|
|
526
|
+
* <li><code>partnerClientId</code></li>
|
|
527
|
+
* <li><code>preferredDealsEnabled</code></li>
|
|
528
|
+
* <li><code>programmaticGuaranteedEnabled</code></li>
|
|
529
|
+
* </ul>
|
|
476
530
|
* @param {string} [request.orderBy]
|
|
477
531
|
* Optional. Expression to specify sorting order.
|
|
478
532
|
* See syntax details at
|
|
@@ -496,12 +550,15 @@ class ProgrammaticBuyerServiceClient {
|
|
|
496
550
|
options = options || {};
|
|
497
551
|
options.otherArgs = options.otherArgs || {};
|
|
498
552
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
499
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
500
|
-
|
|
501
|
-
|
|
553
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
554
|
+
this._gaxModule.routingHeader.fromParams({
|
|
555
|
+
parent: request.parent ?? '',
|
|
556
|
+
});
|
|
502
557
|
const defaultCallSettings = this._defaults['listProgrammaticBuyers'];
|
|
503
558
|
const callSettings = defaultCallSettings.merge(options);
|
|
504
|
-
this.initialize().catch(err => {
|
|
559
|
+
this.initialize().catch((err) => {
|
|
560
|
+
throw err;
|
|
561
|
+
});
|
|
505
562
|
this._log.info('listProgrammaticBuyers iterate %j', request);
|
|
506
563
|
return this.descriptors.page.listProgrammaticBuyers.asyncIterate(this.innerApiCalls['listProgrammaticBuyers'], request, callSettings);
|
|
507
564
|
}
|
|
@@ -531,7 +588,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
531
588
|
* @returns {string} A string representing the network_code.
|
|
532
589
|
*/
|
|
533
590
|
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
534
|
-
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
591
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
592
|
+
.network_code;
|
|
535
593
|
}
|
|
536
594
|
/**
|
|
537
595
|
* Parse the asset_key from AdBreak resource.
|
|
@@ -652,7 +710,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
652
710
|
* @returns {string} A string representing the network_code.
|
|
653
711
|
*/
|
|
654
712
|
matchNetworkCodeFromApplicationName(applicationName) {
|
|
655
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
713
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
714
|
+
.network_code;
|
|
656
715
|
}
|
|
657
716
|
/**
|
|
658
717
|
* Parse the application from Application resource.
|
|
@@ -662,7 +721,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
662
721
|
* @returns {string} A string representing the application.
|
|
663
722
|
*/
|
|
664
723
|
matchApplicationFromApplicationName(applicationName) {
|
|
665
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
724
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
725
|
+
.application;
|
|
666
726
|
}
|
|
667
727
|
/**
|
|
668
728
|
* Return a fully-qualified audienceSegment resource name string.
|
|
@@ -751,7 +811,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
751
811
|
* @returns {string} A string representing the network_code.
|
|
752
812
|
*/
|
|
753
813
|
matchNetworkCodeFromBrowserName(browserName) {
|
|
754
|
-
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
814
|
+
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
815
|
+
.network_code;
|
|
755
816
|
}
|
|
756
817
|
/**
|
|
757
818
|
* Parse the browser from Browser resource.
|
|
@@ -796,6 +857,39 @@ class ProgrammaticBuyerServiceClient {
|
|
|
796
857
|
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
797
858
|
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
798
859
|
}
|
|
860
|
+
/**
|
|
861
|
+
* Return a fully-qualified childPublisher resource name string.
|
|
862
|
+
*
|
|
863
|
+
* @param {string} network_code
|
|
864
|
+
* @param {string} child_publisher
|
|
865
|
+
* @returns {string} Resource name string.
|
|
866
|
+
*/
|
|
867
|
+
childPublisherPath(networkCode, childPublisher) {
|
|
868
|
+
return this.pathTemplates.childPublisherPathTemplate.render({
|
|
869
|
+
network_code: networkCode,
|
|
870
|
+
child_publisher: childPublisher,
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Parse the network_code from ChildPublisher resource.
|
|
875
|
+
*
|
|
876
|
+
* @param {string} childPublisherName
|
|
877
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
878
|
+
* @returns {string} A string representing the network_code.
|
|
879
|
+
*/
|
|
880
|
+
matchNetworkCodeFromChildPublisherName(childPublisherName) {
|
|
881
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* Parse the child_publisher from ChildPublisher resource.
|
|
885
|
+
*
|
|
886
|
+
* @param {string} childPublisherName
|
|
887
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
888
|
+
* @returns {string} A string representing the child_publisher.
|
|
889
|
+
*/
|
|
890
|
+
matchChildPublisherFromChildPublisherName(childPublisherName) {
|
|
891
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
|
|
892
|
+
}
|
|
799
893
|
/**
|
|
800
894
|
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
801
895
|
*
|
|
@@ -883,7 +977,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
883
977
|
* @returns {string} A string representing the network_code.
|
|
884
978
|
*/
|
|
885
979
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
886
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
980
|
+
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
981
|
+
.network_code;
|
|
887
982
|
}
|
|
888
983
|
/**
|
|
889
984
|
* Parse the company from Company resource.
|
|
@@ -916,7 +1011,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
916
1011
|
* @returns {string} A string representing the network_code.
|
|
917
1012
|
*/
|
|
918
1013
|
matchNetworkCodeFromContactName(contactName) {
|
|
919
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
1014
|
+
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
1015
|
+
.network_code;
|
|
920
1016
|
}
|
|
921
1017
|
/**
|
|
922
1018
|
* Parse the contact from Contact resource.
|
|
@@ -949,7 +1045,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
949
1045
|
* @returns {string} A string representing the network_code.
|
|
950
1046
|
*/
|
|
951
1047
|
matchNetworkCodeFromContentName(contentName) {
|
|
952
|
-
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
1048
|
+
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
1049
|
+
.network_code;
|
|
953
1050
|
}
|
|
954
1051
|
/**
|
|
955
1052
|
* Parse the content from Content resource.
|
|
@@ -982,7 +1079,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
982
1079
|
* @returns {string} A string representing the network_code.
|
|
983
1080
|
*/
|
|
984
1081
|
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
985
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1082
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1083
|
+
.network_code;
|
|
986
1084
|
}
|
|
987
1085
|
/**
|
|
988
1086
|
* Parse the content_bundle from ContentBundle resource.
|
|
@@ -992,7 +1090,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
992
1090
|
* @returns {string} A string representing the content_bundle.
|
|
993
1091
|
*/
|
|
994
1092
|
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
995
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1093
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1094
|
+
.content_bundle;
|
|
996
1095
|
}
|
|
997
1096
|
/**
|
|
998
1097
|
* Return a fully-qualified contentLabel resource name string.
|
|
@@ -1015,7 +1114,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1015
1114
|
* @returns {string} A string representing the network_code.
|
|
1016
1115
|
*/
|
|
1017
1116
|
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
1018
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1117
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1118
|
+
.network_code;
|
|
1019
1119
|
}
|
|
1020
1120
|
/**
|
|
1021
1121
|
* Parse the content_label from ContentLabel resource.
|
|
@@ -1025,7 +1125,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1025
1125
|
* @returns {string} A string representing the content_label.
|
|
1026
1126
|
*/
|
|
1027
1127
|
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
1028
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1128
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1129
|
+
.content_label;
|
|
1029
1130
|
}
|
|
1030
1131
|
/**
|
|
1031
1132
|
* Return a fully-qualified creativeTemplate resource name string.
|
|
@@ -1081,7 +1182,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1081
1182
|
* @returns {string} A string representing the network_code.
|
|
1082
1183
|
*/
|
|
1083
1184
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
1084
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1185
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1186
|
+
.network_code;
|
|
1085
1187
|
}
|
|
1086
1188
|
/**
|
|
1087
1189
|
* Parse the custom_field from CustomField resource.
|
|
@@ -1091,7 +1193,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1091
1193
|
* @returns {string} A string representing the custom_field.
|
|
1092
1194
|
*/
|
|
1093
1195
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
1094
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1196
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1197
|
+
.custom_field;
|
|
1095
1198
|
}
|
|
1096
1199
|
/**
|
|
1097
1200
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -1312,7 +1415,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1312
1415
|
* @returns {string} A string representing the network_code.
|
|
1313
1416
|
*/
|
|
1314
1417
|
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
1315
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1418
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1419
|
+
.network_code;
|
|
1316
1420
|
}
|
|
1317
1421
|
/**
|
|
1318
1422
|
* Parse the geo_target from GeoTarget resource.
|
|
@@ -1322,7 +1426,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1322
1426
|
* @returns {string} A string representing the geo_target.
|
|
1323
1427
|
*/
|
|
1324
1428
|
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
1325
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1429
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1430
|
+
.geo_target;
|
|
1326
1431
|
}
|
|
1327
1432
|
/**
|
|
1328
1433
|
* Return a fully-qualified label resource name string.
|
|
@@ -1357,6 +1462,76 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1357
1462
|
matchLabelFromLabelName(labelName) {
|
|
1358
1463
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
1359
1464
|
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Return a fully-qualified lineItem resource name string.
|
|
1467
|
+
*
|
|
1468
|
+
* @param {string} network_code
|
|
1469
|
+
* @param {string} line_item
|
|
1470
|
+
* @returns {string} Resource name string.
|
|
1471
|
+
*/
|
|
1472
|
+
lineItemPath(networkCode, lineItem) {
|
|
1473
|
+
return this.pathTemplates.lineItemPathTemplate.render({
|
|
1474
|
+
network_code: networkCode,
|
|
1475
|
+
line_item: lineItem,
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Parse the network_code from LineItem resource.
|
|
1480
|
+
*
|
|
1481
|
+
* @param {string} lineItemName
|
|
1482
|
+
* A fully-qualified path representing LineItem resource.
|
|
1483
|
+
* @returns {string} A string representing the network_code.
|
|
1484
|
+
*/
|
|
1485
|
+
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1486
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1487
|
+
.network_code;
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Parse the line_item from LineItem resource.
|
|
1491
|
+
*
|
|
1492
|
+
* @param {string} lineItemName
|
|
1493
|
+
* A fully-qualified path representing LineItem resource.
|
|
1494
|
+
* @returns {string} A string representing the line_item.
|
|
1495
|
+
*/
|
|
1496
|
+
matchLineItemFromLineItemName(lineItemName) {
|
|
1497
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1498
|
+
.line_item;
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Return a fully-qualified linkedDevice resource name string.
|
|
1502
|
+
*
|
|
1503
|
+
* @param {string} network_code
|
|
1504
|
+
* @param {string} linked_device
|
|
1505
|
+
* @returns {string} Resource name string.
|
|
1506
|
+
*/
|
|
1507
|
+
linkedDevicePath(networkCode, linkedDevice) {
|
|
1508
|
+
return this.pathTemplates.linkedDevicePathTemplate.render({
|
|
1509
|
+
network_code: networkCode,
|
|
1510
|
+
linked_device: linkedDevice,
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* Parse the network_code from LinkedDevice resource.
|
|
1515
|
+
*
|
|
1516
|
+
* @param {string} linkedDeviceName
|
|
1517
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1518
|
+
* @returns {string} A string representing the network_code.
|
|
1519
|
+
*/
|
|
1520
|
+
matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
|
|
1521
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1522
|
+
.network_code;
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Parse the linked_device from LinkedDevice resource.
|
|
1526
|
+
*
|
|
1527
|
+
* @param {string} linkedDeviceName
|
|
1528
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1529
|
+
* @returns {string} A string representing the linked_device.
|
|
1530
|
+
*/
|
|
1531
|
+
matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
|
|
1532
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1533
|
+
.linked_device;
|
|
1534
|
+
}
|
|
1360
1535
|
/**
|
|
1361
1536
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
1362
1537
|
*
|
|
@@ -1411,7 +1586,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1411
1586
|
* @returns {string} A string representing the network_code.
|
|
1412
1587
|
*/
|
|
1413
1588
|
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1414
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1589
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1590
|
+
.network_code;
|
|
1415
1591
|
}
|
|
1416
1592
|
/**
|
|
1417
1593
|
* Parse the mobile_carrier from MobileCarrier resource.
|
|
@@ -1421,7 +1597,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1421
1597
|
* @returns {string} A string representing the mobile_carrier.
|
|
1422
1598
|
*/
|
|
1423
1599
|
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1424
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1600
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1601
|
+
.mobile_carrier;
|
|
1425
1602
|
}
|
|
1426
1603
|
/**
|
|
1427
1604
|
* Return a fully-qualified mobileDevice resource name string.
|
|
@@ -1444,7 +1621,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1444
1621
|
* @returns {string} A string representing the network_code.
|
|
1445
1622
|
*/
|
|
1446
1623
|
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1447
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1624
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1625
|
+
.network_code;
|
|
1448
1626
|
}
|
|
1449
1627
|
/**
|
|
1450
1628
|
* Parse the mobile_device from MobileDevice resource.
|
|
@@ -1454,7 +1632,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1454
1632
|
* @returns {string} A string representing the mobile_device.
|
|
1455
1633
|
*/
|
|
1456
1634
|
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1457
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1635
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1636
|
+
.mobile_device;
|
|
1458
1637
|
}
|
|
1459
1638
|
/**
|
|
1460
1639
|
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
@@ -1508,7 +1687,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1508
1687
|
* @returns {string} A string representing the network_code.
|
|
1509
1688
|
*/
|
|
1510
1689
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
1511
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1690
|
+
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1691
|
+
.network_code;
|
|
1512
1692
|
}
|
|
1513
1693
|
/**
|
|
1514
1694
|
* Return a fully-qualified operatingSystem resource name string.
|
|
@@ -1630,7 +1810,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1630
1810
|
* @returns {string} A string representing the network_code.
|
|
1631
1811
|
*/
|
|
1632
1812
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
1633
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1813
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1814
|
+
.network_code;
|
|
1634
1815
|
}
|
|
1635
1816
|
/**
|
|
1636
1817
|
* Parse the placement from Placement resource.
|
|
@@ -1640,7 +1821,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1640
1821
|
* @returns {string} A string representing the placement.
|
|
1641
1822
|
*/
|
|
1642
1823
|
matchPlacementFromPlacementName(placementName) {
|
|
1643
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1824
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1825
|
+
.placement;
|
|
1644
1826
|
}
|
|
1645
1827
|
/**
|
|
1646
1828
|
* Return a fully-qualified privateAuction resource name string.
|
|
@@ -1774,6 +1956,39 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1774
1956
|
matchReportFromReportName(reportName) {
|
|
1775
1957
|
return this.pathTemplates.reportPathTemplate.match(reportName).report;
|
|
1776
1958
|
}
|
|
1959
|
+
/**
|
|
1960
|
+
* Return a fully-qualified richMediaAdsCompany resource name string.
|
|
1961
|
+
*
|
|
1962
|
+
* @param {string} network_code
|
|
1963
|
+
* @param {string} rich_media_ads_company
|
|
1964
|
+
* @returns {string} Resource name string.
|
|
1965
|
+
*/
|
|
1966
|
+
richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
|
|
1967
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
|
|
1968
|
+
network_code: networkCode,
|
|
1969
|
+
rich_media_ads_company: richMediaAdsCompany,
|
|
1970
|
+
});
|
|
1971
|
+
}
|
|
1972
|
+
/**
|
|
1973
|
+
* Parse the network_code from RichMediaAdsCompany resource.
|
|
1974
|
+
*
|
|
1975
|
+
* @param {string} richMediaAdsCompanyName
|
|
1976
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
1977
|
+
* @returns {string} A string representing the network_code.
|
|
1978
|
+
*/
|
|
1979
|
+
matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
1980
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
|
|
1981
|
+
}
|
|
1982
|
+
/**
|
|
1983
|
+
* Parse the rich_media_ads_company from RichMediaAdsCompany resource.
|
|
1984
|
+
*
|
|
1985
|
+
* @param {string} richMediaAdsCompanyName
|
|
1986
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
1987
|
+
* @returns {string} A string representing the rich_media_ads_company.
|
|
1988
|
+
*/
|
|
1989
|
+
matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
1990
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
|
|
1991
|
+
}
|
|
1777
1992
|
/**
|
|
1778
1993
|
* Return a fully-qualified role resource name string.
|
|
1779
1994
|
*
|
|
@@ -1960,7 +2175,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1960
2175
|
* @returns {string} A string representing the network_code.
|
|
1961
2176
|
*/
|
|
1962
2177
|
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
1963
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2178
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2179
|
+
.network_code;
|
|
1964
2180
|
}
|
|
1965
2181
|
/**
|
|
1966
2182
|
* Parse the web_property from WebProperty resource.
|
|
@@ -1970,7 +2186,8 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1970
2186
|
* @returns {string} A string representing the web_property.
|
|
1971
2187
|
*/
|
|
1972
2188
|
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
1973
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2189
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2190
|
+
.web_property;
|
|
1974
2191
|
}
|
|
1975
2192
|
/**
|
|
1976
2193
|
* Terminate the gRPC channel and close the client.
|
|
@@ -1980,7 +2197,7 @@ class ProgrammaticBuyerServiceClient {
|
|
|
1980
2197
|
*/
|
|
1981
2198
|
close() {
|
|
1982
2199
|
if (this.programmaticBuyerServiceStub && !this._terminated) {
|
|
1983
|
-
return this.programmaticBuyerServiceStub.then(stub => {
|
|
2200
|
+
return this.programmaticBuyerServiceStub.then((stub) => {
|
|
1984
2201
|
this._log.info('ending gRPC channel');
|
|
1985
2202
|
this._terminated = true;
|
|
1986
2203
|
stub.close();
|