1// Copyright 2023 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 15syntax = "proto3"; 16 17package google.ads.searchads360.v0.services; 18 19import "google/api/annotations.proto"; 20import "google/api/client.proto"; 21 22option csharp_namespace = "Google.Ads.SearchAds360.V0.Services"; 23option go_package = "google.golang.org/genproto/googleapis/ads/searchads360/v0/services;services"; 24option java_multiple_files = true; 25option java_outer_classname = "CustomerServiceProto"; 26option java_package = "com.google.ads.searchads360.v0.services"; 27option objc_class_prefix = "GASA360"; 28option php_namespace = "Google\\Ads\\SearchAds360\\V0\\Services"; 29option ruby_package = "Google::Ads::SearchAds360::V0::Services"; 30 31// Proto file describing the Customer service. 32 33// Service to manage customers. 34service CustomerService { 35 option (google.api.default_host) = "searchads360.googleapis.com"; 36 option (google.api.oauth_scopes) = 37 "https://www.googleapis.com/auth/doubleclicksearch"; 38 39 // Returns resource names of customers directly accessible by the 40 // user authenticating the call. 41 // 42 // List of thrown errors: 43 // [AuthenticationError]() 44 // [AuthorizationError]() 45 // [HeaderError]() 46 // [InternalError]() 47 // [QuotaError]() 48 // [RequestError]() 49 rpc ListAccessibleCustomers(ListAccessibleCustomersRequest) 50 returns (ListAccessibleCustomersResponse) { 51 option (google.api.http) = { 52 get: "/v0/customers:listAccessibleCustomers" 53 }; 54 } 55} 56 57// Request message for 58// [CustomerService.ListAccessibleCustomers][google.ads.searchads360.v0.services.CustomerService.ListAccessibleCustomers]. 59message ListAccessibleCustomersRequest {} 60 61// Response message for 62// [CustomerService.ListAccessibleCustomers][google.ads.searchads360.v0.services.CustomerService.ListAccessibleCustomers]. 63message ListAccessibleCustomersResponse { 64 // Resource name of customers directly accessible by the 65 // user authenticating the call. 66 repeated string resource_names = 1; 67} 68