ad_group_ad_asset_view.proto 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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/ads/googleads/v12/common/policy.proto";
  17. import "google/ads/googleads/v12/enums/asset_field_type.proto";
  18. import "google/ads/googleads/v12/enums/asset_performance_label.proto";
  19. import "google/ads/googleads/v12/enums/policy_approval_status.proto";
  20. import "google/ads/googleads/v12/enums/policy_review_status.proto";
  21. import "google/ads/googleads/v12/enums/served_asset_field_type.proto";
  22. import "google/api/field_behavior.proto";
  23. import "google/api/resource.proto";
  24. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  25. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  26. option java_multiple_files = true;
  27. option java_outer_classname = "AdGroupAdAssetViewProto";
  28. option java_package = "com.google.ads.googleads.v12.resources";
  29. option objc_class_prefix = "GAA";
  30. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  31. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  32. // Proto file describing the ad group ad asset view resource.
  33. // A link between an AdGroupAd and an Asset.
  34. // Currently we only support AdGroupAdAssetView for AppAds and Responsive Search
  35. // Ads.
  36. message AdGroupAdAssetView {
  37. option (google.api.resource) = {
  38. type: "googleads.googleapis.com/AdGroupAdAssetView"
  39. pattern: "customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}"
  40. };
  41. // Output only. The resource name of the ad group ad asset view.
  42. // Ad group ad asset view resource names have the form (Before V4):
  43. //
  44. // `customers/{customer_id}/adGroupAdAssets/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}`
  45. //
  46. // Ad group ad asset view resource names have the form (Beginning from V4):
  47. //
  48. // `customers/{customer_id}/adGroupAdAssetViews/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}`
  49. string resource_name = 1 [
  50. (google.api.field_behavior) = OUTPUT_ONLY,
  51. (google.api.resource_reference) = {
  52. type: "googleads.googleapis.com/AdGroupAdAssetView"
  53. }
  54. ];
  55. // Output only. The ad group ad to which the asset is linked.
  56. optional string ad_group_ad = 9 [
  57. (google.api.field_behavior) = OUTPUT_ONLY,
  58. (google.api.resource_reference) = {
  59. type: "googleads.googleapis.com/AdGroupAd"
  60. }
  61. ];
  62. // Output only. The asset which is linked to the ad group ad.
  63. optional string asset = 10 [
  64. (google.api.field_behavior) = OUTPUT_ONLY,
  65. (google.api.resource_reference) = {
  66. type: "googleads.googleapis.com/Asset"
  67. }
  68. ];
  69. // Output only. Role that the asset takes in the ad.
  70. google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType field_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  71. // Output only. The status between the asset and the latest version of the ad. If true, the
  72. // asset is linked to the latest version of the ad. If false, it means the
  73. // link once existed but has been removed and is no longer present in the
  74. // latest version of the ad.
  75. optional bool enabled = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  76. // Output only. Policy information for the ad group ad asset.
  77. AdGroupAdAssetPolicySummary policy_summary = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  78. // Output only. Performance of an asset linkage.
  79. google.ads.googleads.v12.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel performance_label = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Output only. Pinned field.
  81. google.ads.googleads.v12.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  82. }
  83. // Contains policy information for an ad group ad asset.
  84. message AdGroupAdAssetPolicySummary {
  85. // Output only. The list of policy findings for the ad group ad asset.
  86. repeated google.ads.googleads.v12.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  87. // Output only. Where in the review process this ad group ad asset is.
  88. google.ads.googleads.v12.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  89. // Output only. The overall approval status of this ad group ad asset, calculated based on
  90. // the status of its individual policy topic entries.
  91. google.ads.googleads.v12.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  92. }