customer_conversion_goal_service.proto 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.v11.services;
  16. import "google/ads/googleads/v11/resources/customer_conversion_goal.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.V11.Services";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/services;services";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "CustomerConversionGoalServiceProto";
  26. option java_package = "com.google.ads.googleads.v11.services";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Services";
  29. option ruby_package = "Google::Ads::GoogleAds::V11::Services";
  30. // Proto file describing the CustomerConversionGoal service.
  31. // Service to manage customer conversion goal.
  32. service CustomerConversionGoalService {
  33. option (google.api.default_host) = "googleads.googleapis.com";
  34. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords";
  35. // Creates, updates or removes customer conversion goals. Operation statuses
  36. // are returned.
  37. rpc MutateCustomerConversionGoals(MutateCustomerConversionGoalsRequest) returns (MutateCustomerConversionGoalsResponse) {
  38. option (google.api.http) = {
  39. post: "/v11/customers/{customer_id=*}/customerConversionGoals:mutate"
  40. body: "*"
  41. };
  42. option (google.api.method_signature) = "customer_id,operations";
  43. }
  44. }
  45. // Request message for
  46. // [CustomerConversionGoalService.MutateCustomerConversionGoals][google.ads.googleads.v11.services.CustomerConversionGoalService.MutateCustomerConversionGoals].
  47. message MutateCustomerConversionGoalsRequest {
  48. // Required. The ID of the customer whose customer conversion goals are being modified.
  49. string customer_id = 1 [(google.api.field_behavior) = REQUIRED];
  50. // Required. The list of operations to perform on individual customer conversion goal.
  51. repeated CustomerConversionGoalOperation operations = 2 [(google.api.field_behavior) = REQUIRED];
  52. // If true, the request is validated but not executed. Only errors are
  53. // returned, not results.
  54. bool validate_only = 3;
  55. }
  56. // A single operation (update) on a customer conversion goal.
  57. message CustomerConversionGoalOperation {
  58. // FieldMask that determines which resource fields are modified in an update.
  59. google.protobuf.FieldMask update_mask = 2;
  60. // The mutate operation.
  61. oneof operation {
  62. // Update operation: The customer conversion goal is expected to have a
  63. // valid resource name.
  64. google.ads.googleads.v11.resources.CustomerConversionGoal update = 1;
  65. }
  66. }
  67. // Response message for a customer conversion goal mutate.
  68. message MutateCustomerConversionGoalsResponse {
  69. // All results for the mutate.
  70. repeated MutateCustomerConversionGoalResult results = 1;
  71. }
  72. // The result for the customer conversion goal mutate.
  73. message MutateCustomerConversionGoalResult {
  74. // Returned for successful operations.
  75. string resource_name = 1 [(google.api.resource_reference) = {
  76. type: "googleads.googleapis.com/CustomerConversionGoal"
  77. }];
  78. }