Eric Nagel

Eric Nagel

CTO, PHP Programmer, Affiliate Marketer & IT Consultant

Google Affiliate Network API PHP Script

Google Affiliate Network

I was excited when I read Google had released an API for their Affiliate Network, as I wanted to automate pulling sales data from GAN. But I quickly became disheartened when I realized how difficult it is to use.

Since this was for myself, and not a web-based service that would be used by others, the Simple API method of authorization was good enough. After getting it to work with Picasa, but not GAN, I asked for some help and was introduced to the OAuth 2.0 Playground. This showed me the headers I’d need to send, and how OAuth 2.0 works.

For the record: the Google Affiliate Network API does NOT support Simple API Access. You cannot access the service with an API Key and IP locking.

I now have a working script, and have written up step-by-step instructions on how you can pull orders from GAN automatically each day.

This script is not complete, as it’s up to you to do something with the data once you have it. You can also modify the final call to pull advertisers, instead of orders.

Read More

Adding Microformatted Breadcrumbs to Thesis

I received an email the other day asking how I added my breadcrumbs to my Thesis site.

On the site, they look like this:

Microformat Breadcrumbs
Microformat Breadcrumbs

But in the search results, they appear like this:

Thesis RDF Breadcrumbs
Breadcrumbs in Search Results

In the search results, the title is linked to the blog post, while the category is linked to the category page.

Here’s how I do it in Thesis

Read More

From New Merchant to List of Opportunities

I saw a new merchant come across ShareASale today: Online Amish Furniture. I probably only looked at them because I found it funny that the Amish are selling online…

And yes, I know this site has leaks all over it. As an affiliate, part of your job is to educate the merchant (or point them to an OPM or some Merchant Affiliate Program Training)

But what was interesting were the links at the bottom of their site

Online Amish Furniture categories
Online Amish Furniture categories

These just screamed at me: Exact-Match Domains!

Read More