Eric Nagel

Eric Nagel

CTO, PHP Programmer, Affiliate Marketer & IT Consultant

Why You Need a Mobile Version of Your Website

If you share links to your website via Social Media (Facebook, Twitter, Google+) you need to be ready for mobile visitors.

First thing in the morning, as I wait for my first cup of coffee to hit my bloodstream, I’m on my phone. First, I go through email and answer anything urgent. Then, over to Facebook and catch up on what happened while I slept. And finally, I’ll open TweetDeck and go through my Twitter feed.

When I see a story I want to read, and click through, many times the linked site doesn’t have a mobile version of their site. When this happens, I end up going back and favoriting the tweet to read later. But making your site mobile-friendly isn’t difficult. In fact, if you use WordPress, you can have it done in less than 5 minutes.

Read More

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