ad_asset.proto 2.6 KB

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