domain_category.proto 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  19. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "DomainCategoryProto";
  22. option java_package = "com.google.ads.googleads.v12.resources";
  23. option objc_class_prefix = "GAA";
  24. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  25. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  26. // Proto file describing the Domain Category resource.
  27. // A category generated automatically by crawling a domain. If a campaign uses
  28. // the DynamicSearchAdsSetting, then domain categories will be generated for
  29. // the domain. The categories can be targeted using WebpageConditionInfo.
  30. // See: https://support.google.com/google-ads/answer/2471185
  31. message DomainCategory {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/DomainCategory"
  34. pattern: "customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}"
  35. };
  36. // Output only. The resource name of the domain category.
  37. // Domain category resource names have the form:
  38. //
  39. // `customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = OUTPUT_ONLY,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/DomainCategory"
  44. }
  45. ];
  46. // Output only. The campaign this category is recommended for.
  47. optional string campaign = 10 [
  48. (google.api.field_behavior) = OUTPUT_ONLY,
  49. (google.api.resource_reference) = {
  50. type: "googleads.googleapis.com/Campaign"
  51. }
  52. ];
  53. // Output only. Recommended category for the website domain, for example, if you have a
  54. // website about electronics, the categories could be "cameras",
  55. // "televisions", etc.
  56. optional string category = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  57. // Output only. The language code specifying the language of the website, for example, "en"
  58. // for English. The language can be specified in the DynamicSearchAdsSetting
  59. // required for dynamic search ads. This is the language of the pages from
  60. // your website that you want Google Ads to find, create ads for,
  61. // and match searches with.
  62. optional string language_code = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  63. // Output only. The domain for the website. The domain can be specified in the
  64. // DynamicSearchAdsSetting required for dynamic search ads.
  65. optional string domain = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  66. // Output only. Fraction of pages on your site that this category matches.
  67. optional double coverage_fraction = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  68. // Output only. The position of this category in the set of categories. Lower numbers
  69. // indicate a better match for the domain. null indicates not recommended.
  70. optional int64 category_rank = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  71. // Output only. Indicates whether this category has sub-categories.
  72. optional bool has_children = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
  73. // Output only. The recommended cost per click for the category.
  74. optional int64 recommended_cpc_bid_micros = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
  75. }