campaign.proto 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  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.v7.resources;
  16. import "google/ads/googleads/v7/common/bidding.proto";
  17. import "google/ads/googleads/v7/common/custom_parameter.proto";
  18. import "google/ads/googleads/v7/common/frequency_cap.proto";
  19. import "google/ads/googleads/v7/common/real_time_bidding_setting.proto";
  20. import "google/ads/googleads/v7/common/targeting_setting.proto";
  21. import "google/ads/googleads/v7/enums/ad_serving_optimization_status.proto";
  22. import "google/ads/googleads/v7/enums/advertising_channel_sub_type.proto";
  23. import "google/ads/googleads/v7/enums/advertising_channel_type.proto";
  24. import "google/ads/googleads/v7/enums/app_campaign_app_store.proto";
  25. import "google/ads/googleads/v7/enums/app_campaign_bidding_strategy_goal_type.proto";
  26. import "google/ads/googleads/v7/enums/asset_field_type.proto";
  27. import "google/ads/googleads/v7/enums/bidding_strategy_type.proto";
  28. import "google/ads/googleads/v7/enums/brand_safety_suitability.proto";
  29. import "google/ads/googleads/v7/enums/campaign_experiment_type.proto";
  30. import "google/ads/googleads/v7/enums/campaign_serving_status.proto";
  31. import "google/ads/googleads/v7/enums/campaign_status.proto";
  32. import "google/ads/googleads/v7/enums/location_source_type.proto";
  33. import "google/ads/googleads/v7/enums/negative_geo_target_type.proto";
  34. import "google/ads/googleads/v7/enums/optimization_goal_type.proto";
  35. import "google/ads/googleads/v7/enums/payment_mode.proto";
  36. import "google/ads/googleads/v7/enums/positive_geo_target_type.proto";
  37. import "google/ads/googleads/v7/enums/vanity_pharma_display_url_mode.proto";
  38. import "google/ads/googleads/v7/enums/vanity_pharma_text.proto";
  39. import "google/api/field_behavior.proto";
  40. import "google/api/resource.proto";
  41. import "google/api/annotations.proto";
  42. option csharp_namespace = "Google.Ads.GoogleAds.V7.Resources";
  43. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v7/resources;resources";
  44. option java_multiple_files = true;
  45. option java_outer_classname = "CampaignProto";
  46. option java_package = "com.google.ads.googleads.v7.resources";
  47. option objc_class_prefix = "GAA";
  48. option php_namespace = "Google\\Ads\\GoogleAds\\V7\\Resources";
  49. option ruby_package = "Google::Ads::GoogleAds::V7::Resources";
  50. // Proto file describing the Campaign resource.
  51. // A campaign.
  52. message Campaign {
  53. option (google.api.resource) = {
  54. type: "googleads.googleapis.com/Campaign"
  55. pattern: "customers/{customer_id}/campaigns/{campaign_id}"
  56. };
  57. // The network settings for the campaign.
  58. message NetworkSettings {
  59. // Whether ads will be served with google.com search results.
  60. optional bool target_google_search = 5;
  61. // Whether ads will be served on partner sites in the Google Search Network
  62. // (requires `target_google_search` to also be `true`).
  63. optional bool target_search_network = 6;
  64. // Whether ads will be served on specified placements in the Google Display
  65. // Network. Placements are specified using the Placement criterion.
  66. optional bool target_content_network = 7;
  67. // Whether ads will be served on the Google Partner Network.
  68. // This is available only to some select Google partner accounts.
  69. optional bool target_partner_search_network = 8;
  70. }
  71. // Campaign-level settings for hotel ads.
  72. message HotelSettingInfo {
  73. // Immutable. The linked Hotel Center account.
  74. optional int64 hotel_center_id = 2 [(google.api.field_behavior) = IMMUTABLE];
  75. }
  76. // The setting for controlling Dynamic Search Ads (DSA).
  77. message DynamicSearchAdsSetting {
  78. // Required. The Internet domain name that this setting represents, e.g., "google.com"
  79. // or "www.google.com".
  80. string domain_name = 6 [(google.api.field_behavior) = REQUIRED];
  81. // Required. The language code specifying the language of the domain, e.g., "en".
  82. string language_code = 7 [(google.api.field_behavior) = REQUIRED];
  83. // Whether the campaign uses advertiser supplied URLs exclusively.
  84. optional bool use_supplied_urls_only = 8;
  85. // The list of page feeds associated with the campaign.
  86. repeated string feeds = 9 [(google.api.resource_reference) = {
  87. type: "googleads.googleapis.com/Feed"
  88. }];
  89. }
  90. // Campaign-level settings for tracking information.
  91. message TrackingSetting {
  92. // Output only. The url used for dynamic tracking.
  93. optional string tracking_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  94. }
  95. // The setting for Shopping campaigns. Defines the universe of products that
  96. // can be advertised by the campaign, and how this campaign interacts with
  97. // other Shopping campaigns.
  98. message ShoppingSetting {
  99. // Immutable. ID of the Merchant Center account.
  100. // This field is required for create operations. This field is immutable for
  101. // Shopping campaigns.
  102. optional int64 merchant_id = 5 [(google.api.field_behavior) = IMMUTABLE];
  103. // Immutable. Sales country of products to include in the campaign.
  104. // This field is required for Shopping campaigns. This field is immutable.
  105. // This field is optional for non-Shopping campaigns, but it must be equal
  106. // to 'ZZ' if set.
  107. optional string sales_country = 6 [(google.api.field_behavior) = IMMUTABLE];
  108. // Priority of the campaign. Campaigns with numerically higher priorities
  109. // take precedence over those with lower priorities.
  110. // This field is required for Shopping campaigns, with values between 0 and
  111. // 2, inclusive.
  112. // This field is optional for Smart Shopping campaigns, but must be equal to
  113. // 3 if set.
  114. optional int32 campaign_priority = 7;
  115. // Whether to include local products.
  116. optional bool enable_local = 8;
  117. }
  118. // Represents a collection of settings related to ads geotargeting.
  119. message GeoTargetTypeSetting {
  120. // The setting used for positive geotargeting in this particular campaign.
  121. google.ads.googleads.v7.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1;
  122. // The setting used for negative geotargeting in this particular campaign.
  123. google.ads.googleads.v7.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2;
  124. }
  125. // Campaign-level settings for App Campaigns.
  126. message AppCampaignSetting {
  127. // Represents the goal which the bidding strategy of this app campaign
  128. // should optimize towards.
  129. google.ads.googleads.v7.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1;
  130. // Immutable. A string that uniquely identifies a mobile application.
  131. optional string app_id = 4 [(google.api.field_behavior) = IMMUTABLE];
  132. // Immutable. The application store that distributes this specific app.
  133. google.ads.googleads.v7.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(google.api.field_behavior) = IMMUTABLE];
  134. }
  135. // Campaign setting for local campaigns.
  136. message LocalCampaignSetting {
  137. // The location source type for this local campaign.
  138. google.ads.googleads.v7.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1;
  139. }
  140. // Describes how unbranded pharma ads will be displayed.
  141. message VanityPharma {
  142. // The display mode for vanity pharma URLs.
  143. google.ads.googleads.v7.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1;
  144. // The text that will be displayed in display URL of the text ad when
  145. // website description is the selected display mode for vanity pharma URLs.
  146. google.ads.googleads.v7.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2;
  147. }
  148. // Selective optimization setting for this campaign, which includes a set of
  149. // conversion actions to optimize this campaign towards.
  150. message SelectiveOptimization {
  151. // The selected set of conversion actions for optimizing this campaign.
  152. repeated string conversion_actions = 2 [(google.api.resource_reference) = {
  153. type: "googleads.googleapis.com/ConversionAction"
  154. }];
  155. }
  156. // Optimization goal setting for this campaign, which includes a set of
  157. // optimization goal types.
  158. message OptimizationGoalSetting {
  159. // The list of optimization goal types.
  160. repeated google.ads.googleads.v7.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1;
  161. }
  162. // Immutable. The resource name of the campaign.
  163. // Campaign resource names have the form:
  164. //
  165. // `customers/{customer_id}/campaigns/{campaign_id}`
  166. string resource_name = 1 [
  167. (google.api.field_behavior) = IMMUTABLE,
  168. (google.api.resource_reference) = {
  169. type: "googleads.googleapis.com/Campaign"
  170. }
  171. ];
  172. // Output only. The ID of the campaign.
  173. optional int64 id = 59 [(google.api.field_behavior) = OUTPUT_ONLY];
  174. // The name of the campaign.
  175. //
  176. // This field is required and should not be empty when creating new
  177. // campaigns.
  178. //
  179. // It must not contain any null (code point 0x0), NL line feed
  180. // (code point 0xA) or carriage return (code point 0xD) characters.
  181. optional string name = 58;
  182. // The status of the campaign.
  183. //
  184. // When a new campaign is added, the status defaults to ENABLED.
  185. google.ads.googleads.v7.enums.CampaignStatusEnum.CampaignStatus status = 5;
  186. // Output only. The ad serving status of the campaign.
  187. google.ads.googleads.v7.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
  188. // The ad serving optimization status of the campaign.
  189. google.ads.googleads.v7.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8;
  190. // Immutable. The primary serving target for ads within the campaign.
  191. // The targeting options can be refined in `network_settings`.
  192. //
  193. // This field is required and should not be empty when creating new
  194. // campaigns.
  195. //
  196. // Can be set only when creating campaigns.
  197. // After the campaign is created, the field can not be changed.
  198. google.ads.googleads.v7.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(google.api.field_behavior) = IMMUTABLE];
  199. // Immutable. Optional refinement to `advertising_channel_type`.
  200. // Must be a valid sub-type of the parent channel type.
  201. //
  202. // Can be set only when creating campaigns.
  203. // After campaign is created, the field can not be changed.
  204. google.ads.googleads.v7.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(google.api.field_behavior) = IMMUTABLE];
  205. // The URL template for constructing a tracking URL.
  206. optional string tracking_url_template = 60;
  207. // The list of mappings used to substitute custom parameter tags in a
  208. // `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
  209. repeated google.ads.googleads.v7.common.CustomParameter url_custom_parameters = 12;
  210. // Settings for Real-Time Bidding, a feature only available for campaigns
  211. // targeting the Ad Exchange network.
  212. google.ads.googleads.v7.common.RealTimeBiddingSetting real_time_bidding_setting = 39;
  213. // The network settings for the campaign.
  214. NetworkSettings network_settings = 14;
  215. // Immutable. The hotel setting for the campaign.
  216. HotelSettingInfo hotel_setting = 32 [(google.api.field_behavior) = IMMUTABLE];
  217. // The setting for controlling Dynamic Search Ads (DSA).
  218. DynamicSearchAdsSetting dynamic_search_ads_setting = 33;
  219. // The setting for controlling Shopping campaigns.
  220. ShoppingSetting shopping_setting = 36;
  221. // Setting for targeting related features.
  222. google.ads.googleads.v7.common.TargetingSetting targeting_setting = 43;
  223. // The setting for ads geotargeting.
  224. GeoTargetTypeSetting geo_target_type_setting = 47;
  225. // The setting for local campaign.
  226. LocalCampaignSetting local_campaign_setting = 50;
  227. // The setting related to App Campaign.
  228. AppCampaignSetting app_campaign_setting = 51;
  229. // Output only. The resource names of labels attached to this campaign.
  230. repeated string labels = 61 [
  231. (google.api.field_behavior) = OUTPUT_ONLY,
  232. (google.api.resource_reference) = {
  233. type: "googleads.googleapis.com/CampaignLabel"
  234. }
  235. ];
  236. // Output only. The type of campaign: normal, draft, or experiment.
  237. google.ads.googleads.v7.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
  238. // Output only. The resource name of the base campaign of a draft or experiment campaign.
  239. // For base campaigns, this is equal to `resource_name`.
  240. //
  241. // This field is read-only.
  242. optional string base_campaign = 56 [
  243. (google.api.field_behavior) = OUTPUT_ONLY,
  244. (google.api.resource_reference) = {
  245. type: "googleads.googleapis.com/Campaign"
  246. }
  247. ];
  248. // The budget of the campaign.
  249. optional string campaign_budget = 62 [(google.api.resource_reference) = {
  250. type: "googleads.googleapis.com/CampaignBudget"
  251. }];
  252. // Output only. The type of bidding strategy.
  253. //
  254. // A bidding strategy can be created by setting either the bidding scheme to
  255. // create a standard bidding strategy or the `bidding_strategy` field to
  256. // create a portfolio bidding strategy.
  257. //
  258. // This field is read-only.
  259. google.ads.googleads.v7.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
  260. // The date when campaign started.
  261. optional string start_date = 63;
  262. // The last day of the campaign.
  263. optional string end_date = 64;
  264. // Suffix used to append query parameters to landing pages that are served
  265. // with parallel tracking.
  266. optional string final_url_suffix = 65;
  267. // A list that limits how often each user will see this campaign's ads.
  268. repeated google.ads.googleads.v7.common.FrequencyCapEntry frequency_caps = 40;
  269. // Output only. 3-Tier Brand Safety setting for the campaign.
  270. google.ads.googleads.v7.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(google.api.field_behavior) = OUTPUT_ONLY];
  271. // Describes how unbranded pharma ads will be displayed.
  272. VanityPharma vanity_pharma = 44;
  273. // Selective optimization setting for this campaign, which includes a set of
  274. // conversion actions to optimize this campaign towards.
  275. SelectiveOptimization selective_optimization = 45;
  276. // Optimization goal setting for this campaign, which includes a set of
  277. // optimization goal types.
  278. OptimizationGoalSetting optimization_goal_setting = 54;
  279. // Output only. Campaign-level settings for tracking information.
  280. TrackingSetting tracking_setting = 46 [(google.api.field_behavior) = OUTPUT_ONLY];
  281. // Payment mode for the campaign.
  282. google.ads.googleads.v7.enums.PaymentModeEnum.PaymentMode payment_mode = 52;
  283. // Output only. Optimization score of the campaign.
  284. //
  285. // Optimization score is an estimate of how well a campaign is set to perform.
  286. // It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the
  287. // campaign is performing at full potential. This field is null for unscored
  288. // campaigns.
  289. //
  290. // See "About optimization score" at
  291. // https://support.google.com/google-ads/answer/9061546.
  292. //
  293. // This field is read-only.
  294. optional double optimization_score = 66 [(google.api.field_behavior) = OUTPUT_ONLY];
  295. // The asset field types that should be excluded from this campaign. Asset
  296. // links with these field types will not be inherited by this campaign from
  297. // the upper level.
  298. repeated google.ads.googleads.v7.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 69;
  299. // The bidding strategy for the campaign.
  300. //
  301. // Must be either portfolio (created via BiddingStrategy service) or
  302. // standard, that is embedded into the campaign.
  303. oneof campaign_bidding_strategy {
  304. // Portfolio bidding strategy used by campaign.
  305. string bidding_strategy = 67 [(google.api.resource_reference) = {
  306. type: "googleads.googleapis.com/BiddingStrategy"
  307. }];
  308. // Commission is an automatic bidding strategy in which the advertiser pays
  309. // a certain portion of the conversion value.
  310. google.ads.googleads.v7.common.Commission commission = 49;
  311. // Standard Manual CPC bidding strategy.
  312. // Manual click-based bidding where user pays per click.
  313. google.ads.googleads.v7.common.ManualCpc manual_cpc = 24;
  314. // Standard Manual CPM bidding strategy.
  315. // Manual impression-based bidding where user pays per thousand
  316. // impressions.
  317. google.ads.googleads.v7.common.ManualCpm manual_cpm = 25;
  318. // Output only. A bidding strategy that pays a configurable amount per video view.
  319. google.ads.googleads.v7.common.ManualCpv manual_cpv = 37 [(google.api.field_behavior) = OUTPUT_ONLY];
  320. // Standard Maximize Conversions bidding strategy that automatically
  321. // maximizes number of conversions while spending your budget.
  322. google.ads.googleads.v7.common.MaximizeConversions maximize_conversions = 30;
  323. // Standard Maximize Conversion Value bidding strategy that automatically
  324. // sets bids to maximize revenue while spending your budget.
  325. google.ads.googleads.v7.common.MaximizeConversionValue maximize_conversion_value = 31;
  326. // Standard Target CPA bidding strategy that automatically sets bids to
  327. // help get as many conversions as possible at the target
  328. // cost-per-acquisition (CPA) you set.
  329. google.ads.googleads.v7.common.TargetCpa target_cpa = 26;
  330. // Target Impression Share bidding strategy. An automated bidding strategy
  331. // that sets bids to achieve a desired percentage of impressions.
  332. google.ads.googleads.v7.common.TargetImpressionShare target_impression_share = 48;
  333. // Standard Target ROAS bidding strategy that automatically maximizes
  334. // revenue while averaging a specific target return on ad spend (ROAS).
  335. google.ads.googleads.v7.common.TargetRoas target_roas = 29;
  336. // Standard Target Spend bidding strategy that automatically sets your bids
  337. // to help get as many clicks as possible within your budget.
  338. google.ads.googleads.v7.common.TargetSpend target_spend = 27;
  339. // Standard Percent Cpc bidding strategy where bids are a fraction of the
  340. // advertised price for some good or service.
  341. google.ads.googleads.v7.common.PercentCpc percent_cpc = 34;
  342. // A bidding strategy that automatically optimizes cost per thousand
  343. // impressions.
  344. google.ads.googleads.v7.common.TargetCpm target_cpm = 41;
  345. }
  346. }