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).
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.