ad_group_ad.proto 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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/policy.proto";
  17. import "google/ads/googleads/v10/enums/ad_group_ad_status.proto";
  18. import "google/ads/googleads/v10/enums/ad_strength.proto";
  19. import "google/ads/googleads/v10/enums/policy_approval_status.proto";
  20. import "google/ads/googleads/v10/enums/policy_review_status.proto";
  21. import "google/ads/googleads/v10/resources/ad.proto";
  22. import "google/api/field_behavior.proto";
  23. import "google/api/resource.proto";
  24. option csharp_namespace = "Google.Ads.GoogleAds.V10.Resources";
  25. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/resources;resources";
  26. option java_multiple_files = true;
  27. option java_outer_classname = "AdGroupAdProto";
  28. option java_package = "com.google.ads.googleads.v10.resources";
  29. option objc_class_prefix = "GAA";
  30. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Resources";
  31. option ruby_package = "Google::Ads::GoogleAds::V10::Resources";
  32. // Proto file describing the ad group ad resource.
  33. // An ad group ad.
  34. message AdGroupAd {
  35. option (google.api.resource) = {
  36. type: "googleads.googleapis.com/AdGroupAd"
  37. pattern: "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}"
  38. };
  39. // Immutable. The resource name of the ad.
  40. // Ad group ad resource names have the form:
  41. //
  42. // `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}`
  43. string resource_name = 1 [
  44. (google.api.field_behavior) = IMMUTABLE,
  45. (google.api.resource_reference) = {
  46. type: "googleads.googleapis.com/AdGroupAd"
  47. }
  48. ];
  49. // The status of the ad.
  50. google.ads.googleads.v10.enums.AdGroupAdStatusEnum.AdGroupAdStatus status = 3;
  51. // Immutable. The ad group to which the ad belongs.
  52. optional string ad_group = 9 [
  53. (google.api.field_behavior) = IMMUTABLE,
  54. (google.api.resource_reference) = {
  55. type: "googleads.googleapis.com/AdGroup"
  56. }
  57. ];
  58. // Immutable. The ad.
  59. Ad ad = 5 [(google.api.field_behavior) = IMMUTABLE];
  60. // Output only. Policy information for the ad.
  61. AdGroupAdPolicySummary policy_summary = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  62. // Output only. Overall ad strength for this ad group ad.
  63. google.ads.googleads.v10.enums.AdStrengthEnum.AdStrength ad_strength = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  64. // Output only. A list of recommendations to improve the ad strength. For example, a
  65. // recommendation could be "Your headlines are a little too similar.
  66. // Try adding more distinct headlines.".
  67. repeated string action_items = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  68. // Output only. The resource names of labels attached to this ad group ad.
  69. repeated string labels = 10 [
  70. (google.api.field_behavior) = OUTPUT_ONLY,
  71. (google.api.resource_reference) = {
  72. type: "googleads.googleapis.com/AdGroupAdLabel"
  73. }
  74. ];
  75. }
  76. // Contains policy information for an ad.
  77. message AdGroupAdPolicySummary {
  78. // Output only. The list of policy findings for this ad.
  79. repeated google.ads.googleads.v10.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Output only. Where in the review process this ad is.
  81. google.ads.googleads.v10.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  82. // Output only. The overall approval status of this ad, calculated based on the status of
  83. // its individual policy topic entries.
  84. google.ads.googleads.v10.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  85. }