MediaMath Platform API
Campaigns API (xx.xx.xx)
Duration of strategy must not exceed 36 months
- Live Serverhttps://api.mediamath.com/api/v3.0/strategies
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.mediamath.com/api/v3.0/strategies?extended=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"campaign_id": 45,
"goals": {
"goal_type": "spend",
"goal_value": 999999999.9999,
"min_bid": 9999999.99,
"max_bid": 0.01,
"roi_target": 999999999.99,
"bid_min_devices": 1,
"bid_aggressiveness": 100,
"bid_price_is_media_only": true,
"max_bid_wm": 9999999.99,
"use_bid_shading": true,
"flat_rate_cpm": 0.01
},
"inventory": {
"supply_type": "RTB",
"run_on_all_pmp": true,
"run_on_all_exchanges": true,
"site_restriction_transparent_urls": true,
"domain_restrictions": {
"include": [
{
"domain": "www.mediamath.com",
"target_type": "DOMAIN"
}
],
"exclude": [
{
"domain": "www.mediamath.com",
"target_type": "DOMAIN"
}
]
},
"site_lists": [
{
"site_list_id": 32,
"assigned": true
}
],
"deals": [
{
"deal_id": 8
}
],
"deal_groups": [
{
"deal_group_id": 9
}
],
"supply_sources": [
{
"supply_source_id": 54
}
]
},
"pacing": {
"impression_pacing_type": "even",
"impression_pacing_amount": 23,
"impression_pacing_interval": "hour",
"pacing_type": "even",
"pacing_amount": 0.01,
"pacing_interval": "hour",
"pacing_optimization_type": "monetary",
"pacing_optimization_amount": 9999999.99,
"use_dba_strategy_pacing": "always",
"use_dba_strategy_pacing_after_date": "2019-08-24"
},
"name": "string",
"description": "string",
"status": true,
"archived": false,
"media_type": "DISPLAY",
"use_optimization": true,
"ads_txt_verified": "ANY",
"type": "REM",
"feature_compatibility": "string",
"device_graph_only": true,
"mfa_avoidance": "INHERIT",
"duration": {
"use_campaign_start": true,
"use_campaign_end": true,
"start_date": "2019-08-24T14:15:22Z",
"end_date": "2019-08-24T14:15:22Z"
},
"budget": {
"budget": 0.1,
"currency_code": "string",
"margin_pct": 9999999.9999
},
"frequency": {
"frequency_type": "even",
"frequency_interval": "hour",
"frequency_amount": 345,
"frequency_optimization": true
},
"concepts": {
"weighting": "NONE",
"creative_groups": [
{
"concept_id": 0,
"percent": 0
}
]
},
"groups": [
"string"
],
"targeting": {
"fold_position": [
"ABOVE"
],
"audience": {
"include": [
{
"operator": "AND",
"segments": [
{
"audience_segment_id": 24,
"user_cpm": 0.1
}
]
}
],
"exclude": {
"operator": "AND",
"segments": [
{
"audience_segment_id": 24,
"user_cpm": 0.1
}
]
}
},
"contextual": {
"include": [
{
"code": "string",
"operator": "AND",
"segments": [
{
"targeting_segment_id": 33,
"user_cpm": 0.1
}
]
}
],
"exclude": {
"code": "string",
"operator": "AND",
"segments": [
{
"targeting_segment_id": 33,
"user_cpm": 0.1
}
]
}
},
"audience_groups": {
"include": [
{
"operator": "AND",
"segment_groups": [
{
"segment_group_id": 43
}
]
}
],
"exclude": {}
},
"contextual_groups": {
"include": [
{
"operator": "AND",
"segment_groups": [
{
"segment_group_id": 43
}
]
}
],
"exclude": {}
},
"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": {
"operator": "AND",
"segments": [
{
"geofence_segment_id": 45,
"geofence_segment_factual_id": "string"
}
]
},
"exclude": {
"operator": "AND",
"segments": [
{
"geofence_segment_id": 45,
"geofence_segment_factual_id": "string"
}
]
}
},
"my_data": {
"include": {
"operator": "AND",
"pixels": [
{
"pixel_id": 65
}
]
},
"exclude": {
"operator": "AND",
"pixels": [
{
"pixel_id": 65
}
]
}
},
"location": {
"include": [
{
"operator": "AND",
"target_value_id": 87,
"code": "DMAX"
}
],
"exclude": [
{
"operator": "AND",
"target_value_id": 87,
"code": "DMAX"
}
]
},
"technology": {
"include": [
{
"operator": "AND",
"code": "BSER",
"target_value_id": 77
}
],
"exclude": [
{
"operator": "AND",
"code": "BSER",
"target_value_id": 77
}
]
},
"ip_addresses": {
"restriction": "INCLUDE",
"codes": [
"string"
]
},
"day_parts": [
{
"user_time": true,
"start_hour": 1,
"end_hour": 5,
"days": [
"M",
"T",
"W",
"S",
"U"
]
}
],
"recency": [
{
"pixel_id": 55,
"from_hour": 5,
"to_hour": 7
}
],
"language_codes": [
"string"
]
}
}'{ "data": { "inherited_mfa_avoidance": "INHERIT", "inherited_mfa_from": "Organization", "campaign_name": "string", "campaign_start_date": "2019-08-24T14:15:22Z", "campaign_end_date": "2019-08-24T14:15:22Z", "campaign_zone_name": "string", "campaign_service_type": "string", "campaign_goal_type": "string", "campaign_goal_value": 0.1, "campaign_merit_pixel_id": 0, "viewability": { … }, "name": "string", "description": "string", "status": true, "archived": false, "is_programmatic_guaranteed": false, "media_type": "DISPLAY", "use_optimization": true, "ads_txt_verified": "ANY", "type": "REM", "feature_compatibility": "string", "device_graph_only": true, "mfa_avoidance": "INHERIT", "zone_name": "America/New_York", "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "duration": { … }, "budget": { … }, "frequency": { … }, "concepts": { … }, "groups": [ … ], "version": 2, "goals": { … }, "inventory": { … }, "pacing": { … }, "id": 0, "campaign_id": 0, "targeting": { … } }, "meta": { "status": "success" } }
Get related property in response
Number of elements in the collection to retrieve
Index of the first element in the collection to retrieve
The field to sort by. You can use any field name in ascending or descending order. For ascending order, use the field name directly, e.g., id. For descending order, prefix the field name with a hyphen (-), e.g., -id.
Query search for filtering. This parameter can be used to filter results based on various fields. Supported operators:
==- numeric equality or case-sensitive string identity,==(1,2,3)- IN query (only works for integers),!=- numeric inequality or case-sensitive string non-identity,=:- case-insensitive match, allows substring using * wildcards,<- less than,<=- less than or equal to,>- greater than,>=- greater than or equal to. Examples:q=name=:{search}*to find all results with names starting with {search}.q=status==trueto find all active entities.q=id>=1000to find all entities with id greater than or equal to 1000.q=id==(1,2,3)to find specific entities by ID.q=created_on>1999-02-02orq=created_on>1999-02-02T00:00:00Zto find entities created later than date.q=id>5&status==trueto find all active entities with id greater than 5.
To return all fields, set the value to *. For example, full=* will include all properties.
If provided and true only strategies with start_date < now and end_date > now will be returned. Default value is false. If use_campaign_start = true campaign.start_date will be used instead of one from strategy. If use_campaign_end = true campaign.end_date will be used instead of one from strategy.
- Live Serverhttps://api.mediamath.com/api/v3.0/strategies
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/strategies?with=technology&page_limit=100&page_offset=0&sort_by=id%2C+-id%2C+name%2C+-name&q=string&extended=true&full=*&live_only=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/strategies/{strategy_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.mediamath.com/api/v3.0/strategies/{strategy_id}?extended=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"description": "string",
"status": true,
"archived": false,
"media_type": "DISPLAY",
"use_optimization": true,
"ads_txt_verified": "ANY",
"type": "REM",
"feature_compatibility": "string",
"device_graph_only": true,
"mfa_avoidance": "INHERIT",
"duration": {
"use_campaign_start": true,
"use_campaign_end": true,
"start_date": "2019-08-24T14:15:22Z",
"end_date": "2019-08-24T14:15:22Z"
},
"budget": {
"budget": 0.1,
"currency_code": "string",
"margin_pct": 9999999.9999
},
"frequency": {
"frequency_type": "even",
"frequency_interval": "hour",
"frequency_amount": 345,
"frequency_optimization": true
},
"concepts": {
"weighting": "NONE",
"creative_groups": [
{
"concept_id": 0,
"percent": 0
}
]
},
"groups": [
"string"
],
"version": 2,
"goals": {
"goal_type": "spend",
"goal_value": 999999999.9999,
"min_bid": 9999999.99,
"max_bid": 0.01,
"roi_target": 999999999.99,
"bid_min_devices": 1,
"bid_aggressiveness": 100,
"bid_price_is_media_only": true,
"max_bid_wm": 9999999.99,
"use_bid_shading": true,
"flat_rate_cpm": 0.01
},
"inventory": {
"supply_type": "RTB",
"run_on_all_pmp": true,
"run_on_all_exchanges": true,
"site_restriction_transparent_urls": true,
"domain_restrictions": {
"include": [
{
"domain": "www.mediamath.com",
"target_type": "DOMAIN"
}
],
"exclude": [
{
"domain": "www.mediamath.com",
"target_type": "DOMAIN"
}
]
},
"site_lists": [
{
"site_list_id": 32,
"assigned": true
}
],
"deals": [
{
"deal_id": 8
}
],
"deal_groups": [
{
"deal_group_id": 9
}
],
"supply_sources": [
{
"supply_source_id": 54
}
]
},
"pacing": {
"impression_pacing_type": "even",
"impression_pacing_amount": 23,
"impression_pacing_interval": "hour",
"pacing_type": "even",
"pacing_amount": 0.01,
"pacing_interval": "hour",
"pacing_optimization_type": "monetary",
"pacing_optimization_amount": 9999999.99,
"use_dba_strategy_pacing": "always",
"use_dba_strategy_pacing_after_date": "2019-08-24"
},
"targeting": {
"fold_position": [
"ABOVE"
],
"audience": {
"include": [
{
"operator": "AND",
"segments": [
{
"audience_segment_id": 24,
"user_cpm": 0.1
}
]
}
],
"exclude": {
"operator": "AND",
"segments": [
{
"audience_segment_id": 24,
"user_cpm": 0.1
}
]
}
},
"contextual": {
"include": [
{
"code": "string",
"operator": "AND",
"segments": [
{
"targeting_segment_id": 33,
"user_cpm": 0.1
}
]
}
],
"exclude": {
"code": "string",
"operator": "AND",
"segments": [
{
"targeting_segment_id": 33,
"user_cpm": 0.1
}
]
}
},
"audience_groups": {
"include": [
{
"operator": "AND",
"segment_groups": [
{
"segment_group_id": 43
}
]
}
],
"exclude": {}
},
"contextual_groups": {
"include": [
{
"operator": "AND",
"segment_groups": [
{
"segment_group_id": 43
}
]
}
],
"exclude": {}
},
"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": {
"operator": "AND",
"segments": [
{
"geofence_segment_id": 45,
"geofence_segment_factual_id": "string"
}
]
},
"exclude": {
"operator": "AND",
"segments": [
{
"geofence_segment_id": 45,
"geofence_segment_factual_id": "string"
}
]
}
},
"my_data": {
"include": {
"operator": "AND",
"pixels": [
{
"pixel_id": 65
}
]
},
"exclude": {
"operator": "AND",
"pixels": [
{
"pixel_id": 65
}
]
}
},
"location": {
"include": [
{
"operator": "AND",
"target_value_id": 87,
"code": "DMAX"
}
],
"exclude": [
{
"operator": "AND",
"target_value_id": 87,
"code": "DMAX"
}
]
},
"technology": {
"include": [
{
"operator": "AND",
"code": "BSER",
"target_value_id": 77
}
],
"exclude": [
{
"operator": "AND",
"code": "BSER",
"target_value_id": 77
}
]
},
"ip_addresses": {
"restriction": "INCLUDE",
"codes": [
"string"
]
},
"day_parts": [
{
"user_time": true,
"start_hour": 1,
"end_hour": 5,
"days": [
"M",
"T",
"W",
"S",
"U"
]
}
],
"recency": [
{
"pixel_id": 55,
"from_hour": 5,
"to_hour": 7
}
],
"language_codes": [
"string"
]
}
}'{ "data": { "inherited_mfa_avoidance": "INHERIT", "inherited_mfa_from": "Organization", "campaign_name": "string", "campaign_start_date": "2019-08-24T14:15:22Z", "campaign_end_date": "2019-08-24T14:15:22Z", "campaign_zone_name": "string", "campaign_service_type": "string", "campaign_goal_type": "string", "campaign_goal_value": 0.1, "campaign_merit_pixel_id": 0, "viewability": { … }, "name": "string", "description": "string", "status": true, "archived": false, "is_programmatic_guaranteed": false, "media_type": "DISPLAY", "use_optimization": true, "ads_txt_verified": "ANY", "type": "REM", "feature_compatibility": "string", "device_graph_only": true, "mfa_avoidance": "INHERIT", "zone_name": "America/New_York", "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "duration": { … }, "budget": { … }, "frequency": { … }, "concepts": { … }, "groups": [ … ], "version": 2, "goals": { … }, "inventory": { … }, "pacing": { … }, "id": 0, "campaign_id": 0, "targeting": { … } }, "meta": { "status": "success" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/strategies/{strategy_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/strategies/{strategy_id}?extended=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": { "inherited_mfa_avoidance": "INHERIT", "inherited_mfa_from": "Organization", "campaign_name": "string", "campaign_start_date": "2019-08-24T14:15:22Z", "campaign_end_date": "2019-08-24T14:15:22Z", "campaign_zone_name": "string", "campaign_service_type": "string", "campaign_goal_type": "string", "campaign_goal_value": 0.1, "campaign_merit_pixel_id": 0, "viewability": { … }, "name": "string", "description": "string", "status": true, "archived": false, "is_programmatic_guaranteed": false, "media_type": "DISPLAY", "use_optimization": true, "ads_txt_verified": "ANY", "type": "REM", "feature_compatibility": "string", "device_graph_only": true, "mfa_avoidance": "INHERIT", "zone_name": "America/New_York", "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "duration": { … }, "budget": { … }, "frequency": { … }, "concepts": { … }, "groups": [ … ], "version": 2, "goals": { … }, "inventory": { … }, "pacing": { … }, "id": 0, "campaign_id": 0, "targeting": { … } }, "meta": { "status": "success" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/strategies/{strategy_id}/copy
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.mediamath.com/api/v3.0/strategies/{strategy_id}/copy' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"status": true,
"name": "string",
"duration": {
"start_date": "2019-08-24T14:15:22Z",
"copy_use_campaign_start": true,
"end_date": "2019-08-24T14:15:22Z",
"copy_use_campaign_end": true
},
"targeting": {
"copy_geofence": true,
"copy_contextual": true,
"copy_audience": true,
"copy_technology": true,
"copy_my_data": true,
"copy_location": true,
"copy_day_parts": true,
"copy_postal_codes": true,
"copy_audio_video": true,
"copy_ip_addresses": true,
"copy_fold_position": true
},
"inventory": {
"copy_supply": true,
"copy_site_lists": true,
"copy_supply_controls": true
},
"concepts": {
"copy_creative_groups": true
}
}'{ "data": { "inherited_mfa_avoidance": "INHERIT", "inherited_mfa_from": "Organization", "campaign_name": "string", "campaign_start_date": "2019-08-24T14:15:22Z", "campaign_end_date": "2019-08-24T14:15:22Z", "campaign_zone_name": "string", "campaign_service_type": "string", "campaign_goal_type": "string", "campaign_goal_value": 0.1, "campaign_merit_pixel_id": 0, "viewability": { … }, "name": "string", "description": "string", "status": true, "archived": false, "is_programmatic_guaranteed": false, "media_type": "DISPLAY", "use_optimization": true, "ads_txt_verified": "ANY", "type": "REM", "feature_compatibility": "string", "device_graph_only": true, "mfa_avoidance": "INHERIT", "zone_name": "America/New_York", "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "duration": { … }, "budget": { … }, "frequency": { … }, "concepts": { … }, "groups": [ … ], "version": 2, "goals": { … }, "inventory": { … }, "pacing": { … }, "id": 0, "campaign_id": 0, "targeting": { … } }, "meta": { "status": "success" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/strategies/{strategy_id}/friendly_names
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/strategies/{strategy_id}/friendly_names' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/strategies/{strategy_id}/forecast_query
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/strategies/{strategy_id}/forecast_query' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": { "expression": "string", "freqCap": 0, "freqDur": "hour", "maxSpend": 0.1, "maxCPM": 0.1 }, "meta": { "status": "success" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/strategies/{strategy_id}/targeting_expression
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/strategies/{strategy_id}/targeting_expression?include_inactive=false' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": { "expression": "string" }, "meta": { "status": "success" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/strategies/{strategy_id}/history
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/strategies/{strategy_id}/history?page_limit=100&page_offset=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/bulk_update/strategies
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.mediamath.com/api/v3.0/bulk_update/strategies \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"update": [
{
"id": 23,
"name": "string",
"description": "string",
"status": true,
"archived": false,
"media_type": "DISPLAY",
"use_optimization": true,
"ads_txt_verified": "ANY",
"type": "REM",
"feature_compatibility": "string",
"device_graph_only": true,
"mfa_avoidance": "INHERIT",
"duration": {
"use_campaign_start": true,
"use_campaign_end": true,
"start_date": "2019-08-24T14:15:22Z",
"end_date": "2019-08-24T14:15:22Z"
},
"budget": {
"budget": 0.1,
"currency_code": "string",
"margin_pct": 9999999.9999
},
"frequency": {
"frequency_type": "even",
"frequency_interval": "hour",
"frequency_amount": 345,
"frequency_optimization": true
},
"concepts": {
"weighting": "NONE",
"creative_groups": [
{
"concept_id": 0,
"percent": 0
}
]
},
"groups": [
"string"
],
"version": 2,
"goals": {
"goal_type": "spend",
"goal_value": 999999999.9999,
"min_bid": 9999999.99,
"max_bid": 0.01,
"roi_target": 999999999.99,
"bid_min_devices": 1,
"bid_aggressiveness": 100,
"bid_price_is_media_only": true,
"max_bid_wm": 9999999.99,
"use_bid_shading": true,
"flat_rate_cpm": 0.01
},
"inventory": {
"supply_type": "RTB",
"run_on_all_pmp": true,
"run_on_all_exchanges": true,
"site_restriction_transparent_urls": true,
"domain_restrictions": {
"include": [
{
"domain": "www.mediamath.com",
"target_type": "DOMAIN"
}
],
"exclude": [
{
"domain": "www.mediamath.com",
"target_type": "DOMAIN"
}
]
},
"site_lists": [
{
"site_list_id": 32,
"assigned": true
}
],
"deals": [
{
"deal_id": 8
}
],
"deal_groups": [
{
"deal_group_id": 9
}
],
"supply_sources": [
{
"supply_source_id": 54
}
]
},
"pacing": {
"impression_pacing_type": "even",
"impression_pacing_amount": 23,
"impression_pacing_interval": "hour",
"pacing_type": "even",
"pacing_amount": 0.01,
"pacing_interval": "hour",
"pacing_optimization_type": "monetary",
"pacing_optimization_amount": 9999999.99,
"use_dba_strategy_pacing": "always",
"use_dba_strategy_pacing_after_date": "2019-08-24"
},
"targeting": {
"fold_position": [
"ABOVE"
],
"audience": {
"include": [
{
"operator": "AND",
"segments": [
null
]
}
],
"exclude": {
"operator": "AND",
"segments": [
{}
]
}
},
"contextual": {
"include": [
{
"code": "string",
"operator": "AND",
"segments": [
null
]
}
],
"exclude": {
"code": "string",
"operator": "AND",
"segments": [
{}
]
}
},
"audience_groups": {
"include": [
{
"operator": "AND",
"segment_groups": [
{}
]
}
],
"exclude": {}
},
"contextual_groups": {
"include": [
{
"operator": "AND",
"segment_groups": [
{}
]
}
],
"exclude": {}
},
"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": {
"operator": "AND",
"segments": [
{}
]
},
"exclude": {
"operator": "AND",
"segments": [
{}
]
}
},
"my_data": {
"include": {
"operator": "AND",
"pixels": [
{}
]
},
"exclude": {
"operator": "AND",
"pixels": [
{}
]
}
},
"location": {
"include": [
{
"operator": "AND",
"target_value_id": 87,
"code": "DMAX"
}
],
"exclude": [
{
"operator": "AND",
"target_value_id": 87,
"code": "DMAX"
}
]
},
"technology": {
"include": [
{
"operator": "AND",
"code": "BSER",
"target_value_id": 77
}
],
"exclude": [
{
"operator": "AND",
"code": "BSER",
"target_value_id": 77
}
]
},
"ip_addresses": {
"restriction": "INCLUDE",
"codes": [
"string"
]
},
"day_parts": [
{
"user_time": true,
"start_hour": 1,
"end_hour": 5,
"days": [
"M",
"T",
"W",
"S",
"U"
]
}
],
"recency": [
{
"pixel_id": 55,
"from_hour": 5,
"to_hour": 7
}
],
"language_codes": [
"string"
]
}
}
]
}'{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }
Number of elements in the collection to retrieve
Index of the first element in the collection to retrieve
The field to sort by. You can use any field name in ascending or descending order. For ascending order, use the field name directly, e.g., id. For descending order, prefix the field name with a hyphen (-), e.g., -id.
Query search for filtering. This parameter can be used to filter results based on various fields. Supported operators:
==- numeric equality or case-sensitive string identity,==(1,2,3)- IN query (only works for integers),!=- numeric inequality or case-sensitive string non-identity,=:- case-insensitive match, allows substring using * wildcards,<- less than,<=- less than or equal to,>- greater than,>=- greater than or equal to. Examples:q=name=:{search}*to find all results with names starting with {search}.q=status==trueto find all active entities.q=id>=1000to find all entities with id greater than or equal to 1000.q=id==(1,2,3)to find specific entities by ID.q=created_on>1999-02-02orq=created_on>1999-02-02T00:00:00Zto find entities created later than date.q=id>5&status==trueto find all active entities with id greater than 5.
- Live Serverhttps://api.mediamath.com/api/v3.0/strategies/{strategy_id}/permissions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/strategies/{strategy_id}/permissions?page_limit=100&page_offset=0&sort_by=id%2C+-id%2C+name%2C+-name&q=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/audit_log/strategies
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.mediamath.com/api/v3.0/audit_log/strategies?page_limit=100&page_offset=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": [
8,
98,
7
]
}'{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }