Resource: Campaign
JSON representation |
---|
{ "name": string, "title": string, "type": enum ( |
Fields | |
---|---|
name |
The resource name of the campaign. Format: |
title |
Required. Title used to identify the campaign in the dashboard and in reports. Not visible to Waze drivers. The maximum length is 100 characters. |
type |
Required. Immutable. The type of this campaign. The field is required on creation and can't be edited once a campaign is created. To create a SEARCH campaign there must be non-SEARCH campaigns active for the dates set in the budget plan. |
state |
Required. Determines whether the campaign is active and ads are shown to Waze drivers. You can only create campaigns in the |
targetingHours |
A collection of times when this campaign serves ads. Each period represents a range of hours when ads are shown during the week in the location's time zone. If no schedule is provided then this field doesn't apply filtering. If both Example: Show ads on Saturdays from 09:00-12:00 and 13:00-17:00:
The ending time must occur after the starting time, either later in the same day, or on a subsequent day. NOTE: Overnight hours, such as Monday 20:00 until Tuesday 02:00, are allowed on writes. On reads, they are split into multiple day components. |
onlyBusinessHours |
Determines whether ads are shown only when locations are open. If a location doesn't have business hours, no filtering is applied by this field. If both |
cpmBid |
The Cost-Per-Thousand impressions (CPM) bid for this campaign.
When the type is |
budgetPlan |
Required. Resource name of the budget plan to associate with this campaign. Format: |
ads[] |
Required. The ads to include in this campaign. NOTE: Exactly one ad must be specified for each campaign. Permitted ads depend on the campaign type:
|
locations[] |
Resource names for the Format: |
locationCount |
Output only. The number of locations included in this campaign. |
radiusMeters |
Target locations that are within the specified distance from Waze drivers in kilometers. The permitted values depend on the campaign type:
|
regions[] |
Resource names for the To include all active regions in the campaign, use the string Format: |
regionCount |
Output only. The number of regions included in this campaign. |
goal |
Goal of the Campaign. |
createTime |
Output only. Time when this campaign 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 campaign was most recently updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Type
Campaign type.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Type unspecified. |
PIN |
Pins shown on the map. See this help center article for details of this Type. |
SEARCH |
Locations are promoted in the search results. See this help center article for details of this Type. A search campaign will deliver across autocomplete, line search and category search. |
TAKEOVER |
A pocket-sized billboard is shown when Waze drivers come to a stop. |
ARROW |
Arrows shown on the map. See this help center article for details of this Type. |
State
Campaign state.
Enums | |
---|---|
STATE_UNSPECIFIED |
State unspecified. |
ACTIVE |
The campaign is active, so ads are shown to all Waze drivers, subject to targeting. |
PAUSED |
The campaign is paused, so ads aren't shown to Waze drivers. |
COMPLETED |
The last endDate of the budget plan associated with this campaign is in the past. |
CampaignAd
Ad to include in the campaign.
JSON representation |
---|
{ "ad": string } |
Fields | |
---|---|
ad |
Required. Resource name of the |
Goal
Campaign goal.
Enums | |
---|---|
GOAL_UNSPECIFIED |
|
STORE_VISITS |
The primary goal of this campaign is to optimize store visits. |
WEBSITE_VISITS |
The primary goal of this campaign is to optimize website visits. |
BRAND_LOCATION_AWARENESS |
The primary goal of this campaign is to improve the business's location awareness. |
CALLS |
The primary goal of this campaign is to deliver calls. |
Methods |
|
---|---|
|
Activates a campaign. |
|
Creates a new campaign. |
|
Returns the requested campaign. |
|
Lists the campaigns from an account, ordered by name . |
|
Updates an existing campaign. |
|
Pauses a campaign. |