1 // Copyright 2018 Google LLC.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 package google.ads.googleads.v0.common;
20 import "google/ads/googleads/v0/enums/call_conversion_reporting_state.proto";
21 import "google/ads/googleads/v0/enums/display_ad_format_setting.proto";
22 import "google/ads/googleads/v0/enums/mime_type.proto";
23 import "google/protobuf/wrappers.proto";
25 option csharp_namespace = "Google.Ads.GoogleAds.V0.Common";
26 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v0/common;common";
27 option java_multiple_files = true;
28 option java_outer_classname = "AdTypeInfosProto";
29 option java_package = "com.google.ads.googleads.v0.common";
30 option objc_class_prefix = "GAA";
31 option php_namespace = "Google\\Ads\\GoogleAds\\V0\\Common";
32 option ruby_package = "Google::Ads::GoogleAds::V0::Common";
34 // Proto file containing info messages for specific ad types.
38 // The headline of the ad.
39 google.protobuf.StringValue headline = 1;
41 // The first line of the ad's description.
42 google.protobuf.StringValue description1 = 2;
44 // The second line of the ad's description.
45 google.protobuf.StringValue description2 = 3;
48 // An expanded text ad.
49 message ExpandedTextAdInfo {
50 // The first part of the ad's headline.
51 google.protobuf.StringValue headline_part1 = 1;
53 // The second part of the ad's headline.
54 google.protobuf.StringValue headline_part2 = 2;
56 // The third part of the ad's headline.
57 google.protobuf.StringValue headline_part3 = 6;
59 // The description of the ad.
60 google.protobuf.StringValue description = 3;
62 // The second description of the ad.
63 google.protobuf.StringValue description2 = 7;
65 // The text that can appear alongside the ad's displayed URL.
66 google.protobuf.StringValue path1 = 4;
68 // Additional text that can appear alongside the ad's displayed URL.
69 google.protobuf.StringValue path2 = 5;
72 // A dynamic search ad.
73 message DynamicSearchAdInfo {
74 // The first line of the ad's description.
75 google.protobuf.StringValue description1 = 1;
77 // The second line of the ad's description.
78 google.protobuf.StringValue description2 = 2;
81 // A responsive display ad.
82 message ResponsiveDisplayAdInfo {
83 // The short version of the ad's headline.
84 google.protobuf.StringValue short_headline = 1;
86 // The long version of the ad's headline.
87 google.protobuf.StringValue long_headline = 2;
89 // The description of the ad.
90 google.protobuf.StringValue description = 3;
92 // The business name in the ad.
93 google.protobuf.StringValue business_name = 4;
95 // Advertiser's consent to allow flexible color. When true, the ad may be
96 // served with different color if necessary. When false, the ad will be served
97 // with the specified colors or a neutral color.
98 // The default value is true.
99 // Must be true if main_color and accent_color are not set.
100 google.protobuf.BoolValue allow_flexible_color = 5;
102 // The accent color of the ad in hexadecimal, e.g. #ffffff for white.
103 // If one of main_color and accent_color is set, the other is required as
105 google.protobuf.StringValue accent_color = 6;
107 // The main color of the ad in hexadecimal, e.g. #ffffff for white.
108 // If one of main_color and accent_color is set, the other is required as
110 google.protobuf.StringValue main_color = 7;
112 // The call-to-action text for the ad.
113 google.protobuf.StringValue call_to_action_text = 8;
115 // The MediaFile resource name of the logo image used in the ad.
116 google.protobuf.StringValue logo_image = 9;
118 // The MediaFile resource name of the square logo image used in the ad.
119 google.protobuf.StringValue square_logo_image = 10;
121 // The MediaFile resource name of the marketing image used in the ad.
122 google.protobuf.StringValue marketing_image = 11;
124 // The MediaFile resource name of the square marketing image used in the ad.
125 google.protobuf.StringValue square_marketing_image = 12;
127 // Specifies which format the ad will be served in. Default is ALL_FORMATS.
128 google.ads.googleads.v0.enums.DisplayAdFormatSettingEnum
129 .DisplayAdFormatSetting format_setting = 13;
131 // Prefix before price. E.g. 'as low as'.
132 google.protobuf.StringValue price_prefix = 14;
134 // Promotion text used for dyanmic formats of responsive ads. For example
135 // 'Free two-day shipping'.
136 google.protobuf.StringValue promo_text = 15;
140 message CallOnlyAdInfo {
141 // The country code in the ad.
142 google.protobuf.StringValue country_code = 1;
144 // The phone number in the ad.
145 google.protobuf.StringValue phone_number = 2;
147 // The business name in the ad.
148 google.protobuf.StringValue business_name = 3;
150 // The first line of the ad's description.
151 google.protobuf.StringValue description1 = 4;
153 // The second line of the ad's description.
154 google.protobuf.StringValue description2 = 5;
156 // Whether to enable call tracking for the creative. Enabling call
157 // tracking also enables call conversions.
158 google.protobuf.BoolValue call_tracked = 6;
160 // Whether to disable call conversion for the creative.
161 // If set to `true`, disables call conversions even when `call_tracked` is
163 // If `call_tracked` is `false`, this field is ignored.
164 google.protobuf.BoolValue disable_call_conversion = 7;
166 // The URL to be used for phone number verification.
167 google.protobuf.StringValue phone_number_verification_url = 8;
169 // The conversion action to attribute a call conversion to. If not set a
170 // default conversion action is used. This field only has effect if
171 // call_tracked is set to true. Otherwise this field is ignored.
172 google.protobuf.StringValue conversion_action = 9;
174 // The call conversion behavior of this call only ad. It can use its own call
175 // conversion setting, inherit the account level setting, or be disabled.
176 google.ads.googleads.v0.enums.CallConversionReportingStateEnum
177 .CallConversionReportingState conversion_reporting_state = 10;
180 // An expanded dynamic search ad.
181 message ExpandedDynamicSearchAdInfo {
182 // The description of the ad.
183 google.protobuf.StringValue description = 1;
187 message HotelAdInfo {}
189 // A Smart Shopping ad.
190 message ShoppingSmartAdInfo {}
192 // A standard Shopping ad.
193 message ShoppingProductAdInfo {}
196 message GmailAdInfo {
198 GmailTeaser teaser = 1;
200 // The MediaFile resource name of the header image. Valid image types are GIF,
201 // JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must
202 // be between 3:1 and 5:1 (+-1%).
203 google.protobuf.StringValue header_image = 2;
205 // The MediaFile resource name of the marketing image. Valid image types are
206 // GIF, JPEG and PNG. The image must either be landscape with a minimum size
207 // of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a
208 // minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%)
209 google.protobuf.StringValue marketing_image = 3;
211 // Headline of the marketing image.
212 google.protobuf.StringValue marketing_image_headline = 4;
214 // Description of the marketing image.
215 google.protobuf.StringValue marketing_image_description = 5;
217 // Display-call-to-action of the marketing image.
218 DisplayCallToAction marketing_image_display_call_to_action = 6;
221 // Gmail teaser data. The teaser is a small header that acts as an invitation
222 // to view the rest of the ad (the body).
223 message GmailTeaser {
224 // Headline of the teaser.
225 google.protobuf.StringValue headline = 1;
227 // Description of the teaser.
228 google.protobuf.StringValue description = 2;
230 // Business name of the advertiser.
231 google.protobuf.StringValue business_name = 3;
233 // The MediaFile resource name of the logo image. Valid image types are GIF,
234 // JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must
236 google.protobuf.StringValue logo_image = 4;
239 // Data for display call to action. The call to action is a piece of the ad
240 // that prompts the user to do something. Like clicking a link or making a phone
242 message DisplayCallToAction {
243 // Text for the display-call-to-action.
244 google.protobuf.StringValue text = 1;
246 // Text color for the display-call-to-action in hexadecimal, e.g. #ffffff for
248 google.protobuf.StringValue text_color = 2;
252 message ImageAdInfo {
253 // Width in pixels of the full size image.
254 google.protobuf.Int64Value pixel_width = 4;
256 // Height in pixels of the full size image.
257 google.protobuf.Int64Value pixel_height = 5;
259 // URL of the full size image.
260 google.protobuf.StringValue image_url = 6;
262 // Width in pixels of the preview size image.
263 google.protobuf.Int64Value preview_pixel_width = 7;
265 // Height in pixels of the preview size image.
266 google.protobuf.Int64Value preview_pixel_height = 8;
268 // URL of the preview size image.
269 google.protobuf.StringValue preview_image_url = 9;
271 // The mime type of the image.
272 google.ads.googleads.v0.enums.MimeTypeEnum.MimeType mime_type = 10;
274 // The name of the image. If the image was created from a MediaFile, this is
275 // the MediaFile's name. If the image was created from bytes, this is empty.
276 google.protobuf.StringValue name = 11;
278 // The image to create the ImageAd from. This can be specified in one of
280 // 1. An existing MediaFile resource.
281 // 2. The raw image data as bytes.
283 // The MediaFile resource to use for the image.
284 google.protobuf.StringValue media_file = 1;
286 // Raw image data as bytes.
287 google.protobuf.BytesValue data = 2;
291 // Representation of video TrueView in-stream ad format (ad shown during video
292 // playback, often at beginning, which displays a skip button a few seconds into
294 message VideoTrueViewInStreamAdInfo {
295 // Label on the CTA (call-to-action) button taking the user to the video ad's
297 // Required for TrueView for action campaigns, optional otherwise.
298 google.protobuf.StringValue action_button_label = 1;
300 // Additional text displayed with the CTA (call-to-action) button to give
301 // context and encourage clicking on the button.
302 google.protobuf.StringValue action_headline = 2;
306 message VideoAdInfo {
307 // The MediaFile resource to use for the video.
308 google.protobuf.StringValue media_file = 1;
310 // Format-specific schema for the different video formats.
312 // Video TrueView in-stream format.
313 VideoTrueViewInStreamAdInfo in_stream = 2;