- JSON representation
- FinalAppUrl
- AppUrlOperatingSystemType
- AdType
- UrlCollection
- SystemManagedResourceSource
- TextAdInfo
- ExpandedTextAdInfo
- CallAdInfo
- ExpandedDynamicSearchAdInfo
- HotelAdInfo
- ShoppingSmartAdInfo
- ShoppingProductAdInfo
- ImageAdInfo
- AdImageAsset
- VideoAdInfo
- AdVideoAsset
- AdVideoAssetInfo
- AdVideoAssetInventoryPreferences
- VideoTrueViewInStreamAdInfo
- VideoBumperInStreamAdInfo
- VideoOutstreamAdInfo
- VideoNonSkippableInStreamAdInfo
- InFeedVideoAdInfo
- VideoThumbnail
- VideoResponsiveAdInfo
- ResponsiveSearchAdInfo
- LegacyResponsiveDisplayAdInfo
- DisplayAdFormatSetting
- AppAdInfo
- AdMediaBundleAsset
- AdAppDeepLinkAsset
- LegacyAppInstallAdInfo
- LegacyAppInstallAdAppStore
- ResponsiveDisplayAdInfo
- ResponsiveDisplayAdControlSpec
- LocalAdInfo
- DisplayUploadAdInfo
- DisplayUploadProductType
- AppEngagementAdInfo
- ShoppingComparisonListingAdInfo
- AppPreRegistrationAdInfo
- DemandGenMultiAssetAdInfo
- DemandGenCarouselAdInfo
- AdDemandGenCarouselCardAsset
- DemandGenVideoResponsiveAdInfo
- AdCallToActionAsset
- DemandGenProductAdInfo
- TravelAdInfo
An ad.
JSON representation |
---|
{ "resourceName": string, "finalUrls": [ string ], "finalAppUrls": [ { object ( |
Fields | |
---|---|
resource |
Immutable. The resource name of the ad. Ad resource names have the form:
|
final |
The list of possible final URLs after all cross-domain redirects for the ad. |
final |
A list of final app URLs that will be used on mobile if the user has the specific app installed. |
final |
The list of possible final mobile URLs after all cross-domain redirects for the ad. |
url |
The list of mappings that can be used to substitute custom parameter tags in a |
type |
Output only. The type of ad. |
device |
The device preference for the ad. You can only specify a preference for mobile devices. When this preference is set the ad will be preferred over other ads when being displayed on a mobile device. The ad can still be displayed on other device types, for example, if no other ads are available. If unspecified (no device preference), all devices are targeted. This is only supported by some ad types. |
url |
Additional URLs for the ad that are tagged with a unique identifier that can be referenced from other fields in the ad. |
system |
Output only. If this ad is system managed, then this field will indicate the source. This field is read-only. |
id |
Output only. The ID of the ad. |
tracking |
The URL template for constructing a tracking URL. |
final |
The suffix to use when constructing a final URL. |
display |
The URL that appears in the ad description for some ad formats. |
added |
Output only. Indicates if this ad was automatically added by Google Ads and not by a user. For example, this could happen when ads are automatically created as suggestions for new ads based on knowledge of how existing ads are performing. |
name |
Immutable. The name of the ad. This is only used to be able to identify the ad. It does not need to be unique and does not affect the served ad. The name field is currently only supported for DisplayUploadAd, ImageAd, ShoppingComparisonListingAd and VideoAd. |
Union field ad_data . Details pertinent to the ad type. Exactly one value must be set. ad_data can be only one of the following: |
|
text |
Immutable. Details pertaining to a text ad. |
expanded |
Details pertaining to an expanded text ad. |
call |
Details pertaining to a call ad. |
expanded |
Immutable. Details pertaining to an Expanded Dynamic Search Ad. This type of ad has its headline, final URLs, and display URL auto-generated at serving time according to domain name specific information provided by |
hotel |
Details pertaining to a hotel ad. |
shopping |
Details pertaining to a Smart Shopping ad. |
shopping |
Details pertaining to a Shopping product ad. |
image |
Immutable. Details pertaining to an Image ad. |
video |
Details pertaining to a Video ad. |
video |
Details pertaining to a Video responsive ad. |
responsive |
Details pertaining to a responsive search ad. |
legacy |
Details pertaining to a legacy responsive display ad. |
app |
Details pertaining to an app ad. |
legacy |
Immutable. Details pertaining to a legacy app install ad. |
responsive |
Details pertaining to a responsive display ad. |
local |
Details pertaining to a local ad. |
display |
Details pertaining to a display upload ad. |
app |
Details pertaining to an app engagement ad. |
shopping |
Details pertaining to a Shopping Comparison Listing ad. |
smart |
Details pertaining to a Smart campaign ad. |
app |
Details pertaining to an app pre-registration ad. |
demand |
Details pertaining to a Demand Gen multi asset ad. |
demand |
Details pertaining to a Demand Gen carousel ad. |
demand |
Details pertaining to a Demand Gen video responsive ad. |
demand |
Details pertaining to a Demand Gen product ad. |
travel |
Details pertaining to a travel ad. |
FinalAppUrl
A URL for deep linking into an app for the given operating system.
JSON representation |
---|
{
"osType": enum ( |
Fields | |
---|---|
os |
The operating system targeted by this URL. Required. |
url |
The app deep link URL. Deep links specify a location in an app that corresponds to the content you'd like to show, and should be of the form {scheme}://{host_path} The scheme identifies which app to open. For your app, you can use a custom scheme that starts with the app's name. The host and path specify the unique location in the app where your content exists. Example: "exampleapp://productid_1234". Required. |
AppUrlOperatingSystemType
Operating System
Enums | |
---|---|
UNSPECIFIED |
Not specified. |
UNKNOWN |
Used for return value only. Represents value unknown in this version. |
IOS |
The Apple IOS operating system. |
ANDROID |
The Android operating system. |
AdType
The possible types of an ad.
Enums | |
---|---|
UNSPECIFIED |
No value has been specified. |
UNKNOWN |
The received value is not known in this version. This is a response-only value. |
TEXT_AD |
The ad is a text ad. |
EXPANDED_TEXT_AD |
The ad is an expanded text ad. |
EXPANDED_DYNAMIC_SEARCH_AD |
The ad is an expanded dynamic search ad. |
HOTEL_AD |
The ad is a hotel ad. |
SHOPPING_SMART_AD |
The ad is a Smart Shopping ad. |
SHOPPING_PRODUCT_AD |
The ad is a standard Shopping ad. |
VIDEO_AD |
The ad is a video ad. |
IMAGE_AD |
This ad is an Image ad. |
RESPONSIVE_SEARCH_AD |
The ad is a responsive search ad. |
LEGACY_RESPONSIVE_DISPLAY_AD |
The ad is a legacy responsive display ad. |
APP_AD |
The ad is an app ad. |
LEGACY_APP_INSTALL_AD |
The ad is a legacy app install ad. |
RESPONSIVE_DISPLAY_AD |
The ad is a responsive display ad. |
LOCAL_AD |
The ad is a local ad. |
HTML5_UPLOAD_AD |
The ad is a display upload ad with the HTML5_UPLOAD_AD product type. |
DYNAMIC_HTML5_AD |
The ad is a display upload ad with one of the DYNAMIC_HTML5_* product types. |
APP_ENGAGEMENT_AD |
The ad is an app engagement ad. |
SHOPPING_COMPARISON_LISTING_AD |
The ad is a Shopping Comparison Listing ad. |
VIDEO_BUMPER_AD |
Video bumper ad. |
VIDEO_NON_SKIPPABLE_IN_STREAM_AD |
Video non-skippable in-stream ad. |
VIDEO_TRUEVIEW_IN_STREAM_AD |
Video TrueView in-stream ad. |
VIDEO_RESPONSIVE_AD |
Video responsive ad. |
SMART_CAMPAIGN_AD |
Smart campaign ad. |
CALL_AD |
Call ad. |
APP_PRE_REGISTRATION_AD |
Universal app pre-registration ad. |
IN_FEED_VIDEO_AD |
In-feed video ad. |
DEMAND_GEN_MULTI_ASSET_AD |
Demand Gen multi asset ad. |
DEMAND_GEN_CAROUSEL_AD |
Demand Gen carousel ad. |
TRAVEL_AD |
Travel ad. |
DEMAND_GEN_VIDEO_RESPONSIVE_AD |
Demand Gen video responsive ad. |
DEMAND_GEN_PRODUCT_AD |
Demand Gen product ad. |
UrlCollection
Collection of urls that is tagged with a unique identifier.
JSON representation |
---|
{ "finalUrls": [ string ], "finalMobileUrls": [ string ], "urlCollectionId": string, "trackingUrlTemplate": string } |
Fields | |
---|---|
final |
A list of possible final URLs. |
final |
A list of possible final mobile URLs. |
url |
Unique identifier for this UrlCollection instance. |
tracking |
URL template for constructing a tracking URL. |
SystemManagedResourceSource
Enum listing the possible system managed entity sources.
Enums | |
---|---|
UNSPECIFIED |
Not specified. |
UNKNOWN |
Used for return value only. Represents value unknown in this version. |
AD_VARIATIONS |
Generated ad variations experiment ad. |
TextAdInfo
A text ad.
JSON representation |
---|
{ "headline": string, "description1": string, "description2": string } |
Fields | |
---|---|
headline |
The headline of the ad. |
description1 |
The first line of the ad's description. |
description2 |
The second line of the ad's description. |
ExpandedTextAdInfo
An expanded text ad.
JSON representation |
---|
{ "headlinePart1": string, "headlinePart2": string, "headlinePart3": string, "description": string, "description2": string, "path1": string, "path2": string } |
Fields | |
---|---|
headline |
The first part of the ad's headline. |
headline |
The second part of the ad's headline. |
headline |
The third part of the ad's headline. |
description |
The description of the ad. |
description2 |
The second description of the ad. |
path1 |
The text that can appear alongside the ad's displayed URL. |
path2 |
Additional text that can appear alongside the ad's displayed URL. |
CallAdInfo
A call ad.
JSON representation |
---|
{
"countryCode": string,
"phoneNumber": string,
"businessName": string,
"headline1": string,
"headline2": string,
"description1": string,
"description2": string,
"callTracked": boolean,
"disableCallConversion": boolean,
"phoneNumberVerificationUrl": string,
"conversionAction": string,
"conversionReportingState": enum ( |
Fields | |
---|---|
country |
The country code in the ad. |
phone |
The phone number in the ad. |
business |
The business name in the ad. |
headline1 |
First headline in the ad. |
headline2 |
Second headline in the ad. |
description1 |
The first line of the ad's description. |
description2 |
The second line of the ad's description. |
call |
Whether to enable call tracking for the creative. Enabling call tracking also enables call conversions. |
disable |
Whether to disable call conversion for the creative. If set to |
phone |
The URL to be used for phone number verification. |
conversion |
The conversion action to attribute a call conversion to. If not set a default conversion action is used. This field only has effect if |
conversion |
The call conversion behavior of this call ad. It can use its own call conversion setting, inherit the account level setting, or be disabled. |
path1 |
First part of text that can be appended to the URL in the ad. Optional. |
path2 |
Second part of text that can be appended to the URL in the ad. This field can only be set when |
ExpandedDynamicSearchAdInfo
An expanded dynamic search ad.
JSON representation |
---|
{ "description": string, "description2": string } |
Fields | |
---|---|
description |
The description of the ad. |
description2 |
The second description of the ad. |
HotelAdInfo
This type has no fields.
A hotel ad.
ShoppingSmartAdInfo
This type has no fields.
A Smart Shopping ad.
ShoppingProductAdInfo
This type has no fields.
A standard Shopping ad.
ImageAdInfo
An image ad.
JSON representation |
---|
{ "mimeType": enum ( |
Fields | |
---|---|
mime |
The mime type of the image. |
pixel |
Width in pixels of the full size image. |
pixel |
Height in pixels of the full size image. |
image |
URL of the full size image. |
preview |
Width in pixels of the preview size image. |
preview |
Height in pixels of the preview size image. |
preview |
URL of the preview size image. |
name |
The name of the image. If the image was created from a MediaFile, this is the MediaFile's name. If the image was created from bytes, this is empty. |
Union field image . The image to create the ImageAd from. This can be specified in one of two ways. 1. An existing MediaFile resource. 2. The raw image data as bytes. image can be only one of the following: |
|
image |
The image assets used for the ad. |
data |
Raw image data as bytes. A base64-encoded string. |
ad |
An ad ID to copy the image from. |
AdImageAsset
An image asset used inside an ad.
JSON representation |
---|
{ "asset": string } |
Fields | |
---|---|
asset |
The Asset resource name of this image. |
VideoAdInfo
A video ad.
JSON representation |
---|
{ "video": { object ( |
Fields | |
---|---|
video |
The YouTube video assets used for the ad. |
Union field format . Format-specific schema for the different video formats. format can be only one of the following: |
|
in |
Video TrueView in-stream ad format. |
bumper |
Video bumper in-stream ad format. |
out |
Video out-stream ad format. |
non |
Video non-skippable in-stream ad format. |
in |
In-feed video ad format. |
AdVideoAsset
A video asset used inside an ad.
JSON representation |
---|
{
"asset": string,
"adVideoAssetInfo": {
object ( |
Fields | |
---|---|
asset |
The Asset resource name of this video. |
ad |
Contains info fields for this AdVideoAsset. |
AdVideoAssetInfo
Contains info fields for AdVideoAssets.
JSON representation |
---|
{
"adVideoAssetInventoryPreferences": {
object ( |
Fields | |
---|---|
ad |
List of inventory preferences for this AdVideoAsset. This field can only be set for DiscoveryVideoResponsiveAd. The video assets with an inventory asset preference set will be preferred over other videos from the same ad during serving time. For example, consider this ad being served for a specific inventory. The server will first try to match an eligible video with a matching preference for that inventory. Videos with no preferences are chosen only when a video with matching preference and eligible for a given ad slot can be found. |
AdVideoAssetInventoryPreferences
YouTube Video Asset inventory preferences.
JSON representation |
---|
{ "inFeedPreference": boolean, "inStreamPreference": boolean, "shortsPreference": boolean } |
Fields | |
---|---|
in |
When true, YouTube Video Asset with this inventory preference will be preferred when choosing a video to serve In Feed. |
in |
When true, YouTube Video Asset with this inventory preference will be preferred when choosing a video to serve In Stream. |
shorts |
When true, YouTube Video Asset with this inventory preference will be preferred when choosing a video to serve on YouTube Shorts. |
VideoTrueViewInStreamAdInfo
Representation of video TrueView in-stream ad format (ad shown during video playback, often at beginning, which displays a skip button a few seconds into the video).
JSON representation |
---|
{
"actionButtonLabel": string,
"actionHeadline": string,
"companionBanner": {
object ( |
Fields | |
---|---|
action |
Label on the CTA (call-to-action) button taking the user to the video ad's final URL. Required for TrueView for action campaigns, optional otherwise. |
action |
Additional text displayed with the CTA (call-to-action) button to give context and encourage clicking on the button. |
companion |
The image assets of the companion banner used with the ad. |
VideoBumperInStreamAdInfo
Representation of video bumper in-stream ad format (very short in-stream non-skippable video ad).
JSON representation |
---|
{
"companionBanner": {
object ( |
Fields | |
---|---|
companion |
The image assets of the companion banner used with the ad. |
action |
Label on the "Call To Action" button taking the user to the video ad's final URL. |
action |
Additional text displayed with the CTA (call-to-action) button to give context and encourage clicking on the button. |
VideoOutstreamAdInfo
Representation of video out-stream ad format (ad shown alongside a feed with automatic playback, without sound).
JSON representation |
---|
{ "headline": string, "description": string } |
Fields | |
---|---|
headline |
The headline of the ad. |
description |
The description line. |
VideoNonSkippableInStreamAdInfo
Representation of video non-skippable in-stream ad format (15 second in-stream non-skippable video ad).
JSON representation |
---|
{
"companionBanner": {
object ( |
Fields | |
---|---|
companion |
The image assets of the companion banner used with the ad. |
action |
Label on the "Call To Action" button taking the user to the video ad's final URL. |
action |
Additional text displayed with the "Call To Action" button to give context and encourage clicking on the button. |
InFeedVideoAdInfo
Representation of In-feed video ad format.
JSON representation |
---|
{
"headline": string,
"description1": string,
"description2": string,
"thumbnail": enum ( |
Fields | |
---|---|
headline |
The headline of the ad. |
description1 |
First text line for the ad. |
description2 |
Second text line for the ad. |
thumbnail |
Video thumbnail image to use. |
VideoThumbnail
Enum listing the possible types of a video thumbnail.
Enums | |
---|---|
UNSPECIFIED |
The type has not been specified. |
UNKNOWN |
The received value is not known in this version. This is a response-only value. |
DEFAULT_THUMBNAIL |
The default thumbnail. Can be auto-generated or user-uploaded. |
THUMBNAIL_1 |
Thumbnail 1, generated from the video. |
THUMBNAIL_2 |
Thumbnail 2, generated from the video. |
THUMBNAIL_3 |
Thumbnail 3, generated from the video. |
VideoResponsiveAdInfo
A video responsive ad.
JSON representation |
---|
{ "headlines": [ { object ( |
Fields | |
---|---|
headlines[] |
List of text assets used for the short headline. Currently, only a single value for the short headline is supported. |
long |
List of text assets used for the long headline. Currently, only a single value for the long headline is supported. |
descriptions[] |
List of text assets used for the description. Currently, only a single value for the description is supported. |
call |
List of text assets used for the button, for example, the "Call To Action" button. Currently, only a single value for the button is supported. |
videos[] |
List of YouTube video assets used for the ad. Currently, only a single value for the YouTube video asset is supported. |
companion |
List of image assets used for the companion banner. Currently, only a single value for the companion banner asset is supported. |
breadcrumb1 |
First part of text that appears in the ad with the displayed URL. |
breadcrumb2 |
Second part of text that appears in the ad with the displayed URL. |
ResponsiveSearchAdInfo
A responsive search ad.
Responsive search ads let you create an ad that adapts to show more text, and more relevant messages, to your customers. Enter multiple headlines and descriptions when creating a responsive search ad, and over time, Google Ads will automatically test different combinations and learn which combinations perform best. By adapting your ad's content to more closely match potential customers' search terms, responsive search ads may improve your campaign's performance.
More information at https://support.google.com/google-ads/answer/7684791
JSON representation |
---|
{ "headlines": [ { object ( |
Fields | |
---|---|
headlines[] |
List of text assets for headlines. When the ad serves the headlines will be selected from this list. |
descriptions[] |
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list. |
path1 |
First part of text that can be appended to the URL in the ad. |
path2 |
Second part of text that can be appended to the URL in the ad. This field can only be set when |
LegacyResponsiveDisplayAdInfo
A legacy responsive display ad. Ads of this type are labeled 'Responsive ads' in the Google Ads UI.
JSON representation |
---|
{
"formatSetting": enum ( |
Fields | |
---|---|
format |
Specifies which format the ad will be served in. Default is ALL_FORMATS. |
short |
The short version of the ad's headline. |
long |
The long version of the ad's headline. |
description |
The description of the ad. |
business |
The business name in the ad. |
allow |
Advertiser's consent to allow flexible color. When true, the ad may be served with different color if necessary. When false, the ad will be served with the specified colors or a neutral color. The default value is |
accent |
The accent color of the ad in hexadecimal, for example, #ffffff for white. If one of |
main |
The main color of the ad in hexadecimal, for example, #ffffff for white. If one of |
call |
The call-to-action text for the ad. |
logo |
The MediaFile resource name of the logo image used in the ad. |
square |
The MediaFile resource name of the square logo image used in the ad. |
marketing |
The MediaFile resource name of the marketing image used in the ad. |
square |
The MediaFile resource name of the square marketing image used in the ad. |
price |
Prefix before price. For example, 'as low as'. |
promo |
Promotion text used for dynamic formats of responsive ads. For example 'Free two-day shipping'. |
DisplayAdFormatSetting
Enumerates display ad format settings.
Enums | |
---|---|
UNSPECIFIED |
Not specified. |
UNKNOWN |
The value is unknown in this version. |
ALL_FORMATS |
Text, image and native formats. |
NON_NATIVE |
Text and image formats. |
NATIVE |
Native format, for example, the format rendering is controlled by the publisher and not by Google. |
AppAdInfo
An app ad.
JSON representation |
---|
{ "mandatoryAdText": { object ( |
Fields | |
---|---|
mandatory |
Mandatory ad text. |
headlines[] |
List of text assets for headlines. When the ad serves the headlines will be selected from this list. |
descriptions[] |
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list. |
images[] |
List of image assets that may be displayed with the ad. |
youtube |
List of YouTube video assets that may be displayed with the ad. |
html5 |
List of media bundle assets that may be used with the ad. |
app |
An app deep link asset that may be used with the ad. |
AdMediaBundleAsset
A media bundle asset used inside an ad.
JSON representation |
---|
{ "asset": string } |
Fields | |
---|---|
asset |
The Asset resource name of this media bundle. |
AdAppDeepLinkAsset
An app deep link used inside an ad.
JSON representation |
---|
{ "asset": string } |
Fields | |
---|---|
asset |
The Asset resource name of this app deep link asset. |
LegacyAppInstallAdInfo
A legacy app install ad that only can be used by a few select customers.
JSON representation |
---|
{
"appStore": enum ( |
Fields | |
---|---|
app |
The app store the mobile app is available in. |
app |
The ID of the mobile app. |
headline |
The headline of the ad. |
description1 |
The first description line of the ad. |
description2 |
The second description line of the ad. |
LegacyAppInstallAdAppStore
App store type in a legacy app install ad.
Enums | |
---|---|
UNSPECIFIED |
Not specified. |
UNKNOWN |
Used for return value only. Represents value unknown in this version. |
APPLE_APP_STORE |
Apple iTunes. |
GOOGLE_PLAY |
Google Play. |
WINDOWS_STORE |
Windows Store. |
WINDOWS_PHONE_STORE |
Windows Phone Store. |
CN_APP_STORE |
The app is hosted in a Chinese app store. |
ResponsiveDisplayAdInfo
A responsive display ad.
JSON representation |
---|
{ "marketingImages": [ { object ( |
Fields | |
---|---|
marketing |
Marketing images to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must be 1.91:1 (+-1%). At least one |
square |
Square marketing images to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must be 1:1 (+-1%). At least one square |
logo |
Logo images to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 512x128 and the aspect ratio must be 4:1 (+-1%). Combined with |
square |
Square logo images to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%). Combined with |
headlines[] |
Short format headlines for the ad. The maximum length is 30 characters. At least 1 and max 5 headlines can be specified. |
long |
A required long format headline. The maximum length is 90 characters. |
descriptions[] |
Descriptive texts for the ad. The maximum length is 90 characters. At least 1 and max 5 headlines can be specified. |
youtube |
Optional YouTube videos for the ad. A maximum of 5 videos can be specified. |
format |
Specifies which format the ad will be served in. Default is ALL_FORMATS. |
control |
Specification for various creative controls. |
business |
The advertiser/brand name. Maximum display width is 25. |
main |
The main color of the ad in hexadecimal, for example, #ffffff for white. If one of |
accent |
The accent color of the ad in hexadecimal, for example, #ffffff for white. If one of |
allow |
Advertiser's consent to allow flexible color. When true, the ad may be served with different color if necessary. When false, the ad will be served with the specified colors or a neutral color. The default value is |
call |
The call-to-action text for the ad. Maximum display width is 30. |
price |
Prefix before price. For example, 'as low as'. |
promo |
Promotion text used for dynamic formats of responsive ads. For example 'Free two-day shipping'. |
ResponsiveDisplayAdControlSpec
Specification for various creative controls for a responsive display ad.
JSON representation |
---|
{ "enableAssetEnhancements": boolean, "enableAutogenVideo": boolean } |
Fields | |
---|---|
enable |
Whether the advertiser has opted into the asset enhancements feature. |
enable |
Whether the advertiser has opted into auto-gen video feature. |
LocalAdInfo
A local ad.
JSON representation |
---|
{ "headlines": [ { object ( |
Fields | |
---|---|
headlines[] |
List of text assets for headlines. When the ad serves the headlines will be selected from this list. At least 1 and at most 5 headlines must be specified. |
descriptions[] |
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list. At least 1 and at most 5 descriptions must be specified. |
call |
List of text assets for call-to-actions. When the ad serves the call-to-actions will be selected from this list. At least 1 and at most 5 call-to-actions must be specified. |
marketing |
List of marketing image assets that may be displayed with the ad. The images must be 314x600 pixels or 320x320 pixels. At least 1 and at most 20 image assets must be specified. |
logo |
List of logo image assets that may be displayed with the ad. The images must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5 image assets must be specified. |
videos[] |
List of YouTube video assets that may be displayed with the ad. At least 1 and at most 20 video assets must be specified. |
path1 |
First part of optional text that can be appended to the URL in the ad. |
path2 |
Second part of optional text that can be appended to the URL in the ad. This field can only be set when |
DisplayUploadAdInfo
A generic type of display ad. The exact ad format is controlled by the displayUploadProductType
field, which determines what kinds of data need to be included with the ad.
JSON representation |
---|
{ "displayUploadProductType": enum ( |
Fields | |
---|---|
display |
The product type of this ad. See comments on the enum for details. |
Union field media_asset . The asset data that makes up the ad. media_asset can be only one of the following: |
|
media |
A media bundle asset to be used in the ad. For information about the media bundle for HTML5_UPLOAD_AD, see https://support.google.com/google-ads/answer/1722096 Media bundles that are part of dynamic product types use a special format that needs to be created through the Google Web Designer. See https://support.google.com/webdesigner/answer/7543898 for more information. |
DisplayUploadProductType
Enumerates display upload product types.
Enums | |
---|---|
UNSPECIFIED |
Not specified. |
UNKNOWN |
The value is unknown in this version. |
HTML5_UPLOAD_AD |
HTML5 upload ad. This product type requires the upload_media_bundle field in DisplayUploadAdInfo to be set. |
DYNAMIC_HTML5_EDUCATION_AD |
Dynamic HTML5 education ad. This product type requires the upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be used in an education campaign. |
DYNAMIC_HTML5_FLIGHT_AD |
Dynamic HTML5 flight ad. This product type requires the upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be used in a flight campaign. |
DYNAMIC_HTML5_HOTEL_RENTAL_AD |
Dynamic HTML5 hotel and rental ad. This product type requires the upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be used in a hotel campaign. |
DYNAMIC_HTML5_JOB_AD |
Dynamic HTML5 job ad. This product type requires the upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be used in a job campaign. |
DYNAMIC_HTML5_LOCAL_AD |
Dynamic HTML5 local ad. This product type requires the upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be used in a local campaign. |
DYNAMIC_HTML5_REAL_ESTATE_AD |
Dynamic HTML5 real estate ad. This product type requires the upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be used in a real estate campaign. |
DYNAMIC_HTML5_CUSTOM_AD |
Dynamic HTML5 custom ad. This product type requires the upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be used in a custom campaign. |
DYNAMIC_HTML5_TRAVEL_AD |
Dynamic HTML5 travel ad. This product type requires the upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be used in a travel campaign. |
DYNAMIC_HTML5_HOTEL_AD |
Dynamic HTML5 hotel ad. This product type requires the upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be used in a hotel campaign. |
AppEngagementAdInfo
App engagement ads allow you to write text encouraging a specific action in the app, like checking in, making a purchase, or booking a flight. They allow you to send users to a specific part of your app where they can find what they're looking for easier and faster.
JSON representation |
---|
{ "headlines": [ { object ( |
Fields | |
---|---|
headlines[] |
List of text assets for headlines. When the ad serves the headlines will be selected from this list. |
descriptions[] |
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list. |
images[] |
List of image assets that may be displayed with the ad. |
videos[] |
List of video assets that may be displayed with the ad. |
ShoppingComparisonListingAdInfo
A Shopping Comparison Listing ad.
JSON representation |
---|
{ "headline": string } |
Fields | |
---|---|
headline |
Headline of the ad. This field is required. Allowed length is between 25 and 45 characters. |
AppPreRegistrationAdInfo
App pre-registration ads link to your app or game listing on Google Play, and can run on Google Play, on YouTube (in-stream only), and within other apps and mobile websites on the Display Network. It will help capture people's interest in your app or game and generate an early install base for your app or game before a launch.
JSON representation |
---|
{ "headlines": [ { object ( |
Fields | |
---|---|
headlines[] |
List of text assets for headlines. When the ad serves the headlines will be selected from this list. |
descriptions[] |
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list. |
images[] |
List of image asset IDs whose images may be displayed with the ad. |
youtube |
List of YouTube video asset IDs whose videos may be displayed with the ad. |
DemandGenMultiAssetAdInfo
A Demand Gen multi asset ad.
JSON representation |
---|
{ "marketingImages": [ { object ( |
Fields | |
---|---|
marketing |
Marketing image assets to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must be 1.91:1 (+-1%). Required if squareMarketingImages is not present. Combined with |
square |
Square marketing image assets to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must be 1:1 (+-1%). Required if marketingImages is not present. Combined with |
portrait |
Portrait marketing image assets to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must be 4:5 (+-1%). Combined with |
tall |
Tall portrait marketing image assets to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 600x1067 and the aspect ratio must be 9:16 (+-1%). Combined with |
logo |
Logo image assets to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%). At least 1 and max 5 logo images can be specified. |
headlines[] |
Headline text asset of the ad. Maximum display width is 30. At least 1 and max 5 headlines can be specified. |
descriptions[] |
The descriptive text of the ad. Maximum display width is 90. At least 1 and max 5 descriptions can be specified. |
business |
The Advertiser/brand name. Maximum display width is 25. Required. |
call |
Call to action text. |
lead |
Boolean option that indicates if this ad must be served with lead form. |
DemandGenCarouselAdInfo
A Demand Gen carousel ad.
JSON representation |
---|
{ "businessName": string, "logoImage": { object ( |
Fields | |
---|---|
business |
Required. The Advertiser/brand name. |
logo |
Required. Logo image to be used in the ad. The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%). |
headline |
Required. Headline of the ad. |
description |
Required. The descriptive text of the ad. |
call |
Call to action text. |
carousel |
Required. Carousel cards that will display with the ad. Min 2 max 10. |
AdDemandGenCarouselCardAsset
A Demand Gen carousel card asset used inside an ad.
JSON representation |
---|
{ "asset": string } |
Fields | |
---|---|
asset |
The Asset resource name of this discovery carousel card. |
DemandGenVideoResponsiveAdInfo
A Demand Gen video responsive ad.
JSON representation |
---|
{ "headlines": [ { object ( |
Fields | |
---|---|
headlines[] |
List of text assets used for the short headline. |
long |
List of text assets used for the long headline. |
descriptions[] |
List of text assets used for the description. |
videos[] |
List of YouTube video assets used for the ad. |
logo |
Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%). |
breadcrumb1 |
First part of text that appears in the ad with the displayed URL. |
breadcrumb2 |
Second part of text that appears in the ad with the displayed URL. |
business |
Required. The advertiser/brand name. |
call |
Assets of type CallToActionAsset used for the "Call To Action" button. |
AdCallToActionAsset
A call to action asset used inside an ad.
JSON representation |
---|
{ "asset": string } |
Fields | |
---|---|
asset |
The Asset resource name of this call to action asset. |
DemandGenProductAdInfo
A Demand Gen product ad.
JSON representation |
---|
{ "breadcrumb1": string, "breadcrumb2": string, "businessName": { object ( |
Fields | |
---|---|
breadcrumb1 |
First part of text that appears in the ad with the displayed URL. |
breadcrumb2 |
Second part of text that appears in the ad with the displayed URL. |
business |
Required. The advertiser/brand name. |
headline |
Required. Text asset used for the short headline. |
description |
Required. Text asset used for the description. |
logo |
Required. Logo image to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1 (+-1%). |
call |
Asset of type CallToActionAsset used for the "Call To Action" button. |
TravelAdInfo
This type has no fields.
A travel ad.