ad_group.proto 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. // Copyright 2021 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.v8.resources;
  16. import "google/ads/googleads/v8/common/custom_parameter.proto";
  17. import "google/ads/googleads/v8/common/explorer_auto_optimizer_setting.proto";
  18. import "google/ads/googleads/v8/common/targeting_setting.proto";
  19. import "google/ads/googleads/v8/enums/ad_group_ad_rotation_mode.proto";
  20. import "google/ads/googleads/v8/enums/ad_group_status.proto";
  21. import "google/ads/googleads/v8/enums/ad_group_type.proto";
  22. import "google/ads/googleads/v8/enums/asset_field_type.proto";
  23. import "google/ads/googleads/v8/enums/bidding_source.proto";
  24. import "google/ads/googleads/v8/enums/targeting_dimension.proto";
  25. import "google/api/field_behavior.proto";
  26. import "google/api/resource.proto";
  27. import "google/api/annotations.proto";
  28. option csharp_namespace = "Google.Ads.GoogleAds.V8.Resources";
  29. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v8/resources;resources";
  30. option java_multiple_files = true;
  31. option java_outer_classname = "AdGroupProto";
  32. option java_package = "com.google.ads.googleads.v8.resources";
  33. option objc_class_prefix = "GAA";
  34. option php_namespace = "Google\\Ads\\GoogleAds\\V8\\Resources";
  35. option ruby_package = "Google::Ads::GoogleAds::V8::Resources";
  36. // Proto file describing the ad group resource.
  37. // An ad group.
  38. message AdGroup {
  39. option (google.api.resource) = {
  40. type: "googleads.googleapis.com/AdGroup"
  41. pattern: "customers/{customer_id}/adGroups/{ad_group_id}"
  42. };
  43. // Immutable. The resource name of the ad group.
  44. // Ad group resource names have the form:
  45. //
  46. // `customers/{customer_id}/adGroups/{ad_group_id}`
  47. string resource_name = 1 [
  48. (google.api.field_behavior) = IMMUTABLE,
  49. (google.api.resource_reference) = {
  50. type: "googleads.googleapis.com/AdGroup"
  51. }
  52. ];
  53. // Output only. The ID of the ad group.
  54. optional int64 id = 34 [(google.api.field_behavior) = OUTPUT_ONLY];
  55. // The name of the ad group.
  56. //
  57. // This field is required and should not be empty when creating new ad
  58. // groups.
  59. //
  60. // It must contain fewer than 255 UTF-8 full-width characters.
  61. //
  62. // It must not contain any null (code point 0x0), NL line feed
  63. // (code point 0xA) or carriage return (code point 0xD) characters.
  64. optional string name = 35;
  65. // The status of the ad group.
  66. google.ads.googleads.v8.enums.AdGroupStatusEnum.AdGroupStatus status = 5;
  67. // Immutable. The type of the ad group.
  68. google.ads.googleads.v8.enums.AdGroupTypeEnum.AdGroupType type = 12 [(google.api.field_behavior) = IMMUTABLE];
  69. // The ad rotation mode of the ad group.
  70. google.ads.googleads.v8.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode ad_rotation_mode = 22;
  71. // Output only. For draft or experiment ad groups, this field is the resource name of the
  72. // base ad group from which this ad group was created. If a draft or
  73. // experiment ad group does not have a base ad group, then this field is null.
  74. //
  75. // For base ad groups, this field equals the ad group resource name.
  76. //
  77. // This field is read-only.
  78. optional string base_ad_group = 36 [
  79. (google.api.field_behavior) = OUTPUT_ONLY,
  80. (google.api.resource_reference) = {
  81. type: "googleads.googleapis.com/AdGroup"
  82. }
  83. ];
  84. // The URL template for constructing a tracking URL.
  85. optional string tracking_url_template = 37;
  86. // The list of mappings used to substitute custom parameter tags in a
  87. // `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
  88. repeated google.ads.googleads.v8.common.CustomParameter url_custom_parameters = 6;
  89. // Immutable. The campaign to which the ad group belongs.
  90. optional string campaign = 38 [
  91. (google.api.field_behavior) = IMMUTABLE,
  92. (google.api.resource_reference) = {
  93. type: "googleads.googleapis.com/Campaign"
  94. }
  95. ];
  96. // The maximum CPC (cost-per-click) bid.
  97. optional int64 cpc_bid_micros = 39;
  98. // The maximum CPM (cost-per-thousand viewable impressions) bid.
  99. optional int64 cpm_bid_micros = 40;
  100. // The target CPA (cost-per-acquisition).
  101. optional int64 target_cpa_micros = 41;
  102. // Output only. The CPV (cost-per-view) bid.
  103. optional int64 cpv_bid_micros = 42 [(google.api.field_behavior) = OUTPUT_ONLY];
  104. // Average amount in micros that the advertiser is willing to pay for every
  105. // thousand times the ad is shown.
  106. optional int64 target_cpm_micros = 43;
  107. // The target ROAS (return-on-ad-spend) override. If the ad group's campaign
  108. // bidding strategy is a standard Target ROAS strategy, then this field
  109. // overrides the target ROAS specified in the campaign's bidding strategy.
  110. // Otherwise, this value is ignored.
  111. optional double target_roas = 44;
  112. // The percent cpc bid amount, expressed as a fraction of the advertised price
  113. // for some good or service. The valid range for the fraction is [0,1) and the
  114. // value stored here is 1,000,000 * [fraction].
  115. optional int64 percent_cpc_bid_micros = 45;
  116. // Settings for the Display Campaign Optimizer, initially termed "Explorer".
  117. google.ads.googleads.v8.common.ExplorerAutoOptimizerSetting explorer_auto_optimizer_setting = 21;
  118. // Allows advertisers to specify a targeting dimension on which to place
  119. // absolute bids. This is only applicable for campaigns that target only the
  120. // display network and not search.
  121. google.ads.googleads.v8.enums.TargetingDimensionEnum.TargetingDimension display_custom_bid_dimension = 23;
  122. // URL template for appending params to Final URL.
  123. optional string final_url_suffix = 46;
  124. // Setting for targeting related features.
  125. google.ads.googleads.v8.common.TargetingSetting targeting_setting = 25;
  126. // Output only. The effective target CPA (cost-per-acquisition).
  127. // This field is read-only.
  128. optional int64 effective_target_cpa_micros = 47 [(google.api.field_behavior) = OUTPUT_ONLY];
  129. // Output only. Source of the effective target CPA.
  130. // This field is read-only.
  131. google.ads.googleads.v8.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29 [(google.api.field_behavior) = OUTPUT_ONLY];
  132. // Output only. The effective target ROAS (return-on-ad-spend).
  133. // This field is read-only.
  134. optional double effective_target_roas = 48 [(google.api.field_behavior) = OUTPUT_ONLY];
  135. // Output only. Source of the effective target ROAS.
  136. // This field is read-only.
  137. google.ads.googleads.v8.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32 [(google.api.field_behavior) = OUTPUT_ONLY];
  138. // Output only. The resource names of labels attached to this ad group.
  139. repeated string labels = 49 [
  140. (google.api.field_behavior) = OUTPUT_ONLY,
  141. (google.api.resource_reference) = {
  142. type: "googleads.googleapis.com/AdGroupLabel"
  143. }
  144. ];
  145. // The asset field types that should be excluded from this ad group. Asset
  146. // links with these field types will not be inherited by this ad group from
  147. // the upper levels.
  148. repeated google.ads.googleads.v8.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
  149. }