Skip to content

verve-metadata

verve-metadata is the JSON every Ad in a GET /v1/ads response carries in its Extension of that type, inside CDATA. Keys are the snake_case field names below. A key with no value is left out. Ignore keys you do not recognise: new ones can appear, and so can enum values.

Download the JSON Schema (draft 2020-12) to validate a payload in your own tests. The expires_at field uses the date-time format, so the validator must support formats. In ajv, add ajv-formats.

FieldTypeDescription
request_id
required
string

request_id groups the ads of one /ads response, for correlation and debugging. Always present.

campaign_idstring

campaign_id is the campaign of that flight, for attribution and debugging. Absent when the ad has none.

expires_atstringformat: date-time

expires_at is when the ad stops being valid, as an RFC 3339 timestamp in UTC, to the whole second. Drop the ad at slot time once past it. An online response carries a much shorter horizon than an offline one.

flight_idstring

flight_id is the Verve flight behind the ad, for attribution. Absent when the ad comes from no Verve flight.

sourcestring

source is the kind of source that served the ad: Verve's own ad server, an SSP or a CMS.

Known values:SOURCE_TYPE_AD_SERVERSOURCE_TYPE_SSPSOURCE_TYPE_CMS
source_idstring

source_id is the specific source the ad came from, such as one CMS, SSP or ad server. Offline, group stored ads by it to keep the player's source mix.

audienceobject

audience is the flight's dynamic targeting, for offline matching against the player's detected shoppers, cart, weather and, on a moving player, its position. Absent for untargeted ads; an ad with no audience matches everyone.

Audience is the targeting of an ad. An ad matches when any one group matches. A group matches when all its conditions match.

FieldTypeDescription
targeting_groupsarray of object

targeting_groups are OR'd: the ad matches when any one group matches.

TargetingGroup matches when all of its conditions match.

FieldTypeDescription
conditionsarray of object

conditions are AND'd.

TargetingCondition is one criterion. Exactly one member is set.

FieldTypeDescription
demographicobject

demographic matches when a detected shopper fits any listed profile.

DemographicCondition targets shoppers by demographics detected via vision sensors. Only applies to devices equipped with vision sensors. Profiles are OR'd: the condition matches if any single profile matches the detected shopper.

FieldTypeDescription
profilesarray of object

profiles are the slices to match; any one is enough.

DemographicProfile is a single demographic slice. Unset fields match any value.

FieldTypeDescription
age_rangestring

age_range is the age bracket to match.

Known values:AGE_RANGE_18_20AGE_RANGE_21_24AGE_RANGE_25_29AGE_RANGE_30_34AGE_RANGE_35_39AGE_RANGE_40_44AGE_RANGE_45_49AGE_RANGE_50_54AGE_RANGE_55_59AGE_RANGE_60_64AGE_RANGE_65_69AGE_RANGE_70_74AGE_RANGE_75_PLUS
genderstring

gender is the gender to match.

Known values:GENDER_FEMALEGENDER_MALEGENDER_OTHERGENDER_UNKNOWN
group_sizeobject

group_size compares the number of people the vision sensor detects.

CountComparison expresses a comparison against a numeric count value. An absent operator matches any count.

FieldTypeDescription
operatorstring

operator is the comparison to apply.

Known values:COUNT_COMPARISON_OPERATOR_EQUALCOUNT_COMPARISON_OPERATOR_LESS_THANCOUNT_COMPARISON_OPERATOR_LESS_THAN_OR_EQUALCOUNT_COMPARISON_OPERATOR_GREATER_THANCOUNT_COMPARISON_OPERATOR_GREATER_THAN_OR_EQUAL
valueinteger

value is the number to compare against.

deviceobject

device matches on the shopper's cart and the player's position.

DeviceCondition matches when every member that is set matches.

FieldTypeDescription
basketobject

basket matches when the cart holds every listed sku and every listed item.

