asset_set.proto 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_set_types.proto";
  17. import "google/ads/googleads/v12/enums/asset_set_status.proto";
  18. import "google/ads/googleads/v12/enums/asset_set_type.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "AssetSetProto";
  25. option java_package = "com.google.ads.googleads.v12.resources";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  28. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  29. // An asset set representing a collection of assets.
  30. // Use AssetSetAsset to link an asset to the asset set.
  31. message AssetSet {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/AssetSet"
  34. pattern: "customers/{customer_id}/assetSets/{asset_set_id}"
  35. };
  36. // Merchant ID and Feed Label from Google Merchant Center.
  37. message MerchantCenterFeed {
  38. // Required. Merchant ID from Google Merchant Center
  39. int64 merchant_id = 1 [(google.api.field_behavior) = REQUIRED];
  40. // Optional. Feed Label from Google Merchant Center.
  41. optional string feed_label = 2 [(google.api.field_behavior) = OPTIONAL];
  42. }
  43. // Output only. The ID of the asset set.
  44. int64 id = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  45. // Immutable. The resource name of the asset set.
  46. // Asset set resource names have the form:
  47. //
  48. // `customers/{customer_id}/assetSets/{asset_set_id}`
  49. string resource_name = 1 [
  50. (google.api.field_behavior) = IMMUTABLE,
  51. (google.api.resource_reference) = {
  52. type: "googleads.googleapis.com/AssetSet"
  53. }
  54. ];
  55. // Required. Name of the asset set. Required. It must have a minimum length of 1 and
  56. // maximum length of 128.
  57. string name = 2 [(google.api.field_behavior) = REQUIRED];
  58. // Required. Immutable. The type of the asset set. Required.
  59. google.ads.googleads.v12.enums.AssetSetTypeEnum.AssetSetType type = 3 [
  60. (google.api.field_behavior) = REQUIRED,
  61. (google.api.field_behavior) = IMMUTABLE
  62. ];
  63. // Output only. The status of the asset set. Read-only.
  64. google.ads.googleads.v12.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  65. // Merchant ID and Feed Label from Google Merchant Center.
  66. MerchantCenterFeed merchant_center_feed = 5;
  67. // Immutable. Parent asset set id for the asset set where the elements of this asset set
  68. // come from. For example: the sync level location AssetSet id where the
  69. // the elements in LocationGroup AssetSet come from. This field is required
  70. // and only applicable for Location Group typed AssetSet.
  71. int64 location_group_parent_asset_set_id = 10 [(google.api.field_behavior) = IMMUTABLE];
  72. // Asset set data specific to each asset set type. Not all types have specific
  73. // data.
  74. oneof asset_set_source {
  75. // Location asset set data. This will be used for sync level location
  76. // set. This can only be set if AssetSet's type is LOCATION_SYNC.
  77. google.ads.googleads.v12.common.LocationSet location_set = 7;
  78. // Business Profile location group asset set data.
  79. google.ads.googleads.v12.common.BusinessProfileLocationGroup business_profile_location_group = 8;
  80. // Represents information about a Chain dynamic location group.
  81. // Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
  82. // sync source is chain.
  83. google.ads.googleads.v12.common.ChainLocationGroup chain_location_group = 9;
  84. }
  85. }