Using Ruby to get access to Google Keywords

Here's a guide on how you can use Ruby to get access to Google Keywords

This is a short post detailing at a high level how you would go about using Ruby to get access to Google keyword suggestions.

First of all Google's Keyword API is hooked into their Adwords API, this means a valid Adwords account will be required to gain access to the API.

Accounts are free, essentially any Google account can sign up, it doesn't appear that you need to have any active campaigns going or anything like that in order to use the Keywords.

There is a Ruby implementation of Google Adwords API.

The API works as one might expect, you feed it a keyword and it returns multiple suggestions of other keywords and you should note that there doesn't appear to be any cost for using this service.

You should note and you probably noticed if you have looked at the code sample that is uses a SOAP interface to make calls, this won't be just as pretty as some of the slick JSON APIs you are maybe used to, but it will get the job done!


Recent posts View all

Ruby

How to ignore Bullet in RSpec tests

Using Bullet during a test can pick up mistakes but also has false negatives; here is an easy way to ignore them

Ruby

How we used Nokogiri to fix a sizing issue in YouTube's oEmbed

At some point, one of our calls to YouTube's oEmbed endpoint was returning videos way too small; we fixed in in our Rails application by using Nokogiri