keyword_plan.proto 3.1 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.v11.resources;
  16. import "google/ads/googleads/v11/common/dates.proto";
  17. import "google/ads/googleads/v11/enums/keyword_plan_forecast_interval.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 = "KeywordPlanProto";
  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 keyword plan resource.
  29. // A Keyword Planner plan.
  30. // Max number of saved keyword plans: 10000.
  31. // It's possible to remove plans if limit is reached.
  32. message KeywordPlan {
  33. option (google.api.resource) = {
  34. type: "googleads.googleapis.com/KeywordPlan"
  35. pattern: "customers/{customer_id}/keywordPlans/{keyword_plan_id}"
  36. };
  37. // Immutable. The resource name of the Keyword Planner plan.
  38. // KeywordPlan resource names have the form:
  39. //
  40. // `customers/{customer_id}/keywordPlans/{kp_plan_id}`
  41. string resource_name = 1 [
  42. (google.api.field_behavior) = IMMUTABLE,
  43. (google.api.resource_reference) = {
  44. type: "googleads.googleapis.com/KeywordPlan"
  45. }
  46. ];
  47. // Output only. The ID of the keyword plan.
  48. optional int64 id = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. // The name of the keyword plan.
  50. //
  51. // This field is required and should not be empty when creating new keyword
  52. // plans.
  53. optional string name = 6;
  54. // The date period used for forecasting the plan.
  55. KeywordPlanForecastPeriod forecast_period = 4;
  56. }
  57. // The forecasting period associated with the keyword plan.
  58. message KeywordPlanForecastPeriod {
  59. // Required. The date used for forecasting the Plan.
  60. oneof interval {
  61. // A future date range relative to the current date used for forecasting.
  62. google.ads.googleads.v11.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval date_interval = 1;
  63. // The custom date range used for forecasting. It cannot be greater than
  64. // a year.
  65. // The start and end dates must be in the future. Otherwise, an error will
  66. // be returned when the forecasting action is performed.
  67. // The start and end dates are inclusive.
  68. google.ads.googleads.v11.common.DateRange date_range = 2;
  69. }
  70. }