Skip to main content
All CollectionsAPI
Create BlackList and add a traffic source
Create BlackList and add a traffic source

How to create BlackList and add a traffic source by using API?

HilltopAds avatar
Written by HilltopAds
Updated over a week ago

Method: POST /advertiser/setBlackList

Description: You can create a BlackList for the advertising campaign created in the HilltopAds personal account and add the required traffic source to the BlackList.

Please note that there might be a delay of up to 1 hour in creating and updating the BlackList of traffic sources.

Parameters:

name

description

example

comment

key

A unique API key that you can generate in the API section of your HilltopAds account

nXzgO3Bc

This is a required parameter in the request.

campaignID

Advertising campaign ID for which you need to create a BlackList and add a source

123456

You can specify the ID of only one advertising campaign.

This is a required parameter in the request.

sourceID

Traffic source ID that needs to be added to the BlackList

789123

To add multiple sources, specify them separated by commas.

This is a required parameter in the request.


Request Example:

To create a BlackList for the advertising campaign with ID 123456 and add traffic sources with IDs 789123 and 789723 to the BlackList, you need to write the following request:

https://hilltopads.com/api/advertiser/setBlackList?key=nXzgO3Bc&sourceId=789123,789723&campaignId=123456


Did this answer your question?