asset.proto 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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.v6.resources;
  16. import "google/ads/googleads/v6/common/asset_types.proto";
  17. import "google/ads/googleads/v6/common/policy.proto";
  18. import "google/ads/googleads/v6/enums/asset_type.proto";
  19. import "google/ads/googleads/v6/enums/policy_approval_status.proto";
  20. import "google/ads/googleads/v6/enums/policy_review_status.proto";
  21. import "google/api/field_behavior.proto";
  22. import "google/api/resource.proto";
  23. import "google/api/annotations.proto";
  24. option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources";
  25. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources";
  26. option java_multiple_files = true;
  27. option java_outer_classname = "AssetProto";
  28. option java_package = "com.google.ads.googleads.v6.resources";
  29. option objc_class_prefix = "GAA";
  30. option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources";
  31. option ruby_package = "Google::Ads::GoogleAds::V6::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. message Asset {
  36. option (google.api.resource) = {
  37. type: "googleads.googleapis.com/Asset"
  38. pattern: "customers/{customer_id}/assets/{asset_id}"
  39. };
  40. // Immutable. The resource name of the asset.
  41. // Asset resource names have the form:
  42. //
  43. // `customers/{customer_id}/assets/{asset_id}`
  44. string resource_name = 1 [
  45. (google.api.field_behavior) = IMMUTABLE,
  46. (google.api.resource_reference) = {
  47. type: "googleads.googleapis.com/Asset"
  48. }
  49. ];
  50. // Output only. The ID of the asset.
  51. optional int64 id = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  52. // Optional name of the asset.
  53. optional string name = 12;
  54. // Output only. Type of the asset.
  55. google.ads.googleads.v6.enums.AssetTypeEnum.AssetType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  56. // A list of possible final URLs after all cross domain redirects.
  57. repeated string final_urls = 14;
  58. // Output only. Policy information for the asset.
  59. AssetPolicySummary policy_summary = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  60. // The specific type of the asset.
  61. oneof asset_data {
  62. // Immutable. A YouTube video asset.
  63. google.ads.googleads.v6.common.YoutubeVideoAsset youtube_video_asset = 5 [(google.api.field_behavior) = IMMUTABLE];
  64. // Immutable. A media bundle asset.
  65. google.ads.googleads.v6.common.MediaBundleAsset media_bundle_asset = 6 [(google.api.field_behavior) = IMMUTABLE];
  66. // Output only. An image asset.
  67. google.ads.googleads.v6.common.ImageAsset image_asset = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  68. // Output only. A text asset.
  69. google.ads.googleads.v6.common.TextAsset text_asset = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  70. // A lead form asset.
  71. google.ads.googleads.v6.common.LeadFormAsset lead_form_asset = 9;
  72. // A book on google asset.
  73. google.ads.googleads.v6.common.BookOnGoogleAsset book_on_google_asset = 10;
  74. }
  75. }
  76. // Contains policy information for an asset.
  77. message AssetPolicySummary {
  78. // Output only. The list of policy findings for this asset.
  79. repeated google.ads.googleads.v6.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Output only. Where in the review process this asset is.
  81. google.ads.googleads.v6.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  82. // Output only. The overall approval status of this asset, calculated based on the status
  83. // of its individual policy topic entries.
  84. google.ads.googleads.v6.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  85. }