Google Doubleclick for Publishers Ruby Client
Ruby
Switch branches/tags
Nothing to show
Latest commit c0252d5 Jun 3, 2010 Spencer Miles lots of bugfixes
Permalink
Failed to load latest commit information.
lib lots of bugfixes Jun 3, 2010
spec lots of bugfixes Jun 3, 2010
.gitignore initial commit Jun 2, 2010
README.rdoc lots of bugfixes Jun 3, 2010

README.rdoc

DFPRuby

Ruby library for Google's DFP (DoubleClick for Publishers) SOAP API

This is currently very alpha, and should only be used to get started, not for production! The eventual goal is to have a full library for accessing DFP, but it's a work in progress.

The library consists of Services to talk to each SOAP endpoint, as well as object mappers.

Example Usage

order = DFP::Order.new(:name => 'My Order', :advertiser_id => 1234, :trafficker_id => 4567)
order.save

To lookup an Order, you'd do:

order = DFP::Order.find(1234)

or

orders = DFP::Order.find_by_statement("WHERE id > 1 LIMIT 100")

You can also use the lower level services directly:

order = DFP::OrderService.create_order({:name => "Order 123", :advertiserId => 123, :traffickerId => 456})

For more examples, check the specs.