click_view.proto 4.1 KB

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