campaign_experiment.proto 5.0 KB

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