BasketFilter matches items currently in the shopper's active cart. Every listed sku and every listed item must be in the cart (AND'd): a filter on skus A and B matches only a cart holding both. An empty filter matches any cart.

FieldTypeDescription
itemsarray of string

items is an open list of product names or categories in the shopper's cart.

skusarray of string

skus are the product SKUs to match.

placementarray of object

placement matches when the player's current position is a listed place or inside one. Only a player that reports its own position gets it. A player that does not know its position matches none.

Placement groups a device's physical placement within its venue: the DOOH venue classification, the zone within that venue, and the product aisles it serves. Owned directly by the Device (no longer resolved via the Location).

FieldTypeDescription
retail_grocery_zonestring

Send at most one zone member. A request carrying both is rejected as `INVALID_ARGUMENT`, even when the other is `_UNSPECIFIED` โ€” omit the member that does not apply rather than sending it unset.

Known values:VENUE_RETAIL_GROCERY_ENTRANCEVENUE_RETAIL_GROCERY_CHECK_OUTVENUE_RETAIL_GROCERY_AISLESVENUE_RETAIL_GROCERY_EXTERIOR
retail_mall_zonestring

Send at most one zone member. A request carrying both is rejected as `INVALID_ARGUMENT`, even when the other is `_UNSPECIFIED` โ€” omit the member that does not apply rather than sending it unset.

Known values:VENUE_RETAIL_MALLS_CONCOURSEVENUE_RETAIL_MALLS_FOOD_COURTVENUE_RETAIL_MALLS_SPECTACULAR
venuestring

DOOH venue classification (parent + child tiers from OpenOOH v1.2.1).

Known values:VENUE_TRANSIT_AIRPORTVENUE_TRANSIT_BUSVENUE_TRANSIT_TAXI_RIDESHARE_TVVENUE_TRANSIT_SUBWAYVENUE_TRANSIT_TRAINVENUE_TRANSIT_FERRYVENUE_TRANSIT_TRAMVENUE_TRANSIT_HIGHWAY_REST_AREAVENUE_RETAIL_FUELING_STATIONVENUE_RETAIL_CONVENIENCE_STOREVENUE_RETAIL_GROCERYVENUE_RETAIL_LIQUOR_STOREVENUE_RETAIL_MALLVENUE_RETAIL_CANNABIS_DISPENSARYVENUE_RETAIL_PHARMACYVENUE_RETAIL_PARKING_GARAGEVENUE_RETAIL_FURNITUREVENUE_RETAIL_APPARELVENUE_RETAIL_AUTOMOTIVEVENUE_RETAIL_LAUNDROMATVENUE_RETAIL_VAPE_SHOPVENUE_RETAIL_MASS_MERCHANDISINGVENUE_RETAIL_CONSUMER_ELECTRONICVENUE_RETAIL_OTHERVENUE_RETAIL_SPORTING_GOODVENUE_RETAIL_PET_STOREVENUE_RETAIL_OFFICE_SUPPLYVENUE_RETAIL_HOME_RENOVATIONVENUE_OUTDOOR_BILLBOARDVENUE_OUTDOOR_URBAN_PANELVENUE_OUTDOOR_BUS_SHELTERVENUE_OUTDOOR_SPECTACULARVENUE_OUTDOOR_WINDOW_PANELVENUE_OUTDOOR_MOVING_BILLBOARDVENUE_OUTDOOR_CAR_TOPVENUE_OUTDOOR_AERIALVENUE_OUTDOOR_EV_CHARGING_STATIONVENUE_HEALTH_BEAUTY_GYMVENUE_HEALTH_BEAUTY_SALONVENUE_HEALTH_BEAUTY_SPAVENUE_HEALTH_BEAUTY_TATTOOVENUE_POINT_OF_CARE_DOCTOR_OFFICEVENUE_POINT_OF_CARE_VETERINARY_OFFICEVENUE_POINT_OF_CARE_DENTIST_OFFICEVENUE_POINT_OF_CARE_HOSPITALVENUE_POINT_OF_CARE_URGENT_CAREVENUE_POINT_OF_CARE_PHYSIOTHERAPYVENUE_EDUCATION_SCHOOLVENUE_EDUCATION_COLLEGE_AND_UNIVERSITYVENUE_OFFICE_BUILDING_COMMERCIALVENUE_OFFICE_BUILDING_WAREHOUSEVENUE_ENTERTAINMENT_RECREATIONAL_LOCATIONVENUE_ENTERTAINMENT_MOVIE_THEATERVENUE_ENTERTAINMENT_SPORTSVENUE_ENTERTAINMENT_BARVENUE_ENTERTAINMENT_CASUAL_DININGVENUE_ENTERTAINMENT_QSRVENUE_ENTERTAINMENT_HOTELVENUE_ENTERTAINMENT_GOLF_CARTVENUE_ENTERTAINMENT_NIGHT_CLUBVENUE_ENTERTAINMENT_CASINOVENUE_ENTERTAINMENT_CONVENTION_CENTERVENUE_GOVERNMENT_DMVVENUE_GOVERNMENT_MILITARY_BASEVENUE_GOVERNMENT_POST_OFFICEVENUE_GOVERNMENT_FIRST_RESPONDER_FACILITYVENUE_FINANCIAL_BANKVENUE_RESIDENTIAL_APARTMENT_AND_CONDO
aislesarray of string

