asset.proto 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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/asset_types.proto";
  17. import "google/ads/googleads/v10/common/custom_parameter.proto";
  18. import "google/ads/googleads/v10/common/policy.proto";
  19. import "google/ads/googleads/v10/enums/asset_type.proto";
  20. import "google/ads/googleads/v10/enums/policy_approval_status.proto";
  21. import "google/ads/googleads/v10/enums/policy_review_status.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 = "AssetProto";
  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 asset resource.
  33. // Asset is a part of an ad which can be shared across multiple ads.
  34. // It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc.
  35. // Assets are immutable and cannot be removed. To stop an asset from serving,
  36. // remove the asset from the entity that is using it.
  37. message Asset {
  38. option (google.api.resource) = {
  39. type: "googleads.googleapis.com/Asset"
  40. pattern: "customers/{customer_id}/assets/{asset_id}"
  41. };
  42. // Immutable. The resource name of the asset.
  43. // Asset resource names have the form:
  44. //
  45. // `customers/{customer_id}/assets/{asset_id}`
  46. string resource_name = 1 [
  47. (google.api.field_behavior) = IMMUTABLE,
  48. (google.api.resource_reference) = {
  49. type: "googleads.googleapis.com/Asset"
  50. }
  51. ];
  52. // Output only. The ID of the asset.
  53. optional int64 id = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  54. // Optional name of the asset.
  55. optional string name = 12;
  56. // Output only. Type of the asset.
  57. google.ads.googleads.v10.enums.AssetTypeEnum.AssetType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  58. // A list of possible final URLs after all cross domain redirects.
  59. repeated string final_urls = 14;
  60. // A list of possible final mobile URLs after all cross domain redirects.
  61. repeated string final_mobile_urls = 16;
  62. // URL template for constructing a tracking URL.
  63. optional string tracking_url_template = 17;
  64. // A list of mappings to be used for substituting URL custom parameter tags in
  65. // the tracking_url_template, final_urls, and/or final_mobile_urls.
  66. repeated google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 18;
  67. // URL template for appending params to landing page URLs served with parallel
  68. // tracking.
  69. optional string final_url_suffix = 19;
  70. // Output only. Policy information for the asset.
  71. AssetPolicySummary policy_summary = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  72. // The specific type of the asset.
  73. oneof asset_data {
  74. // Immutable. A YouTube video asset.
  75. google.ads.googleads.v10.common.YoutubeVideoAsset youtube_video_asset = 5 [(google.api.field_behavior) = IMMUTABLE];
  76. // Immutable. A media bundle asset.
  77. google.ads.googleads.v10.common.MediaBundleAsset media_bundle_asset = 6 [(google.api.field_behavior) = IMMUTABLE];
  78. // Output only. An image asset.
  79. google.ads.googleads.v10.common.ImageAsset image_asset = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Immutable. A text asset.
  81. google.ads.googleads.v10.common.TextAsset text_asset = 8 [(google.api.field_behavior) = IMMUTABLE];
  82. // A lead form asset.
  83. google.ads.googleads.v10.common.LeadFormAsset lead_form_asset = 9;
  84. // A book on google asset.
  85. google.ads.googleads.v10.common.BookOnGoogleAsset book_on_google_asset = 10;
  86. // A promotion asset.
  87. google.ads.googleads.v10.common.PromotionAsset promotion_asset = 15;
  88. // A callout asset.
  89. google.ads.googleads.v10.common.CalloutAsset callout_asset = 20;
  90. // A structured snippet asset.
  91. google.ads.googleads.v10.common.StructuredSnippetAsset structured_snippet_asset = 21;
  92. // A sitelink asset.
  93. google.ads.googleads.v10.common.SitelinkAsset sitelink_asset = 22;
  94. // A page feed asset.
  95. google.ads.googleads.v10.common.PageFeedAsset page_feed_asset = 23;
  96. // A dynamic education asset.
  97. google.ads.googleads.v10.common.DynamicEducationAsset dynamic_education_asset = 24;
  98. // A mobile app asset.
  99. google.ads.googleads.v10.common.MobileAppAsset mobile_app_asset = 25;
  100. // A hotel callout asset.
  101. google.ads.googleads.v10.common.HotelCalloutAsset hotel_callout_asset = 26;
  102. // A call asset.
  103. google.ads.googleads.v10.common.CallAsset call_asset = 27;
  104. // A price asset.
  105. google.ads.googleads.v10.common.PriceAsset price_asset = 28;
  106. // Immutable. A call to action asset.
  107. google.ads.googleads.v10.common.CallToActionAsset call_to_action_asset = 29 [(google.api.field_behavior) = IMMUTABLE];
  108. // A dynamic real estate asset.
  109. google.ads.googleads.v10.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
  110. // A dynamic custom asset.
  111. google.ads.googleads.v10.common.DynamicCustomAsset dynamic_custom_asset = 31;
  112. // A dynamic hotels and rentals asset.
  113. google.ads.googleads.v10.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
  114. // A dynamic flights asset.
  115. google.ads.googleads.v10.common.DynamicFlightsAsset dynamic_flights_asset = 33;
  116. // Immutable. A discovery carousel card asset.
  117. google.ads.googleads.v10.common.DiscoveryCarouselCardAsset discovery_carousel_card_asset = 34 [(google.api.field_behavior) = IMMUTABLE];
  118. // A dynamic travel asset.
  119. google.ads.googleads.v10.common.DynamicTravelAsset dynamic_travel_asset = 35;
  120. // A dynamic local asset.
  121. google.ads.googleads.v10.common.DynamicLocalAsset dynamic_local_asset = 36;
  122. // A dynamic jobs asset.
  123. google.ads.googleads.v10.common.DynamicJobsAsset dynamic_jobs_asset = 37;
  124. }
  125. }
  126. // Contains policy information for an asset.
  127. message AssetPolicySummary {
  128. // Output only. The list of policy findings for this asset.
  129. repeated google.ads.googleads.v10.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  130. // Output only. Where in the review process this asset is.
  131. google.ads.googleads.v10.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  132. // Output only. The overall approval status of this asset, calculated based on the status
  133. // of its individual policy topic entries.
  134. google.ads.googleads.v10.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  135. }