custom_column_service.proto 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.ads.searchads360.v0.services;
  16. import "google/ads/searchads360/v0/resources/custom_column.proto";
  17. import "google/api/annotations.proto";
  18. import "google/api/client.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. option csharp_namespace = "Google.Ads.SearchAds360.V0.Services";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/searchads360/v0/services;services";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "CustomColumnServiceProto";
  25. option java_package = "com.google.ads.searchads360.v0.services";
  26. option objc_class_prefix = "GASA360";
  27. option php_namespace = "Google\\Ads\\SearchAds360\\V0\\Services";
  28. option ruby_package = "Google::Ads::SearchAds360::V0::Services";
  29. // Proto file describing the Custom Column service.
  30. // Service to manage custom columns.
  31. service CustomColumnService {
  32. option (google.api.default_host) = "searchads360.googleapis.com";
  33. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/doubleclicksearch";
  34. // Returns the requested custom column in full detail.
  35. rpc GetCustomColumn(GetCustomColumnRequest) returns (google.ads.searchads360.v0.resources.CustomColumn) {
  36. option (google.api.http) = {
  37. get: "/v0/{resource_name=customers/*/customColumns/*}"
  38. };
  39. option (google.api.method_signature) = "resource_name";
  40. }
  41. // Returns all the custom columns associated with the customer in full detail.
  42. rpc ListCustomColumns(ListCustomColumnsRequest) returns (ListCustomColumnsResponse) {
  43. option (google.api.http) = {
  44. get: "/v0/customers/{customer_id=*}/customColumns"
  45. };
  46. option (google.api.method_signature) = "customer_id";
  47. }
  48. }
  49. // Request message for [CustomColumnService.GetCustomColumn][google.ads.searchads360.v0.services.CustomColumnService.GetCustomColumn].
  50. message GetCustomColumnRequest {
  51. // Required. The resource name of the custom column to fetch.
  52. string resource_name = 1 [
  53. (google.api.field_behavior) = REQUIRED,
  54. (google.api.resource_reference) = {
  55. type: "searchads360.googleapis.com/CustomColumn"
  56. }
  57. ];
  58. }
  59. // Request message for [CustomColumnService.ListCustomColumns][google.ads.searchads360.v0.services.CustomColumnService.ListCustomColumns]
  60. message ListCustomColumnsRequest {
  61. // Required. The ID of the customer to apply the CustomColumn list operation to.
  62. string customer_id = 1 [(google.api.field_behavior) = REQUIRED];
  63. }
  64. // Response message for fetching all custom columns associated with a customer.
  65. message ListCustomColumnsResponse {
  66. // The CustomColumns owned by the provided customer.
  67. repeated google.ads.searchads360.v0.resources.CustomColumn custom_columns = 1;
  68. }