asset_group_asset.proto 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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/policy_summary.proto";
  17. import "google/ads/googleads/v12/enums/asset_field_type.proto";
  18. import "google/ads/googleads/v12/enums/asset_link_status.proto";
  19. import "google/ads/googleads/v12/enums/asset_performance_label.proto";
  20. import "google/api/field_behavior.proto";
  21. import "google/api/resource.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "AssetGroupAssetProto";
  26. option java_package = "com.google.ads.googleads.v12.resources";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  29. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  30. // AssetGroupAsset is the link between an asset and an asset group.
  31. // Adding an AssetGroupAsset links an asset with an asset group.
  32. message AssetGroupAsset {
  33. option (google.api.resource) = {
  34. type: "googleads.googleapis.com/AssetGroupAsset"
  35. pattern: "customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}"
  36. };
  37. // Immutable. The resource name of the asset group asset.
  38. // Asset group asset resource name have the form:
  39. //
  40. // `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}`
  41. string resource_name = 1 [
  42. (google.api.field_behavior) = IMMUTABLE,
  43. (google.api.resource_reference) = {
  44. type: "googleads.googleapis.com/AssetGroupAsset"
  45. }
  46. ];
  47. // Immutable. The asset group which this asset group asset is linking.
  48. string asset_group = 2 [
  49. (google.api.field_behavior) = IMMUTABLE,
  50. (google.api.resource_reference) = {
  51. type: "googleads.googleapis.com/AssetGroup"
  52. }
  53. ];
  54. // Immutable. The asset which this asset group asset is linking.
  55. string asset = 3 [
  56. (google.api.field_behavior) = IMMUTABLE,
  57. (google.api.resource_reference) = {
  58. type: "googleads.googleapis.com/Asset"
  59. }
  60. ];
  61. // The description of the placement of the asset within the asset group. For
  62. // example: HEADLINE, YOUTUBE_VIDEO etc
  63. google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType field_type = 4;
  64. // The status of the link between an asset and asset group.
  65. google.ads.googleads.v12.enums.AssetLinkStatusEnum.AssetLinkStatus status = 5;
  66. // Output only. The performance of this asset group asset.
  67. google.ads.googleads.v12.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel performance_label = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  68. // Output only. The policy information for this asset group asset.
  69. google.ads.googleads.v12.common.PolicySummary policy_summary = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  70. }