List the Deals
Comma-separated list of organization IDs to filter deals by. Returns deals permissioned to at least one of the specified organizations (OR within this parameter). If combined with permissions.agency_ids or permissions.advertiser_ids, a deal must match at least one ID from each provided parameter (AND between parameters). Users may only request IDs they have access to; unauthorized IDs return 400.
Comma-separated list of agency IDs to filter deals by. Returns deals permissioned to at least one of the specified agencies (OR within this parameter). If combined with permissions.organization_ids or permissions.advertiser_ids, a deal must match at least one ID from each provided parameter (AND between parameters). Users may only request IDs they have access to; unauthorized IDs return 400.
Comma-separated list of advertiser IDs to filter deals by. Returns deals permissioned to at least one of the specified advertisers (OR within this parameter). If combined with permissions.organization_ids or permissions.agency_ids, a deal must match at least one ID from each provided parameter (AND between parameters). Users may only request IDs they have access to; unauthorized IDs return 400.
- https://api.mediamath.com/deals/v1.0https://api.mediamath.com/deals/v1.0/deals
curl -i -X GET \
'https://api.mediamath.com/deals/v1.0/deals?ids=string&export=string&deal_type=string&q=string&sort_by=name&sort_dir=ASC&page_offset=string&page_limit=0¤cy_code=string&status=true&owner.type=ORGANIZATION&strategy_id=0&owner.advertiser_id=0&owner.agency_id=0&owner.organization_id=0&permissions.organization_ids=string&permissions.agency_ids=string&permissions.advertiser_ids=string&time_window=last_7_days' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "data": [ { … } ], "meta": { "count": 0, "offset": 0, "status": "string", "total_count": 0 } }