ad_group_asset.proto 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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/enums/asset_field_type.proto";
  17. import "google/ads/googleads/v12/enums/asset_link_status.proto";
  18. import "google/ads/googleads/v12/enums/asset_source.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 = "AdGroupAssetProto";
  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. // Proto file describing the AdGroupAsset resource.
  30. // A link between an ad group and an asset.
  31. message AdGroupAsset {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/AdGroupAsset"
  34. pattern: "customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}"
  35. };
  36. // Immutable. The resource name of the ad group asset.
  37. // AdGroupAsset resource names have the form:
  38. //
  39. // `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = IMMUTABLE,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/AdGroupAsset"
  44. }
  45. ];
  46. // Required. Immutable. The ad group to which the asset is linked.
  47. string ad_group = 2 [
  48. (google.api.field_behavior) = REQUIRED,
  49. (google.api.field_behavior) = IMMUTABLE,
  50. (google.api.resource_reference) = {
  51. type: "googleads.googleapis.com/AdGroup"
  52. }
  53. ];
  54. // Required. Immutable. The asset which is linked to the ad group.
  55. string asset = 3 [
  56. (google.api.field_behavior) = REQUIRED,
  57. (google.api.field_behavior) = IMMUTABLE,
  58. (google.api.resource_reference) = {
  59. type: "googleads.googleapis.com/Asset"
  60. }
  61. ];
  62. // Required. Immutable. Role that the asset takes under the linked ad group.
  63. google.ads.googleads.v12.enums.AssetFieldTypeEnum.AssetFieldType field_type = 4 [
  64. (google.api.field_behavior) = REQUIRED,
  65. (google.api.field_behavior) = IMMUTABLE
  66. ];
  67. // Output only. Source of the adgroup asset link.
  68. google.ads.googleads.v12.enums.AssetSourceEnum.AssetSource source = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  69. // Status of the ad group asset.
  70. google.ads.googleads.v12.enums.AssetLinkStatusEnum.AssetLinkStatus status = 5;
  71. }