@google-ads/admanager 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +25 -2
- package/build/protos/google/ads/admanager/v1/ad_break_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/ad_break_service.proto +5 -4
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto +26 -1
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +9 -1
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +20 -8
- package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +4 -3
- package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +23 -6
- package/build/protos/google/ads/admanager/v1/application_enums.proto +156 -0
- package/build/protos/google/ads/admanager/v1/application_messages.proto +51 -4
- package/build/protos/google/ads/admanager/v1/application_service.proto +198 -4
- package/build/protos/google/ads/admanager/v1/applied_label.proto +1 -1
- package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +10 -4
- package/build/protos/google/ads/admanager/v1/bandwidth_group_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/browser_language_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/browser_language_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/browser_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/browser_service.proto +13 -4
- package/build/protos/google/ads/admanager/v1/child_publisher_messages.proto +43 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +81 -4
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +83 -4
- package/build/protos/google/ads/admanager/v1/company_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/company_messages.proto +36 -23
- package/build/protos/google/ads/admanager/v1/company_service.proto +22 -4
- package/build/protos/google/ads/admanager/v1/contact_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/contact_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/contact_service.proto +22 -6
- package/build/protos/google/ads/admanager/v1/content_bundle_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/content_label_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/content_label_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/content_messages.proto +2 -2
- package/build/protos/google/ads/admanager/v1/content_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/creative_template_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/creative_template_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/creative_template_service.proto +18 -4
- package/build/protos/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +3 -4
- package/build/protos/google/ads/admanager/v1/custom_field_service.proto +20 -6
- package/build/protos/google/ads/admanager/v1/custom_field_value.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +3 -3
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +17 -6
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +15 -4
- package/build/protos/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_capability_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_capability_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/device_category_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_category_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/device_manufacturer_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/early_ad_break_notification_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +3 -3
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +5 -4
- package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/exchange_syndication_product_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/frequency_cap.proto +1 -1
- package/build/protos/google/ads/admanager/v1/geo_target_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/geo_target_service.proto +14 -4
- package/build/protos/google/ads/admanager/v1/goal.proto +1 -1
- package/build/protos/google/ads/admanager/v1/goal_enums.proto +10 -1
- package/build/protos/google/ads/admanager/v1/label_enums.proto +56 -0
- package/build/protos/google/ads/admanager/v1/label_messages.proto +19 -1
- package/build/protos/google/ads/admanager/v1/label_service.proto +313 -0
- package/build/protos/google/ads/admanager/v1/line_item_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/line_item_messages.proto +5 -4
- package/build/protos/google/ads/admanager/v1/line_item_service.proto +16 -4
- package/build/protos/google/ads/admanager/v1/{company_type_enum.proto → linked_device_enums.proto} +15 -24
- package/build/protos/google/ads/admanager/v1/linked_device_messages.proto +58 -0
- package/build/protos/google/ads/admanager/v1/linked_device_service.proto +138 -0
- package/build/protos/google/ads/admanager/v1/live_stream_event_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/mcm_earnings_messages.proto +124 -0
- package/build/protos/google/ads/admanager/v1/mcm_earnings_service.proto +115 -0
- package/build/protos/google/ads/admanager/v1/mcm_enums.proto +97 -0
- package/build/protos/google/ads/admanager/v1/mobile_carrier_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +12 -4
- package/build/protos/google/ads/admanager/v1/mobile_device_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +12 -4
- package/build/protos/google/ads/admanager/v1/mobile_device_submodel_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +12 -4
- package/build/protos/google/ads/admanager/v1/network_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/network_service.proto +3 -2
- package/build/protos/google/ads/admanager/v1/operating_system_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/operating_system_service.proto +11 -4
- package/build/protos/google/ads/admanager/v1/operating_system_version_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +13 -4
- package/build/protos/google/ads/admanager/v1/order_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/order_messages.proto +5 -5
- package/build/protos/google/ads/admanager/v1/order_service.proto +28 -4
- package/build/protos/google/ads/admanager/v1/placement_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/placement_messages.proto +4 -3
- package/build/protos/google/ads/admanager/v1/placement_service.proto +18 -6
- package/build/protos/google/ads/admanager/v1/private_auction_deal_messages.proto +3 -3
- package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +24 -6
- package/build/protos/google/ads/admanager/v1/private_auction_messages.proto +3 -3
- package/build/protos/google/ads/admanager/v1/private_auction_service.proto +5 -4
- package/build/protos/google/ads/admanager/v1/private_marketplace_enums.proto +4 -1
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +17 -4
- package/build/protos/google/ads/admanager/v1/report_definition.proto +1944 -916
- package/build/protos/google/ads/admanager/v1/report_messages.proto +7 -5
- package/build/protos/google/ads/admanager/v1/report_service.proto +5 -4
- package/build/protos/google/ads/admanager/v1/report_value.proto +1 -1
- package/build/protos/google/ads/admanager/v1/request_platform_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/rich_media_ads_company_enums.proto +53 -0
- package/build/protos/google/ads/admanager/v1/rich_media_ads_company_messages.proto +57 -0
- package/build/protos/google/ads/admanager/v1/rich_media_ads_company_service.proto +143 -0
- package/build/protos/google/ads/admanager/v1/role_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/role_messages.proto +4 -3
- package/build/protos/google/ads/admanager/v1/role_service.proto +14 -4
- package/build/protos/google/ads/admanager/v1/site_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/site_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/site_service.proto +16 -6
- package/build/protos/google/ads/admanager/v1/size.proto +1 -1
- package/build/protos/google/ads/admanager/v1/size_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/targeting.proto +4 -4
- package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +3 -3
- package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +3 -2
- package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/team_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/team_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/team_service.proto +18 -6
- package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/user_messages.proto +4 -3
- package/build/protos/google/ads/admanager/v1/user_service.proto +3 -2
- package/build/protos/google/ads/admanager/v1/video_position_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/web_property.proto +1 -1
- package/build/protos/protos.d.ts +15212 -8355
- package/build/protos/protos.js +42222 -24288
- package/build/protos/protos.json +5571 -3409
- package/build/src/index.d.ts +13 -1
- package/build/src/index.js +10 -2
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +121 -49
- package/build/src/v1/ad_break_service_client.js +263 -82
- package/build/src/v1/ad_break_service_client.js.map +1 -1
- package/build/src/v1/ad_break_service_proto_list.json +13 -1
- package/build/src/v1/ad_review_center_ad_service_client.d.ts +185 -95
- package/build/src/v1/ad_review_center_ad_service_client.js +290 -106
- package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
- package/build/src/v1/ad_review_center_ad_service_proto_list.json +13 -1
- package/build/src/v1/ad_unit_service_client.d.ts +206 -86
- package/build/src/v1/ad_unit_service_client.js +376 -121
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_proto_list.json +13 -1
- package/build/src/v1/application_service_client.d.ts +316 -44
- package/build/src/v1/application_service_client.js +515 -68
- package/build/src/v1/application_service_client.js.map +1 -1
- package/build/src/v1/application_service_client_config.json +24 -0
- package/build/src/v1/application_service_proto_list.json +13 -1
- package/build/src/v1/audience_segment_service_client.d.ts +131 -44
- package/build/src/v1/audience_segment_service_client.js +237 -69
- package/build/src/v1/audience_segment_service_client.js.map +1 -1
- package/build/src/v1/audience_segment_service_proto_list.json +13 -1
- package/build/src/v1/bandwidth_group_service_client.d.ts +134 -44
- package/build/src/v1/bandwidth_group_service_client.js +239 -69
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
- package/build/src/v1/bandwidth_group_service_proto_list.json +13 -1
- package/build/src/v1/browser_language_service_client.d.ts +134 -44
- package/build/src/v1/browser_language_service_client.js +239 -69
- package/build/src/v1/browser_language_service_client.js.map +1 -1
- package/build/src/v1/browser_language_service_proto_list.json +13 -1
- package/build/src/v1/browser_service_client.d.ts +140 -44
- package/build/src/v1/browser_service_client.js +237 -67
- package/build/src/v1/browser_service_client.js.map +1 -1
- package/build/src/v1/browser_service_proto_list.json +13 -1
- package/build/src/v1/cms_metadata_key_service_client.d.ts +192 -44
- package/build/src/v1/cms_metadata_key_service_client.js +329 -69
- package/build/src/v1/cms_metadata_key_service_client.js.map +1 -1
- package/build/src/v1/cms_metadata_key_service_client_config.json +8 -0
- package/build/src/v1/cms_metadata_key_service_proto_list.json +13 -1
- package/build/src/v1/cms_metadata_value_service_client.d.ts +196 -44
- package/build/src/v1/cms_metadata_value_service_client.js +331 -69
- package/build/src/v1/cms_metadata_value_service_client.js.map +1 -1
- package/build/src/v1/cms_metadata_value_service_client_config.json +8 -0
- package/build/src/v1/cms_metadata_value_service_proto_list.json +13 -1
- package/build/src/v1/company_service_client.d.ts +167 -44
- package/build/src/v1/company_service_client.js +255 -67
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +13 -1
- package/build/src/v1/contact_service_client.d.ts +163 -46
- package/build/src/v1/contact_service_client.js +311 -92
- package/build/src/v1/contact_service_client.js.map +1 -1
- package/build/src/v1/contact_service_proto_list.json +13 -1
- package/build/src/v1/content_bundle_service_client.d.ts +134 -44
- package/build/src/v1/content_bundle_service_client.js +237 -68
- package/build/src/v1/content_bundle_service_client.js.map +1 -1
- package/build/src/v1/content_bundle_service_proto_list.json +13 -1
- package/build/src/v1/content_label_service_client.d.ts +134 -44
- package/build/src/v1/content_label_service_client.js +237 -68
- package/build/src/v1/content_label_service_client.js.map +1 -1
- package/build/src/v1/content_label_service_proto_list.json +13 -1
- package/build/src/v1/content_service_client.d.ts +134 -44
- package/build/src/v1/content_service_client.js +233 -67
- package/build/src/v1/content_service_client.js.map +1 -1
- package/build/src/v1/content_service_proto_list.json +13 -1
- package/build/src/v1/creative_template_service_client.d.ts +155 -44
- package/build/src/v1/creative_template_service_client.js +253 -69
- package/build/src/v1/creative_template_service_client.js.map +1 -1
- package/build/src/v1/creative_template_service_proto_list.json +13 -1
- package/build/src/v1/custom_field_service_client.d.ts +161 -50
- package/build/src/v1/custom_field_service_client.js +335 -104
- package/build/src/v1/custom_field_service_client.js.map +1 -1
- package/build/src/v1/custom_field_service_proto_list.json +13 -1
- package/build/src/v1/custom_targeting_key_service_client.d.ts +154 -52
- package/build/src/v1/custom_targeting_key_service_client.js +332 -105
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_proto_list.json +13 -1
- package/build/src/v1/custom_targeting_value_service_client.d.ts +150 -48
- package/build/src/v1/custom_targeting_value_service_client.js +248 -69
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +13 -1
- package/build/src/v1/device_capability_service_client.d.ts +134 -44
- package/build/src/v1/device_capability_service_client.js +239 -69
- package/build/src/v1/device_capability_service_client.js.map +1 -1
- package/build/src/v1/device_capability_service_proto_list.json +13 -1
- package/build/src/v1/device_category_service_client.d.ts +134 -44
- package/build/src/v1/device_category_service_client.js +239 -69
- package/build/src/v1/device_category_service_client.js.map +1 -1
- package/build/src/v1/device_category_service_proto_list.json +13 -1
- package/build/src/v1/device_manufacturer_service_client.d.ts +134 -44
- package/build/src/v1/device_manufacturer_service_client.js +240 -69
- package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
- package/build/src/v1/device_manufacturer_service_proto_list.json +13 -1
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +121 -49
- package/build/src/v1/entity_signals_mapping_service_client.js +280 -89
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +13 -1
- package/build/src/v1/gapic_metadata.json +302 -0
- package/build/src/v1/geo_target_service_client.d.ts +143 -44
- package/build/src/v1/geo_target_service_client.js +239 -67
- package/build/src/v1/geo_target_service_client.js.map +1 -1
- package/build/src/v1/geo_target_service_proto_list.json +13 -1
- package/build/src/v1/index.d.ts +4 -0
- package/build/src/v1/index.js +9 -1
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/label_service_client.d.ts +1631 -0
- package/build/src/v1/label_service_client.js +2466 -0
- package/build/src/v1/label_service_client.js.map +1 -0
- package/build/src/v1/label_service_client_config.json +58 -0
- package/build/src/v1/label_service_proto_list.json +139 -0
- package/build/src/v1/line_item_service_client.d.ts +149 -44
- package/build/src/v1/line_item_service_client.js +243 -67
- package/build/src/v1/line_item_service_client.js.map +1 -1
- package/build/src/v1/line_item_service_proto_list.json +13 -1
- package/build/src/v1/linked_device_service_client.d.ts +1465 -0
- package/build/src/v1/linked_device_service_client.js +2200 -0
- package/build/src/v1/linked_device_service_client.js.map +1 -0
- package/build/src/v1/linked_device_service_client_config.json +34 -0
- package/build/src/v1/linked_device_service_proto_list.json +139 -0
- package/build/src/v1/mcm_earnings_service_client.d.ts +1426 -0
- package/build/src/v1/mcm_earnings_service_client.js +2144 -0
- package/build/src/v1/mcm_earnings_service_client.js.map +1 -0
- package/build/src/v1/mcm_earnings_service_client_config.json +30 -0
- package/build/src/v1/mcm_earnings_service_proto_list.json +139 -0
- package/build/src/v1/mobile_carrier_service_client.d.ts +137 -44
- package/build/src/v1/mobile_carrier_service_client.js +239 -68
- package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
- package/build/src/v1/mobile_carrier_service_proto_list.json +13 -1
- package/build/src/v1/mobile_device_service_client.d.ts +137 -44
- package/build/src/v1/mobile_device_service_client.js +239 -68
- package/build/src/v1/mobile_device_service_client.js.map +1 -1
- package/build/src/v1/mobile_device_service_proto_list.json +13 -1
- package/build/src/v1/mobile_device_submodel_service_client.d.ts +140 -47
- package/build/src/v1/mobile_device_submodel_service_client.js +242 -69
- package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
- package/build/src/v1/mobile_device_submodel_service_proto_list.json +13 -1
- package/build/src/v1/network_service_client.d.ts +101 -29
- package/build/src/v1/network_service_client.js +206 -55
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_proto_list.json +13 -1
- package/build/src/v1/operating_system_service_client.d.ts +134 -44
- package/build/src/v1/operating_system_service_client.js +239 -69
- package/build/src/v1/operating_system_service_client.js.map +1 -1
- package/build/src/v1/operating_system_service_proto_list.json +13 -1
- package/build/src/v1/operating_system_version_service_client.d.ts +143 -47
- package/build/src/v1/operating_system_version_service_client.js +244 -69
- package/build/src/v1/operating_system_version_service_client.js.map +1 -1
- package/build/src/v1/operating_system_version_service_proto_list.json +13 -1
- package/build/src/v1/order_service_client.d.ts +190 -49
- package/build/src/v1/order_service_client.js +267 -67
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +13 -1
- package/build/src/v1/placement_service_client.d.ts +153 -48
- package/build/src/v1/placement_service_client.js +345 -110
- package/build/src/v1/placement_service_client.js.map +1 -1
- package/build/src/v1/placement_service_proto_list.json +13 -1
- package/build/src/v1/private_auction_deal_service_client.d.ts +173 -50
- package/build/src/v1/private_auction_deal_service_client.js +290 -81
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
- package/build/src/v1/private_auction_deal_service_proto_list.json +13 -1
- package/build/src/v1/private_auction_service_client.d.ts +115 -43
- package/build/src/v1/private_auction_service_client.js +251 -77
- package/build/src/v1/private_auction_service_client.js.map +1 -1
- package/build/src/v1/private_auction_service_proto_list.json +13 -1
- package/build/src/v1/programmatic_buyer_service_client.d.ts +152 -44
- package/build/src/v1/programmatic_buyer_service_client.js +252 -69
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
- package/build/src/v1/programmatic_buyer_service_proto_list.json +13 -1
- package/build/src/v1/report_service_client.d.ts +174 -102
- package/build/src/v1/report_service_client.js +322 -122
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +13 -1
- package/build/src/v1/rich_media_ads_company_service_client.d.ts +1475 -0
- package/build/src/v1/rich_media_ads_company_service_client.js +2208 -0
- package/build/src/v1/rich_media_ads_company_service_client.js.map +1 -0
- package/build/src/v1/rich_media_ads_company_service_client_config.json +34 -0
- package/build/src/v1/rich_media_ads_company_service_proto_list.json +139 -0
- package/build/src/v1/role_service_client.d.ts +143 -44
- package/build/src/v1/role_service_client.js +239 -67
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +13 -1
- package/build/src/v1/site_service_client.d.ts +146 -47
- package/build/src/v1/site_service_client.js +327 -104
- package/build/src/v1/site_service_client.js.map +1 -1
- package/build/src/v1/site_service_proto_list.json +13 -1
- package/build/src/v1/taxonomy_category_service_client.d.ts +112 -40
- package/build/src/v1/taxonomy_category_service_client.js +223 -65
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +13 -1
- package/build/src/v1/team_service_client.d.ts +151 -46
- package/build/src/v1/team_service_client.js +331 -104
- package/build/src/v1/team_service_client.js.map +1 -1
- package/build/src/v1/team_service_proto_list.json +13 -1
- package/build/src/v1/user_service_client.d.ts +72 -0
- package/build/src/v1/user_service_client.js +195 -49
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +13 -1
- package/package.json +1 -1
- package/build/protos/google/ads/admanager/v1/company_credit_status_enum.proto +0 -97
|
@@ -96,11 +96,19 @@ class AdUnitServiceClient {
|
|
|
96
96
|
constructor(opts, gaxInstance) {
|
|
97
97
|
// Ensure that options include all the required fields.
|
|
98
98
|
const staticMembers = this.constructor;
|
|
99
|
-
if (opts?.universe_domain &&
|
|
99
|
+
if (opts?.universe_domain &&
|
|
100
|
+
opts?.universeDomain &&
|
|
101
|
+
opts?.universe_domain !== opts?.universeDomain) {
|
|
100
102
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
101
103
|
}
|
|
102
|
-
const universeDomainEnvVar =
|
|
103
|
-
|
|
104
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
105
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
106
|
+
: undefined;
|
|
107
|
+
this._universeDomain =
|
|
108
|
+
opts?.universeDomain ??
|
|
109
|
+
opts?.universe_domain ??
|
|
110
|
+
universeDomainEnvVar ??
|
|
111
|
+
'googleapis.com';
|
|
104
112
|
this._servicePath = 'admanager.' + this._universeDomain;
|
|
105
113
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
106
114
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
@@ -113,7 +121,8 @@ class AdUnitServiceClient {
|
|
|
113
121
|
else {
|
|
114
122
|
opts.fallback = opts.fallback ?? true;
|
|
115
123
|
}
|
|
116
|
-
const fallback = opts?.fallback ??
|
|
124
|
+
const fallback = opts?.fallback ??
|
|
125
|
+
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
117
126
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
118
127
|
// Request numeric enum values if REST transport is used.
|
|
119
128
|
opts.numericEnums = true;
|
|
@@ -142,10 +151,7 @@ class AdUnitServiceClient {
|
|
|
142
151
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
143
152
|
}
|
|
144
153
|
// Determine the client header string.
|
|
145
|
-
const clientHeader = [
|
|
146
|
-
`gax/${this._gaxModule.version}`,
|
|
147
|
-
`gapic/${version}`,
|
|
148
|
-
];
|
|
154
|
+
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
|
149
155
|
if (typeof process === 'object' && 'versions' in process) {
|
|
150
156
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
151
157
|
}
|
|
@@ -175,6 +181,7 @@ class AdUnitServiceClient {
|
|
|
175
181
|
bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
|
|
176
182
|
browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
|
|
177
183
|
browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
|
|
184
|
+
childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
|
|
178
185
|
cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
|
|
179
186
|
cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
|
|
180
187
|
companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
|
|
@@ -193,6 +200,7 @@ class AdUnitServiceClient {
|
|
|
193
200
|
geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
|
|
194
201
|
labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
|
|
195
202
|
lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
|
|
203
|
+
linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
|
|
196
204
|
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
197
205
|
mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
|
|
198
206
|
mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
|
|
@@ -206,6 +214,7 @@ class AdUnitServiceClient {
|
|
|
206
214
|
privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
|
|
207
215
|
programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
|
|
208
216
|
reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
|
|
217
|
+
richMediaAdsCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company}'),
|
|
209
218
|
rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
|
|
210
219
|
sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
|
|
211
220
|
taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
|
|
@@ -218,7 +227,7 @@ class AdUnitServiceClient {
|
|
|
218
227
|
// pages). Denote the keys used for pagination and results.
|
|
219
228
|
this.descriptors.page = {
|
|
220
229
|
listAdUnits: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'adUnits'),
|
|
221
|
-
listAdUnitSizes: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'adUnitSizes')
|
|
230
|
+
listAdUnitSizes: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'adUnitSizes'),
|
|
222
231
|
};
|
|
223
232
|
// Put together the default options sent with requests.
|
|
224
233
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.AdUnitService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -247,15 +256,26 @@ class AdUnitServiceClient {
|
|
|
247
256
|
}
|
|
248
257
|
// Put together the "service stub" for
|
|
249
258
|
// google.ads.admanager.v1.AdUnitService.
|
|
250
|
-
this.adUnitServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
251
|
-
this._protos.lookupService('google.ads.admanager.v1.AdUnitService')
|
|
252
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
253
|
-
|
|
259
|
+
this.adUnitServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
260
|
+
? this._protos.lookupService('google.ads.admanager.v1.AdUnitService')
|
|
261
|
+
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
262
|
+
this._protos.google.ads.admanager.v1.AdUnitService, this._opts, this._providedCustomServicePath);
|
|
254
263
|
// Iterate over each of the methods that the service provides
|
|
255
264
|
// and create an API call method for each.
|
|
256
|
-
const adUnitServiceStubMethods = [
|
|
265
|
+
const adUnitServiceStubMethods = [
|
|
266
|
+
'getAdUnit',
|
|
267
|
+
'listAdUnits',
|
|
268
|
+
'listAdUnitSizes',
|
|
269
|
+
'createAdUnit',
|
|
270
|
+
'updateAdUnit',
|
|
271
|
+
'batchCreateAdUnits',
|
|
272
|
+
'batchUpdateAdUnits',
|
|
273
|
+
'batchActivateAdUnits',
|
|
274
|
+
'batchDeactivateAdUnits',
|
|
275
|
+
'batchArchiveAdUnits',
|
|
276
|
+
];
|
|
257
277
|
for (const methodName of adUnitServiceStubMethods) {
|
|
258
|
-
const callPromise = this.adUnitServiceStub.then(stub => (...args) => {
|
|
278
|
+
const callPromise = this.adUnitServiceStub.then((stub) => (...args) => {
|
|
259
279
|
if (this._terminated) {
|
|
260
280
|
return Promise.reject('The client has already been closed.');
|
|
261
281
|
}
|
|
@@ -264,8 +284,7 @@ class AdUnitServiceClient {
|
|
|
264
284
|
}, (err) => () => {
|
|
265
285
|
throw err;
|
|
266
286
|
});
|
|
267
|
-
const descriptor = this.descriptors.page[methodName] ||
|
|
268
|
-
undefined;
|
|
287
|
+
const descriptor = this.descriptors.page[methodName] || undefined;
|
|
269
288
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
270
289
|
this.innerApiCalls[methodName] = apiCall;
|
|
271
290
|
}
|
|
@@ -277,7 +296,8 @@ class AdUnitServiceClient {
|
|
|
277
296
|
* @returns {string} The DNS address for this service.
|
|
278
297
|
*/
|
|
279
298
|
static get servicePath() {
|
|
280
|
-
if (typeof process === 'object' &&
|
|
299
|
+
if (typeof process === 'object' &&
|
|
300
|
+
typeof process.emitWarning === 'function') {
|
|
281
301
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
282
302
|
}
|
|
283
303
|
return 'admanager.googleapis.com';
|
|
@@ -288,7 +308,8 @@ class AdUnitServiceClient {
|
|
|
288
308
|
* @returns {string} The DNS address for this service.
|
|
289
309
|
*/
|
|
290
310
|
static get apiEndpoint() {
|
|
291
|
-
if (typeof process === 'object' &&
|
|
311
|
+
if (typeof process === 'object' &&
|
|
312
|
+
typeof process.emitWarning === 'function') {
|
|
292
313
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
293
314
|
}
|
|
294
315
|
return 'admanager.googleapis.com';
|
|
@@ -317,7 +338,8 @@ class AdUnitServiceClient {
|
|
|
317
338
|
*/
|
|
318
339
|
static get scopes() {
|
|
319
340
|
return [
|
|
320
|
-
'https://www.googleapis.com/auth/admanager'
|
|
341
|
+
'https://www.googleapis.com/auth/admanager',
|
|
342
|
+
'https://www.googleapis.com/auth/admanager.readonly',
|
|
321
343
|
];
|
|
322
344
|
}
|
|
323
345
|
/**
|
|
@@ -344,10 +366,13 @@ class AdUnitServiceClient {
|
|
|
344
366
|
options = options || {};
|
|
345
367
|
options.otherArgs = options.otherArgs || {};
|
|
346
368
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
347
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
348
|
-
|
|
369
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
370
|
+
this._gaxModule.routingHeader.fromParams({
|
|
371
|
+
name: request.name ?? '',
|
|
372
|
+
});
|
|
373
|
+
this.initialize().catch((err) => {
|
|
374
|
+
throw err;
|
|
349
375
|
});
|
|
350
|
-
this.initialize().catch(err => { throw err; });
|
|
351
376
|
this._log.info('getAdUnit request %j', request);
|
|
352
377
|
const wrappedCallback = callback
|
|
353
378
|
? (error, response, options, rawResponse) => {
|
|
@@ -355,12 +380,16 @@ class AdUnitServiceClient {
|
|
|
355
380
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
356
381
|
}
|
|
357
382
|
: undefined;
|
|
358
|
-
return this.innerApiCalls
|
|
383
|
+
return this.innerApiCalls
|
|
384
|
+
.getAdUnit(request, options, wrappedCallback)
|
|
359
385
|
?.then(([response, options, rawResponse]) => {
|
|
360
386
|
this._log.info('getAdUnit response %j', response);
|
|
361
387
|
return [response, options, rawResponse];
|
|
362
|
-
})
|
|
363
|
-
|
|
388
|
+
})
|
|
389
|
+
.catch((error) => {
|
|
390
|
+
if (error &&
|
|
391
|
+
'statusDetails' in error &&
|
|
392
|
+
error.statusDetails instanceof Array) {
|
|
364
393
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
365
394
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
366
395
|
}
|
|
@@ -380,10 +409,13 @@ class AdUnitServiceClient {
|
|
|
380
409
|
options = options || {};
|
|
381
410
|
options.otherArgs = options.otherArgs || {};
|
|
382
411
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
383
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
384
|
-
|
|
412
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
413
|
+
this._gaxModule.routingHeader.fromParams({
|
|
414
|
+
parent: request.parent ?? '',
|
|
415
|
+
});
|
|
416
|
+
this.initialize().catch((err) => {
|
|
417
|
+
throw err;
|
|
385
418
|
});
|
|
386
|
-
this.initialize().catch(err => { throw err; });
|
|
387
419
|
this._log.info('createAdUnit request %j', request);
|
|
388
420
|
const wrappedCallback = callback
|
|
389
421
|
? (error, response, options, rawResponse) => {
|
|
@@ -391,12 +423,16 @@ class AdUnitServiceClient {
|
|
|
391
423
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
392
424
|
}
|
|
393
425
|
: undefined;
|
|
394
|
-
return this.innerApiCalls
|
|
426
|
+
return this.innerApiCalls
|
|
427
|
+
.createAdUnit(request, options, wrappedCallback)
|
|
395
428
|
?.then(([response, options, rawResponse]) => {
|
|
396
429
|
this._log.info('createAdUnit response %j', response);
|
|
397
430
|
return [response, options, rawResponse];
|
|
398
|
-
})
|
|
399
|
-
|
|
431
|
+
})
|
|
432
|
+
.catch((error) => {
|
|
433
|
+
if (error &&
|
|
434
|
+
'statusDetails' in error &&
|
|
435
|
+
error.statusDetails instanceof Array) {
|
|
400
436
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
401
437
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
402
438
|
}
|
|
@@ -416,10 +452,13 @@ class AdUnitServiceClient {
|
|
|
416
452
|
options = options || {};
|
|
417
453
|
options.otherArgs = options.otherArgs || {};
|
|
418
454
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
419
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
420
|
-
|
|
455
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
456
|
+
this._gaxModule.routingHeader.fromParams({
|
|
457
|
+
'ad_unit.name': request.adUnit.name ?? '',
|
|
458
|
+
});
|
|
459
|
+
this.initialize().catch((err) => {
|
|
460
|
+
throw err;
|
|
421
461
|
});
|
|
422
|
-
this.initialize().catch(err => { throw err; });
|
|
423
462
|
this._log.info('updateAdUnit request %j', request);
|
|
424
463
|
const wrappedCallback = callback
|
|
425
464
|
? (error, response, options, rawResponse) => {
|
|
@@ -427,12 +466,16 @@ class AdUnitServiceClient {
|
|
|
427
466
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
428
467
|
}
|
|
429
468
|
: undefined;
|
|
430
|
-
return this.innerApiCalls
|
|
469
|
+
return this.innerApiCalls
|
|
470
|
+
.updateAdUnit(request, options, wrappedCallback)
|
|
431
471
|
?.then(([response, options, rawResponse]) => {
|
|
432
472
|
this._log.info('updateAdUnit response %j', response);
|
|
433
473
|
return [response, options, rawResponse];
|
|
434
|
-
})
|
|
435
|
-
|
|
474
|
+
})
|
|
475
|
+
.catch((error) => {
|
|
476
|
+
if (error &&
|
|
477
|
+
'statusDetails' in error &&
|
|
478
|
+
error.statusDetails instanceof Array) {
|
|
436
479
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
437
480
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
438
481
|
}
|
|
@@ -452,10 +495,13 @@ class AdUnitServiceClient {
|
|
|
452
495
|
options = options || {};
|
|
453
496
|
options.otherArgs = options.otherArgs || {};
|
|
454
497
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
455
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
456
|
-
|
|
498
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
499
|
+
this._gaxModule.routingHeader.fromParams({
|
|
500
|
+
parent: request.parent ?? '',
|
|
501
|
+
});
|
|
502
|
+
this.initialize().catch((err) => {
|
|
503
|
+
throw err;
|
|
457
504
|
});
|
|
458
|
-
this.initialize().catch(err => { throw err; });
|
|
459
505
|
this._log.info('batchCreateAdUnits request %j', request);
|
|
460
506
|
const wrappedCallback = callback
|
|
461
507
|
? (error, response, options, rawResponse) => {
|
|
@@ -463,12 +509,16 @@ class AdUnitServiceClient {
|
|
|
463
509
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
464
510
|
}
|
|
465
511
|
: undefined;
|
|
466
|
-
return this.innerApiCalls
|
|
512
|
+
return this.innerApiCalls
|
|
513
|
+
.batchCreateAdUnits(request, options, wrappedCallback)
|
|
467
514
|
?.then(([response, options, rawResponse]) => {
|
|
468
515
|
this._log.info('batchCreateAdUnits response %j', response);
|
|
469
516
|
return [response, options, rawResponse];
|
|
470
|
-
})
|
|
471
|
-
|
|
517
|
+
})
|
|
518
|
+
.catch((error) => {
|
|
519
|
+
if (error &&
|
|
520
|
+
'statusDetails' in error &&
|
|
521
|
+
error.statusDetails instanceof Array) {
|
|
472
522
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
473
523
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
474
524
|
}
|
|
@@ -488,10 +538,13 @@ class AdUnitServiceClient {
|
|
|
488
538
|
options = options || {};
|
|
489
539
|
options.otherArgs = options.otherArgs || {};
|
|
490
540
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
491
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
492
|
-
|
|
541
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
542
|
+
this._gaxModule.routingHeader.fromParams({
|
|
543
|
+
parent: request.parent ?? '',
|
|
544
|
+
});
|
|
545
|
+
this.initialize().catch((err) => {
|
|
546
|
+
throw err;
|
|
493
547
|
});
|
|
494
|
-
this.initialize().catch(err => { throw err; });
|
|
495
548
|
this._log.info('batchUpdateAdUnits request %j', request);
|
|
496
549
|
const wrappedCallback = callback
|
|
497
550
|
? (error, response, options, rawResponse) => {
|
|
@@ -499,12 +552,16 @@ class AdUnitServiceClient {
|
|
|
499
552
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
500
553
|
}
|
|
501
554
|
: undefined;
|
|
502
|
-
return this.innerApiCalls
|
|
555
|
+
return this.innerApiCalls
|
|
556
|
+
.batchUpdateAdUnits(request, options, wrappedCallback)
|
|
503
557
|
?.then(([response, options, rawResponse]) => {
|
|
504
558
|
this._log.info('batchUpdateAdUnits response %j', response);
|
|
505
559
|
return [response, options, rawResponse];
|
|
506
|
-
})
|
|
507
|
-
|
|
560
|
+
})
|
|
561
|
+
.catch((error) => {
|
|
562
|
+
if (error &&
|
|
563
|
+
'statusDetails' in error &&
|
|
564
|
+
error.statusDetails instanceof Array) {
|
|
508
565
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
509
566
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
510
567
|
}
|
|
@@ -524,10 +581,13 @@ class AdUnitServiceClient {
|
|
|
524
581
|
options = options || {};
|
|
525
582
|
options.otherArgs = options.otherArgs || {};
|
|
526
583
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
527
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
528
|
-
|
|
584
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
585
|
+
this._gaxModule.routingHeader.fromParams({
|
|
586
|
+
parent: request.parent ?? '',
|
|
587
|
+
});
|
|
588
|
+
this.initialize().catch((err) => {
|
|
589
|
+
throw err;
|
|
529
590
|
});
|
|
530
|
-
this.initialize().catch(err => { throw err; });
|
|
531
591
|
this._log.info('batchActivateAdUnits request %j', request);
|
|
532
592
|
const wrappedCallback = callback
|
|
533
593
|
? (error, response, options, rawResponse) => {
|
|
@@ -535,12 +595,16 @@ class AdUnitServiceClient {
|
|
|
535
595
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
536
596
|
}
|
|
537
597
|
: undefined;
|
|
538
|
-
return this.innerApiCalls
|
|
598
|
+
return this.innerApiCalls
|
|
599
|
+
.batchActivateAdUnits(request, options, wrappedCallback)
|
|
539
600
|
?.then(([response, options, rawResponse]) => {
|
|
540
601
|
this._log.info('batchActivateAdUnits response %j', response);
|
|
541
602
|
return [response, options, rawResponse];
|
|
542
|
-
})
|
|
543
|
-
|
|
603
|
+
})
|
|
604
|
+
.catch((error) => {
|
|
605
|
+
if (error &&
|
|
606
|
+
'statusDetails' in error &&
|
|
607
|
+
error.statusDetails instanceof Array) {
|
|
544
608
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
545
609
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
546
610
|
}
|
|
@@ -560,10 +624,13 @@ class AdUnitServiceClient {
|
|
|
560
624
|
options = options || {};
|
|
561
625
|
options.otherArgs = options.otherArgs || {};
|
|
562
626
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
563
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
564
|
-
|
|
627
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
628
|
+
this._gaxModule.routingHeader.fromParams({
|
|
629
|
+
parent: request.parent ?? '',
|
|
630
|
+
});
|
|
631
|
+
this.initialize().catch((err) => {
|
|
632
|
+
throw err;
|
|
565
633
|
});
|
|
566
|
-
this.initialize().catch(err => { throw err; });
|
|
567
634
|
this._log.info('batchDeactivateAdUnits request %j', request);
|
|
568
635
|
const wrappedCallback = callback
|
|
569
636
|
? (error, response, options, rawResponse) => {
|
|
@@ -571,12 +638,16 @@ class AdUnitServiceClient {
|
|
|
571
638
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
572
639
|
}
|
|
573
640
|
: undefined;
|
|
574
|
-
return this.innerApiCalls
|
|
641
|
+
return this.innerApiCalls
|
|
642
|
+
.batchDeactivateAdUnits(request, options, wrappedCallback)
|
|
575
643
|
?.then(([response, options, rawResponse]) => {
|
|
576
644
|
this._log.info('batchDeactivateAdUnits response %j', response);
|
|
577
645
|
return [response, options, rawResponse];
|
|
578
|
-
})
|
|
579
|
-
|
|
646
|
+
})
|
|
647
|
+
.catch((error) => {
|
|
648
|
+
if (error &&
|
|
649
|
+
'statusDetails' in error &&
|
|
650
|
+
error.statusDetails instanceof Array) {
|
|
580
651
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
581
652
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
582
653
|
}
|
|
@@ -596,10 +667,13 @@ class AdUnitServiceClient {
|
|
|
596
667
|
options = options || {};
|
|
597
668
|
options.otherArgs = options.otherArgs || {};
|
|
598
669
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
599
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
600
|
-
|
|
670
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
671
|
+
this._gaxModule.routingHeader.fromParams({
|
|
672
|
+
parent: request.parent ?? '',
|
|
673
|
+
});
|
|
674
|
+
this.initialize().catch((err) => {
|
|
675
|
+
throw err;
|
|
601
676
|
});
|
|
602
|
-
this.initialize().catch(err => { throw err; });
|
|
603
677
|
this._log.info('batchArchiveAdUnits request %j', request);
|
|
604
678
|
const wrappedCallback = callback
|
|
605
679
|
? (error, response, options, rawResponse) => {
|
|
@@ -607,12 +681,16 @@ class AdUnitServiceClient {
|
|
|
607
681
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
608
682
|
}
|
|
609
683
|
: undefined;
|
|
610
|
-
return this.innerApiCalls
|
|
684
|
+
return this.innerApiCalls
|
|
685
|
+
.batchArchiveAdUnits(request, options, wrappedCallback)
|
|
611
686
|
?.then(([response, options, rawResponse]) => {
|
|
612
687
|
this._log.info('batchArchiveAdUnits response %j', response);
|
|
613
688
|
return [response, options, rawResponse];
|
|
614
|
-
})
|
|
615
|
-
|
|
689
|
+
})
|
|
690
|
+
.catch((error) => {
|
|
691
|
+
if (error &&
|
|
692
|
+
'statusDetails' in error &&
|
|
693
|
+
error.statusDetails instanceof Array) {
|
|
616
694
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
617
695
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
618
696
|
}
|
|
@@ -632,10 +710,13 @@ class AdUnitServiceClient {
|
|
|
632
710
|
options = options || {};
|
|
633
711
|
options.otherArgs = options.otherArgs || {};
|
|
634
712
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
635
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
636
|
-
|
|
713
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
714
|
+
this._gaxModule.routingHeader.fromParams({
|
|
715
|
+
parent: request.parent ?? '',
|
|
716
|
+
});
|
|
717
|
+
this.initialize().catch((err) => {
|
|
718
|
+
throw err;
|
|
637
719
|
});
|
|
638
|
-
this.initialize().catch(err => { throw err; });
|
|
639
720
|
const wrappedCallback = callback
|
|
640
721
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
641
722
|
this._log.info('listAdUnits values %j', values);
|
|
@@ -670,8 +751,24 @@ class AdUnitServiceClient {
|
|
|
670
751
|
* the call that provided the page token.
|
|
671
752
|
* @param {string} [request.filter]
|
|
672
753
|
* Optional. Expression to filter the response.
|
|
673
|
-
*
|
|
674
|
-
*
|
|
754
|
+
* See syntax details at
|
|
755
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
756
|
+
*
|
|
757
|
+
* <b>Filterable fields:</b>
|
|
758
|
+
* <ul style="list-style-type:none">
|
|
759
|
+
* <li><code>adUnitCode</code></li>
|
|
760
|
+
* <li><code>adUnitSizes.canonicalName</code></li>
|
|
761
|
+
* <li><code>displayName</code></li>
|
|
762
|
+
* <li><code>effectiveAdsenseEnabled</code></li>
|
|
763
|
+
* <li><code>explicitlyTargeted</code></li>
|
|
764
|
+
* <li><code>externalSetTopBoxChannelId</code></li>
|
|
765
|
+
* <li><code>hasChildren</code></li>
|
|
766
|
+
* <li><code>name</code></li>
|
|
767
|
+
* <li><code>parentAdUnit</code></li>
|
|
768
|
+
* <li><code>status</code></li>
|
|
769
|
+
* <li><code>teams</code></li>
|
|
770
|
+
* <li><code>updateTime</code></li>
|
|
771
|
+
* </ul>
|
|
675
772
|
* @param {string} [request.orderBy]
|
|
676
773
|
* Optional. Expression to specify sorting order.
|
|
677
774
|
* See syntax details at
|
|
@@ -694,12 +791,15 @@ class AdUnitServiceClient {
|
|
|
694
791
|
options = options || {};
|
|
695
792
|
options.otherArgs = options.otherArgs || {};
|
|
696
793
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
697
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
698
|
-
|
|
699
|
-
|
|
794
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
795
|
+
this._gaxModule.routingHeader.fromParams({
|
|
796
|
+
parent: request.parent ?? '',
|
|
797
|
+
});
|
|
700
798
|
const defaultCallSettings = this._defaults['listAdUnits'];
|
|
701
799
|
const callSettings = defaultCallSettings.merge(options);
|
|
702
|
-
this.initialize().catch(err => {
|
|
800
|
+
this.initialize().catch((err) => {
|
|
801
|
+
throw err;
|
|
802
|
+
});
|
|
703
803
|
this._log.info('listAdUnits stream %j', request);
|
|
704
804
|
return this.descriptors.page.listAdUnits.createStream(this.innerApiCalls.listAdUnits, request, callSettings);
|
|
705
805
|
}
|
|
@@ -725,8 +825,24 @@ class AdUnitServiceClient {
|
|
|
725
825
|
* the call that provided the page token.
|
|
726
826
|
* @param {string} [request.filter]
|
|
727
827
|
* Optional. Expression to filter the response.
|
|
728
|
-
*
|
|
729
|
-
*
|
|
828
|
+
* See syntax details at
|
|
829
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
830
|
+
*
|
|
831
|
+
* <b>Filterable fields:</b>
|
|
832
|
+
* <ul style="list-style-type:none">
|
|
833
|
+
* <li><code>adUnitCode</code></li>
|
|
834
|
+
* <li><code>adUnitSizes.canonicalName</code></li>
|
|
835
|
+
* <li><code>displayName</code></li>
|
|
836
|
+
* <li><code>effectiveAdsenseEnabled</code></li>
|
|
837
|
+
* <li><code>explicitlyTargeted</code></li>
|
|
838
|
+
* <li><code>externalSetTopBoxChannelId</code></li>
|
|
839
|
+
* <li><code>hasChildren</code></li>
|
|
840
|
+
* <li><code>name</code></li>
|
|
841
|
+
* <li><code>parentAdUnit</code></li>
|
|
842
|
+
* <li><code>status</code></li>
|
|
843
|
+
* <li><code>teams</code></li>
|
|
844
|
+
* <li><code>updateTime</code></li>
|
|
845
|
+
* </ul>
|
|
730
846
|
* @param {string} [request.orderBy]
|
|
731
847
|
* Optional. Expression to specify sorting order.
|
|
732
848
|
* See syntax details at
|
|
@@ -750,12 +866,15 @@ class AdUnitServiceClient {
|
|
|
750
866
|
options = options || {};
|
|
751
867
|
options.otherArgs = options.otherArgs || {};
|
|
752
868
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
753
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
754
|
-
|
|
755
|
-
|
|
869
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
870
|
+
this._gaxModule.routingHeader.fromParams({
|
|
871
|
+
parent: request.parent ?? '',
|
|
872
|
+
});
|
|
756
873
|
const defaultCallSettings = this._defaults['listAdUnits'];
|
|
757
874
|
const callSettings = defaultCallSettings.merge(options);
|
|
758
|
-
this.initialize().catch(err => {
|
|
875
|
+
this.initialize().catch((err) => {
|
|
876
|
+
throw err;
|
|
877
|
+
});
|
|
759
878
|
this._log.info('listAdUnits iterate %j', request);
|
|
760
879
|
return this.descriptors.page.listAdUnits.asyncIterate(this.innerApiCalls['listAdUnits'], request, callSettings);
|
|
761
880
|
}
|
|
@@ -772,10 +891,13 @@ class AdUnitServiceClient {
|
|
|
772
891
|
options = options || {};
|
|
773
892
|
options.otherArgs = options.otherArgs || {};
|
|
774
893
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
775
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
776
|
-
|
|
894
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
895
|
+
this._gaxModule.routingHeader.fromParams({
|
|
896
|
+
parent: request.parent ?? '',
|
|
897
|
+
});
|
|
898
|
+
this.initialize().catch((err) => {
|
|
899
|
+
throw err;
|
|
777
900
|
});
|
|
778
|
-
this.initialize().catch(err => { throw err; });
|
|
779
901
|
const wrappedCallback = callback
|
|
780
902
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
781
903
|
this._log.info('listAdUnitSizes values %j', values);
|
|
@@ -834,12 +956,15 @@ class AdUnitServiceClient {
|
|
|
834
956
|
options = options || {};
|
|
835
957
|
options.otherArgs = options.otherArgs || {};
|
|
836
958
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
837
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
838
|
-
|
|
839
|
-
|
|
959
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
960
|
+
this._gaxModule.routingHeader.fromParams({
|
|
961
|
+
parent: request.parent ?? '',
|
|
962
|
+
});
|
|
840
963
|
const defaultCallSettings = this._defaults['listAdUnitSizes'];
|
|
841
964
|
const callSettings = defaultCallSettings.merge(options);
|
|
842
|
-
this.initialize().catch(err => {
|
|
965
|
+
this.initialize().catch((err) => {
|
|
966
|
+
throw err;
|
|
967
|
+
});
|
|
843
968
|
this._log.info('listAdUnitSizes stream %j', request);
|
|
844
969
|
return this.descriptors.page.listAdUnitSizes.createStream(this.innerApiCalls.listAdUnitSizes, request, callSettings);
|
|
845
970
|
}
|
|
@@ -890,12 +1015,15 @@ class AdUnitServiceClient {
|
|
|
890
1015
|
options = options || {};
|
|
891
1016
|
options.otherArgs = options.otherArgs || {};
|
|
892
1017
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
893
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
894
|
-
|
|
895
|
-
|
|
1018
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1019
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1020
|
+
parent: request.parent ?? '',
|
|
1021
|
+
});
|
|
896
1022
|
const defaultCallSettings = this._defaults['listAdUnitSizes'];
|
|
897
1023
|
const callSettings = defaultCallSettings.merge(options);
|
|
898
|
-
this.initialize().catch(err => {
|
|
1024
|
+
this.initialize().catch((err) => {
|
|
1025
|
+
throw err;
|
|
1026
|
+
});
|
|
899
1027
|
this._log.info('listAdUnitSizes iterate %j', request);
|
|
900
1028
|
return this.descriptors.page.listAdUnitSizes.asyncIterate(this.innerApiCalls['listAdUnitSizes'], request, callSettings);
|
|
901
1029
|
}
|
|
@@ -925,7 +1053,8 @@ class AdUnitServiceClient {
|
|
|
925
1053
|
* @returns {string} A string representing the network_code.
|
|
926
1054
|
*/
|
|
927
1055
|
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
928
|
-
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
1056
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
|
|
1057
|
+
.network_code;
|
|
929
1058
|
}
|
|
930
1059
|
/**
|
|
931
1060
|
* Parse the asset_key from AdBreak resource.
|
|
@@ -1046,7 +1175,8 @@ class AdUnitServiceClient {
|
|
|
1046
1175
|
* @returns {string} A string representing the network_code.
|
|
1047
1176
|
*/
|
|
1048
1177
|
matchNetworkCodeFromApplicationName(applicationName) {
|
|
1049
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1178
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1179
|
+
.network_code;
|
|
1050
1180
|
}
|
|
1051
1181
|
/**
|
|
1052
1182
|
* Parse the application from Application resource.
|
|
@@ -1056,7 +1186,8 @@ class AdUnitServiceClient {
|
|
|
1056
1186
|
* @returns {string} A string representing the application.
|
|
1057
1187
|
*/
|
|
1058
1188
|
matchApplicationFromApplicationName(applicationName) {
|
|
1059
|
-
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1189
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName)
|
|
1190
|
+
.application;
|
|
1060
1191
|
}
|
|
1061
1192
|
/**
|
|
1062
1193
|
* Return a fully-qualified audienceSegment resource name string.
|
|
@@ -1145,7 +1276,8 @@ class AdUnitServiceClient {
|
|
|
1145
1276
|
* @returns {string} A string representing the network_code.
|
|
1146
1277
|
*/
|
|
1147
1278
|
matchNetworkCodeFromBrowserName(browserName) {
|
|
1148
|
-
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
1279
|
+
return this.pathTemplates.browserPathTemplate.match(browserName)
|
|
1280
|
+
.network_code;
|
|
1149
1281
|
}
|
|
1150
1282
|
/**
|
|
1151
1283
|
* Parse the browser from Browser resource.
|
|
@@ -1190,6 +1322,39 @@ class AdUnitServiceClient {
|
|
|
1190
1322
|
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
1191
1323
|
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
1192
1324
|
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Return a fully-qualified childPublisher resource name string.
|
|
1327
|
+
*
|
|
1328
|
+
* @param {string} network_code
|
|
1329
|
+
* @param {string} child_publisher
|
|
1330
|
+
* @returns {string} Resource name string.
|
|
1331
|
+
*/
|
|
1332
|
+
childPublisherPath(networkCode, childPublisher) {
|
|
1333
|
+
return this.pathTemplates.childPublisherPathTemplate.render({
|
|
1334
|
+
network_code: networkCode,
|
|
1335
|
+
child_publisher: childPublisher,
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
* Parse the network_code from ChildPublisher resource.
|
|
1340
|
+
*
|
|
1341
|
+
* @param {string} childPublisherName
|
|
1342
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
1343
|
+
* @returns {string} A string representing the network_code.
|
|
1344
|
+
*/
|
|
1345
|
+
matchNetworkCodeFromChildPublisherName(childPublisherName) {
|
|
1346
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Parse the child_publisher from ChildPublisher resource.
|
|
1350
|
+
*
|
|
1351
|
+
* @param {string} childPublisherName
|
|
1352
|
+
* A fully-qualified path representing ChildPublisher resource.
|
|
1353
|
+
* @returns {string} A string representing the child_publisher.
|
|
1354
|
+
*/
|
|
1355
|
+
matchChildPublisherFromChildPublisherName(childPublisherName) {
|
|
1356
|
+
return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
|
|
1357
|
+
}
|
|
1193
1358
|
/**
|
|
1194
1359
|
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
1195
1360
|
*
|
|
@@ -1277,7 +1442,8 @@ class AdUnitServiceClient {
|
|
|
1277
1442
|
* @returns {string} A string representing the network_code.
|
|
1278
1443
|
*/
|
|
1279
1444
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
1280
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
1445
|
+
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
1446
|
+
.network_code;
|
|
1281
1447
|
}
|
|
1282
1448
|
/**
|
|
1283
1449
|
* Parse the company from Company resource.
|
|
@@ -1310,7 +1476,8 @@ class AdUnitServiceClient {
|
|
|
1310
1476
|
* @returns {string} A string representing the network_code.
|
|
1311
1477
|
*/
|
|
1312
1478
|
matchNetworkCodeFromContactName(contactName) {
|
|
1313
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
1479
|
+
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
1480
|
+
.network_code;
|
|
1314
1481
|
}
|
|
1315
1482
|
/**
|
|
1316
1483
|
* Parse the contact from Contact resource.
|
|
@@ -1343,7 +1510,8 @@ class AdUnitServiceClient {
|
|
|
1343
1510
|
* @returns {string} A string representing the network_code.
|
|
1344
1511
|
*/
|
|
1345
1512
|
matchNetworkCodeFromContentName(contentName) {
|
|
1346
|
-
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
1513
|
+
return this.pathTemplates.contentPathTemplate.match(contentName)
|
|
1514
|
+
.network_code;
|
|
1347
1515
|
}
|
|
1348
1516
|
/**
|
|
1349
1517
|
* Parse the content from Content resource.
|
|
@@ -1376,7 +1544,8 @@ class AdUnitServiceClient {
|
|
|
1376
1544
|
* @returns {string} A string representing the network_code.
|
|
1377
1545
|
*/
|
|
1378
1546
|
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
1379
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1547
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1548
|
+
.network_code;
|
|
1380
1549
|
}
|
|
1381
1550
|
/**
|
|
1382
1551
|
* Parse the content_bundle from ContentBundle resource.
|
|
@@ -1386,7 +1555,8 @@ class AdUnitServiceClient {
|
|
|
1386
1555
|
* @returns {string} A string representing the content_bundle.
|
|
1387
1556
|
*/
|
|
1388
1557
|
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
1389
|
-
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1558
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
|
|
1559
|
+
.content_bundle;
|
|
1390
1560
|
}
|
|
1391
1561
|
/**
|
|
1392
1562
|
* Return a fully-qualified contentLabel resource name string.
|
|
@@ -1409,7 +1579,8 @@ class AdUnitServiceClient {
|
|
|
1409
1579
|
* @returns {string} A string representing the network_code.
|
|
1410
1580
|
*/
|
|
1411
1581
|
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
1412
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1582
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1583
|
+
.network_code;
|
|
1413
1584
|
}
|
|
1414
1585
|
/**
|
|
1415
1586
|
* Parse the content_label from ContentLabel resource.
|
|
@@ -1419,7 +1590,8 @@ class AdUnitServiceClient {
|
|
|
1419
1590
|
* @returns {string} A string representing the content_label.
|
|
1420
1591
|
*/
|
|
1421
1592
|
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
1422
|
-
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1593
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
|
|
1594
|
+
.content_label;
|
|
1423
1595
|
}
|
|
1424
1596
|
/**
|
|
1425
1597
|
* Return a fully-qualified creativeTemplate resource name string.
|
|
@@ -1475,7 +1647,8 @@ class AdUnitServiceClient {
|
|
|
1475
1647
|
* @returns {string} A string representing the network_code.
|
|
1476
1648
|
*/
|
|
1477
1649
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
1478
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1650
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1651
|
+
.network_code;
|
|
1479
1652
|
}
|
|
1480
1653
|
/**
|
|
1481
1654
|
* Parse the custom_field from CustomField resource.
|
|
@@ -1485,7 +1658,8 @@ class AdUnitServiceClient {
|
|
|
1485
1658
|
* @returns {string} A string representing the custom_field.
|
|
1486
1659
|
*/
|
|
1487
1660
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
1488
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1661
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
1662
|
+
.custom_field;
|
|
1489
1663
|
}
|
|
1490
1664
|
/**
|
|
1491
1665
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -1706,7 +1880,8 @@ class AdUnitServiceClient {
|
|
|
1706
1880
|
* @returns {string} A string representing the network_code.
|
|
1707
1881
|
*/
|
|
1708
1882
|
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
1709
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1883
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1884
|
+
.network_code;
|
|
1710
1885
|
}
|
|
1711
1886
|
/**
|
|
1712
1887
|
* Parse the geo_target from GeoTarget resource.
|
|
@@ -1716,7 +1891,8 @@ class AdUnitServiceClient {
|
|
|
1716
1891
|
* @returns {string} A string representing the geo_target.
|
|
1717
1892
|
*/
|
|
1718
1893
|
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
1719
|
-
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1894
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
|
|
1895
|
+
.geo_target;
|
|
1720
1896
|
}
|
|
1721
1897
|
/**
|
|
1722
1898
|
* Return a fully-qualified label resource name string.
|
|
@@ -1772,7 +1948,8 @@ class AdUnitServiceClient {
|
|
|
1772
1948
|
* @returns {string} A string representing the network_code.
|
|
1773
1949
|
*/
|
|
1774
1950
|
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1775
|
-
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1951
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1952
|
+
.network_code;
|
|
1776
1953
|
}
|
|
1777
1954
|
/**
|
|
1778
1955
|
* Parse the line_item from LineItem resource.
|
|
@@ -1782,7 +1959,43 @@ class AdUnitServiceClient {
|
|
|
1782
1959
|
* @returns {string} A string representing the line_item.
|
|
1783
1960
|
*/
|
|
1784
1961
|
matchLineItemFromLineItemName(lineItemName) {
|
|
1785
|
-
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1962
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
|
|
1963
|
+
.line_item;
|
|
1964
|
+
}
|
|
1965
|
+
/**
|
|
1966
|
+
* Return a fully-qualified linkedDevice resource name string.
|
|
1967
|
+
*
|
|
1968
|
+
* @param {string} network_code
|
|
1969
|
+
* @param {string} linked_device
|
|
1970
|
+
* @returns {string} Resource name string.
|
|
1971
|
+
*/
|
|
1972
|
+
linkedDevicePath(networkCode, linkedDevice) {
|
|
1973
|
+
return this.pathTemplates.linkedDevicePathTemplate.render({
|
|
1974
|
+
network_code: networkCode,
|
|
1975
|
+
linked_device: linkedDevice,
|
|
1976
|
+
});
|
|
1977
|
+
}
|
|
1978
|
+
/**
|
|
1979
|
+
* Parse the network_code from LinkedDevice resource.
|
|
1980
|
+
*
|
|
1981
|
+
* @param {string} linkedDeviceName
|
|
1982
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1983
|
+
* @returns {string} A string representing the network_code.
|
|
1984
|
+
*/
|
|
1985
|
+
matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
|
|
1986
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1987
|
+
.network_code;
|
|
1988
|
+
}
|
|
1989
|
+
/**
|
|
1990
|
+
* Parse the linked_device from LinkedDevice resource.
|
|
1991
|
+
*
|
|
1992
|
+
* @param {string} linkedDeviceName
|
|
1993
|
+
* A fully-qualified path representing LinkedDevice resource.
|
|
1994
|
+
* @returns {string} A string representing the linked_device.
|
|
1995
|
+
*/
|
|
1996
|
+
matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
|
|
1997
|
+
return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
|
|
1998
|
+
.linked_device;
|
|
1786
1999
|
}
|
|
1787
2000
|
/**
|
|
1788
2001
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
@@ -1838,7 +2051,8 @@ class AdUnitServiceClient {
|
|
|
1838
2051
|
* @returns {string} A string representing the network_code.
|
|
1839
2052
|
*/
|
|
1840
2053
|
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1841
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
2054
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
2055
|
+
.network_code;
|
|
1842
2056
|
}
|
|
1843
2057
|
/**
|
|
1844
2058
|
* Parse the mobile_carrier from MobileCarrier resource.
|
|
@@ -1848,7 +2062,8 @@ class AdUnitServiceClient {
|
|
|
1848
2062
|
* @returns {string} A string representing the mobile_carrier.
|
|
1849
2063
|
*/
|
|
1850
2064
|
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1851
|
-
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
2065
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
|
|
2066
|
+
.mobile_carrier;
|
|
1852
2067
|
}
|
|
1853
2068
|
/**
|
|
1854
2069
|
* Return a fully-qualified mobileDevice resource name string.
|
|
@@ -1871,7 +2086,8 @@ class AdUnitServiceClient {
|
|
|
1871
2086
|
* @returns {string} A string representing the network_code.
|
|
1872
2087
|
*/
|
|
1873
2088
|
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1874
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
2089
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
2090
|
+
.network_code;
|
|
1875
2091
|
}
|
|
1876
2092
|
/**
|
|
1877
2093
|
* Parse the mobile_device from MobileDevice resource.
|
|
@@ -1881,7 +2097,8 @@ class AdUnitServiceClient {
|
|
|
1881
2097
|
* @returns {string} A string representing the mobile_device.
|
|
1882
2098
|
*/
|
|
1883
2099
|
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1884
|
-
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
2100
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
|
|
2101
|
+
.mobile_device;
|
|
1885
2102
|
}
|
|
1886
2103
|
/**
|
|
1887
2104
|
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
@@ -1935,7 +2152,8 @@ class AdUnitServiceClient {
|
|
|
1935
2152
|
* @returns {string} A string representing the network_code.
|
|
1936
2153
|
*/
|
|
1937
2154
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
1938
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
2155
|
+
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
2156
|
+
.network_code;
|
|
1939
2157
|
}
|
|
1940
2158
|
/**
|
|
1941
2159
|
* Return a fully-qualified operatingSystem resource name string.
|
|
@@ -2057,7 +2275,8 @@ class AdUnitServiceClient {
|
|
|
2057
2275
|
* @returns {string} A string representing the network_code.
|
|
2058
2276
|
*/
|
|
2059
2277
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
2060
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2278
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2279
|
+
.network_code;
|
|
2061
2280
|
}
|
|
2062
2281
|
/**
|
|
2063
2282
|
* Parse the placement from Placement resource.
|
|
@@ -2067,7 +2286,8 @@ class AdUnitServiceClient {
|
|
|
2067
2286
|
* @returns {string} A string representing the placement.
|
|
2068
2287
|
*/
|
|
2069
2288
|
matchPlacementFromPlacementName(placementName) {
|
|
2070
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2289
|
+
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
2290
|
+
.placement;
|
|
2071
2291
|
}
|
|
2072
2292
|
/**
|
|
2073
2293
|
* Return a fully-qualified privateAuction resource name string.
|
|
@@ -2201,6 +2421,39 @@ class AdUnitServiceClient {
|
|
|
2201
2421
|
matchReportFromReportName(reportName) {
|
|
2202
2422
|
return this.pathTemplates.reportPathTemplate.match(reportName).report;
|
|
2203
2423
|
}
|
|
2424
|
+
/**
|
|
2425
|
+
* Return a fully-qualified richMediaAdsCompany resource name string.
|
|
2426
|
+
*
|
|
2427
|
+
* @param {string} network_code
|
|
2428
|
+
* @param {string} rich_media_ads_company
|
|
2429
|
+
* @returns {string} Resource name string.
|
|
2430
|
+
*/
|
|
2431
|
+
richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
|
|
2432
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
|
|
2433
|
+
network_code: networkCode,
|
|
2434
|
+
rich_media_ads_company: richMediaAdsCompany,
|
|
2435
|
+
});
|
|
2436
|
+
}
|
|
2437
|
+
/**
|
|
2438
|
+
* Parse the network_code from RichMediaAdsCompany resource.
|
|
2439
|
+
*
|
|
2440
|
+
* @param {string} richMediaAdsCompanyName
|
|
2441
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
2442
|
+
* @returns {string} A string representing the network_code.
|
|
2443
|
+
*/
|
|
2444
|
+
matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
2445
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
|
|
2446
|
+
}
|
|
2447
|
+
/**
|
|
2448
|
+
* Parse the rich_media_ads_company from RichMediaAdsCompany resource.
|
|
2449
|
+
*
|
|
2450
|
+
* @param {string} richMediaAdsCompanyName
|
|
2451
|
+
* A fully-qualified path representing RichMediaAdsCompany resource.
|
|
2452
|
+
* @returns {string} A string representing the rich_media_ads_company.
|
|
2453
|
+
*/
|
|
2454
|
+
matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
|
|
2455
|
+
return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
|
|
2456
|
+
}
|
|
2204
2457
|
/**
|
|
2205
2458
|
* Return a fully-qualified role resource name string.
|
|
2206
2459
|
*
|
|
@@ -2387,7 +2640,8 @@ class AdUnitServiceClient {
|
|
|
2387
2640
|
* @returns {string} A string representing the network_code.
|
|
2388
2641
|
*/
|
|
2389
2642
|
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
2390
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2643
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2644
|
+
.network_code;
|
|
2391
2645
|
}
|
|
2392
2646
|
/**
|
|
2393
2647
|
* Parse the web_property from WebProperty resource.
|
|
@@ -2397,7 +2651,8 @@ class AdUnitServiceClient {
|
|
|
2397
2651
|
* @returns {string} A string representing the web_property.
|
|
2398
2652
|
*/
|
|
2399
2653
|
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
2400
|
-
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2654
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
|
|
2655
|
+
.web_property;
|
|
2401
2656
|
}
|
|
2402
2657
|
/**
|
|
2403
2658
|
* Terminate the gRPC channel and close the client.
|
|
@@ -2407,7 +2662,7 @@ class AdUnitServiceClient {
|
|
|
2407
2662
|
*/
|
|
2408
2663
|
close() {
|
|
2409
2664
|
if (this.adUnitServiceStub && !this._terminated) {
|
|
2410
|
-
return this.adUnitServiceStub.then(stub => {
|
|
2665
|
+
return this.adUnitServiceStub.then((stub) => {
|
|
2411
2666
|
this._log.info('ending gRPC channel');
|
|
2412
2667
|
this._terminated = true;
|
|
2413
2668
|
stub.close();
|