keyword_plan_common.proto 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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.common;
  16. import "google/ads/googleads/v12/common/dates.proto";
  17. import "google/ads/googleads/v12/enums/device.proto";
  18. import "google/ads/googleads/v12/enums/keyword_plan_aggregate_metric_type.proto";
  19. import "google/ads/googleads/v12/enums/keyword_plan_competition_level.proto";
  20. import "google/ads/googleads/v12/enums/keyword_plan_concept_group_type.proto";
  21. import "google/ads/googleads/v12/enums/month_of_year.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V12.Common";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/common;common";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "KeywordPlanCommonProto";
  26. option java_package = "com.google.ads.googleads.v12.common";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Common";
  29. option ruby_package = "Google::Ads::GoogleAds::V12::Common";
  30. // Proto file describing Keyword Planner messages.
  31. // Historical metrics specific to the targeting options selected.
  32. // Targeting options include geographies, network, etc.
  33. // Refer to https://support.google.com/google-ads/answer/3022575 for more
  34. // details.
  35. message KeywordPlanHistoricalMetrics {
  36. // Approximate number of monthly searches on this query averaged
  37. // for the past 12 months.
  38. optional int64 avg_monthly_searches = 7;
  39. // Approximate number of searches on this query for the past twelve months.
  40. repeated MonthlySearchVolume monthly_search_volumes = 6;
  41. // The competition level for the query.
  42. google.ads.googleads.v12.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2;
  43. // The competition index for the query in the range [0, 100].
  44. // Shows how competitive ad placement is for a keyword.
  45. // The level of competition from 0-100 is determined by the number of ad slots
  46. // filled divided by the total number of ad slots available. If not enough
  47. // data is available, null is returned.
  48. optional int64 competition_index = 8;
  49. // Top of page bid low range (20th percentile) in micros for the keyword.
  50. optional int64 low_top_of_page_bid_micros = 9;
  51. // Top of page bid high range (80th percentile) in micros for the keyword.
  52. optional int64 high_top_of_page_bid_micros = 10;
  53. // Average Cost Per Click in micros for the keyword.
  54. optional int64 average_cpc_micros = 11;
  55. }
  56. // Historical metrics options.
  57. message HistoricalMetricsOptions {
  58. // The year month range for historical metrics. If not specified the searches
  59. // will be returned for past 12 months.
  60. // Searches data is available for the past 4 years. If the search volume is
  61. // not available for the entire year_month_range provided, the subset of the
  62. // year month range for which search volume is available will be returned.
  63. optional YearMonthRange year_month_range = 1;
  64. // Indicates whether to include average cost per click value.
  65. // Average CPC is a legacy value that will be removed and replaced in the
  66. // future, and as such we are including it as an optioanl value so clients
  67. // only use it when strictly necessary and to better track clients that use
  68. // this value.
  69. bool include_average_cpc = 2;
  70. }
  71. // Monthly search volume.
  72. message MonthlySearchVolume {
  73. // The year of the search volume (for example, 2020).
  74. optional int64 year = 4;
  75. // The month of the search volume.
  76. google.ads.googleads.v12.enums.MonthOfYearEnum.MonthOfYear month = 2;
  77. // Approximate number of searches for the month.
  78. // A null value indicates the search volume is unavailable for
  79. // that month.
  80. optional int64 monthly_searches = 5;
  81. }
  82. // The aggregate metrics specification of the request.
  83. message KeywordPlanAggregateMetrics {
  84. // The list of aggregate metrics to fetch data.
  85. repeated google.ads.googleads.v12.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
  86. }
  87. // The aggregated historical metrics for keyword plan keywords.
  88. message KeywordPlanAggregateMetricResults {
  89. // The aggregate searches for all the keywords segmented by device
  90. // for the specified time.
  91. // Supports the following device types: MOBILE, TABLET, DESKTOP.
  92. //
  93. // This is only set when KeywordPlanAggregateMetricTypeEnum.DEVICE is set
  94. // in the KeywordPlanAggregateMetrics field in the request.
  95. repeated KeywordPlanDeviceSearches device_searches = 1;
  96. }
  97. // The total searches for the device type during the specified time period.
  98. message KeywordPlanDeviceSearches {
  99. // The device type.
  100. google.ads.googleads.v12.enums.DeviceEnum.Device device = 1;
  101. // The total searches for the device.
  102. optional int64 search_count = 2;
  103. }
  104. // The Annotations for the Keyword plan keywords.
  105. message KeywordAnnotations {
  106. // The list of concepts for the keyword.
  107. repeated KeywordConcept concepts = 1;
  108. }
  109. // The concept for the keyword.
  110. message KeywordConcept {
  111. // The concept name for the keyword in the concept_group.
  112. string name = 1;
  113. // The concept group of the concept details.
  114. ConceptGroup concept_group = 2;
  115. }
  116. // The concept group for the keyword concept.
  117. message ConceptGroup {
  118. // The concept group name.
  119. string name = 1;
  120. // The concept group type.
  121. google.ads.googleads.v12.enums.KeywordPlanConceptGroupTypeEnum.KeywordPlanConceptGroupType type = 2;
  122. }