Skip to content

Instantly share code, notes, and snippets.

View DavidArenburg's full-sized avatar

David Arenburg DavidArenburg

View GitHub Profile
@odani
odani / dcm_reporting.R
Created January 28, 2016 19:14
Pulling Doubleclick DCM reporting with R and the DFA reporting API v2.3
library(httr)
# these 4 parameters should be set
dcm_user_id <- DCM_USER_ID
report_id <- REPORT_ID
dcm_key <- KEY
secret <- SECRET
myapp <- oauth_app("google", key = dcm_key, secret = secret)
google_token <- oauth2.0_token(oauth_endpoints("google"), myapp, scope = "https://www.googleapis.com/auth/dfareporting")