campaign_draft.proto 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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_draft_status.proto";
  17. import "google/api/field_behavior.proto";
  18. import "google/api/resource.proto";
  19. import "google/api/annotations.proto";
  20. option csharp_namespace = "Google.Ads.GoogleAds.V8.Resources";
  21. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v8/resources;resources";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "CampaignDraftProto";
  24. option java_package = "com.google.ads.googleads.v8.resources";
  25. option objc_class_prefix = "GAA";
  26. option php_namespace = "Google\\Ads\\GoogleAds\\V8\\Resources";
  27. option ruby_package = "Google::Ads::GoogleAds::V8::Resources";
  28. // Proto file describing the Campaign Draft resource.
  29. // A campaign draft.
  30. message CampaignDraft {
  31. option (google.api.resource) = {
  32. type: "googleads.googleapis.com/CampaignDraft"
  33. pattern: "customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}"
  34. };
  35. // Immutable. The resource name of the campaign draft.
  36. // Campaign draft resource names have the form:
  37. //
  38. // `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}`
  39. string resource_name = 1 [
  40. (google.api.field_behavior) = IMMUTABLE,
  41. (google.api.resource_reference) = {
  42. type: "googleads.googleapis.com/CampaignDraft"
  43. }
  44. ];
  45. // Output only. The ID of the draft.
  46. //
  47. // This field is read-only.
  48. optional int64 draft_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. // Immutable. The base campaign to which the draft belongs.
  50. optional string base_campaign = 10 [
  51. (google.api.field_behavior) = IMMUTABLE,
  52. (google.api.resource_reference) = {
  53. type: "googleads.googleapis.com/Campaign"
  54. }
  55. ];
  56. // The name of the campaign draft.
  57. //
  58. // This field is required and should not be empty when creating new
  59. // campaign drafts.
  60. //
  61. // It must not contain any null (code point 0x0), NL line feed
  62. // (code point 0xA) or carriage return (code point 0xD) characters.
  63. optional string name = 11;
  64. // Output only. Resource name of the Campaign that results from overlaying the draft
  65. // changes onto the base campaign.
  66. //
  67. // This field is read-only.
  68. optional string draft_campaign = 12 [
  69. (google.api.field_behavior) = OUTPUT_ONLY,
  70. (google.api.resource_reference) = {
  71. type: "googleads.googleapis.com/Campaign"
  72. }
  73. ];
  74. // Output only. The status of the campaign draft. This field is read-only.
  75. //
  76. // When a new campaign draft is added, the status defaults to PROPOSED.
  77. google.ads.googleads.v8.enums.CampaignDraftStatusEnum.CampaignDraftStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  78. // Output only. Whether there is an experiment based on this draft currently serving.
  79. optional bool has_experiment_running = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Output only. The resource name of the long-running operation that can be used to poll
  81. // for completion of draft promotion. This is only set if the draft promotion
  82. // is in progress or finished.
  83. optional string long_running_operation = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  84. }