- Resource: Ad
- Type
- Image
- ImageBytes
- PremiumImages
- IabImages
- StandardBanner
- LocationBanner
- InboxData
- Reminder
- PushMessage
- State
- Methods
Resource: Ad
JSON representation |
---|
{ "name": string, "type": enum ( |
Fields | |
---|---|
name |
The resource name of the ad. Format: |
type |
Required. Ad type. |
title |
Required. Title used to identify the ad in the dashboard and in reports. Not visible to Waze drivers. The maximum length is 50 characters. |
uri |
Promoted URI. This URI is linked from the info page of the ad. For The maximum length is 500 characters. |
legalInfo |
Additional legal terms, conditions, disclosures or info related to your ad or business. The maximum length is 50 characters. |
additionalInfo |
Additional information to show with the ad. The maximum length is 80 characters. |
logo |
Logo image 152x112 px. For details, see how to choose your images. |
infoPageLogo |
Info page logo image, 690x550 px. For details, see How to choose your images. |
inboxData |
Data to populate a message shown in the Waze driver's inbox. Only populate this field for ads where |
reminder |
Data to populate a notification for the Waze driver and a message in the Waze driver's inbox. Only populate this field for ads where |
hideNavigation |
This boolean determines if the navigation button ("drive there" or "go") is hidden in the ad. This option is only available for If |
createTime |
Output only. Time when this ad was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. Time when this ad was most recently updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
state |
Output only. Determines whether the ad is active and can be served on campaigns. An ad that isn't active won't appear in advertising campaigns, even if the campaign is active. |
pendingRevisionId |
Output only. A revision ID for the ad under review. This is populated if there are changes held for review. This will not be populated on the pending revision for an ad. Each time a field that requires review is updated to a value different from the value on the pending revision, the previous revision is deleted and is replaced with a new revision. The format is an 8-character hexadecimal string. |
Union field banner_images . For more details on creatives, see this help center article. banner_images can be only one of the following: |
|
premiumBanner |
This image is shown to drivers as a single large image. |
iabBanner |
These images are shown to drivers side-by-side, with |
standardBanner |
Image shown alongside text. |
locationBanner |
Optional image shown alongside text from the location This option can't be set when a campaign targets |
Type
The type of advertisement to display to drivers.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Type unspecified. |
DRIVE_THERE |
An ad with a button that changes the driver's navigation to the advertised location. |
SAVE_FOR_LATER |
An ad with a button that sends drivers to visit a web page. Includes an optional inbox message. |
CALL_NOW |
An ad with a button that calls the phone number specified for the location. |
SAVE_LOCATION |
An ad with a button that saves the location to the driver's navigation history. |
Image
Image data. Note that updating an ad image will send your ad for approval, which can take up to 48h. See this help center article for more information.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
imageBytes |
Input only. When you create or update an image, the This field should contain a base64-encoded byte string and with an image format. This field isn't populated when an Ad is read. |
sourceUri |
Input only. When you create or update an image, the The URI for a stock image or an existing ad image that starts with |
uri |
Output only. Read-only URI for an image. To change this image, send an |
ImageBytes
Wrapper class for the bytes of a base64-encoded image.
JSON representation |
---|
{ "mimeType": string, "data": string } |
Fields | |
---|---|
mimeType |
The mime type of the supplied This field is required for imageBytes. |
data |
base64-encoded image data. This field is required for imageBytes. A base64-encoded string. |
PremiumImages
Images shown to drivers as a single large image.
JSON representation |
---|
{ "premiumImage": { object ( |
Fields | |
---|---|
premiumImage |
608x240 px image. This image is shown when Waze drivers don't fit the criteria for any other premium images or when other premium images aren't specified. This image is required for premiumImages. |
premiumWideImage |
788x240 px image. This image is shown when Waze drivers have a widescreen device or are in landscape mode. This image is optional for premiumImages. |
IabImages
Images shown to drivers side-by-side, with iabStandardLogoImage
on the left and iabStandardBannerImage
on the right. The ratios of these images match the ratios for the Native Image Assets Main-Large as specified by the Interactive Advertising Bureau (IAB).
JSON representation |
---|
{ "iabStandardBannerImage": { object ( |
Fields | |
---|---|
iabStandardBannerImage |
458x240 px image, 1.91:1 ratio. This image is required for iabImages. |
iabStandardLogoImage |
170x170 px image, 1:1 ratio. This image is required for iabImages. |
StandardBanner
Optional image shown alongside text.
JSON representation |
---|
{
"image": {
object ( |
Fields | |
---|---|
image |
200x200 px image. For details, see How to choose your images. This image is shown to drivers alongside this Ad's title and description. If no image is specified, a default image for the category of the account is shown. |
title |
The maximum length is 30 characters. This field is required for standard banners. |
description |
The maximum length is 80 characters. This field is required for standard banners. |
LocationBanner
Optional image shown alongside text from the location
and title
from the advertised location.description
This option can't be set when a campaign targets
.regions
JSON representation |
---|
{
"image": {
object ( |
Fields | |
---|---|
image |
200x200 px image. For details, see How to choose your images. This image is shown to drivers alongside this Ad's title and description. If no image is specified, a default image for the category of the account is shown. |
InboxData
Data to populate a message shown in the Waze driver's inbox.
JSON representation |
---|
{ "title": string, "body": string, "buttonText": string } |
Fields | |
---|---|
title |
Title of message shown in the driver's inbox. The maximum length is 50 characters. |
body |
Body of message shown in the driver's inbox. The maximum length is 80 characters. |
buttonText |
Text of the button shown in the driver's inbox. The maximum length is 50 characters. |
Reminder
JSON representation |
---|
{ "pushMessage": enum ( |
Fields | |
---|---|
pushMessage |
Template message to send as a push notification. If the field isn't specified, there isn't a push notification. |
advertiserNotificationDisplayName |
Advertiser name displayed on the notification message. See The maximum length is 30 characters. |
title |
Title of the reminder message. The maximum length is 60 characters. |
description |
Description of the reminder message. The maximum length is 400 characters. |
uri |
URI opened in a user's browser for this reminder message. The maximum length is 500 characters. |
Union field
|
|
radiusMeters |
Show the reminder when the user is near the location. Only the value 1000 can be set. |
triggerTime |
Trigger the reminder at this scheduled time (UTC). This time must be in the future. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
delayDuration |
Show the reminder this amount of time. This value must be set to a positive number of hours, with maximum value 120 (5 days). When setting A duration in seconds with up to nine fractional digits, ending with ' |
PushMessage
Enums | |
---|---|
PUSH_MESSAGE_UNSPECIFIED |
|
REACHED_LOCATION_INFO |
Send Waze drivers the message "You've reached location.title . Check your inbox for info from advertiserNotificationDisplayName ." Available only for the radiusMeters trigger. |
REACHED_LOCATION_OFFER |
Send Waze drivers the message "You've reached location.title . Check your inbox for an offer from advertiserNotificationDisplayName ." Available only for the radiusMeters trigger. |
INBOX_MESSAGE |
Send Waze drivers the message "You have a reminder from advertiserNotificationDisplayName in your Waze Inbox." Available only for the triggerTime and delayDuration triggers. |
State
Ad state.
Enums | |
---|---|
STATE_UNSPECIFIED |
State unspecified. |
ACTIVE |
Ad is active, so ads can be served using this Ad. |
PENDING |
Ad is under review, so ads can't be served using this Ad. |
REJECTED |
Ad is rejected, so ads can't be served using this Ad. |
Methods |
|
---|---|
|
Creates a new ad. |
|
Returns the requested ad. |
|
Lists the ads from an account, ordered by name . |
|
Updates an existing ad. |