v1
latestOpenAPI 3.1.02026-07-26374172.5 KBDynamic ads
Create a new dynamic ad
Generates a tag to be fired when DAI exposures occur.
post/measurement/campaigns/{campaign_id}/dynamic_ads
Path parameters
campaign_idstring required
Example:0123456789abcdef
Request body
Example request
{
"measurementDynamicAd": {
"name": "The Pod Show - Mid-Roll",
"uid": "ad-123-456",
"flightsAttributes": [
{
"id": 123,
"startDate": "2024-03-01",
"endDate": "2024-03-31",
"expectedImpressions": 100,
"cpm": 10,
"uid": "qtr-1-flight-1"
}
]
}
}Response
OK
Example response
{
"measurementDynamicAd": {
"id": "0123456789abcdef",
"name": "The Pod Show - Mid-Roll",
"uid": "ad-123-456",
"campaign": {
"id": "0123456789abcdef",
"name": "Brand Campaign Q2",
"startDate": "2024-03-01",
"endDate": "2024-03-01",
"customEvents": [
{
"id": 1,
"label": "Signup",
"pattern": "example.com/sign_up"
}
],
"pixel": {
"id": "0123456789abcdef",
"name": "Attribution Pixel",
"brand": {
"crmBrandId": "brand_0123456789abcdef",
"name": "ACME Corp., Inc."
}
}
},
"flights": [
{
"startDate": "2024-03-01",
"endDate": "2024-03-31"
}
]
}
}