To effectively manage domain targeting for your campaigns, you can create templates that specify which domains to include or exclude. Templates help you control which domains are allowed or blocked for your advertisers. You can reuse the same templates across multiple campaigns, saving time and making the targeting process more efficient.
Tip
For more information on when to use domain templates, see Use Domain Templates for RTB.
Once you create a domain template, you can proceed to set up inventory targeting for the programmatic line item by assigning the template to the line item.
With Templates API, you can create, update, and retrieve domain templates. To retrieve a list of domains to include in a template, you need to use an additional API.
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 domain template with API, Adform DSP and Ad Server user account must have this permission assigned by the business account admin:
-
Manage Templates Library
You also need the following scopes assigned to your OAuth client by Adform Support (technical@adform.com):
-
https://api.adform.com/scope/templates.domains: Grants access to Domains section of the Templates API. -
https://api.adform.com/scope/buyer.marketplace.inventories.readonly: Grants access to Inventory Marketplace API.
Tip
If you don't have an OAuth client yet, follow the procedure in Get Authentication Credentials for Adform APIs to register one.
Tip
To learn how to use Adform APIs, read Guide to Using Adform APIs.
To create a domain template with API, use these endpoints:
-
POST endpoint of InventoryMarketplace API: To retrieve a list of domains, which you can then add to a domain template.
-
POST endpoint of Domains section of Templates API: To create a domain template.
After you've created a domain template, you can assign it to a programmatic line item.