- Update Deal
Update Deal
Note: The owner type and ID cannot be altered once the deal has been created.
Bill recipient when creating a deal
List of advertising channel IDs to associate with this deal (use GET /channels to see available channels)
[ 5, 4 ]
the identifier used within a bid request to reference the deal
When updating deal to type PG, price_type must be set to FIXED and valid start_datetime and end_datetime must be present.
string / timestamp as full RFC 3339 date strings including timezone offsets: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS-##:##
List of entities that are allowed to target this deal, which should be either the owner entity or sub-entities of the owner entity. if a higher-level entity is included, then do not include any lower-level entity that is part of the included higher level entity. for example, if an organization X is listed in this parameter, then automatically all agencies and advertisers that are part of the organization X will be included and listing any such agencies and advertisers part of organization X will cause a validation error.
The deal is a "FLOOR" price deal (bids must be above this floor, and will likely clear above this floor) or "FIXED" price deal (bids must be at this price or above, and will clear at the fixed price)
string / timestamp as full RFC 3339 date strings including timezone offsets: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS-##:##
the id of the publisher if the supply_source_id is set to 83 (BidSwitch)
- https://api.mediamath.com/deals/v1.0https://api.mediamath.com/deals/v1.0/deals/{id}
curl -i -X POST \
'https://api.mediamath.com/deals/v1.0/deals/{id}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-H 'Cookie: adama_session=<<sessionid>>' \
-d '{
"bill_type": "EXCHANGE",
"channels": [
5,
4
],
"deal_identifier": "string",
"deal_type": "PG",
"description": "string",
"end_datetime": "2019-08-24T14:15:22Z",
"name": "string",
"permissions": {
"advertiser_ids": [
0
],
"agency_ids": [
0
],
"all_organizations": true,
"organization_ids": [
0
]
},
"price": {
"currency_code": "str",
"value": "string"
},
"price_type": "FIXED",
"start_datetime": "2019-08-24T14:15:22Z",
"status": true,
"sub_supply_source_id": 0,
"supply_source_id": 0,
"publisher_id": 0
}'{ "data": { "bill_type": "EXCHANGE", "channels": [ … ], "created_on": "2019-08-24T14:15:22Z", "deal_identifier": "string", "deal_type": "PG", "description": "string", "end_datetime": "2019-08-24T14:15:22Z", "entity_type": "deal", "id": 0, "name": "string", "owner": { … }, "permissions": { … }, "price": { … }, "price_method": "CPM", "price_type": "FIXED", "start_datetime": "2019-08-24T14:15:22Z", "status": true, "sub_supply_source_id": 0, "supply_source_id": 0, "supply_source": { … }, "publisher_id": 0, "publisher": { … }, "strategies_count": 0, "organization_id": 0, "impressions": 0, "effective_status": "ready", "severity": 0, "deal_groups": [ … ], "updated_on": "2019-08-24T14:15:22Z", "has_strategies": true }, "meta": { "status": "string" } }