campaign_simulation.proto 4.6 KB

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