Redirect visitors on the advertiser site. We provide three types of short links . One for cashback offers and merchants, one for products and another for online offers and vouchers
Short link for cashback offers and programs
| Name | Type | Description |
| uid | numeric | Your user id. Is automatically provided in the api responses |
| pid | numeric | Program id. Is automatically provided in the api responses |
| cid | numeric | Country id. Is automatically provided in the api responses |
| source | numeric | Source id. Call api get_sources to obtain a list of your sources . We will return this in the click report. |
| subid1 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid2 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid3 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid4 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid5 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| deep_link | string | An additional parameter you can pass to the end of the short link to redirect the user to a certain page from the advertiser website . The url passed on the deep link parameter must be a valid link according with (http://www.faqs.org/rfcs/rfc2396) and must be urlencoded ! . See supported networks |
| sm_urlid | string | An additional parameter you can pass to the short link to specify the campaign_id (Available only for the Sales Media partner) . |
| sm_source | string | An additional parameter you can pass to the short link which allows affiliates to group and filter statistics in pairs (Available only for the Sales Media partner) . |
|
https://synced.io/visit/p?uid=xx&pid=xx&cid=xx&subid1=xx&
deep_link=http%3A%2F%2Fwww.agora.net.gr%2Findex.php%3Foption
Supported Networks(Deep Linking functionality networks) ! Check here |
||
Short link for online offers and vouchers
| Name | Type | Description |
| uid | numeric | Your user id. Is automatically provided in the api responses |
| oid | numeric | Offer id. Is automatically provided in the api responses |
| cid | numeric | Country id. Is automatically provided in the api responses |
| source | numeric | Source id. Call api get_sources to obtain a list of your sources . We will return this in the click report. |
| subid1 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid2 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid3 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid4 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid5 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| sm_urlid | string | An additional parameter you can pass to the short link to specify the campaign_id (Available only for the Sales Media partner) . |
| sm_source | string | An additional parameter you can pass to the short link which allows affiliates to group and filter statistics in pairs (Available only for the Sales Media partner) . |
|
https://synced.io/visit/o?uid=xx&oid=xx&cid=xx&subid1=xx
|
||
Short link for the products
| Name | Type | Description |
| uid | numeric | Your user id. Is automatically provided in the api responses |
| pid | numeric | The program id. Is automatically provided in the api responses |
| prodid | numeric | Product id. Is automatically provided in the api responses |
| cid | numeric | Country id. Is automatically provided in the api responses |
| source | numeric | Source id. Call api get_sources to obtain a list of your sources . We will return this in the click report. |
| subid1 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid2 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid3 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid4 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
| subid5 | string | An additional parameter you can pass to the short link to identify the click . We will return this in the click report . |
https://synced.io/visit/slp?uid=x&pid=xxxx&cid=xxx&prodid=xxxxx
|
<?php
$api_username = '*******';
$api_subscription = '*******';
$api_merchant_id = 0; // replace with your network id
$api_category_id = 0; // replace with your category id
$api_country_id = 221; // replace with your country id
$api_has_postback = 0; // set this to 1 to show only offers which support postback
$api_allow_cashback_sites = 'all'; // all - return all offers, allow - return only advertisers which allow cashback sites, not allow - return only advertisers which not allow cashback sites
$api_no_purchase = 0; // set this to 1 if you want to get only cashback offers which don't require a purchase
$api_source_id = 0; // replace with source id
$site_member_identify1 = 'identify1'; // replace with your identifier
$site_member_identify2 = 'identify2'; // replace with your identifier
try
{
$client = new SoapClient('https://synced.io/api/v2?wsdl');
$cashback_offers = $client->get_cashback_offers($api_username, $api_subscription, $api_merchant_id, $api_country_id, $api_has_postback, $api_allow_cashback_sites, $api_no_purchase );
}
catch(Exception $e)
{
echo $e->getMessage();
}
if(!empty($cashback_offers))
{
foreach($cashback_offers as $cashback_offer)
{
$affiliate_url = urldecode($cashback_offer->affiliate_url);
$affiliate_url .= '&source=' . $api_source_id . '&subid1=' . $site_member_identify1 . '&subid2=' . $site_member_identify2;
}
}
?>