experiment.proto 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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.v12.resources;
  16. import "google/ads/googleads/v12/common/metric_goal.proto";
  17. import "google/ads/googleads/v12/enums/async_action_status.proto";
  18. import "google/ads/googleads/v12/enums/experiment_status.proto";
  19. import "google/ads/googleads/v12/enums/experiment_type.proto";
  20. import "google/api/field_behavior.proto";
  21. import "google/api/resource.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "ExperimentProto";
  26. option java_package = "com.google.ads.googleads.v12.resources";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  29. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  30. // Proto file describing the Experiment resource.
  31. // A Google ads experiment for users to experiment changes on multiple
  32. // campaigns, compare the performance, and apply the effective changes.
  33. message Experiment {
  34. option (google.api.resource) = {
  35. type: "googleads.googleapis.com/Experiment"
  36. pattern: "customers/{customer_id}/experiments/{trial_id}"
  37. };
  38. // Immutable. The resource name of the experiment.
  39. // Experiment resource names have the form:
  40. //
  41. // `customers/{customer_id}/experiments/{experiment_id}`
  42. string resource_name = 1 [
  43. (google.api.field_behavior) = IMMUTABLE,
  44. (google.api.resource_reference) = {
  45. type: "googleads.googleapis.com/Experiment"
  46. }
  47. ];
  48. // Output only. The ID of the experiment. Read only.
  49. optional int64 experiment_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  50. // Required. The name of the experiment. It must have a minimum length of 1 and
  51. // maximum length of 1024. It must be unique under a customer.
  52. string name = 10 [(google.api.field_behavior) = REQUIRED];
  53. // The description of the experiment. It must have a minimum length of 1 and
  54. // maximum length of 2048.
  55. string description = 11;
  56. // For system managed experiments, the advertiser must provide a suffix during
  57. // construction, in the setup stage before moving to initiated. The suffix
  58. // will be appended to the in-design and experiment campaign names so that the
  59. // name is base campaign name + suffix.
  60. string suffix = 12;
  61. // Required. The product/feature that uses this experiment.
  62. google.ads.googleads.v12.enums.ExperimentTypeEnum.ExperimentType type = 13 [(google.api.field_behavior) = REQUIRED];
  63. // The Advertiser-chosen status of this experiment.
  64. google.ads.googleads.v12.enums.ExperimentStatusEnum.ExperimentStatus status = 14;
  65. // Date when the experiment starts. By default, the experiment starts
  66. // now or on the campaign's start date, whichever is later. If this field is
  67. // set, then the experiment starts at the beginning of the specified date in
  68. // the customer's time zone.
  69. //
  70. // Format: YYYY-MM-DD
  71. // Example: 2019-03-14
  72. optional string start_date = 15;
  73. // Date when the experiment ends. By default, the experiment ends on
  74. // the campaign's end date. If this field is set, then the experiment ends at
  75. // the end of the specified date in the customer's time zone.
  76. //
  77. // Format: YYYY-MM-DD
  78. // Example: 2019-04-18
  79. optional string end_date = 16;
  80. // The goals of this experiment.
  81. repeated google.ads.googleads.v12.common.MetricGoal goals = 17;
  82. // Output only. The resource name of the long-running operation that can be used to poll
  83. // for completion of experiment schedule or promote. The most recent long
  84. // running operation is returned.
  85. optional string long_running_operation = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
  86. // Output only. The status of the experiment promotion process.
  87. google.ads.googleads.v12.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
  88. }