asset.proto 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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.v7.resources;
  16. import "google/ads/googleads/v7/common/asset_types.proto";
  17. import "google/ads/googleads/v7/common/custom_parameter.proto";
  18. import "google/ads/googleads/v7/common/policy.proto";
  19. import "google/ads/googleads/v7/enums/asset_type.proto";
  20. import "google/ads/googleads/v7/enums/policy_approval_status.proto";
  21. import "google/ads/googleads/v7/enums/policy_review_status.proto";
  22. import "google/api/field_behavior.proto";
  23. import "google/api/resource.proto";
  24. import "google/api/annotations.proto";
  25. option csharp_namespace = "Google.Ads.GoogleAds.V7.Resources";
  26. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v7/resources;resources";
  27. option java_multiple_files = true;
  28. option java_outer_classname = "AssetProto";
  29. option java_package = "com.google.ads.googleads.v7.resources";
  30. option objc_class_prefix = "GAA";
  31. option php_namespace = "Google\\Ads\\GoogleAds\\V7\\Resources";
  32. option ruby_package = "Google::Ads::GoogleAds::V7::Resources";
  33. // Proto file describing the asset resource.
  34. // Asset is a part of an ad which can be shared across multiple ads.
  35. // It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc.
  36. // Assets are immutable and cannot be removed. To stop an asset from serving,
  37. // remove the asset from the entity that is using it.
  38. message Asset {
  39. option (google.api.resource) = {
  40. type: "googleads.googleapis.com/Asset"
  41. pattern: "customers/{customer_id}/assets/{asset_id}"
  42. };
  43. // Immutable. The resource name of the asset.
  44. // Asset resource names have the form:
  45. //
  46. // `customers/{customer_id}/assets/{asset_id}`
  47. string resource_name = 1 [
  48. (google.api.field_behavior) = IMMUTABLE,
  49. (google.api.resource_reference) = {
  50. type: "googleads.googleapis.com/Asset"
  51. }
  52. ];
  53. // Output only. The ID of the asset.
  54. optional int64 id = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  55. // Optional name of the asset.
  56. optional string name = 12;
  57. // Output only. Type of the asset.
  58. google.ads.googleads.v7.enums.AssetTypeEnum.AssetType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // A list of possible final URLs after all cross domain redirects.
  60. repeated string final_urls = 14;
  61. // A list of possible final mobile URLs after all cross domain redirects.
  62. repeated string final_mobile_urls = 16;
  63. // URL template for constructing a tracking URL.
  64. optional string tracking_url_template = 17;
  65. // A list of mappings to be used for substituting URL custom parameter tags in
  66. // the tracking_url_template, final_urls, and/or final_mobile_urls.
  67. repeated google.ads.googleads.v7.common.CustomParameter url_custom_parameters = 18;
  68. // URL template for appending params to landing page URLs served with parallel
  69. // tracking.
  70. optional string final_url_suffix = 19;
  71. // Output only. Policy information for the asset.
  72. AssetPolicySummary policy_summary = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  73. // The specific type of the asset.
  74. oneof asset_data {
  75. // Immutable. A YouTube video asset.
  76. google.ads.googleads.v7.common.YoutubeVideoAsset youtube_video_asset = 5 [(google.api.field_behavior) = IMMUTABLE];
  77. // Immutable. A media bundle asset.
  78. google.ads.googleads.v7.common.MediaBundleAsset media_bundle_asset = 6 [(google.api.field_behavior) = IMMUTABLE];
  79. // Output only. An image asset.
  80. google.ads.googleads.v7.common.ImageAsset image_asset = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  81. // Output only. A text asset.
  82. google.ads.googleads.v7.common.TextAsset text_asset = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  83. // A lead form asset.
  84. google.ads.googleads.v7.common.LeadFormAsset lead_form_asset = 9;
  85. // A book on google asset.
  86. google.ads.googleads.v7.common.BookOnGoogleAsset book_on_google_asset = 10;
  87. // A promotion asset.
  88. google.ads.googleads.v7.common.PromotionAsset promotion_asset = 15;
  89. // A callout asset.
  90. google.ads.googleads.v7.common.CalloutAsset callout_asset = 20;
  91. // A structured snippet asset.
  92. google.ads.googleads.v7.common.StructuredSnippetAsset structured_snippet_asset = 21;
  93. // A sitelink asset.
  94. google.ads.googleads.v7.common.SitelinkAsset sitelink_asset = 22;
  95. }
  96. }
  97. // Contains policy information for an asset.
  98. message AssetPolicySummary {
  99. // Output only. The list of policy findings for this asset.
  100. repeated google.ads.googleads.v7.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  101. // Output only. Where in the review process this asset is.
  102. google.ads.googleads.v7.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  103. // Output only. The overall approval status of this asset, calculated based on the status
  104. // of its individual policy topic entries.
  105. google.ads.googleads.v7.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  106. }