New Strategy Plans
Create a New Strategy Plan
Create a new strategy plan
post/new_strategy_plans
Request
- Base URLhttps://api.mediamath.com/api/v3.0
- AuthOAuth 2Authorization codehttps://auth.mediamath.com/authorizeToken URLhttps://auth.mediamath.com/oauth/tokenScopesoffline_access, manage:services
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"advertiser_id": 7,
"campaign_plan_id": 55,
"zone_name": "America/New_York",
"goals": {
"bid_min_devices": 1
},
"frequency": {
"frequency_amount": 5
},
"inventory": {
"domain_restrictions": {
"include": [
{
"domain": "www.mediamath.com"
}
],
"exclude": [
{
"domain": "www.mediamath.com"
}
]
},
"site_lists": [
{
"site_list_id": 32
}
],
"deals": [
{
"deal_id": 8
}
],
"deal_groups": [
{
"deal_group_id": 9
}
],
"supply_sources": [
{
"supply_source_id": 54
}
]
},
"targeting": {
"audience": {
"include": [
{
"segments": [
{
"audience_segment_id": 24
}
]
}
],
"exclude": {
"segments": [
{
"audience_segment_id": 24
}
]
}
},
"contextual": {
"include": [
{
"segments": [
{
"targeting_segment_id": 33
}
]
}
],
"exclude": {
"segments": [
{
"targeting_segment_id": 33
}
]
}
},
"postal_codes": {
"restriction": "INCLUDE",
"codes": [
"us-14392",
"us-24981",
"us-25632",
"us-16191",
"us-48574",
"us14392",
"us24981",
"us25632",
"us16191",
"us48574",
"14392",
"24981",
"25632",
"16191",
"48574"
]
},
"geofence": {
"include": {
"segments": [
{
"geofence_segment_id": 45
}
]
},
"exclude": {
"segments": [
{
"geofence_segment_id": 45
}
]
}
},
"my_data": {
"include": {
"pixels": [
{
"pixel_id": 65
}
]
},
"exclude": {
"pixels": [
{
"pixel_id": 65
}
]
}
},
"location": {
"include": [
{
"target_value_id": 87
}
],
"exclude": [
{
"target_value_id": 87
}
]
},
"technology": {
"include": [
{
"target_value_id": 77
}
],
"exclude": [
{
"target_value_id": 77
}
]
},
"ip_addresses": {
"restriction": "INCLUDE"
},
"day_parts": [
{
"start_hour": 1,
"end_hour": 5,
"days": [
"M",
"T",
"W",
"S",
"U"
]
}
],
"recency": [
{
"pixel_id": 67,
"from_hour": 5,
"to_hour": 7
}
]
}
}Response
New strategy plan response
Example response
{
"data": {
"zone_name": "America/New_York",
"goals": {
"bid_min_devices": 1
},
"frequency": {
"frequency_amount": 5
},
"inventory": {
"domain_restrictions": {
"include": [
{
"domain": "www.mediamath.com"
}
],
"exclude": [
{
"domain": "www.mediamath.com"
}
]
},
"site_lists": [
{
"site_list_id": 32
}
],
"deals": [
{
"deal_id": 8
}
],
"deal_groups": [
{
"deal_group_id": 9
}
],
"supply_sources": [
{
"supply_source_id": 54
}
]
},
"targeting": {
"audience": {
"include": [
{
"segments": [
{
"audience_segment_id": 24
}
]
}
],
"exclude": {
"segments": [
{
"audience_segment_id": 24
}
]
}
},
"contextual": {
"include": [
{
"segments": [
{
"targeting_segment_id": 33
}
]
}
],
"exclude": {
"segments": [
{
"targeting_segment_id": 33
}
]
}
},
"postal_codes": {
"restriction": "INCLUDE",
"codes": [
"us-14392",
"us-24981",
"us-25632",
"us-16191",
"us-48574",
"us14392",
"us24981",
"us25632",
"us16191",
"us48574",
"14392",
"24981",
"25632",
"16191",
"48574"
]
},
"geofence": {
"include": {
"segments": [
{
"geofence_segment_id": 45
}
]
},
"exclude": {
"segments": [
{
"geofence_segment_id": 45
}
]
}
},
"my_data": {
"include": {
"pixels": [
{
"pixel_id": 65
}
]
},
"exclude": {
"pixels": [
{
"pixel_id": 65
}
]
}
},
"location": {
"include": [
{
"target_value_id": 87
}
],
"exclude": [
{
"target_value_id": 87
}
]
},
"technology": {
"include": [
{
"target_value_id": 77
}
],
"exclude": [
{
"target_value_id": 77
}
]
},
"ip_addresses": {
"restriction": "INCLUDE"
},
"day_parts": [
{
"start_hour": 1,
"end_hour": 5,
"days": [
"M",
"T",
"W",
"S",
"U"
]
}
],
"recency": [
{
"pixel_id": 67,
"from_hour": 5,
"to_hour": 7
}
]
},
"id": 33,
"version": 3,
"campaign_id": 8
},
"meta": {
"status": "success"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.