asset_group.proto 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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/ad_strength.proto";
  17. import "google/ads/googleads/v12/enums/asset_group_status.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  21. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "AssetGroupProto";
  24. option java_package = "com.google.ads.googleads.v12.resources";
  25. option objc_class_prefix = "GAA";
  26. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  27. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  28. // An asset group.
  29. // AssetGroupAsset is used to link an asset to the asset group.
  30. // AssetGroupSignal is used to associate a signal to an asset group.
  31. message AssetGroup {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/AssetGroup"
  34. pattern: "customers/{customer_id}/assetGroups/{asset_group_id}"
  35. };
  36. // Immutable. The resource name of the asset group.
  37. // Asset group resource names have the form:
  38. //
  39. // `customers/{customer_id}/assetGroups/{asset_group_id}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = IMMUTABLE,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/AssetGroup"
  44. }
  45. ];
  46. // Output only. The ID of the asset group.
  47. int64 id = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // Immutable. The campaign with which this asset group is associated.
  49. // The asset which is linked to the asset group.
  50. string campaign = 2 [
  51. (google.api.field_behavior) = IMMUTABLE,
  52. (google.api.resource_reference) = {
  53. type: "googleads.googleapis.com/Campaign"
  54. }
  55. ];
  56. // Required. Name of the asset group. Required. It must have a minimum length of 1 and
  57. // maximum length of 128. It must be unique under a campaign.
  58. string name = 3 [(google.api.field_behavior) = REQUIRED];
  59. // A list of final URLs after all cross domain redirects. In performance max,
  60. // by default, the urls are eligible for expansion unless opted out.
  61. repeated string final_urls = 4;
  62. // A list of final mobile URLs after all cross domain redirects. In
  63. // performance max, by default, the urls are eligible for expansion
  64. // unless opted out.
  65. repeated string final_mobile_urls = 5;
  66. // The status of the asset group.
  67. google.ads.googleads.v12.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6;
  68. // First part of text that may appear appended to the url displayed in
  69. // the ad.
  70. string path1 = 7;
  71. // Second part of text that may appear appended to the url displayed in
  72. // the ad. This field can only be set when path1 is set.
  73. string path2 = 8;
  74. // Output only. Overall ad strength of this asset group.
  75. google.ads.googleads.v12.enums.AdStrengthEnum.AdStrength ad_strength = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  76. }