API Setup for Google DoubleClick (DFP AD Server)

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 7
Accepted Solution

API Setup for Google DoubleClick (DFP AD Server)

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.


Accepted Solutions
Solution
‎05-21-2018 01:38 PM
Occasional Contributor
Posts: 7

Re: API Setup for Google DoubleClick (DFP AD Server)

The api setup in the google dasboard was incorrect. It was under the web development type and should have been other. All is well now.

View solution in original post


All Replies
Community Manager
Posts: 3,424

Re: API Setup for Google DoubleClick (DFP AD Server)

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.

Occasional Contributor
Posts: 7

Re: API Setup for Google DoubleClick (DFP AD Server)

Posted in reply to ChrisHemedinger

What do I use as a redirect url?

Community Manager
Posts: 3,424

Re: API Setup for Google DoubleClick (DFP AD Server)

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)

Occasional Contributor
Posts: 7

Re: API Setup for Google DoubleClick (DFP AD Server)

Posted in reply to ChrisHemedinger

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).

Solution
‎05-21-2018 01:38 PM
Occasional Contributor
Posts: 7

Re: API Setup for Google DoubleClick (DFP AD Server)

The api setup in the google dasboard was incorrect. It was under the web development type and should have been other. All is well now.
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 115 views
  • 1 like
  • 2 in conversation