@google-ads/admanager 0.4.0 → 0.5.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 +152 -173
- package/build/protos/google/ads/admanager/v1/ad_break_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto +44 -0
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +62 -0
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +237 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +7 -7
- package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +6 -6
- package/build/protos/google/ads/admanager/v1/application_messages.proto +47 -0
- package/build/protos/google/ads/admanager/v1/application_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +49 -0
- package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/browser_language_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/browser_language_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/browser_messages.proto +51 -0
- package/build/protos/google/ads/admanager/v1/browser_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_enums.proto +41 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_messages.proto +50 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_enums.proto +44 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_messages.proto +61 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +130 -0
- package/build/protos/google/ads/admanager/v1/company_messages.proto +14 -12
- package/build/protos/google/ads/admanager/v1/company_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/contact_enums.proto +57 -0
- package/build/protos/google/ads/admanager/v1/contact_messages.proto +45 -2
- package/build/protos/google/ads/admanager/v1/contact_service.proto +244 -0
- package/build/protos/google/ads/admanager/v1/content_bundle_messages.proto +53 -0
- package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/content_label_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/content_label_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/content_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/content_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/creative_template_enums.proto +63 -0
- package/build/protos/google/ads/admanager/v1/creative_template_messages.proto +253 -0
- package/build/protos/google/ads/admanager/v1/creative_template_service.proto +130 -0
- package/build/protos/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto +47 -0
- package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +5 -2
- package/build/protos/google/ads/admanager/v1/custom_field_service.proto +185 -3
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +7 -6
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +9 -9
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_capability_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/device_capability_service.proto +130 -0
- package/build/protos/google/ads/admanager/v1/device_category_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/device_manufacturer_messages.proto +46 -0
- package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +131 -0
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/exchange_syndication_product_enum.proto +47 -0
- package/build/protos/google/ads/admanager/v1/geo_target_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/mobile_carrier_messages.proto +48 -0
- package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_messages.proto +54 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_submodel_messages.proto +55 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +133 -0
- package/build/protos/google/ads/admanager/v1/operating_system_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/order_messages.proto +7 -8
- package/build/protos/google/ads/admanager/v1/order_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/placement_service.proto +220 -3
- package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/private_auction_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/report_definition.proto +12478 -0
- package/build/protos/google/ads/admanager/v1/report_messages.proto +118 -3410
- package/build/protos/google/ads/admanager/v1/report_service.proto +10 -8
- package/build/protos/google/ads/admanager/v1/report_value.proto +73 -0
- package/build/protos/google/ads/admanager/v1/role_service.proto +3 -2
- package/build/protos/google/ads/admanager/v1/site_enums.proto +72 -0
- package/build/protos/google/ads/admanager/v1/site_messages.proto +77 -0
- package/build/protos/google/ads/admanager/v1/site_service.proto +295 -0
- package/build/protos/google/ads/admanager/v1/targeting.proto +311 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +3 -0
- package/build/protos/google/ads/admanager/v1/team_enums.proto +62 -0
- package/build/protos/google/ads/admanager/v1/team_messages.proto +30 -0
- package/build/protos/google/ads/admanager/v1/team_service.proto +303 -0
- package/build/protos/google/ads/admanager/v1/web_property.proto +54 -0
- package/build/protos/protos.d.ts +30764 -11410
- package/build/protos/protos.js +93644 -43318
- package/build/protos/protos.json +9909 -3734
- package/build/src/index.d.ts +58 -1
- package/build/src/index.js +40 -2
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +441 -0
- package/build/src/v1/ad_break_service_client.js +624 -0
- package/build/src/v1/ad_break_service_client.js.map +1 -1
- package/build/src/v1/ad_break_service_proto_list.json +49 -1
- package/build/src/v1/ad_review_center_ad_service_client.d.ts +1607 -0
- package/build/src/v1/ad_review_center_ad_service_client.js +2291 -0
- package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -0
- package/build/src/v1/ad_review_center_ad_service_client_config.json +38 -0
- package/build/src/v1/ad_review_center_ad_service_proto_list.json +122 -0
- package/build/src/v1/ad_unit_service_client.d.ts +453 -12
- package/build/src/v1/ad_unit_service_client.js +632 -8
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_proto_list.json +49 -1
- package/build/src/v1/application_service_client.d.ts +1345 -0
- package/build/src/v1/application_service_client.js +1993 -0
- package/build/src/v1/application_service_client.js.map +1 -0
- package/build/src/v1/application_service_client_config.json +34 -0
- package/build/src/v1/application_service_proto_list.json +122 -0
- package/build/src/v1/audience_segment_service_client.d.ts +1345 -0
- package/build/src/v1/audience_segment_service_client.js +1993 -0
- package/build/src/v1/audience_segment_service_client.js.map +1 -0
- package/build/src/v1/audience_segment_service_client_config.json +34 -0
- package/build/src/v1/audience_segment_service_proto_list.json +122 -0
- package/build/src/v1/bandwidth_group_service_client.d.ts +447 -6
- package/build/src/v1/bandwidth_group_service_client.js +628 -4
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
- package/build/src/v1/bandwidth_group_service_proto_list.json +49 -1
- package/build/src/v1/browser_language_service_client.d.ts +1345 -0
- package/build/src/v1/browser_language_service_client.js +1993 -0
- package/build/src/v1/browser_language_service_client.js.map +1 -0
- package/build/src/v1/browser_language_service_client_config.json +34 -0
- package/build/src/v1/browser_language_service_proto_list.json +122 -0
- package/build/src/v1/browser_service_client.d.ts +1345 -0
- package/build/src/v1/browser_service_client.js +1993 -0
- package/build/src/v1/browser_service_client.js.map +1 -0
- package/build/src/v1/browser_service_client_config.json +34 -0
- package/build/src/v1/browser_service_proto_list.json +122 -0
- package/build/src/v1/cms_metadata_key_service_client.d.ts +1345 -0
- package/build/src/v1/cms_metadata_key_service_client.js +1993 -0
- package/build/src/v1/cms_metadata_key_service_client.js.map +1 -0
- package/build/src/v1/cms_metadata_key_service_client_config.json +34 -0
- package/build/src/v1/cms_metadata_key_service_proto_list.json +122 -0
- package/build/src/v1/cms_metadata_value_service_client.d.ts +1345 -0
- package/build/src/v1/cms_metadata_value_service_client.js +1993 -0
- package/build/src/v1/cms_metadata_value_service_client.js.map +1 -0
- package/build/src/v1/cms_metadata_value_service_client_config.json +34 -0
- package/build/src/v1/cms_metadata_value_service_proto_list.json +122 -0
- package/build/src/v1/company_service_client.d.ts +447 -6
- package/build/src/v1/company_service_client.js +628 -4
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +49 -1
- package/build/src/v1/contact_service_client.d.ts +1456 -0
- package/build/src/v1/contact_service_client.js +2137 -0
- package/build/src/v1/contact_service_client.js.map +1 -0
- package/build/src/v1/contact_service_client_config.json +50 -0
- package/build/src/v1/contact_service_proto_list.json +122 -0
- package/build/src/v1/content_bundle_service_client.d.ts +1345 -0
- package/build/src/v1/content_bundle_service_client.js +1993 -0
- package/build/src/v1/content_bundle_service_client.js.map +1 -0
- package/build/src/v1/content_bundle_service_client_config.json +34 -0
- package/build/src/v1/content_bundle_service_proto_list.json +122 -0
- package/build/src/v1/content_label_service_client.d.ts +1345 -0
- package/build/src/v1/content_label_service_client.js +1993 -0
- package/build/src/v1/content_label_service_client.js.map +1 -0
- package/build/src/v1/content_label_service_client_config.json +34 -0
- package/build/src/v1/content_label_service_proto_list.json +122 -0
- package/build/src/v1/content_service_client.d.ts +1345 -0
- package/build/src/v1/content_service_client.js +1993 -0
- package/build/src/v1/content_service_client.js.map +1 -0
- package/build/src/v1/content_service_client_config.json +34 -0
- package/build/src/v1/content_service_proto_list.json +122 -0
- package/build/src/v1/creative_template_service_client.d.ts +1345 -0
- package/build/src/v1/creative_template_service_client.js +1993 -0
- package/build/src/v1/creative_template_service_client.js.map +1 -0
- package/build/src/v1/creative_template_service_client_config.json +34 -0
- package/build/src/v1/creative_template_service_proto_list.json +122 -0
- package/build/src/v1/custom_field_service_client.d.ts +610 -6
- package/build/src/v1/custom_field_service_client.js +845 -5
- package/build/src/v1/custom_field_service_client.js.map +1 -1
- package/build/src/v1/custom_field_service_client_config.json +24 -0
- package/build/src/v1/custom_field_service_proto_list.json +49 -1
- package/build/src/v1/custom_targeting_key_service_client.d.ts +441 -0
- package/build/src/v1/custom_targeting_key_service_client.js +624 -0
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_proto_list.json +49 -1
- package/build/src/v1/custom_targeting_value_service_client.d.ts +441 -0
- package/build/src/v1/custom_targeting_value_service_client.js +624 -0
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +49 -1
- package/build/src/v1/device_capability_service_client.d.ts +1345 -0
- package/build/src/v1/device_capability_service_client.js +1993 -0
- package/build/src/v1/device_capability_service_client.js.map +1 -0
- package/build/src/v1/device_capability_service_client_config.json +34 -0
- package/build/src/v1/device_capability_service_proto_list.json +122 -0
- package/build/src/v1/device_category_service_client.d.ts +444 -3
- package/build/src/v1/device_category_service_client.js +626 -2
- package/build/src/v1/device_category_service_client.js.map +1 -1
- package/build/src/v1/device_category_service_proto_list.json +49 -1
- package/build/src/v1/device_manufacturer_service_client.d.ts +1346 -0
- package/build/src/v1/device_manufacturer_service_client.js +1993 -0
- package/build/src/v1/device_manufacturer_service_client.js.map +1 -0
- package/build/src/v1/device_manufacturer_service_client_config.json +34 -0
- package/build/src/v1/device_manufacturer_service_proto_list.json +122 -0
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +441 -0
- package/build/src/v1/entity_signals_mapping_service_client.js +624 -0
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +49 -1
- package/build/src/v1/gapic_metadata.json +1026 -4
- package/build/src/v1/geo_target_service_client.d.ts +447 -6
- package/build/src/v1/geo_target_service_client.js +628 -4
- package/build/src/v1/geo_target_service_client.js.map +1 -1
- package/build/src/v1/geo_target_service_proto_list.json +49 -1
- package/build/src/v1/index.d.ts +19 -0
- package/build/src/v1/index.js +39 -1
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/mobile_carrier_service_client.d.ts +1345 -0
- package/build/src/v1/mobile_carrier_service_client.js +1993 -0
- package/build/src/v1/mobile_carrier_service_client.js.map +1 -0
- package/build/src/v1/mobile_carrier_service_client_config.json +34 -0
- package/build/src/v1/mobile_carrier_service_proto_list.json +122 -0
- package/build/src/v1/mobile_device_service_client.d.ts +1345 -0
- package/build/src/v1/mobile_device_service_client.js +1993 -0
- package/build/src/v1/mobile_device_service_client.js.map +1 -0
- package/build/src/v1/mobile_device_service_client_config.json +34 -0
- package/build/src/v1/mobile_device_service_proto_list.json +122 -0
- package/build/src/v1/mobile_device_submodel_service_client.d.ts +1352 -0
- package/build/src/v1/mobile_device_submodel_service_client.js +1997 -0
- package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -0
- package/build/src/v1/mobile_device_submodel_service_client_config.json +34 -0
- package/build/src/v1/mobile_device_submodel_service_proto_list.json +122 -0
- package/build/src/v1/network_service_client.d.ts +441 -0
- package/build/src/v1/network_service_client.js +624 -0
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_proto_list.json +49 -1
- package/build/src/v1/operating_system_service_client.d.ts +444 -3
- package/build/src/v1/operating_system_service_client.js +626 -2
- package/build/src/v1/operating_system_service_client.js.map +1 -1
- package/build/src/v1/operating_system_service_proto_list.json +49 -1
- package/build/src/v1/operating_system_version_service_client.d.ts +444 -3
- package/build/src/v1/operating_system_version_service_client.js +626 -2
- package/build/src/v1/operating_system_version_service_client.js.map +1 -1
- package/build/src/v1/operating_system_version_service_proto_list.json +49 -1
- package/build/src/v1/order_service_client.d.ts +447 -6
- package/build/src/v1/order_service_client.js +628 -4
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +49 -1
- package/build/src/v1/placement_service_client.d.ts +638 -6
- package/build/src/v1/placement_service_client.js +937 -61
- package/build/src/v1/placement_service_client.js.map +1 -1
- package/build/src/v1/placement_service_client_config.json +28 -0
- package/build/src/v1/placement_service_proto_list.json +49 -1
- package/build/src/v1/private_auction_deal_service_client.d.ts +444 -3
- package/build/src/v1/private_auction_deal_service_client.js +626 -2
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
- package/build/src/v1/private_auction_deal_service_proto_list.json +49 -1
- package/build/src/v1/private_auction_service_client.d.ts +444 -3
- package/build/src/v1/private_auction_service_client.js +626 -2
- package/build/src/v1/private_auction_service_client.js.map +1 -1
- package/build/src/v1/private_auction_service_proto_list.json +49 -1
- package/build/src/v1/programmatic_buyer_service_client.d.ts +441 -0
- package/build/src/v1/programmatic_buyer_service_client.js +624 -0
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
- package/build/src/v1/programmatic_buyer_service_proto_list.json +49 -1
- package/build/src/v1/report_service_client.d.ts +461 -17
- package/build/src/v1/report_service_client.js +634 -8
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +49 -1
- package/build/src/v1/role_service_client.d.ts +447 -3
- package/build/src/v1/role_service_client.js +628 -2
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +49 -1
- package/build/src/v1/site_service_client.d.ts +1506 -0
- package/build/src/v1/site_service_client.js +2209 -0
- package/build/src/v1/site_service_client.js.map +1 -0
- package/build/src/v1/site_service_client_config.json +58 -0
- package/build/src/v1/site_service_proto_list.json +122 -0
- package/build/src/v1/taxonomy_category_service_client.d.ts +441 -0
- package/build/src/v1/taxonomy_category_service_client.js +624 -0
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +49 -1
- package/build/src/v1/team_service_client.d.ts +1508 -0
- package/build/src/v1/team_service_client.js +2209 -0
- package/build/src/v1/team_service_client.js.map +1 -0
- package/build/src/v1/team_service_client_config.json +58 -0
- package/build/src/v1/team_service_proto_list.json +122 -0
- package/build/src/v1/user_service_client.d.ts +441 -0
- package/build/src/v1/user_service_client.js +624 -0
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +49 -1
- package/package.json +1 -1
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
import "google/ads/admanager/v1/contact_messages.proto";
|
|
20
|
+
import "google/api/annotations.proto";
|
|
21
|
+
import "google/api/client.proto";
|
|
22
|
+
import "google/api/field_behavior.proto";
|
|
23
|
+
import "google/api/resource.proto";
|
|
24
|
+
import "google/protobuf/field_mask.proto";
|
|
25
|
+
|
|
26
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
27
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
28
|
+
option java_multiple_files = true;
|
|
29
|
+
option java_outer_classname = "ContactServiceProto";
|
|
30
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
31
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
32
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
33
|
+
|
|
34
|
+
// Provides methods for handling `Contact` objects.
|
|
35
|
+
service ContactService {
|
|
36
|
+
option (google.api.default_host) = "admanager.googleapis.com";
|
|
37
|
+
option (google.api.oauth_scopes) =
|
|
38
|
+
"https://www.googleapis.com/auth/admanager";
|
|
39
|
+
|
|
40
|
+
// API to retrieve a `Contact` object.
|
|
41
|
+
rpc GetContact(GetContactRequest) returns (Contact) {
|
|
42
|
+
option (google.api.http) = {
|
|
43
|
+
get: "/v1/{name=networks/*/contacts/*}"
|
|
44
|
+
};
|
|
45
|
+
option (google.api.method_signature) = "name";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// API to retrieve a list of `Contact` objects.
|
|
49
|
+
rpc ListContacts(ListContactsRequest) returns (ListContactsResponse) {
|
|
50
|
+
option (google.api.http) = {
|
|
51
|
+
get: "/v1/{parent=networks/*}/contacts"
|
|
52
|
+
};
|
|
53
|
+
option (google.api.method_signature) = "parent";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// API to create a `Contact` object.
|
|
57
|
+
rpc CreateContact(CreateContactRequest) returns (Contact) {
|
|
58
|
+
option (google.api.http) = {
|
|
59
|
+
post: "/v1/{parent=networks/*}/contacts"
|
|
60
|
+
body: "contact"
|
|
61
|
+
};
|
|
62
|
+
option (google.api.method_signature) = "parent,contact";
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// API to batch create `Contact` objects.
|
|
66
|
+
rpc BatchCreateContacts(BatchCreateContactsRequest)
|
|
67
|
+
returns (BatchCreateContactsResponse) {
|
|
68
|
+
option (google.api.http) = {
|
|
69
|
+
post: "/v1/{parent=networks/*}/contacts:batchCreate"
|
|
70
|
+
body: "*"
|
|
71
|
+
};
|
|
72
|
+
option (google.api.method_signature) = "parent,requests";
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// API to update a `Contact` object.
|
|
76
|
+
rpc UpdateContact(UpdateContactRequest) returns (Contact) {
|
|
77
|
+
option (google.api.http) = {
|
|
78
|
+
patch: "/v1/{contact.name=networks/*/contacts/*}"
|
|
79
|
+
body: "contact"
|
|
80
|
+
};
|
|
81
|
+
option (google.api.method_signature) = "contact,update_mask";
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// API to batch update `Contact` objects.
|
|
85
|
+
rpc BatchUpdateContacts(BatchUpdateContactsRequest)
|
|
86
|
+
returns (BatchUpdateContactsResponse) {
|
|
87
|
+
option (google.api.http) = {
|
|
88
|
+
post: "/v1/{parent=networks/*}/contacts:batchUpdate"
|
|
89
|
+
body: "*"
|
|
90
|
+
};
|
|
91
|
+
option (google.api.method_signature) = "parent,requests";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Request object for `GetContact` method.
|
|
96
|
+
message GetContactRequest {
|
|
97
|
+
// Required. The resource name of the Contact.
|
|
98
|
+
// Format: `networks/{network_code}/contacts/{contact_id}`
|
|
99
|
+
string name = 1 [
|
|
100
|
+
(google.api.field_behavior) = REQUIRED,
|
|
101
|
+
(google.api.resource_reference) = {
|
|
102
|
+
type: "admanager.googleapis.com/Contact"
|
|
103
|
+
}
|
|
104
|
+
];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Request object for `ListContacts` method.
|
|
108
|
+
message ListContactsRequest {
|
|
109
|
+
// Required. The parent, which owns this collection of Contacts.
|
|
110
|
+
// Format: `networks/{network_code}`
|
|
111
|
+
string parent = 1 [
|
|
112
|
+
(google.api.field_behavior) = REQUIRED,
|
|
113
|
+
(google.api.resource_reference) = {
|
|
114
|
+
type: "admanager.googleapis.com/Network"
|
|
115
|
+
}
|
|
116
|
+
];
|
|
117
|
+
|
|
118
|
+
// Optional. The maximum number of `Contacts` to return. The service may
|
|
119
|
+
// return fewer than this value. If unspecified, at most 50 `Contacts` will be
|
|
120
|
+
// returned. The maximum value is 1000; values greater than 1000 will be
|
|
121
|
+
// coerced to 1000.
|
|
122
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
123
|
+
|
|
124
|
+
// Optional. A page token, received from a previous `ListContacts` call.
|
|
125
|
+
// Provide this to retrieve the subsequent page.
|
|
126
|
+
//
|
|
127
|
+
// When paginating, all other parameters provided to `ListContacts` must match
|
|
128
|
+
// the call that provided the page token.
|
|
129
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
130
|
+
|
|
131
|
+
// Optional. Expression to filter the response.
|
|
132
|
+
// See syntax details at
|
|
133
|
+
// https://developers.google.com/ad-manager/api/beta/filters
|
|
134
|
+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
135
|
+
|
|
136
|
+
// Optional. Expression to specify sorting order.
|
|
137
|
+
// See syntax details at
|
|
138
|
+
// https://developers.google.com/ad-manager/api/beta/filters#order
|
|
139
|
+
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
140
|
+
|
|
141
|
+
// Optional. Number of individual resources to skip while paginating.
|
|
142
|
+
int32 skip = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Response object for `ListContactsRequest` containing matching `Contact`
|
|
146
|
+
// objects.
|
|
147
|
+
message ListContactsResponse {
|
|
148
|
+
// The `Contact` objects from the specified network.
|
|
149
|
+
repeated Contact contacts = 1;
|
|
150
|
+
|
|
151
|
+
// A token, which can be sent as `page_token` to retrieve the next page.
|
|
152
|
+
// If this field is omitted, there are no subsequent pages.
|
|
153
|
+
string next_page_token = 2;
|
|
154
|
+
|
|
155
|
+
// Total number of `Contact` objects.
|
|
156
|
+
// If a filter was included in the request, this reflects the total number
|
|
157
|
+
// after the filtering is applied.
|
|
158
|
+
//
|
|
159
|
+
// `total_size` won't be calculated in the response unless it has been
|
|
160
|
+
// included in a response field mask. The response field mask can be provided
|
|
161
|
+
// to the method by using the URL parameter `$fields` or `fields`, or by using
|
|
162
|
+
// the HTTP/gRPC header `X-Goog-FieldMask`.
|
|
163
|
+
//
|
|
164
|
+
// For more information, see
|
|
165
|
+
// https://developers.google.com/ad-manager/api/beta/field-masks
|
|
166
|
+
int32 total_size = 3;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// Request object for `CreateContact` method.
|
|
170
|
+
message CreateContactRequest {
|
|
171
|
+
// Required. The parent resource where this `Contact` will be created.
|
|
172
|
+
// Format: `networks/{network_code}`
|
|
173
|
+
string parent = 1 [
|
|
174
|
+
(google.api.field_behavior) = REQUIRED,
|
|
175
|
+
(google.api.resource_reference) = {
|
|
176
|
+
type: "admanager.googleapis.com/Network"
|
|
177
|
+
}
|
|
178
|
+
];
|
|
179
|
+
|
|
180
|
+
// Required. The `Contact` to create.
|
|
181
|
+
Contact contact = 2 [(google.api.field_behavior) = REQUIRED];
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// Request object for `BatchCreateContacts` method.
|
|
185
|
+
message BatchCreateContactsRequest {
|
|
186
|
+
// Required. The parent resource where `Contacts` will be created.
|
|
187
|
+
// Format: `networks/{network_code}`
|
|
188
|
+
// The parent field in the CreateContactRequest must match this
|
|
189
|
+
// field.
|
|
190
|
+
string parent = 1 [
|
|
191
|
+
(google.api.field_behavior) = REQUIRED,
|
|
192
|
+
(google.api.resource_reference) = {
|
|
193
|
+
type: "admanager.googleapis.com/Network"
|
|
194
|
+
}
|
|
195
|
+
];
|
|
196
|
+
|
|
197
|
+
// Required. The `Contact` objects to create.
|
|
198
|
+
// A maximum of 100 objects can be created in a batch.
|
|
199
|
+
repeated CreateContactRequest requests = 2
|
|
200
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// Response object for `BatchCreateContacts` method.
|
|
204
|
+
message BatchCreateContactsResponse {
|
|
205
|
+
// The `Contact` objects created.
|
|
206
|
+
repeated Contact contacts = 1;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// Request object for `UpdateContact` method.
|
|
210
|
+
message UpdateContactRequest {
|
|
211
|
+
// Required. The `Contact` to update.
|
|
212
|
+
//
|
|
213
|
+
// The `Contact`'s `name` is used to identify the `Contact` to update.
|
|
214
|
+
Contact contact = 1 [(google.api.field_behavior) = REQUIRED];
|
|
215
|
+
|
|
216
|
+
// Required. The list of fields to update.
|
|
217
|
+
google.protobuf.FieldMask update_mask = 2
|
|
218
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// Request object for `BatchUpdateContacts` method.
|
|
222
|
+
message BatchUpdateContactsRequest {
|
|
223
|
+
// Required. The parent resource where `Contacts` will be updated.
|
|
224
|
+
// Format: `networks/{network_code}`
|
|
225
|
+
// The parent field in the UpdateContactRequest must match this
|
|
226
|
+
// field.
|
|
227
|
+
string parent = 1 [
|
|
228
|
+
(google.api.field_behavior) = REQUIRED,
|
|
229
|
+
(google.api.resource_reference) = {
|
|
230
|
+
type: "admanager.googleapis.com/Network"
|
|
231
|
+
}
|
|
232
|
+
];
|
|
233
|
+
|
|
234
|
+
// Required. The `Contact` objects to update.
|
|
235
|
+
// A maximum of 100 objects can be updated in a batch.
|
|
236
|
+
repeated UpdateContactRequest requests = 2
|
|
237
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Response object for `BatchUpdateContacts` method.
|
|
241
|
+
message BatchUpdateContactsResponse {
|
|
242
|
+
// The `Contact` objects updated.
|
|
243
|
+
repeated Contact contacts = 1;
|
|
244
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
import "google/api/field_behavior.proto";
|
|
20
|
+
import "google/api/resource.proto";
|
|
21
|
+
|
|
22
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
23
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
24
|
+
option java_multiple_files = true;
|
|
25
|
+
option java_outer_classname = "ContentBundleMessagesProto";
|
|
26
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
27
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
28
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
29
|
+
|
|
30
|
+
// A [ContentBundle][google.ads.admanager.v1.ContentBundle] is a grouping of
|
|
31
|
+
// individual [Content][google.ads.admanager.v1.Content]. A
|
|
32
|
+
// [ContentBundle][google.ads.admanager.v1.ContentBundle] is defined as
|
|
33
|
+
// including the [Content][google.ads.admanager.v1.Content] that match certain
|
|
34
|
+
// filter rules along with the option to explicitly include or exclude certain
|
|
35
|
+
// Content IDs.
|
|
36
|
+
message ContentBundle {
|
|
37
|
+
option (google.api.resource) = {
|
|
38
|
+
type: "admanager.googleapis.com/ContentBundle"
|
|
39
|
+
pattern: "networks/{network_code}/contentBundles/{content_bundle}"
|
|
40
|
+
plural: "contentBundles"
|
|
41
|
+
singular: "contentBundle"
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// Identifier. The resource name of the
|
|
45
|
+
// [ContentBundle][google.ads.admanager.v1.ContentBundle]. Format:
|
|
46
|
+
// `networks/{network_code}/contentBundles/{content_bundle_id}`
|
|
47
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
48
|
+
|
|
49
|
+
// Required. The name of the
|
|
50
|
+
// [ContentBundle][google.ads.admanager.v1.ContentBundle]. This attribute is
|
|
51
|
+
// required and has a maximum length of 255 characters.
|
|
52
|
+
string display_name = 3 [(google.api.field_behavior) = REQUIRED];
|
|
53
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
import "google/ads/admanager/v1/content_bundle_messages.proto";
|
|
20
|
+
import "google/api/annotations.proto";
|
|
21
|
+
import "google/api/client.proto";
|
|
22
|
+
import "google/api/field_behavior.proto";
|
|
23
|
+
import "google/api/resource.proto";
|
|
24
|
+
|
|
25
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
26
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
27
|
+
option java_multiple_files = true;
|
|
28
|
+
option java_outer_classname = "ContentBundleServiceProto";
|
|
29
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
30
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
31
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
32
|
+
|
|
33
|
+
// Provides methods for handling `ContentBundle` objects.
|
|
34
|
+
service ContentBundleService {
|
|
35
|
+
option (google.api.default_host) = "admanager.googleapis.com";
|
|
36
|
+
option (google.api.oauth_scopes) =
|
|
37
|
+
"https://www.googleapis.com/auth/admanager";
|
|
38
|
+
|
|
39
|
+
// API to retrieve a `ContentBundle` object.
|
|
40
|
+
rpc GetContentBundle(GetContentBundleRequest) returns (ContentBundle) {
|
|
41
|
+
option (google.api.http) = {
|
|
42
|
+
get: "/v1/{name=networks/*/contentBundles/*}"
|
|
43
|
+
};
|
|
44
|
+
option (google.api.method_signature) = "name";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// API to retrieve a list of `ContentBundle` objects.
|
|
48
|
+
rpc ListContentBundles(ListContentBundlesRequest)
|
|
49
|
+
returns (ListContentBundlesResponse) {
|
|
50
|
+
option (google.api.http) = {
|
|
51
|
+
get: "/v1/{parent=networks/*}/contentBundles"
|
|
52
|
+
};
|
|
53
|
+
option (google.api.method_signature) = "parent";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Request object for `GetContentBundle` method.
|
|
58
|
+
message GetContentBundleRequest {
|
|
59
|
+
// Required. The resource name of the ContentBundle.
|
|
60
|
+
// Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
|
|
61
|
+
string name = 1 [
|
|
62
|
+
(google.api.field_behavior) = REQUIRED,
|
|
63
|
+
(google.api.resource_reference) = {
|
|
64
|
+
type: "admanager.googleapis.com/ContentBundle"
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Request object for `ListContentBundles` method.
|
|
70
|
+
message ListContentBundlesRequest {
|
|
71
|
+
// Required. The parent, which owns this collection of ContentBundles.
|
|
72
|
+
// Format: `networks/{network_code}`
|
|
73
|
+
string parent = 1 [
|
|
74
|
+
(google.api.field_behavior) = REQUIRED,
|
|
75
|
+
(google.api.resource_reference) = {
|
|
76
|
+
type: "admanager.googleapis.com/Network"
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
|
|
80
|
+
// Optional. The maximum number of `ContentBundles` to return. The service may
|
|
81
|
+
// return fewer than this value. If unspecified, at most 50 `ContentBundles`
|
|
82
|
+
// will be returned. The maximum value is 1000; values greater than 1000 will
|
|
83
|
+
// be coerced to 1000.
|
|
84
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
85
|
+
|
|
86
|
+
// Optional. A page token, received from a previous `ListContentBundles` call.
|
|
87
|
+
// Provide this to retrieve the subsequent page.
|
|
88
|
+
//
|
|
89
|
+
// When paginating, all other parameters provided to `ListContentBundles` must
|
|
90
|
+
// match the call that provided the page token.
|
|
91
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
92
|
+
|
|
93
|
+
// Optional. Expression to filter the response.
|
|
94
|
+
// See syntax details at
|
|
95
|
+
// https://developers.google.com/ad-manager/api/beta/filters
|
|
96
|
+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
97
|
+
|
|
98
|
+
// Optional. Expression to specify sorting order.
|
|
99
|
+
// See syntax details at
|
|
100
|
+
// https://developers.google.com/ad-manager/api/beta/filters#order
|
|
101
|
+
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
102
|
+
|
|
103
|
+
// Optional. Number of individual resources to skip while paginating.
|
|
104
|
+
int32 skip = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Response object for `ListContentBundlesRequest` containing matching
|
|
108
|
+
// `ContentBundle` objects.
|
|
109
|
+
message ListContentBundlesResponse {
|
|
110
|
+
// The `ContentBundle` objects from the specified network.
|
|
111
|
+
repeated ContentBundle content_bundles = 1;
|
|
112
|
+
|
|
113
|
+
// A token, which can be sent as `page_token` to retrieve the next page.
|
|
114
|
+
// If this field is omitted, there are no subsequent pages.
|
|
115
|
+
string next_page_token = 2;
|
|
116
|
+
|
|
117
|
+
// Total number of `ContentBundle` objects.
|
|
118
|
+
// If a filter was included in the request, this reflects the total number
|
|
119
|
+
// after the filtering is applied.
|
|
120
|
+
//
|
|
121
|
+
// `total_size` won't be calculated in the response unless it has been
|
|
122
|
+
// included in a response field mask. The response field mask can be provided
|
|
123
|
+
// to the method by using the URL parameter `$fields` or `fields`, or by using
|
|
124
|
+
// the HTTP/gRPC header `X-Goog-FieldMask`.
|
|
125
|
+
//
|
|
126
|
+
// For more information, see
|
|
127
|
+
// https://developers.google.com/ad-manager/api/beta/field-masks
|
|
128
|
+
int32 total_size = 3;
|
|
129
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
import "google/api/field_behavior.proto";
|
|
20
|
+
import "google/api/resource.proto";
|
|
21
|
+
|
|
22
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
23
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
24
|
+
option java_multiple_files = true;
|
|
25
|
+
option java_outer_classname = "ContentLabelMessagesProto";
|
|
26
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
27
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
28
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
29
|
+
|
|
30
|
+
// A content label.
|
|
31
|
+
message ContentLabel {
|
|
32
|
+
option (google.api.resource) = {
|
|
33
|
+
type: "admanager.googleapis.com/ContentLabel"
|
|
34
|
+
pattern: "networks/{network_code}/contentLabels/{content_label}"
|
|
35
|
+
plural: "contentLabels"
|
|
36
|
+
singular: "contentLabel"
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// Identifier. The resource name of the `ContentLabel`.
|
|
40
|
+
// Format: `networks/{network_code}/contentLabels/{content_label_id}`
|
|
41
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
42
|
+
|
|
43
|
+
// Optional. The display name of the `ContentLabel`.
|
|
44
|
+
string display_name = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
45
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
import "google/ads/admanager/v1/content_label_messages.proto";
|
|
20
|
+
import "google/api/annotations.proto";
|
|
21
|
+
import "google/api/client.proto";
|
|
22
|
+
import "google/api/field_behavior.proto";
|
|
23
|
+
import "google/api/resource.proto";
|
|
24
|
+
|
|
25
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
26
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
27
|
+
option java_multiple_files = true;
|
|
28
|
+
option java_outer_classname = "ContentLabelServiceProto";
|
|
29
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
30
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
31
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
32
|
+
|
|
33
|
+
// Provides methods for handling `ContentLabel` objects.
|
|
34
|
+
service ContentLabelService {
|
|
35
|
+
option (google.api.default_host) = "admanager.googleapis.com";
|
|
36
|
+
option (google.api.oauth_scopes) =
|
|
37
|
+
"https://www.googleapis.com/auth/admanager";
|
|
38
|
+
|
|
39
|
+
// API to retrieve a `ContentLabel` object.
|
|
40
|
+
rpc GetContentLabel(GetContentLabelRequest) returns (ContentLabel) {
|
|
41
|
+
option (google.api.http) = {
|
|
42
|
+
get: "/v1/{name=networks/*/contentLabels/*}"
|
|
43
|
+
};
|
|
44
|
+
option (google.api.method_signature) = "name";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// API to retrieve a list of `ContentLabel` objects.
|
|
48
|
+
rpc ListContentLabels(ListContentLabelsRequest)
|
|
49
|
+
returns (ListContentLabelsResponse) {
|
|
50
|
+
option (google.api.http) = {
|
|
51
|
+
get: "/v1/{parent=networks/*}/contentLabels"
|
|
52
|
+
};
|
|
53
|
+
option (google.api.method_signature) = "parent";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Request object for `GetContentLabel` method.
|
|
58
|
+
message GetContentLabelRequest {
|
|
59
|
+
// Required. The resource name of the ContentLabel.
|
|
60
|
+
// Format: `networks/{network_code}/contentLabels/{content_label_id}`
|
|
61
|
+
string name = 1 [
|
|
62
|
+
(google.api.field_behavior) = REQUIRED,
|
|
63
|
+
(google.api.resource_reference) = {
|
|
64
|
+
type: "admanager.googleapis.com/ContentLabel"
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Request object for `ListContentLabels` method.
|
|
70
|
+
message ListContentLabelsRequest {
|
|
71
|
+
// Required. The parent, which owns this collection of ContentLabels.
|
|
72
|
+
// Format: `networks/{network_code}`
|
|
73
|
+
string parent = 1 [
|
|
74
|
+
(google.api.field_behavior) = REQUIRED,
|
|
75
|
+
(google.api.resource_reference) = {
|
|
76
|
+
type: "admanager.googleapis.com/Network"
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
|
|
80
|
+
// Optional. The maximum number of `ContentLabels` to return. The service may
|
|
81
|
+
// return fewer than this value. If unspecified, at most 50 `ContentLabels`
|
|
82
|
+
// will be returned. The maximum value is 1000; values greater than 1000 will
|
|
83
|
+
// be coerced to 1000.
|
|
84
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
85
|
+
|
|
86
|
+
// Optional. A page token, received from a previous `ListContentLabels` call.
|
|
87
|
+
// Provide this to retrieve the subsequent page.
|
|
88
|
+
//
|
|
89
|
+
// When paginating, all other parameters provided to `ListContentLabels` must
|
|
90
|
+
// match the call that provided the page token.
|
|
91
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
92
|
+
|
|
93
|
+
// Optional. Expression to filter the response.
|
|
94
|
+
// See syntax details at
|
|
95
|
+
// https://developers.google.com/ad-manager/api/beta/filters
|
|
96
|
+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
97
|
+
|
|
98
|
+
// Optional. Expression to specify sorting order.
|
|
99
|
+
// See syntax details at
|
|
100
|
+
// https://developers.google.com/ad-manager/api/beta/filters#order
|
|
101
|
+
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
102
|
+
|
|
103
|
+
// Optional. Number of individual resources to skip while paginating.
|
|
104
|
+
int32 skip = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Response object for `ListContentLabelsRequest` containing matching
|
|
108
|
+
// `ContentLabel` objects.
|
|
109
|
+
message ListContentLabelsResponse {
|
|
110
|
+
// The `ContentLabel` objects from the specified network.
|
|
111
|
+
repeated ContentLabel content_labels = 1;
|
|
112
|
+
|
|
113
|
+
// A token, which can be sent as `page_token` to retrieve the next page.
|
|
114
|
+
// If this field is omitted, there are no subsequent pages.
|
|
115
|
+
string next_page_token = 2;
|
|
116
|
+
|
|
117
|
+
// Total number of `ContentLabel` objects.
|
|
118
|
+
// If a filter was included in the request, this reflects the total number
|
|
119
|
+
// after the filtering is applied.
|
|
120
|
+
//
|
|
121
|
+
// `total_size` won't be calculated in the response unless it has been
|
|
122
|
+
// included in a response field mask. The response field mask can be provided
|
|
123
|
+
// to the method by using the URL parameter `$fields` or `fields`, or by using
|
|
124
|
+
// the HTTP/gRPC header `X-Goog-FieldMask`.
|
|
125
|
+
//
|
|
126
|
+
// For more information, see
|
|
127
|
+
// https://developers.google.com/ad-manager/api/beta/field-masks
|
|
128
|
+
int32 total_size = 3;
|
|
129
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
import "google/api/field_behavior.proto";
|
|
20
|
+
import "google/api/resource.proto";
|
|
21
|
+
|
|
22
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
23
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
24
|
+
option java_multiple_files = true;
|
|
25
|
+
option java_outer_classname = "ContentMessagesProto";
|
|
26
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
27
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
28
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
29
|
+
|
|
30
|
+
// A piece of content from a Publisher's CMS.
|
|
31
|
+
message Content {
|
|
32
|
+
option (google.api.resource) = {
|
|
33
|
+
type: "admanager.googleapis.com/Content"
|
|
34
|
+
pattern: "networks/{network_code}/content/{content}"
|
|
35
|
+
plural: "content"
|
|
36
|
+
singular: "content"
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// Identifier. The resource name of the `Content`.
|
|
40
|
+
// Format: `networks/{network_code}/content/{content_id}`
|
|
41
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
42
|
+
|
|
43
|
+
// Output only. The name of the `Content`.
|
|
44
|
+
optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
45
|
+
}
|