Project

dfa_client

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A client for Google's DoubleClick for Advertisers (DFA) API - a wrapper for savon v2
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2
 Project Readme

dfa_client

A savon-based Client for Googles DoubleClick for Advertisers (DFA) API

https://developers.google.com/doubleclick-advertisers/docs/overview

Installation

DFAClient is available through Rubygems and can be installed via:

$ gem install dfa_client

Introduction

require "dfa_client"

# create a client for your DFA API, optionally specify an API version
dfa = DFAClient.new('v1.19')

# authenticate with DFA
dfa.authenticate(username, password)

# Make a request to DFA, in this case run a report
response = dfa.request('report', :run_deferred_report, {"ReportRequest" => {"queryId" => YOUR_QUERY_ID}})

# response now contains a hash of the API result. optionally, you can specify raw=true to get the the full savon response when you make the call:
response = dfa.request('report', :run_deferred_report, {"ReportRequest" => {"queryId" => YOUR_QUERY_ID}}, true)