Product aisles the device serves (e.g. PRODUCE, DAIRY). Grocery venues only.

Known values:AISLE_ALCOHOLAISLE_BABYAISLE_BAKERYAISLE_BAKINGAISLE_BEVERAGEAISLE_BREADAISLE_BREAKFASTAISLE_BUTCHERAISLE_BUTTERAISLE_CANNEDAISLE_CHEESEAISLE_CONDIMENTSAISLE_DAIRYAISLE_DELIAISLE_FROZENAISLE_GRAINSAISLE_HOUSEHOLD_CLEANINGAISLE_MEATAISLE_PASTAAISLE_PERSONAL_CAREAISLE_PETAISLE_PRODUCEAISLE_SEAFOODAISLE_SNACK
storeobject

store matches on the store's current weather.

StoreCondition matches on the store's current weather.

FieldTypeDescription
weather_typesarray of string

weather_types match when the current weather is any one of them.

Known values:WEATHER_TYPE_SUNNYWEATHER_TYPE_CLOUDYWEATHER_TYPE_RAINYWEATHER_TYPE_SNOWWEATHER_TYPE_ABOVE_20_CELSIUSWEATHER_TYPE_BELOW_10_CELSIUS
frequency_capsarray of object

frequency_caps are the flight's per-player play limits, for the player to enforce offline. Every entry applies at once. Count plays per <Ad id>, never per creative. Absent for uncapped flights.

FrequencyCap limits how often one player may show the flight in one window.

FieldTypeDescription
limitinteger

limit is the most plays allowed within the window.

windowstring

window is the period the limit applies to, in UTC. FREQUENCY_CAP_WINDOW_MINUTE, FREQUENCY_CAP_WINDOW_THIRTY_MINUTES and FREQUENCY_CAP_WINDOW_HOUR look back 60 seconds, 30 minutes and 60 minutes from now. FREQUENCY_CAP_WINDOW_DAY is the current calendar day, and FREQUENCY_CAP_WINDOW_WEEK the current ISO week, which starts on Monday. FREQUENCY_CAP_WINDOW_FLIGHT is the flight's whole lifespan.

Known values:FREQUENCY_CAP_WINDOW_MINUTEFREQUENCY_CAP_WINDOW_THIRTY_MINUTESFREQUENCY_CAP_WINDOW_HOURFREQUENCY_CAP_WINDOW_DAYFREQUENCY_CAP_WINDOW_WEEKFREQUENCY_CAP_WINDOW_FLIGHT