YieldKit provides a basic HTTP API to request commission terms of advertisers whit whom a publisher has an active relationship. Requests are made via an HTTP GET request in the form of:
http://api.yieldkit.com/v2/advertiser/terms[?parameters]
Commission terms Method
http://api.yieldkit.com/v2/advertiser/terms? api_key=<your api key>& api_secret=<your api secret>& site_id=<your site id>& advertiser_id=<advertiser id>
PARAMETERS:
Parameter | Description |
api_key / api_secret | Find your API Key / API secret on https://yieldkit.com/account under the API tab |
site_id | Find the Site ID of the website you want to check on https://yieldkit.com/account under the Your Sites tab |
advertiser_id (optional) | When supplied, it returns the commission terms for that specific advertiser. |
EXAMPLE:
Get all available commission terms:
http://api.yieldkit.com/v2/advertiser/terms? api_key=c5c2398597a6adcd9b149ad745f207f4& api_secret=74607007cdb6b0db4b3219c8adee3e09& site_id=51e8ee76e4b0dc18d49a4337
Get commission terms for an specific advertiser:
http://api.yieldkit.com/v2/advertiser/terms? advertiser_id=4ea3cc58e931b9e233fdd11f& api_key=c5c2398597a6adcd9b149ad745f207f4& api_secret=74607007cdb6b0db4b3219c8adee3e09& site_id=51e8ee76e4b0dc18d49a4337
SAMPLE RESPONSE CSV:
"id","advertiser_id","description","countries","value","value_type","currency","valid_to" "91b481dfd96ffc77affe6fc0960c166c","4ea3cc58e931b9e233fdd11f","VF VVL","DE","12.00","fixed","EUR","2014-05-03T00:00:00Z" "27a0b773e53a1ea09d79e6c0c6a7198b","4ea3cc58e931b9e233fdd11f","LTE 3600","DE","27.75","fixed","EUR","2014-05-03T00:00:00Z" "48a6d65249de4165212b137acf151ce0","4ea3cc58e931b9e233fdd11f","LTE 7200","DE","41.25","fixed","EUR","2014-05-03T00:00:00Z" "0191b37d3670c25aa549056c21575cbb","4ea3cc58e931b9e233fdd11f","LTE 21600","DE","56.25","fixed","EUR","2014-05-03T00:00:00Z" "710ab9010345022bacd8d5f2848d1b78","4ea3cc58e931b9e233fdd11f","LTE 50000","DE","66.75","fixed","EUR","2014-05-03T00:00:00Z" "9003ca8503d0206350ad8158def55568","4ea3cc58e931b9e233fdd11f","LTE 3600 Doppelflat","DE","30.75","fixed","EUR","2014-05-03T00:00:00Z"