affCAFF Manager - Using Campaign Codes

Home
General Links
ONLINE MANUAL
General Sections
affCAFF Manager - The Basics
affCAFF Manager - Advanced
Campaign Codes
When you install affCAFF manager, you can put in default affiliate links for every property that you represent. This means that every item displayed for that property will use your affiliate link. However, there may be specific promotions set up that you want to use different campaign links for. Here is how you achieve that.

Add A Campaign Code To A Promotion
There are two extra parameters you add to your normal affCAFF call - "$params[itemID]" and "$params[overridelink]". The former is a numeric ID of the item you want to display while the latter is the affiliate (campaign) link you want to use for this item on this page.

The item ID is found in the yellow panel within the Data Generator installed with affCAFF. When you select a property in the dropdown menu, the latest data stream is shown and each item ID appears at the end of the description in grey. Simply use the number in the $params[itemID] (see below).

A typical call using a campaign code:
<?php
$params = array();
$mergeStreams = array();
$params[streamID] = "110000011"; // 32Red Casino
$params[maxitems] = "1";
$params[template] = "headlines_with_descriptions.inc";
$params[overridelink] = "http://www.anylink.com"; // Put your special affiliate link here
$params[itemID] = "00000000";
// get the item ID from the Data Generator
displayItems($params,$mergeStreams);
?>

Note that the "overridelink" will affect every item in this display, so you only show one promotion from one property - hence the use of the "ItemID". That will always ensure the right item is displayed. The link will ONLY be used for this item on this page - all other items for this property on other pages will use the default affiliate link you have specified in affCAFF Manager. Unless you do the above on other pages of course!



© Copyright, affCAFF.com @2008