I mentioned this script in a couple other threads in the CPA section and there seemed to be a fairly high interest in it, so I decided to make a new thread here so everyone can benefit from it.
Also, I did NOT write this script myself, I am simply posting it here and giving you some ideas on how to use it. Full credit for this script goes to agj32mrgibbits from this forum.
Basically, what this script allows you to do is to create a single ad on your advertising network while still letting you edit and rotate your offers. This also allows you to show the ad network a different page until your ad is approved - I know some people keep getting denied so this should help with that.
For example, if you are incentivizing non incent offers, your conversion rate is probably much higher than you would want it to be in order to stay safe, and this is where this script can help you especially if you need to do this for many offers.
Here are the instructions:
1. Save it as tracker.php or track.php or something that sounds like a traffic tracker.
2. Create a sites.txt in the same directory as the php file and enter ALL of your CPA offers you are using (one per line)
3. Upload them to your server, preferably your site's main directory.
4. When adding it to Findology make the URL be like "http://example.com/track.php?id=2932" so that it looks like you actually have tracking setup for a campaign.
5. Once Findology has approved your ad you can change $go=false; to $go=true; and re-upload it so that it will now show a random CPA offer from sites.txt instead of showing your website.
If this helps you out please show some love!
<?php
//once findology approves your ad set this to true and re-upload it
$go=false;
//fake website, could be your blog with the CPA offer links on it, make sure you have content
$site='http://www.example.com';
$sites=explode("\n",file_get_contents('sites.txt'));
$redirect = $sites[array_rand($sites)];
$aff_link = "$redirect";
if($go==true||$_REQUEST['trkid']==12){
if($_REQUEST['trkid']!=12){
echo '<meta http-equiv="refresh" content="0;url=track.php?trkid=12">';
}else{
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "" || strpos($referer,$_SERVER['HTTP_HOST'])) {
echo '<meta http-equiv="refresh" content="0;url='.$aff_link.'">';
}else{
echo '<meta http-equiv="refresh" content="0;url='.$site.'">';
}
}
}else{
echo '<meta http-equiv="refresh" content="0;url='.$site.'">';
}
?>