campaign_criterion_simulation.proto 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 = "CampaignCriterionSimulationProto";
  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 criterion simulation resource.
  30. // A campaign criterion simulation. Supported combinations of advertising
  31. // channel type, criterion ids, simulation type and simulation modification
  32. // method is detailed below respectively.
  33. //
  34. // 1. SEARCH - 30000,30001,30002 - BID_MODIFIER - UNIFORM
  35. // 2. DISPLAY - 30001 - BID_MODIFIER - UNIFORM
  36. message CampaignCriterionSimulation {
  37. option (google.api.resource) = {
  38. type: "googleads.googleapis.com/CampaignCriterionSimulation"
  39. pattern: "customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}"
  40. };
  41. // Output only. The resource name of the campaign criterion simulation.
  42. // Campaign criterion simulation resource names have the form:
  43. //
  44. // `customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}`
  45. string resource_name = 1 [
  46. (google.api.field_behavior) = OUTPUT_ONLY,
  47. (google.api.resource_reference) = {
  48. type: "googleads.googleapis.com/CampaignCriterionSimulation"
  49. }
  50. ];
  51. // Output only. Campaign ID of the simulation.
  52. optional int64 campaign_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  53. // Output only. Criterion ID of the simulation.
  54. optional int64 criterion_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  55. // Output only. The field that the simulation modifies.
  56. google.ads.googleads.v12.enums.SimulationTypeEnum.SimulationType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  57. // Output only. How the simulation modifies the field.
  58. google.ads.googleads.v12.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // Output only. First day on which the simulation is based, in YYYY-MM-DD format.
  60. optional string start_date = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  61. // Output only. Last day on which the simulation is based, in YYYY-MM-DD format.
  62. optional string end_date = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  63. // List of simulation points.
  64. oneof point_list {
  65. // Output only. Simulation points if the simulation type is BID_MODIFIER.
  66. google.ads.googleads.v12.common.BidModifierSimulationPointList bid_modifier_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  67. }
  68. }