Triple Whale · Schema
Triple Whale Ad Record
Schema for ingesting advertising data into Triple Whale via the Data-In API.
E-CommerceAnalyticsAttributionShopifyPixel TrackingROASDirect to ConsumerMarketing
Properties
| Name | Type | Description |
|---|---|---|
| shop | string | The exact Shop URL matching the store in Triple Whale settings. |
| channel | string | The advertising platform. Use a Standardized Ad Channel ID or custom value. |
| channel_account_id | string | The platform-specific account ID. |
| event_date | string | The date of the event in YYYY-MM-DD format. |
| currency | string | The currency used for reporting. |
| campaign | object | Advertising campaign details. At least one of campaign, adset, or ad is required. |
| adset | object | Ad set details. At least one of campaign, adset, or ad is required. |
| ad | object | Individual ad details. At least one of campaign, adset, or ad is required. |
| metrics | object | Performance metrics for the ad. |
| updated_at | string | ISO 8601 timestamp when the ad record was last updated. |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://triplewhale.com/schemas/ad",
"title": "Triple Whale Ad Record",
"description": "Schema for ingesting advertising data into Triple Whale via the Data-In API.",
"type": "object",
"required": ["shop", "channel", "event_date", "currency"],
"properties": {
"shop": {
"type": "string",
"description": "The exact Shop URL matching the store in Triple Whale settings.",
"example": "madisonbraids.myshopify.com"
},
"channel": {
"type": "string",
"description": "The advertising platform. Use a Standardized Ad Channel ID or custom value.",
"example": "facebook-ads"
},
"channel_account_id": {
"type": "string",
"description": "The platform-specific account ID.",
"default": "CUSTOM_CHANNEL",
"example": "example_fb_account"
},
"event_date": {
"type": "string",
"format": "date",
"description": "The date of the event in YYYY-MM-DD format.",
"example": "2024-11-28"
},
"currency": {
"type": "string",
"description": "The currency used for reporting.",
"example": "USD"
},
"campaign": {
"type": "object",
"description": "Advertising campaign details. At least one of campaign, adset, or ad is required.",
"required": ["id", "name", "status"],
"properties": {
"id": {"type": "string", "example": "campaign_example_id"},
"name": {"type": "string", "example": "Example Campaign"},
"status": {"type": "string", "enum": ["PAUSED", "ACTIVE"]}
}
},
"adset": {
"type": "object",
"description": "Ad set details. At least one of campaign, adset, or ad is required.",
"required": ["id", "name", "status"],
"properties": {
"id": {"type": "string"},
"name": {"type": "string"},
"status": {"type": "string", "enum": ["PAUSED", "ACTIVE"]}
}
},
"ad": {
"type": "object",
"description": "Individual ad details. At least one of campaign, adset, or ad is required.",
"required": ["id", "name", "status"],
"properties": {
"id": {"type": "string"},
"name": {"type": "string"},
"status": {"type": "string", "enum": ["PAUSED", "ACTIVE"]},
"thumbnail": {"type": "string", "description": "URL of the ad thumbnail image."}
}
},
"metrics": {
"type": "object",
"description": "Performance metrics for the ad.",
"properties": {
"clicks": {"type": "number", "default": 0, "example": 1500},
"conversions": {"type": "number", "default": 0, "example": 75},
"conversion_value": {"type": "number", "default": 0, "example": 3750.5},
"impressions": {"type": "number", "default": 0, "example": 25000},
"spend": {"type": "number", "default": 0, "example": 500},
"visits": {"type": "number", "default": 0, "example": 2000}
}
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp when the ad record was last updated.",
"example": "2024-11-28T15:30:00Z"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/triple-whale-ad"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.