campaign_experiment.proto 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. // Copyright 2021 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.v8.resources;
  16. import "google/ads/googleads/v8/enums/campaign_experiment_status.proto";
  17. import "google/ads/googleads/v8/enums/campaign_experiment_traffic_split_type.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. import "google/api/annotations.proto";
  21. option csharp_namespace = "Google.Ads.GoogleAds.V8.Resources";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v8/resources;resources";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "CampaignExperimentProto";
  25. option java_package = "com.google.ads.googleads.v8.resources";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V8\\Resources";
  28. option ruby_package = "Google::Ads::GoogleAds::V8::Resources";
  29. // Proto file describing the Campaign Experiment resource.
  30. // An A/B experiment that compares the performance of the base campaign
  31. // (the control) and a variation of that campaign (the experiment).
  32. message CampaignExperiment {
  33. option (google.api.resource) = {
  34. type: "googleads.googleapis.com/CampaignExperiment"
  35. pattern: "customers/{customer_id}/campaignExperiments/{campaign_experiment_id}"
  36. };
  37. // Immutable. The resource name of the campaign experiment.
  38. // Campaign experiment resource names have the form:
  39. //
  40. // `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}`
  41. string resource_name = 1 [
  42. (google.api.field_behavior) = IMMUTABLE,
  43. (google.api.resource_reference) = {
  44. type: "googleads.googleapis.com/CampaignExperiment"
  45. }
  46. ];
  47. // Output only. The ID of the campaign experiment.
  48. //
  49. // This field is read-only.
  50. optional int64 id = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  51. // Immutable. The campaign draft with staged changes to the base campaign.
  52. optional string campaign_draft = 14 [
  53. (google.api.field_behavior) = IMMUTABLE,
  54. (google.api.resource_reference) = {
  55. type: "googleads.googleapis.com/CampaignDraft"
  56. }
  57. ];
  58. // The name of the campaign experiment.
  59. //
  60. // This field is required when creating new campaign experiments
  61. // and must not conflict with the name of another non-removed
  62. // campaign experiment or campaign.
  63. //
  64. // It must not contain any null (code point 0x0), NL line feed
  65. // (code point 0xA) or carriage return (code point 0xD) characters.
  66. optional string name = 15;
  67. // The description of the experiment.
  68. optional string description = 16;
  69. // Immutable. Share of traffic directed to experiment as a percent (must be between 1 and
  70. // 99 inclusive. Base campaign receives the remainder of the traffic
  71. // (100 - traffic_split_percent). Required for create.
  72. optional int64 traffic_split_percent = 17 [(google.api.field_behavior) = IMMUTABLE];
  73. // Immutable. Determines the behavior of the traffic split.
  74. google.ads.googleads.v8.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(google.api.field_behavior) = IMMUTABLE];
  75. // Output only. The experiment campaign, as opposed to the base campaign.
  76. optional string experiment_campaign = 18 [
  77. (google.api.field_behavior) = OUTPUT_ONLY,
  78. (google.api.resource_reference) = {
  79. type: "googleads.googleapis.com/Campaign"
  80. }
  81. ];
  82. // Output only. The status of the campaign experiment. This field is read-only.
  83. google.ads.googleads.v8.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  84. // Output only. The resource name of the long-running operation that can be used to poll
  85. // for completion of experiment create or promote. The most recent long
  86. // running operation is returned.
  87. optional string long_running_operation = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
  88. // Date when the campaign experiment starts. By default, the experiment starts
  89. // now or on the campaign's start date, whichever is later. If this field is
  90. // set, then the experiment starts at the beginning of the specified date in
  91. // the customer's time zone. Cannot be changed once the experiment starts.
  92. //
  93. // Format: YYYY-MM-DD
  94. // Example: 2019-03-14
  95. optional string start_date = 20;
  96. // The last day of the campaign experiment. By default, the experiment ends on
  97. // the campaign's end date. If this field is set, then the experiment ends at
  98. // the end of the specified date in the customer's time zone.
  99. //
  100. // Format: YYYY-MM-DD
  101. // Example: 2019-04-18
  102. optional string end_date = 21;
  103. }