Important
We've released Seller Deals v2 API, which supports Google DV360 Buyer IDs and the latest DV360 deal synchronization workflow. As a result, we're deprecating Seller Deals v1 API, with the removal date set for May 1, 2027. Please review and follow the Seller Deals v2 —Migration Guide to migrate to the new API version before the removal date.
A deal is an agreement between a publisher and an advertiser to sell a publisher's inventory for a negotiated price through programmatic advertising. Publishers can create deals that meet specific buyer needs. These deals can include selected or exclusive inventory, specific audience targeting, formats, or pricing. Publishers can also set up public deals that are available to any buyer that uses Adform DSP or external DSP partners.
Tip
For more information about deals, see Learn About Deals in Adform SSP.
After you've created a publisher, placements, and creative settings, you can create deals to start selling your inventory.
With Seller Deals API, you can create preferred, private auction, and programmatic guaranteed deals. You can also update the settings of each deal and retrieve deal details.
To authenticate and use Adform APIs, your user account must have the necessary permissions and your OAuth client must have the required scopes assigned to it.
To create a deal, Adform SSP user account must have these permissions assigned by the business account admin:
-
Manage Deals
-
View Publishers & Placements
Depending on your objectives and workflow, you'll need some or all of the following scopes assigned to your OAuth client by Adform Support (technical@adform.com):
-
https://api.adform.com/scope/seller.deals: Grants access to Seller Deals API. -
https://api.adform.com/scope/api.placements.read: Grants access to Placements API. -
https://api.adform.com/scope/seller.buyers: Grants access to Seller Buyers API. -
https://api.adform.com/scope/dmp.dataproviders.readonly: Grants access to DataProvider section of the Data Management Platform API. This is needed only if you have a DMP account linked to your SSP account and you want to target specific audiences with your deals. -
https://api.adform.com/scope/dmp.categories.readonly: Grants access to Category section of the Data Management Platform API. This is needed only if you have a DMP account linked to your SSP account and you want to target specific audiences with your deals. -
http://api.adform.com/scope/dmp.segments.readonly: Grants access to Segment section of the Data Management Platform API. This is needed only if you have a DMP account linked to your SSP account and you want to target specific audiences with your deals.
Tip
If you don't have an OAuth client yet, follow the procedure in Get Authentication Credentials for Adform APIs to register one.
To set up a deal with API, you must use the following IDs in your requests:
|
ID |
Used To |
Retrieve From |
|---|---|---|
|
|
Specify the placement for which the deal is set up |
|
|
|
Specify the creative settings assigned to the placement ImportantIf your placements have creative settings assigned to them, the Placements API call returns both the placement IDs and their creative settings IDs. |
|
|
|
Specify the DSPs to target in the deal NoteAdform is the only demand partner supported for programmatic guaranteed deals. The ID of Adform's DSP is |
|
|
|
Specify the agencies within Adform DSP to target in the deal |
|
|
|
Specify the DMP data provider to use for deal targeting Use only if you have a DMP account linked to your SSP account and you want to target specific audiences with your deals NoteTo link a DMP account with an SSP account, reach out to Publishers Support (publishers@adform.com). |
DataProvider section in Data Management Platform API |
|
|
Specify the DMP category to use for deal targeting Use only if you have a DMP account linked to your SSP account and you want to target specific audiences with your deals |
Category section in Data Management Platform API |
|
|
Specify the DMP audience to use for deal targeting Use only if you have a DMP account linked to your SSP account and you want to target specific audiences with your deals |
Segment section in Data Management Platform API |
Note
Additional IDs might be used, but the listed ones are required to pass a request.
After you've created a placement and assigned creative settings to it, you can continue with creating a deal.
To create a deal using Seller Deals API, you need to complete these steps:
To create a new deal, use the POST endpoint in the Seller Deals API. Depending on the deal type that you want to create, you need to set up specific deal settings for priority, price, and buyers.
To create a private auction, preferred, or programmatic guaranteed deal, set up your deal settings as shown:
|
Parameter Name |
Values for Private Auction Deal |
Values for Preferred Deal |
Values for Programmatic Guaranteed Deal |
|---|---|---|---|
|
|
|
|
|
|
|
|
1 to 9 |
|
|
|
Deal floor price |
Fixed CPM price |
Fixed CPM price |
|
|
|
|
|
|
|
To target all demand partners, set the To target selected demand partners, set the |
To target all demand partners, set the To target selected demand partners, set the |
Set the ImportantCurrently, Adform DSP is the only demand partner supported for programmatic guaranteed deals. |
|
|
Agency settings depend on the selection of demand partners:
|
Agency settings depend on the selection of demand partners:
|
To target all agencies, set the To target selected agencies, set the |
See the parameter list for more information about the required and optional parameters.
Tip
To learn how to use Adform APIs, read the Guide to Using Adform APIs.
Seller Deals API provides separate endpoints to update:
If you need to update the entire deal or a placement, you must use the endpoint for all deal details.
To update all deal details, use the PUT endpoint in the Seller Deals API.
Note
Replace the {dealid} part in the endpoint with the ID of the deal that you want to update.
See the parameter list for more information about the required and optional parameters.
All deals must include general deal settings as well as information about fees, availability, placements, and targeting. For all types of deals, you must define the following parameters:
General Deal Settings
|
Parameter Name |
Scope |
Description |
Enum or Example Values |
Type |
|---|---|---|---|---|
|
|
Optional |
Deal ID can be custom or automatically generated. Requirements for custom deal ID:
For Adform to generate a deal ID automatically, set the |
|
String |
|
|
Required |
Name can contain a maximum of 255 characters including spaces. |
|
String |
|
|
Required |
Deal priority type defines the way Adform ranks bids in auctions:
|
|
String |
|
|
Required |
Level defines the priority of a deal in relation to other deals. You must define the level only for Priority level values range from 1 to 9, with 1 being lowest priority and 9 being highest priority. For |
|
Integer |
|
|
Required |
Value defines the price of the deal. Depending on the deal price type, value can be fixed CPM or deal floor price. Value must be a number between 0.01 and 999999999.99. Adform uses the currency selected in your SSP account settings. |
|
Number |
|
|
Required |
Type defines the price type of the deal:
|
|
String |
|
|
Optional |
Demand partner IDs define which demand partners can buy the inventory sold through the deal. List demand partner IDs if |
|
Integer |
|
|
Required |
This parameter defines whether all demand partners can buy the inventory sold through the deal. |
|
Boolean |
|
|
Optional |
Agency IDs define which agencies belonging to Adform DSP can buy the inventory sold through the deal. ImportantYou can add agency IDs only if you've included Adform DSP as a demand partner in List agency IDs if |
|
Integer |
|
|
Required |
This parameter defines whether all agencies belonging to Adform DSP can buy the inventory sold through the deal. |
|
Boolean |
|
|
Required |
This parameter defines whether advertiser access rules set on the inventory should be bypassed. |
|
Boolean |
|
|
Required |
Status defines the status of the deal:
When deal status is NoteOnly accepted deals will be available for buyers in Adform DSP. |
|
String |
Deal Custom Fees
|
Parameter Name |
Scope |
Description |
Enum or Example Values |
Type |
|---|---|---|---|---|
|
|
Required |
Type defines the fee type of the deal:
|
|
String |
|
|
Required |
Value defines the deal fee. For fixed CPM fee deals, value is the amount deducted from the bid. For revenue share fee deals, value is the percentage deducted from the bid. For fixed CPM fee deals, value must be a number between 0.01 and 999999999.99. For revenue share fee deals, value must be a number between 0.001 and 100. |
|
Number |
|
|
Required |
This parameter defines whether the deal fee should override the publisher fee. |
|
Boolean |
Deal Availability
|
Parameter Name |
Scope |
Description |
Enum or Example Values |
Type |
|---|---|---|---|---|
|
|
Required |
|
|
String |
|
|
Optional |
|
|
String |
|
|
Required |
Type defines the time period over which impressions are counted. If impression count isn't relevant for your deal, set the |
|
String |
|
|
Required |
Count defines the number of estimated impressions during the time period provided in |
|
Integer |
|
|
Optional |
Terms and conditions define any additional information to be included in the deal. Terms and conditions can contain a maximum of 65,535 characters including spaces. If no terms and conditions apply to the deal, set the |
String |
Deal Placements
|
Parameter Name |
Scope |
Description |
Enum or Example Values |
Type |
|---|---|---|---|---|
|
|
Required |
Placement IDs define which placements are available through the deal. Deals without placements can't be activated. |
|
Integer |
|
|
Optional |
Creative settings define the formats and dimensions of ad templates assigned to placements. NoteUse this parameter to limit the placement creative settings available through the deal, not to extend the list of creative settings assigned to specific placements. |
|
Integer |
Inventory Targeting
|
Parameter Name |
Scope |
Description |
Enum or Example Values |
Type |
|---|---|---|---|---|
|
|
Required |
Data provider ID defines the DMP account that is linked to the SSP account. If SSP account doesn't have a linked DMP account, set the |
|
Integer |
|
|
Required |
Category ID defines the categories of the linked DMP account that can be targeted. You can set a maximum of 10 DMP targeting rules on a deal. If SSP account doesn't have a linked DMP account, set the |
|
Integer |
|
|
Required |
Segments define the specific audiences in the categories of the linked DMP account that can be targeted. You can set a maximum of 10 DMP targeting rules on a deal. If SSP account doesn't have a linked DMP account, set the |
|
Integer |
|
|
Required |
This parameter defines whether all key-value pairs and all keywords must be included in the impression. |
|
Boolean |
|
|
Required |
Matching defines the matching type for key-value pairs and keywords. |
|
String |
|
|
Required |
If no key-value pair targeting rules apply to the deal, set the |
|
String |
|
|
Required |
If no key-value pair targeting rules apply to the deal, set the |
|
String |
|
|
Required |
If no keyword targeting rules apply to the deal, set the |
|
String |