asset.proto 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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/asset_types.proto";
  17. import "google/ads/googleads/v12/common/custom_parameter.proto";
  18. import "google/ads/googleads/v12/common/policy.proto";
  19. import "google/ads/googleads/v12/enums/asset_source.proto";
  20. import "google/ads/googleads/v12/enums/asset_type.proto";
  21. import "google/ads/googleads/v12/enums/policy_approval_status.proto";
  22. import "google/ads/googleads/v12/enums/policy_review_status.proto";
  23. import "google/api/field_behavior.proto";
  24. import "google/api/resource.proto";
  25. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  26. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  27. option java_multiple_files = true;
  28. option java_outer_classname = "AssetProto";
  29. option java_package = "com.google.ads.googleads.v12.resources";
  30. option objc_class_prefix = "GAA";
  31. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  32. option ruby_package = "Google::Ads::GoogleAds::V12::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.v12.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.v12.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. Source of the asset.
  72. google.ads.googleads.v12.enums.AssetSourceEnum.AssetSource source = 38 [(google.api.field_behavior) = OUTPUT_ONLY];
  73. // Output only. Policy information for the asset.
  74. AssetPolicySummary policy_summary = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  75. // The specific type of the asset.
  76. oneof asset_data {
  77. // Immutable. A YouTube video asset.
  78. google.ads.googleads.v12.common.YoutubeVideoAsset youtube_video_asset = 5 [(google.api.field_behavior) = IMMUTABLE];
  79. // Immutable. A media bundle asset.
  80. google.ads.googleads.v12.common.MediaBundleAsset media_bundle_asset = 6 [(google.api.field_behavior) = IMMUTABLE];
  81. // Output only. An image asset.
  82. google.ads.googleads.v12.common.ImageAsset image_asset = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  83. // Immutable. A text asset.
  84. google.ads.googleads.v12.common.TextAsset text_asset = 8 [(google.api.field_behavior) = IMMUTABLE];
  85. // A lead form asset.
  86. google.ads.googleads.v12.common.LeadFormAsset lead_form_asset = 9;
  87. // A book on google asset.
  88. google.ads.googleads.v12.common.BookOnGoogleAsset book_on_google_asset = 10;
  89. // A promotion asset.
  90. google.ads.googleads.v12.common.PromotionAsset promotion_asset = 15;
  91. // A callout asset.
  92. google.ads.googleads.v12.common.CalloutAsset callout_asset = 20;
  93. // A structured snippet asset.
  94. google.ads.googleads.v12.common.StructuredSnippetAsset structured_snippet_asset = 21;
  95. // A sitelink asset.
  96. google.ads.googleads.v12.common.SitelinkAsset sitelink_asset = 22;
  97. // A page feed asset.
  98. google.ads.googleads.v12.common.PageFeedAsset page_feed_asset = 23;
  99. // A dynamic education asset.
  100. google.ads.googleads.v12.common.DynamicEducationAsset dynamic_education_asset = 24;
  101. // A mobile app asset.
  102. google.ads.googleads.v12.common.MobileAppAsset mobile_app_asset = 25;
  103. // A hotel callout asset.
  104. google.ads.googleads.v12.common.HotelCalloutAsset hotel_callout_asset = 26;
  105. // A call asset.
  106. google.ads.googleads.v12.common.CallAsset call_asset = 27;
  107. // A price asset.
  108. google.ads.googleads.v12.common.PriceAsset price_asset = 28;
  109. // Immutable. A call to action asset.
  110. google.ads.googleads.v12.common.CallToActionAsset call_to_action_asset = 29 [(google.api.field_behavior) = IMMUTABLE];
  111. // A dynamic real estate asset.
  112. google.ads.googleads.v12.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
  113. // A dynamic custom asset.
  114. google.ads.googleads.v12.common.DynamicCustomAsset dynamic_custom_asset = 31;
  115. // A dynamic hotels and rentals asset.
  116. google.ads.googleads.v12.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
  117. // A dynamic flights asset.
  118. google.ads.googleads.v12.common.DynamicFlightsAsset dynamic_flights_asset = 33;
  119. // Immutable. A discovery carousel card asset.
  120. google.ads.googleads.v12.common.DiscoveryCarouselCardAsset discovery_carousel_card_asset = 34 [(google.api.field_behavior) = IMMUTABLE];
  121. // A dynamic travel asset.
  122. google.ads.googleads.v12.common.DynamicTravelAsset dynamic_travel_asset = 35;
  123. // A dynamic local asset.
  124. google.ads.googleads.v12.common.DynamicLocalAsset dynamic_local_asset = 36;
  125. // A dynamic jobs asset.
  126. google.ads.googleads.v12.common.DynamicJobsAsset dynamic_jobs_asset = 37;
  127. // Output only. A location asset.
  128. google.ads.googleads.v12.common.LocationAsset location_asset = 39 [(google.api.field_behavior) = OUTPUT_ONLY];
  129. }
  130. }
  131. // Contains policy information for an asset.
  132. message AssetPolicySummary {
  133. // Output only. The list of policy findings for this asset.
  134. repeated google.ads.googleads.v12.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  135. // Output only. Where in the review process this asset is.
  136. google.ads.googleads.v12.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  137. // Output only. The overall approval status of this asset, calculated based on the status
  138. // of its individual policy topic entries.
  139. google.ads.googleads.v12.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  140. }