experiment_arm.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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.resources;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. option csharp_namespace = "Google.Ads.GoogleAds.V10.Resources";
  19. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/resources;resources";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "ExperimentArmProto";
  22. option java_package = "com.google.ads.googleads.v10.resources";
  23. option objc_class_prefix = "GAA";
  24. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Resources";
  25. option ruby_package = "Google::Ads::GoogleAds::V10::Resources";
  26. // Proto file describing the Experiment arm resource.
  27. // A Google ads experiment for users to experiment changes on multiple
  28. // campaigns, compare the performance, and apply the effective changes.
  29. message ExperimentArm {
  30. option (google.api.resource) = {
  31. type: "googleads.googleapis.com/ExperimentArm"
  32. pattern: "customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}"
  33. };
  34. // Immutable. The resource name of the experiment arm.
  35. // Experiment arm resource names have the form:
  36. //
  37. // `customers/{customer_id}/experimentArms/{TrialArm.trial_id}~{TrialArm.trial_arm_id}`
  38. string resource_name = 1 [
  39. (google.api.field_behavior) = IMMUTABLE,
  40. (google.api.resource_reference) = {
  41. type: "googleads.googleapis.com/ExperimentArm"
  42. }
  43. ];
  44. // Immutable. The experiment to which the ExperimentArm belongs.
  45. string trial = 2 [
  46. (google.api.field_behavior) = IMMUTABLE,
  47. (google.api.resource_reference) = {
  48. type: "googleads.googleapis.com/Experiment"
  49. }
  50. ];
  51. // Required. The name of the experiment arm. It must have a minimum length of 1 and
  52. // maximum length of 1024. It must be unique under an experiment.
  53. string name = 3 [(google.api.field_behavior) = REQUIRED];
  54. // Whether this arm is a control arm. A control arm is the arm against
  55. // which the other arms are compared.
  56. bool control = 4;
  57. // Traffic split of the trial arm. The value should be between 1 and 100
  58. // and must total 100 between the two trial arms.
  59. int64 traffic_split = 5;
  60. // List of campaigns in the trial arm. The max length is one.
  61. repeated string campaigns = 6 [(google.api.resource_reference) = {
  62. type: "googleads.googleapis.com/Campaign"
  63. }];
  64. // Output only. The in design campaigns in the treatment experiment arm.
  65. repeated string in_design_campaigns = 7 [
  66. (google.api.field_behavior) = OUTPUT_ONLY,
  67. (google.api.resource_reference) = {
  68. type: "googleads.googleapis.com/Campaign"
  69. }
  70. ];
  71. }