Time to read: 7 min
The article covers the following topics:
First of all, to get started with API, you need to find your API-key. To do it, just navigate to the 'Users' Tab - > 'Users management' -> 'User edit page':
Only the General manager has permission to get the 'User edit page'.
Next thing you need is API URL, you can find it in 'Settings' Tab -> 'Settings' -> 'Tracking domains' -> 'URLs' section:
Find out more about where you can find your/Affiliate's API-key and API URL here.
API Request Structure: GET/POST + api domain + path + ? + api-key=189471975956279174174.
It should be noted that header content-type - application/x-www-form-urlencoded is used on an ongoing basis.
How to check the targeting settings in the Offer?
In case you want to check the targeting settings in the Offer you can create a click with a specific IP via API. Below you will find instructions on how to create a click with a specific IP.
First, you need is to generate an Affise Tracking URL in the Offer preview page. Go to the Admin panel - > 'Offers' section - > Choose needed Offer - > Generate Affise Tracking URL:
Next, you need to use Postman or another API Client App. Make new GET-request with next headers:
User-Agent: put here needed User Agent
x-forwarded-for: put here needed IP adress
You can use any free Internet resource to find User-Agent and IP address.
Your new GET request should look like this:
curl --location --request GET 'https://rocketcompany.g2afse.com/click?pid=2&offer_id=132141&format=json' \
--header 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1' \
--header 'x-forwarded-for: 188.8.131.52'
You may also find the following articles helpful:
- Getting started
- Setting API Integration with Affiliate
- How to create an offer via API?
- How to use Statistics methods?
If you have more questions on how to create a click with a specific IP, feel free to contact the Affise Support Team via email@example.com or your Dedicated Account Manager.
Written by Anastasia Deryugina