Has anyone tried connecting to the Google Doubleclick (DFP Adserver) API. I have read different documentation on connecting to Google Analytics and other API's through SAS, bit when I apply these to my situation, it does not seem to ad up. It seems these APIs are different and more complicated. IT uses some JST Headers? I am looking for sample code if anyone has created any for this API.
I think it depends on what you want to do. Are you downloading reports? Or uploading conversions data?
Glancing over the doc about the API, it looks like a very similar setup to Google Analytics in that there is a REST API that can be driven from HTTP, which means that you ought to be able to accomplish this with PROC HTTP.
See my complete paper about Google Analytics with SAS - it might help.
What do I use as a redirect url?
To get your auth token? In my paper, I covered this -- the URL for the call looks something like this:
https://accounts.google.com/o/oauth2/v2/auth? scope=https://www.googleapis.com/auth/analytics.readonly &redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code &client_id=yourappid.apps.googleusercontent.com
(But all on one line)
What is the Client secret? Is that the API Key? I have in the google API dashboard a APIKey, ClientID and a Service Account Key (ID).
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.