@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,12 +96,21 @@ class AdReviewCenterAdServiceClient {
|
|
|
96
96
|
*/
|
|
97
97
|
constructor(opts, gaxInstance) {
|
|
98
98
|
// Ensure that options include all the required fields.
|
|
99
|
-
const staticMembers = this
|
|
100
|
-
|
|
99
|
+
const staticMembers = this
|
|
100
|
+
.constructor;
|
|
101
|
+
if (opts?.universe_domain &&
|
|
102
|
+
opts?.universeDomain &&
|
|
103
|
+
opts?.universe_domain !== opts?.universeDomain) {
|
|
101
104
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
102
105
|
}
|
|
103
|
-
const universeDomainEnvVar =
|
|
104
|
-
|
|
106
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
107
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
108
|
+
: undefined;
|
|
109
|
+
this._universeDomain =
|
|
110
|
+
opts?.universeDomain ??
|
|
111
|
+
opts?.universe_domain ??
|
|
112
|
+
universeDomainEnvVar ??
|
|
113
|
+
'googleapis.com';
|
|
105
114
|
this._servicePath = 'admanager.' + this._universeDomain;
|
|
106
115
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
107
116
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
@@ -114,7 +123,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
114
123
|
else {
|
|
115
124
|
opts.fallback = opts.fallback ?? true;
|
|
116
125
|
}
|
|
117
|
-
const fallback = opts?.fallback ??
|
|
126
|
+
const fallback = opts?.fallback ??
|
|
127
|
+
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
118
128
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
119
129
|
// Request numeric enum values if REST transport is used.
|
|
120
130
|
opts.numericEnums = true;
|
|
@@ -143,10 +153,7 @@ class AdReviewCenterAdServiceClient {
|
|
|
143
153
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
144
154
|
}
|
|
145
155
|
// Determine the client header string.
|
|
146
|
-
const clientHeader = [
|
|
147
|
-
`gax/${this._gaxModule.version}`,
|
|
148
|
-
`gapic/${version}`,
|
|
149
|
-
];
|
|
156
|
+
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
|
150
157
|
if (typeof process === 'object' && 'versions' in process) {
|
|
151
158
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
152
159
|
}
|
|
@@ -176,6 +183,7 @@ class AdReviewCenterAdServiceClient {
|
|
|
176
183
|
bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
|
|
177
184
|
browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
|
|
178
185
|
browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
|
|
186
|
+
childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
|
|
179
187
|
cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
|
|
180
188
|
cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
|
|
181
189
|
companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
|
|
@@ -193,6 +201,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
193
201
|
entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
|
|
194
202
|
geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
|
|
195
203
|
labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
|
|
204
|
+
lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
|
|
205
|
+
linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
|
|
196
206
|
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
197
207
|
mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
|
|
198
208
|
mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
|
|
@@ -206,6 +216,7 @@ class AdReviewCenterAdServiceClient {
|
|
|
206
216
|
privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
|
|
207
217
|
programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
|
|
208
218
|
reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
|
|
219
|
+
richMediaAdsCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company}'),
|
|
209
220
|
rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
|
|
210
221
|
sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
|
|
211
222
|
taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
|
|
@@ -217,7 +228,7 @@ class AdReviewCenterAdServiceClient {
|
|
|
217
228
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
218
229
|
// pages). Denote the keys used for pagination and results.
|
|
219
230
|
this.descriptors.page = {
|
|
220
|
-
searchAdReviewCenterAds: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'adReviewCenterAds')
|
|
231
|
+
searchAdReviewCenterAds: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'adReviewCenterAds'),
|
|
221
232
|
};
|
|
222
233
|
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
|
223
234
|
// This API contains "long-running operations", which return a
|
|
@@ -225,20 +236,31 @@ class AdReviewCenterAdServiceClient {
|
|
|
225
236
|
// rather than holding a request open.
|
|
226
237
|
const lroOptions = {
|
|
227
238
|
auth: this.auth,
|
|
228
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
|
239
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
|
229
240
|
};
|
|
230
241
|
if (opts.fallback) {
|
|
231
242
|
lroOptions.protoJson = protoFilesRoot;
|
|
232
|
-
lroOptions.httpRules = [
|
|
243
|
+
lroOptions.httpRules = [
|
|
244
|
+
{
|
|
245
|
+
selector: 'google.longrunning.Operations.CancelOperation',
|
|
246
|
+
post: '/v1/{name=networks/*/operations/reports/runs/*}:cancel',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
selector: 'google.longrunning.Operations.GetOperation',
|
|
250
|
+
get: '/v1/{name=networks/*/operations/reports/runs/*}',
|
|
251
|
+
},
|
|
252
|
+
];
|
|
233
253
|
}
|
|
234
|
-
this.operationsClient = this._gaxModule
|
|
254
|
+
this.operationsClient = this._gaxModule
|
|
255
|
+
.lro(lroOptions)
|
|
256
|
+
.operationsClient(opts);
|
|
235
257
|
const batchAllowAdReviewCenterAdsResponse = protoFilesRoot.lookup('.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse');
|
|
236
258
|
const batchAllowAdReviewCenterAdsMetadata = protoFilesRoot.lookup('.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata');
|
|
237
259
|
const batchBlockAdReviewCenterAdsResponse = protoFilesRoot.lookup('.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse');
|
|
238
260
|
const batchBlockAdReviewCenterAdsMetadata = protoFilesRoot.lookup('.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata');
|
|
239
261
|
this.descriptors.longrunning = {
|
|
240
262
|
batchAllowAdReviewCenterAds: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchAllowAdReviewCenterAdsResponse.decode.bind(batchAllowAdReviewCenterAdsResponse), batchAllowAdReviewCenterAdsMetadata.decode.bind(batchAllowAdReviewCenterAdsMetadata)),
|
|
241
|
-
batchBlockAdReviewCenterAds: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchBlockAdReviewCenterAdsResponse.decode.bind(batchBlockAdReviewCenterAdsResponse), batchBlockAdReviewCenterAdsMetadata.decode.bind(batchBlockAdReviewCenterAdsMetadata))
|
|
263
|
+
batchBlockAdReviewCenterAds: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchBlockAdReviewCenterAdsResponse.decode.bind(batchBlockAdReviewCenterAdsResponse), batchBlockAdReviewCenterAdsMetadata.decode.bind(batchBlockAdReviewCenterAdsMetadata)),
|
|
242
264
|
};
|
|
243
265
|
// Put together the default options sent with requests.
|
|
244
266
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.AdReviewCenterAdService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -267,15 +289,19 @@ class AdReviewCenterAdServiceClient {
|
|
|
267
289
|
}
|
|
268
290
|
// Put together the "service stub" for
|
|
269
291
|
// google.ads.admanager.v1.AdReviewCenterAdService.
|
|
270
|
-
this.adReviewCenterAdServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
271
|
-
this._protos.lookupService('google.ads.admanager.v1.AdReviewCenterAdService')
|
|
272
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
273
|
-
|
|
292
|
+
this.adReviewCenterAdServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
293
|
+
? this._protos.lookupService('google.ads.admanager.v1.AdReviewCenterAdService')
|
|
294
|
+
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
295
|
+
this._protos.google.ads.admanager.v1.AdReviewCenterAdService, this._opts, this._providedCustomServicePath);
|
|
274
296
|
// Iterate over each of the methods that the service provides
|
|
275
297
|
// and create an API call method for each.
|
|
276
|
-
const adReviewCenterAdServiceStubMethods = [
|
|
298
|
+
const adReviewCenterAdServiceStubMethods = [
|
|
299
|
+
'searchAdReviewCenterAds',
|
|
300
|
+
'batchAllowAdReviewCenterAds',
|
|
301
|
+
'batchBlockAdReviewCenterAds',
|
|
302
|
+
];
|
|
277
303
|
for (const methodName of adReviewCenterAdServiceStubMethods) {
|
|
278
|
-
const callPromise = this.adReviewCenterAdServiceStub.then(stub => (...args) => {
|
|
304
|
+
const callPromise = this.adReviewCenterAdServiceStub.then((stub) => (...args) => {
|
|
279
305
|
if (this._terminated) {
|
|
280
306
|
return Promise.reject('The client has already been closed.');
|
|
281
307
|
}
|
|
@@ -298,7 +324,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
298
324
|
* @returns {string} The DNS address for this service.
|
|
299
325
|
*/
|
|
300
326
|
static get servicePath() {
|
|
301
|
-
if (typeof process === 'object' &&
|
|
327
|
+
if (typeof process === 'object' &&
|
|
328
|
+
typeof process.emitWarning === 'function') {
|
|
302
329
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
303
330
|
}
|
|
304
331
|
return 'admanager.googleapis.com';
|
|
@@ -309,7 +336,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
309
336
|
* @returns {string} The DNS address for this service.
|
|
310
337
|
*/
|
|
311
338
|
static get apiEndpoint() {
|
|
312
|
-
if (typeof process === 'object' &&
|
|
339
|
+
if (typeof process === 'object' &&
|
|
340
|
+
typeof process.emitWarning === 'function') {
|
|
313
341
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
314
342
|
}
|
|
315
343
|
return 'admanager.googleapis.com';
|
|
@@ -338,7 +366,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
338
366
|
*/
|
|
339
367
|
static get scopes() {
|
|
340
368
|
return [
|
|
341
|
-
'https://www.googleapis.com/auth/admanager'
|
|
369
|
+
'https://www.googleapis.com/auth/admanager',
|
|
370
|
+
'https://www.googleapis.com/auth/admanager.readonly',
|
|
342
371
|
];
|
|
343
372
|
}
|
|
344
373
|
/**
|
|
@@ -365,10 +394,13 @@ class AdReviewCenterAdServiceClient {
|
|
|
365
394
|
options = options || {};
|
|
366
395
|
options.otherArgs = options.otherArgs || {};
|
|
367
396
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
368
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
369
|
-
|
|
397
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
398
|
+
this._gaxModule.routingHeader.fromParams({
|
|
399
|
+
parent: request.parent ?? '',
|
|
400
|
+
});
|
|
401
|
+
this.initialize().catch((err) => {
|
|
402
|
+
throw err;
|
|
370
403
|
});
|
|
371
|
-
this.initialize().catch(err => { throw err; });
|
|
372
404
|
const wrappedCallback = callback
|
|
373
405
|
? (error, response, rawResponse, _) => {
|
|
374
406
|
this._log.info('batchAllowAdReviewCenterAds response %j', rawResponse);
|
|
@@ -376,7 +408,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
376
408
|
}
|
|
377
409
|
: undefined;
|
|
378
410
|
this._log.info('batchAllowAdReviewCenterAds request %j', request);
|
|
379
|
-
return this.innerApiCalls
|
|
411
|
+
return this.innerApiCalls
|
|
412
|
+
.batchAllowAdReviewCenterAds(request, options, wrappedCallback)
|
|
380
413
|
?.then(([response, rawResponse, _]) => {
|
|
381
414
|
this._log.info('batchAllowAdReviewCenterAds response %j', rawResponse);
|
|
382
415
|
return [response, rawResponse, _];
|
|
@@ -413,10 +446,13 @@ class AdReviewCenterAdServiceClient {
|
|
|
413
446
|
options = options || {};
|
|
414
447
|
options.otherArgs = options.otherArgs || {};
|
|
415
448
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
416
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
417
|
-
|
|
449
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
450
|
+
this._gaxModule.routingHeader.fromParams({
|
|
451
|
+
parent: request.parent ?? '',
|
|
452
|
+
});
|
|
453
|
+
this.initialize().catch((err) => {
|
|
454
|
+
throw err;
|
|
418
455
|
});
|
|
419
|
-
this.initialize().catch(err => { throw err; });
|
|
420
456
|
const wrappedCallback = callback
|
|
421
457
|
? (error, response, rawResponse, _) => {
|
|
422
458
|
this._log.info('batchBlockAdReviewCenterAds response %j', rawResponse);
|
|
@@ -424,7 +460,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
424
460
|
}
|
|
425
461
|
: undefined;
|
|
426
462
|
this._log.info('batchBlockAdReviewCenterAds request %j', request);
|
|
427
|
-
return this.innerApiCalls
|
|
463
|
+
return this.innerApiCalls
|
|
464
|
+
.batchBlockAdReviewCenterAds(request, options, wrappedCallback)
|
|
428
465
|
?.then(([response, rawResponse, _]) => {
|
|
429
466
|
this._log.info('batchBlockAdReviewCenterAds response %j', rawResponse);
|
|
430
467
|
return [response, rawResponse, _];
|
|
@@ -461,10 +498,13 @@ class AdReviewCenterAdServiceClient {
|
|
|
461
498
|
options = options || {};
|
|
462
499
|
options.otherArgs = options.otherArgs || {};
|
|
463
500
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
464
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
465
|
-
|
|
501
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
502
|
+
this._gaxModule.routingHeader.fromParams({
|
|
503
|
+
parent: request.parent ?? '',
|
|
504
|
+
});
|
|
505
|
+
this.initialize().catch((err) => {
|
|
506
|
+
throw err;
|
|
466
507
|
});
|
|
467
|
-
this.initialize().catch(err => { throw err; });
|
|
468
508
|
const wrappedCallback = callback
|
|
469
509
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
470
510
|
this._log.info('searchAdReviewCenterAds values %j', values);
|
|
@@ -483,6 +523,13 @@ class AdReviewCenterAdServiceClient {
|
|
|
483
523
|
* Equivalent to `searchAdReviewCenterAds`, but returns a NodeJS Stream object.
|
|
484
524
|
* @param {Object} request
|
|
485
525
|
* The request object that will be sent.
|
|
526
|
+
* @param {google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus} [request.status]
|
|
527
|
+
* Optional. Only return ads with the given status.
|
|
528
|
+
* @param {google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus} [request.manualReviewStatus]
|
|
529
|
+
* Optional. Only return ads with the given manual review status. Only
|
|
530
|
+
* available for networks with Manual Creative Review enabled. For more
|
|
531
|
+
* information, see
|
|
532
|
+
* https://support.google.com/admanager/answer/2586531#manual-creative-review.
|
|
486
533
|
* @param {string} request.parent
|
|
487
534
|
* Required. The parent, which owns this collection of AdReviewCenterAds.
|
|
488
535
|
* Format: networks/{network_code}/webProperties/{web_property_code}
|
|
@@ -506,14 +553,14 @@ class AdReviewCenterAdServiceClient {
|
|
|
506
553
|
* @param {string} [request.pageToken]
|
|
507
554
|
* Optional. The page token to fetch the next page of AdReviewCenterAds. This
|
|
508
555
|
* is the value returned from a previous Search request, or empty.
|
|
509
|
-
* @param {google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus} request.status
|
|
510
|
-
* Required. Only return ads with the given status.
|
|
511
556
|
* @param {string[]} [request.adReviewCenterAdId]
|
|
512
|
-
* Optional.
|
|
557
|
+
* Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
|
|
558
|
+
* no other filter can be set (other than page size and page token).
|
|
513
559
|
* @param {google.type.Interval} [request.dateTimeRange]
|
|
514
560
|
* Optional. If provided, only return ads that served within the given date
|
|
515
561
|
* range (inclusive). The date range must be within the last 30 days. If not
|
|
516
|
-
* provided, the date range will be the last 30 days.
|
|
562
|
+
* provided, the date range will be the last 30 days. This filter does not
|
|
563
|
+
* apply to the PENDING manual review status.
|
|
517
564
|
* @param {string[]} [request.searchText]
|
|
518
565
|
* Optional. If provided, restrict the search to AdReviewCenterAds associated
|
|
519
566
|
* with the text (including any text on the ad or in the destination URL). If
|
|
@@ -523,7 +570,7 @@ class AdReviewCenterAdServiceClient {
|
|
|
523
570
|
* @param {number[]} [request.buyerAccountId]
|
|
524
571
|
* Optional. If provided, restrict the search to creatives belonging to one of
|
|
525
572
|
* the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
|
|
526
|
-
* buyer account IDs can be found
|
|
573
|
+
* buyer account IDs can be found using the `ProgrammaticBuyerService`.
|
|
527
574
|
* @param {object} [options]
|
|
528
575
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
529
576
|
* @returns {Stream}
|
|
@@ -540,12 +587,15 @@ class AdReviewCenterAdServiceClient {
|
|
|
540
587
|
options = options || {};
|
|
541
588
|
options.otherArgs = options.otherArgs || {};
|
|
542
589
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
543
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
544
|
-
|
|
545
|
-
|
|
590
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
591
|
+
this._gaxModule.routingHeader.fromParams({
|
|
592
|
+
parent: request.parent ?? '',
|
|
593
|
+
});
|
|
546
594
|
const defaultCallSettings = this._defaults['searchAdReviewCenterAds'];
|
|
547
595
|
const callSettings = defaultCallSettings.merge(options);
|
|
548
|
-
this.initialize().catch(err => {
|
|
596
|
+
this.initialize().catch((err) => {
|
|
597
|
+
throw err;
|
|
598
|
+
});
|
|
549
599
|
this._log.info('searchAdReviewCenterAds stream %j', request);
|
|
550
600
|
return this.descriptors.page.searchAdReviewCenterAds.createStream(this.innerApiCalls.searchAdReviewCenterAds, request, callSettings);
|
|
551
601
|
}
|
|
@@ -555,6 +605,13 @@ class AdReviewCenterAdServiceClient {
|
|
|
555
605
|
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
556
606
|
* @param {Object} request
|
|
557
607
|
* The request object that will be sent.
|
|
608
|
+
* @param {google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus} [request.status]
|
|
609
|
+
* Optional. Only return ads with the given status.
|
|
610
|
+
* @param {google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus} [request.manualReviewStatus]
|
|
611
|
+
* Optional. Only return ads with the given manual review status. Only
|
|
612
|
+
* available for networks with Manual Creative Review enabled. For more
|
|
613
|
+
* information, see
|
|
614
|
+
* https://support.google.com/admanager/answer/2586531#manual-creative-review.
|
|
558
615
|
* @param {string} request.parent
|
|
559
616
|
* Required. The parent, which owns this collection of AdReviewCenterAds.
|
|
560
617
|
* Format: networks/{network_code}/webProperties/{web_property_code}
|
|
@@ -578,14 +635,14 @@ class AdReviewCenterAdServiceClient {
|
|
|
578
635
|
* @param {string} [request.pageToken]
|
|
579
636
|
* Optional. The page token to fetch the next page of AdReviewCenterAds. This
|
|
580
637
|
* is the value returned from a previous Search request, or empty.
|
|
581
|
-
* @param {google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus} request.status
|
|
582
|
-
* Required. Only return ads with the given status.
|
|
583
638
|
* @param {string[]} [request.adReviewCenterAdId]
|
|
584
|
-
* Optional.
|
|
639
|
+
* Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
|
|
640
|
+
* no other filter can be set (other than page size and page token).
|
|
585
641
|
* @param {google.type.Interval} [request.dateTimeRange]
|
|
586
642
|
* Optional. If provided, only return ads that served within the given date
|
|
587
643
|
* range (inclusive). The date range must be within the last 30 days. If not
|
|
588
|
-
* provided, the date range will be the last 30 days.
|
|
644
|
+
* provided, the date range will be the last 30 days. This filter does not
|
|
645
|
+
* apply to the PENDING manual review status.
|
|
589
646
|
* @param {string[]} [request.searchText]
|
|
590
647
|
* Optional. If provided, restrict the search to AdReviewCenterAds associated
|
|
591
648
|
* with the text (including any text on the ad or in the destination URL). If
|
|
@@ -595,7 +652,7 @@ class AdReviewCenterAdServiceClient {
|
|
|
595
652
|
* @param {number[]} [request.buyerAccountId]
|
|
596
653
|
* Optional. If provided, restrict the search to creatives belonging to one of
|
|
597
654
|
* the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
|
|
598
|
-
* buyer account IDs can be found
|
|
655
|
+
* buyer account IDs can be found using the `ProgrammaticBuyerService`.
|
|
599
656
|
* @param {object} [options]
|
|
600
657
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
601
658
|
* @returns {Object}
|
|
@@ -613,45 +670,48 @@ class AdReviewCenterAdServiceClient {
|
|
|
613
670
|
options = options || {};
|
|
614
671
|
options.otherArgs = options.otherArgs || {};
|
|
615
672
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
616
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
617
|
-
|
|
618
|
-
|
|
673
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
674
|
+
this._gaxModule.routingHeader.fromParams({
|
|
675
|
+
parent: request.parent ?? '',
|
|
676
|
+
});
|
|
619
677
|
const defaultCallSettings = this._defaults['searchAdReviewCenterAds'];
|
|
620
678
|
const callSettings = defaultCallSettings.merge(options);
|
|
621
|
-
this.initialize().catch(err => {
|
|
679
|
+
this.initialize().catch((err) => {
|
|
680
|
+
throw err;
|
|
681
|
+
});
|
|
622
682
|
this._log.info('searchAdReviewCenterAds iterate %j', request);
|
|
623
683
|
return this.descriptors.page.searchAdReviewCenterAds.asyncIterate(this.innerApiCalls['searchAdReviewCenterAds'], request, callSettings);
|
|
624
684
|
}
|
|
625
685
|
/**
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
686
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
|
687
|
+
* method to poll the operation result at intervals as recommended by the API
|
|
688
|
+
* service.
|
|
689
|
+
*
|
|
690
|
+
* @param {Object} request - The request object that will be sent.
|
|
691
|
+
* @param {string} request.name - The name of the operation resource.
|
|
692
|
+
* @param {Object=} options
|
|
693
|
+
* Optional parameters. You can override the default settings for this call,
|
|
694
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
695
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
696
|
+
* for the details.
|
|
697
|
+
* @param {function(?Error, ?Object)=} callback
|
|
698
|
+
* The function which will be called with the result of the API call.
|
|
699
|
+
*
|
|
700
|
+
* The second parameter to the callback is an object representing
|
|
701
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
702
|
+
* @return {Promise} - The promise which resolves to an array.
|
|
703
|
+
* The first element of the array is an object representing
|
|
704
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
705
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
|
706
|
+
*
|
|
707
|
+
* @example
|
|
708
|
+
* ```
|
|
709
|
+
* const client = longrunning.operationsClient();
|
|
710
|
+
* const name = '';
|
|
711
|
+
* const [response] = await client.getOperation({name});
|
|
712
|
+
* // doThingsWith(response)
|
|
713
|
+
* ```
|
|
714
|
+
*/
|
|
655
715
|
getOperation(request, optionsOrCallback, callback) {
|
|
656
716
|
let options;
|
|
657
717
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -828,7 +888,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
828
888
|
* @returns {string} A string representing the network_code.
|
|
829
889
|
*/
|
|
830
890
|
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
831
|
-
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
891
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
892
|
+
.network_code;
|
|
832
893
|
}
|
|
833
894
|
/**
|
|
834
895
|
* Parse the asset_key from AdBreak resource.
|
|
@@ -949,7 +1010,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
949
1010
|
* @returns {string} A string representing the network_code.
|
|
950
1011
|
*/
|
|
951
1012
|
matchNetworkCodeFromApplicationName(applicationName) {
|
|
952
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1013
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1014
|
+
.network_code;
|
|
953
1015
|
}
|
|
954
1016
|
/**
|
|
955
1017
|
* Parse the application from Application resource.
|
|
@@ -959,7 +1021,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
959
1021
|
* @returns {string} A string representing the application.
|
|
960
1022
|
*/
|
|
961
1023
|
matchApplicationFromApplicationName(applicationName) {
|
|
962
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1024
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1025
|
+
.application;
|
|
963
1026
|
}
|
|
964
1027
|
/**
|
|
965
1028
|
* Return a fully-qualified audienceSegment resource name string.
|
|
@@ -1048,7 +1111,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1048
1111
|
* @returns {string} A string representing the network_code.
|
|
1049
1112
|
*/
|
|
1050
1113
|
matchNetworkCodeFromBrowserName(browserName) {
|
|
1051
|
-
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
1114
|
+
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
1115
|
+
.network_code;
|
|
1052
1116
|
}
|
|
1053
1117
|
/**
|
|
1054
1118
|
* Parse the browser from Browser resource.
|
|
@@ -1093,6 +1157,39 @@ class AdReviewCenterAdServiceClient {
|
|
|
1093
1157
|
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
1094
1158
|
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
1095
1159
|
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Return a fully-qualified childPublisher resource name string.
|
|
1162
|
+
*
|
|
1163
|
+
* @param {string} network_code
|
|
1164
|
+
* @param {string} child_publisher
|
|
1165
|
+
* @returns {string} Resource name string.
|
|
1166
|
+
*/
|
|
1167
|
+
childPublisherPath(networkCode, childPublisher) {
|
|
1168
|
+
return this.pathTemplates.childPublisherPathTemplate.render({
|
|
1169
|
+
network_code: networkCode,
|
|
1170
|
+
child_publisher: childPublisher,
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Parse the network_code from ChildPublisher resource.
|
|
1175
|
+
*
|
|
1176
|
+
* @param {string} childPublisherName
|
|
1177
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
1178
|
+
* @returns {string} A string representing the network_code.
|
|
1179
|
+
*/
|
|
1180
|
+
matchNetworkCodeFromChildPublisherName(childPublisherName) {
|
|
1181
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Parse the child_publisher from ChildPublisher resource.
|
|
1185
|
+
*
|
|
1186
|
+
* @param {string} childPublisherName
|
|
1187
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
1188
|
+
* @returns {string} A string representing the child_publisher.
|
|
1189
|
+
*/
|
|
1190
|
+
matchChildPublisherFromChildPublisherName(childPublisherName) {
|
|
1191
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
|
|
1192
|
+
}
|
|
1096
1193
|
/**
|
|
1097
1194
|
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
1098
1195
|
*
|
|
@@ -1180,7 +1277,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1180
1277
|
* @returns {string} A string representing the network_code.
|
|
1181
1278
|
*/
|
|
1182
1279
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
1183
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
1280
|
+
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
1281
|
+
.network_code;
|
|
1184
1282
|
}
|
|
1185
1283
|
/**
|
|
1186
1284
|
* Parse the company from Company resource.
|
|
@@ -1213,7 +1311,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1213
1311
|
* @returns {string} A string representing the network_code.
|
|
1214
1312
|
*/
|
|
1215
1313
|
matchNetworkCodeFromContactName(contactName) {
|
|
1216
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
1314
|
+
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
1315
|
+
.network_code;
|
|
1217
1316
|
}
|
|
1218
1317
|
/**
|
|
1219
1318
|
* Parse the contact from Contact resource.
|
|
@@ -1246,7 +1345,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1246
1345
|
* @returns {string} A string representing the network_code.
|
|
1247
1346
|
*/
|
|
1248
1347
|
matchNetworkCodeFromContentName(contentName) {
|
|
1249
|
-
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
1348
|
+
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
1349
|
+
.network_code;
|
|
1250
1350
|
}
|
|
1251
1351
|
/**
|
|
1252
1352
|
* Parse the content from Content resource.
|
|
@@ -1279,7 +1379,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1279
1379
|
* @returns {string} A string representing the network_code.
|
|
1280
1380
|
*/
|
|
1281
1381
|
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
1282
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1382
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1383
|
+
.network_code;
|
|
1283
1384
|
}
|
|
1284
1385
|
/**
|
|
1285
1386
|
* Parse the content_bundle from ContentBundle resource.
|
|
@@ -1289,7 +1390,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1289
1390
|
* @returns {string} A string representing the content_bundle.
|
|
1290
1391
|
*/
|
|
1291
1392
|
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
1292
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1393
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1394
|
+
.content_bundle;
|
|
1293
1395
|
}
|
|
1294
1396
|
/**
|
|
1295
1397
|
* Return a fully-qualified contentLabel resource name string.
|
|
@@ -1312,7 +1414,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1312
1414
|
* @returns {string} A string representing the network_code.
|
|
1313
1415
|
*/
|
|
1314
1416
|
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
1315
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1417
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1418
|
+
.network_code;
|
|
1316
1419
|
}
|
|
1317
1420
|
/**
|
|
1318
1421
|
* Parse the content_label from ContentLabel resource.
|
|
@@ -1322,7 +1425,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1322
1425
|
* @returns {string} A string representing the content_label.
|
|
1323
1426
|
*/
|
|
1324
1427
|
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
1325
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1428
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1429
|
+
.content_label;
|
|
1326
1430
|
}
|
|
1327
1431
|
/**
|
|
1328
1432
|
* Return a fully-qualified creativeTemplate resource name string.
|
|
@@ -1378,7 +1482,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1378
1482
|
* @returns {string} A string representing the network_code.
|
|
1379
1483
|
*/
|
|
1380
1484
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
1381
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1485
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1486
|
+
.network_code;
|
|
1382
1487
|
}
|
|
1383
1488
|
/**
|
|
1384
1489
|
* Parse the custom_field from CustomField resource.
|
|
@@ -1388,7 +1493,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1388
1493
|
* @returns {string} A string representing the custom_field.
|
|
1389
1494
|
*/
|
|
1390
1495
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
1391
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1496
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1497
|
+
.custom_field;
|
|
1392
1498
|
}
|
|
1393
1499
|
/**
|
|
1394
1500
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -1609,7 +1715,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1609
1715
|
* @returns {string} A string representing the network_code.
|
|
1610
1716
|
*/
|
|
1611
1717
|
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
1612
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1718
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1719
|
+
.network_code;
|
|
1613
1720
|
}
|
|
1614
1721
|
/**
|
|
1615
1722
|
* Parse the geo_target from GeoTarget resource.
|
|
@@ -1619,7 +1726,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1619
1726
|
* @returns {string} A string representing the geo_target.
|
|
1620
1727
|
*/
|
|
1621
1728
|
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
1622
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1729
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1730
|
+
.geo_target;
|
|
1623
1731
|
}
|
|
1624
1732
|
/**
|
|
1625
1733
|
* Return a fully-qualified label resource name string.
|
|
@@ -1654,6 +1762,76 @@ class AdReviewCenterAdServiceClient {
|
|
|
1654
1762
|
matchLabelFromLabelName(labelName) {
|
|
1655
1763
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
1656
1764
|
}
|
|
1765
|
+
/**
|
|
1766
|
+
* Return a fully-qualified lineItem resource name string.
|
|
1767
|
+
*
|
|
1768
|
+
* @param {string} network_code
|
|
1769
|
+
* @param {string} line_item
|
|
1770
|
+
* @returns {string} Resource name string.
|
|
1771
|
+
*/
|
|
1772
|
+
lineItemPath(networkCode, lineItem) {
|
|
1773
|
+
return this.pathTemplates.lineItemPathTemplate.render({
|
|
1774
|
+
network_code: networkCode,
|
|
1775
|
+
line_item: lineItem,
|
|
1776
|
+
});
|
|
1777
|
+
}
|
|
1778
|
+
/**
|
|
1779
|
+
* Parse the network_code from LineItem resource.
|
|
1780
|
+
*
|
|
1781
|
+
* @param {string} lineItemName
|
|
1782
|
+
* A fully-qualified path representing LineItem resource.
|
|
1783
|
+
* @returns {string} A string representing the network_code.
|
|
1784
|
+
*/
|
|
1785
|
+
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1786
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1787
|
+
.network_code;
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Parse the line_item from LineItem resource.
|
|
1791
|
+
*
|
|
1792
|
+
* @param {string} lineItemName
|
|
1793
|
+
* A fully-qualified path representing LineItem resource.
|
|
1794
|
+
* @returns {string} A string representing the line_item.
|
|
1795
|
+
*/
|
|
1796
|
+
matchLineItemFromLineItemName(lineItemName) {
|
|
1797
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1798
|
+
.line_item;
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
* Return a fully-qualified linkedDevice resource name string.
|
|
1802
|
+
*
|
|
1803
|
+
* @param {string} network_code
|
|
1804
|
+
* @param {string} linked_device
|
|
1805
|
+
* @returns {string} Resource name string.
|
|
1806
|
+
*/
|
|
1807
|
+
linkedDevicePath(networkCode, linkedDevice) {
|
|
1808
|
+
return this.pathTemplates.linkedDevicePathTemplate.render({
|
|
1809
|
+
network_code: networkCode,
|
|
1810
|
+
linked_device: linkedDevice,
|
|
1811
|
+
});
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Parse the network_code from LinkedDevice resource.
|
|
1815
|
+
*
|
|
1816
|
+
* @param {string} linkedDeviceName
|
|
1817
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1818
|
+
* @returns {string} A string representing the network_code.
|
|
1819
|
+
*/
|
|
1820
|
+
matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
|
|
1821
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1822
|
+
.network_code;
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* Parse the linked_device from LinkedDevice resource.
|
|
1826
|
+
*
|
|
1827
|
+
* @param {string} linkedDeviceName
|
|
1828
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1829
|
+
* @returns {string} A string representing the linked_device.
|
|
1830
|
+
*/
|
|
1831
|
+
matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
|
|
1832
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1833
|
+
.linked_device;
|
|
1834
|
+
}
|
|
1657
1835
|
/**
|
|
1658
1836
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
1659
1837
|
*
|
|
@@ -1708,7 +1886,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1708
1886
|
* @returns {string} A string representing the network_code.
|
|
1709
1887
|
*/
|
|
1710
1888
|
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1711
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1889
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1890
|
+
.network_code;
|
|
1712
1891
|
}
|
|
1713
1892
|
/**
|
|
1714
1893
|
* Parse the mobile_carrier from MobileCarrier resource.
|
|
@@ -1718,7 +1897,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1718
1897
|
* @returns {string} A string representing the mobile_carrier.
|
|
1719
1898
|
*/
|
|
1720
1899
|
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1721
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1900
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
1901
|
+
.mobile_carrier;
|
|
1722
1902
|
}
|
|
1723
1903
|
/**
|
|
1724
1904
|
* Return a fully-qualified mobileDevice resource name string.
|
|
@@ -1741,7 +1921,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1741
1921
|
* @returns {string} A string representing the network_code.
|
|
1742
1922
|
*/
|
|
1743
1923
|
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1744
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1924
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1925
|
+
.network_code;
|
|
1745
1926
|
}
|
|
1746
1927
|
/**
|
|
1747
1928
|
* Parse the mobile_device from MobileDevice resource.
|
|
@@ -1751,7 +1932,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1751
1932
|
* @returns {string} A string representing the mobile_device.
|
|
1752
1933
|
*/
|
|
1753
1934
|
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1754
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1935
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
1936
|
+
.mobile_device;
|
|
1755
1937
|
}
|
|
1756
1938
|
/**
|
|
1757
1939
|
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
@@ -1805,7 +1987,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1805
1987
|
* @returns {string} A string representing the network_code.
|
|
1806
1988
|
*/
|
|
1807
1989
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
1808
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1990
|
+
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
1991
|
+
.network_code;
|
|
1809
1992
|
}
|
|
1810
1993
|
/**
|
|
1811
1994
|
* Return a fully-qualified operatingSystem resource name string.
|
|
@@ -1927,7 +2110,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1927
2110
|
* @returns {string} A string representing the network_code.
|
|
1928
2111
|
*/
|
|
1929
2112
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
1930
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2113
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2114
|
+
.network_code;
|
|
1931
2115
|
}
|
|
1932
2116
|
/**
|
|
1933
2117
|
* Parse the placement from Placement resource.
|
|
@@ -1937,7 +2121,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
1937
2121
|
* @returns {string} A string representing the placement.
|
|
1938
2122
|
*/
|
|
1939
2123
|
matchPlacementFromPlacementName(placementName) {
|
|
1940
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2124
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2125
|
+
.placement;
|
|
1941
2126
|
}
|
|
1942
2127
|
/**
|
|
1943
2128
|
* Return a fully-qualified privateAuction resource name string.
|
|
@@ -2071,6 +2256,39 @@ class AdReviewCenterAdServiceClient {
|
|
|
2071
2256
|
matchReportFromReportName(reportName) {
|
|
2072
2257
|
return this.pathTemplates.reportPathTemplate.match(reportName).report;
|
|
2073
2258
|
}
|
|
2259
|
+
/**
|
|
2260
|
+
* Return a fully-qualified richMediaAdsCompany resource name string.
|
|
2261
|
+
*
|
|
2262
|
+
* @param {string} network_code
|
|
2263
|
+
* @param {string} rich_media_ads_company
|
|
2264
|
+
* @returns {string} Resource name string.
|
|
2265
|
+
*/
|
|
2266
|
+
richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
|
|
2267
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
|
|
2268
|
+
network_code: networkCode,
|
|
2269
|
+
rich_media_ads_company: richMediaAdsCompany,
|
|
2270
|
+
});
|
|
2271
|
+
}
|
|
2272
|
+
/**
|
|
2273
|
+
* Parse the network_code from RichMediaAdsCompany resource.
|
|
2274
|
+
*
|
|
2275
|
+
* @param {string} richMediaAdsCompanyName
|
|
2276
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
2277
|
+
* @returns {string} A string representing the network_code.
|
|
2278
|
+
*/
|
|
2279
|
+
matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
2280
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
|
|
2281
|
+
}
|
|
2282
|
+
/**
|
|
2283
|
+
* Parse the rich_media_ads_company from RichMediaAdsCompany resource.
|
|
2284
|
+
*
|
|
2285
|
+
* @param {string} richMediaAdsCompanyName
|
|
2286
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
2287
|
+
* @returns {string} A string representing the rich_media_ads_company.
|
|
2288
|
+
*/
|
|
2289
|
+
matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
2290
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
|
|
2291
|
+
}
|
|
2074
2292
|
/**
|
|
2075
2293
|
* Return a fully-qualified role resource name string.
|
|
2076
2294
|
*
|
|
@@ -2257,7 +2475,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
2257
2475
|
* @returns {string} A string representing the network_code.
|
|
2258
2476
|
*/
|
|
2259
2477
|
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
2260
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2478
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2479
|
+
.network_code;
|
|
2261
2480
|
}
|
|
2262
2481
|
/**
|
|
2263
2482
|
* Parse the web_property from WebProperty resource.
|
|
@@ -2267,7 +2486,8 @@ class AdReviewCenterAdServiceClient {
|
|
|
2267
2486
|
* @returns {string} A string representing the web_property.
|
|
2268
2487
|
*/
|
|
2269
2488
|
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
2270
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2489
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2490
|
+
.web_property;
|
|
2271
2491
|
}
|
|
2272
2492
|
/**
|
|
2273
2493
|
* Terminate the gRPC channel and close the client.
|
|
@@ -2277,7 +2497,7 @@ class AdReviewCenterAdServiceClient {
|
|
|
2277
2497
|
*/
|
|
2278
2498
|
close() {
|
|
2279
2499
|
if (this.adReviewCenterAdServiceStub && !this._terminated) {
|
|
2280
|
-
return this.adReviewCenterAdServiceStub.then(stub => {
|
|
2500
|
+
return this.adReviewCenterAdServiceStub.then((stub) => {
|
|
2281
2501
|
this._log.info('ending gRPC channel');
|
|
2282
2502
|
this._terminated = true;
|
|
2283
2503
|
stub.close();
|