Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.
/ dfa_client Public archive

A Client for Googles DoubleClick for Advertisers (DFA) API

Notifications You must be signed in to change notification settings

rypit/dfa_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A Client for Googles DoubleClick for Advertisers (DFA) API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages