Neverblue Email Notification Script

neverblue In the last few months I have been making extremely good money from promoting CPA offers from Neverblue and so I thought it would be worthwile writing a quick script to keep me from having to log into the site to check my statistics.

Neverblue has a feature called the Global Postback URL which they will ping every time a conversion is made and provide you with some details about the action. The most straight forward thing that I wanted to do was to convert that ping into an email. This works great for me since I’m only promoting the lower volume high profit items right now so I won’t get blasted with 100s of emails every day (I wish I had that problem).

Basically it’s a very simple PHP script that I put on my website. Here’s the neverblueemailer.php PHP script:

< ?php
$message = "Neverblue CPA Action Notification\n\n";
$message = $message. "affiliate_id:  " . $_GET["af"] . "\n";
$message = $message . "site_id:  " . $_GET["site"] . "\n";
$message = $message . "campaign_id:  " . $_GET["c"] . "\n";
$message = $message . "action_id:  " . $_GET["ac"] . "\n";
$message = $message . "subid:  " . $_GET["s"] . "\n";
$message = $message . "unique_conversion_id:  " . $_GET["u"] . "\n";
echo $message;
 
$to = 'me@example.com';
$subject = 'Neverblue CPA Action Notification';
$headers = "From: me@example.com\r\nReply-To: me@example.com";
$mail_sent = @mail( $to, $subject, $message, $headers );
echo $mail_sent ? "Mail sent" : "Mail failed";
?>

You just need to edit your email information.

With that file uploaded to your website you can then hook it up to neverblue. Simply login to your account and put the URL in the Tools -> Global Postback URL -> Enter Your Non Site Specific Global Postback URL section. Then click Save Changes.

neverbluepingback

The URL you need is going to be something like this:

http://www.yoursite.com/neverblueemailer.php?af={affiliate_id}&site={site_id}&c={campaign_id}&ac={action_id}&s={subid}&u={unique_conversion_id}

That’s it. Test it yourself by visiting the URL in your browser. You should immediately get an email in your inbox.

I cannot recommend neverblue enough. They have quickly become my biggest source of online revenue. It’s worth signing up for to give CPA a try.

Bookmark and Share

Technorati Tags: , , , , ,

Related posts:

  1. Meetup202 Sponsored by Neverblue
  2. Getting CPA statistics from Neverblue
  3. A Week of Adwords Testing – Recap
  4. Translating Text Using Google Translate and Python
  5. Development Frustrations with Google App Engine
Stumble it!


RSS feed | Trackback URI

2 Comments »

Comment by crisrosenbeiger
2009-09-05 07:27:38

Neverblue Email Notification Script | HalOtis Marketing http://bit.ly/1k5MPb

This comment was originally posted on Twitter

 
Comment by halotis
2009-09-09 10:01:06

Neverblue Email Notification Script – In the last few months I have been making extremely good money from promoting.. http://bit.ly/6xLd5

This comment was originally posted on Twitter

 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped=""> in your comment.

Additional comments powered by BackType