customer_client_link_service.proto 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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.googleads.v10.services;
  16. import "google/ads/googleads/v10/resources/customer_client_link.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. import "google/protobuf/field_mask.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V10.Services";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/services;services";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "CustomerClientLinkServiceProto";
  26. option java_package = "com.google.ads.googleads.v10.services";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Services";
  29. option ruby_package = "Google::Ads::GoogleAds::V10::Services";
  30. // Service to manage customer client links.
  31. service CustomerClientLinkService {
  32. option (google.api.default_host) = "googleads.googleapis.com";
  33. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords";
  34. // Creates or updates a customer client link. Operation statuses are returned.
  35. //
  36. // List of thrown errors:
  37. // [AuthenticationError]()
  38. // [AuthorizationError]()
  39. // [DatabaseError]()
  40. // [FieldError]()
  41. // [FieldMaskError]()
  42. // [HeaderError]()
  43. // [InternalError]()
  44. // [ManagerLinkError]()
  45. // [MutateError]()
  46. // [NewResourceCreationError]()
  47. // [QuotaError]()
  48. // [RequestError]()
  49. rpc MutateCustomerClientLink(MutateCustomerClientLinkRequest) returns (MutateCustomerClientLinkResponse) {
  50. option (google.api.http) = {
  51. post: "/v10/customers/{customer_id=*}/customerClientLinks:mutate"
  52. body: "*"
  53. };
  54. option (google.api.method_signature) = "customer_id,operation";
  55. }
  56. }
  57. // Request message for [CustomerClientLinkService.MutateCustomerClientLink][google.ads.googleads.v10.services.CustomerClientLinkService.MutateCustomerClientLink].
  58. message MutateCustomerClientLinkRequest {
  59. // Required. The ID of the customer whose customer link are being modified.
  60. string customer_id = 1 [(google.api.field_behavior) = REQUIRED];
  61. // Required. The operation to perform on the individual CustomerClientLink.
  62. CustomerClientLinkOperation operation = 2 [(google.api.field_behavior) = REQUIRED];
  63. // If true, the request is validated but not executed. Only errors are
  64. // returned, not results.
  65. bool validate_only = 3;
  66. }
  67. // A single operation (create, update) on a CustomerClientLink.
  68. message CustomerClientLinkOperation {
  69. // FieldMask that determines which resource fields are modified in an update.
  70. google.protobuf.FieldMask update_mask = 4;
  71. // The mutate operation.
  72. oneof operation {
  73. // Create operation: No resource name is expected for the new link.
  74. google.ads.googleads.v10.resources.CustomerClientLink create = 1;
  75. // Update operation: The link is expected to have a valid resource name.
  76. google.ads.googleads.v10.resources.CustomerClientLink update = 2;
  77. }
  78. }
  79. // Response message for a CustomerClientLink mutate.
  80. message MutateCustomerClientLinkResponse {
  81. // A result that identifies the resource affected by the mutate request.
  82. MutateCustomerClientLinkResult result = 1;
  83. }
  84. // The result for a single customer client link mutate.
  85. message MutateCustomerClientLinkResult {
  86. // Returned for successful operations.
  87. string resource_name = 1 [(google.api.resource_reference) = {
  88. type: "googleads.googleapis.com/CustomerClientLink"
  89. }];
  90. }