Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

AdSense Management API Ruby Samples

This is a set of simple samples written in Ruby, which provide a minimal example of Google AdSense integration within a command line application.

This starter project provides a great place to start your experimentation into the AdSense Management API.

Prerequisites

Please make sure that you're running Ruby 1.8.7+ and you've run bundle install on the sample to install all prerequisites.

Setup Authentication

Before getting started, check the Getting Started section on the Ruby client library documentation page: https://developers.google.com/api-client-library/ruby/start/get_started

Running the Samples

I'm assuming you've checked out the code and are reading this from a local directory. If not, check out the code to a local directory.

  1. Start up a sample

     $ bundle exec ruby get_all_ad_clients.rb
    
  2. Complete the authorization steps on your browser

  3. Examine your shell output, be inspired and start hacking an amazing new app!