campaign_simulation.proto 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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/common/simulation.proto";
  17. import "google/ads/googleads/v8/enums/simulation_modification_method.proto";
  18. import "google/ads/googleads/v8/enums/simulation_type.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. import "google/api/annotations.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V8.Resources";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v8/resources;resources";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "CampaignSimulationProto";
  26. option java_package = "com.google.ads.googleads.v8.resources";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V8\\Resources";
  29. option ruby_package = "Google::Ads::GoogleAds::V8::Resources";
  30. // Proto file describing the campaign simulation resource.
  31. // A campaign simulation. Supported combinations of advertising
  32. // channel type, simulation type and simulation modification
  33. // method is detailed below respectively.
  34. //
  35. // SEARCH - CPC_BID - UNIFORM
  36. // SEARCH - CPC_BID - SCALING
  37. // SEARCH - TARGET_CPA - UNIFORM
  38. // SEARCH - TARGET_CPA - SCALING
  39. // SEARCH - TARGET_ROAS - UNIFORM
  40. // SEARCH - TARGET_IMPRESSION_SHARE - UNIFORM
  41. // SEARCH - BUDGET - UNIFORM
  42. // SHOPPING - BUDGET - UNIFORM
  43. // SHOPPING - TARGET_ROAS - UNIFORM
  44. // MULTIPLE - TARGET_CPA - UNIFORM
  45. // OWNED_AND_OPERATED - TARGET_CPA - DEFAULT
  46. // DISPLAY - TARGET_CPA - UNIFORM
  47. message CampaignSimulation {
  48. option (google.api.resource) = {
  49. type: "googleads.googleapis.com/CampaignSimulation"
  50. pattern: "customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}"
  51. };
  52. // Output only. The resource name of the campaign simulation.
  53. // Campaign simulation resource names have the form:
  54. //
  55. // `customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}`
  56. string resource_name = 1 [
  57. (google.api.field_behavior) = OUTPUT_ONLY,
  58. (google.api.resource_reference) = {
  59. type: "googleads.googleapis.com/CampaignSimulation"
  60. }
  61. ];
  62. // Output only. Campaign id of the simulation.
  63. int64 campaign_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  64. // Output only. The field that the simulation modifies.
  65. google.ads.googleads.v8.enums.SimulationTypeEnum.SimulationType type = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  66. // Output only. How the simulation modifies the field.
  67. google.ads.googleads.v8.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  68. // Output only. First day on which the simulation is based, in YYYY-MM-DD format.
  69. string start_date = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  70. // Output only. Last day on which the simulation is based, in YYYY-MM-DD format
  71. string end_date = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  72. // List of simulation points.
  73. oneof point_list {
  74. // Output only. Simulation points if the simulation type is CPC_BID.
  75. google.ads.googleads.v8.common.CpcBidSimulationPointList cpc_bid_point_list = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  76. // Output only. Simulation points if the simulation type is TARGET_CPA.
  77. google.ads.googleads.v8.common.TargetCpaSimulationPointList target_cpa_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  78. // Output only. Simulation points if the simulation type is TARGET_ROAS.
  79. google.ads.googleads.v8.common.TargetRoasSimulationPointList target_roas_point_list = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Output only. Simulation points if the simulation type is TARGET_IMPRESSION_SHARE.
  81. google.ads.googleads.v8.common.TargetImpressionShareSimulationPointList target_impression_share_point_list = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  82. // Output only. Simulation points if the simulation type is BUDGET.
  83. google.ads.googleads.v8.common.BudgetSimulationPointList budget_point_list = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  84. }
  85. }