ad_asset.proto 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.v8.common;
  16. import "google/ads/googleads/v8/common/asset_policy.proto";
  17. import "google/ads/googleads/v8/enums/asset_performance_label.proto";
  18. import "google/ads/googleads/v8/enums/served_asset_field_type.proto";
  19. import "google/api/annotations.proto";
  20. option csharp_namespace = "Google.Ads.GoogleAds.V8.Common";
  21. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v8/common;common";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "AdAssetProto";
  24. option java_package = "com.google.ads.googleads.v8.common";
  25. option objc_class_prefix = "GAA";
  26. option php_namespace = "Google\\Ads\\GoogleAds\\V8\\Common";
  27. option ruby_package = "Google::Ads::GoogleAds::V8::Common";
  28. // Proto file describing assets used inside an ad.
  29. // A text asset used inside an ad.
  30. message AdTextAsset {
  31. // Asset text.
  32. optional string text = 4;
  33. // The pinned field of the asset. This restricts the asset to only serve
  34. // within this field. Multiple assets can be pinned to the same field. An
  35. // asset that is unpinned or pinned to a different field will not serve in a
  36. // field where some other asset has been pinned.
  37. google.ads.googleads.v8.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2;
  38. // The performance label of this text asset.
  39. google.ads.googleads.v8.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel asset_performance_label = 5;
  40. // The policy summary of this text asset.
  41. AdAssetPolicySummary policy_summary_info = 6;
  42. }
  43. // An image asset used inside an ad.
  44. message AdImageAsset {
  45. // The Asset resource name of this image.
  46. optional string asset = 2;
  47. }
  48. // A video asset used inside an ad.
  49. message AdVideoAsset {
  50. // The Asset resource name of this video.
  51. optional string asset = 2;
  52. }
  53. // A media bundle asset used inside an ad.
  54. message AdMediaBundleAsset {
  55. // The Asset resource name of this media bundle.
  56. optional string asset = 2;
  57. }