click_view.proto 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/click_location.proto";
  17. import "google/ads/googleads/v8/common/criteria.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. import "google/api/annotations.proto";
  21. option csharp_namespace = "Google.Ads.GoogleAds.V8.Resources";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v8/resources;resources";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "ClickViewProto";
  25. option java_package = "com.google.ads.googleads.v8.resources";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V8\\Resources";
  28. option ruby_package = "Google::Ads::GoogleAds::V8::Resources";
  29. // Proto file describing the ClickView resource.
  30. // A click view with metrics aggregated at each click level, including both
  31. // valid and invalid clicks. For non-Search campaigns, metrics.clicks
  32. // represents the number of valid and invalid interactions.
  33. // Queries including ClickView must have a filter limiting the results to one
  34. // day and can be requested for dates back to 90 days before the time of the
  35. // request.
  36. message ClickView {
  37. option (google.api.resource) = {
  38. type: "googleads.googleapis.com/ClickView"
  39. pattern: "customers/{customer_id}/clickViews/{date}~{gclid}"
  40. };
  41. // Output only. The resource name of the click view.
  42. // Click view resource names have the form:
  43. //
  44. // `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}`
  45. string resource_name = 1 [
  46. (google.api.field_behavior) = OUTPUT_ONLY,
  47. (google.api.resource_reference) = {
  48. type: "googleads.googleapis.com/ClickView"
  49. }
  50. ];
  51. // Output only. The Google Click ID.
  52. optional string gclid = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  53. // Output only. The location criteria matching the area of interest associated with the
  54. // impression.
  55. google.ads.googleads.v8.common.ClickLocation area_of_interest = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  56. // Output only. The location criteria matching the location of presence associated with the
  57. // impression.
  58. google.ads.googleads.v8.common.ClickLocation location_of_presence = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // Output only. Page number in search results where the ad was shown.
  60. optional int64 page_number = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  61. // Output only. The associated ad.
  62. optional string ad_group_ad = 10 [
  63. (google.api.field_behavior) = OUTPUT_ONLY,
  64. (google.api.resource_reference) = {
  65. type: "googleads.googleapis.com/AdGroupAd"
  66. }
  67. ];
  68. // Output only. The associated campaign location target, if one exists.
  69. optional string campaign_location_target = 11 [
  70. (google.api.field_behavior) = OUTPUT_ONLY,
  71. (google.api.resource_reference) = {
  72. type: "googleads.googleapis.com/GeoTargetConstant"
  73. }
  74. ];
  75. // Output only. The associated user list, if one exists.
  76. optional string user_list = 12 [
  77. (google.api.field_behavior) = OUTPUT_ONLY,
  78. (google.api.resource_reference) = {
  79. type: "googleads.googleapis.com/UserList"
  80. }
  81. ];
  82. // Output only. The associated keyword, if one exists and the click corresponds to the
  83. // SEARCH channel.
  84. string keyword = 13 [
  85. (google.api.field_behavior) = OUTPUT_ONLY,
  86. (google.api.resource_reference) = {
  87. type: "googleads.googleapis.com/AdGroupCriterion"
  88. }
  89. ];
  90. // Output only. Basic information about the associated keyword, if it exists.
  91. google.ads.googleads.v8.common.KeywordInfo keyword_info = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  92. }