DFA/DCM Reporting Trafficking v2.0 Sandbox

439 views
Skip to first unread message

sunnyv...@gmail.com

unread,
Feb 11, 2015, 4:24:35 PM2/11/15
to google-doubleclick-...@googlegroups.com
Hello,

Is there a sandbox environment for development purposes to interact with the v2.0 of the API for DFA/DCM Reporting/Trafficking?

If there is, could you direct me there?  

Thanks,
_sunny

Jonathon Imperiosi (DFA API Team)

unread,
Feb 12, 2015, 10:42:42 AM2/12/15
to google-doubleclick-...@googlegroups.com, sunnyv...@gmail.com
Hi Sunny,

There is a sandbox version of the API, but it requires that you already have an account in the DCM sandbox environment. If you do have one of those, you can use the "sandboxv2.0" endpoint to interact with that account. Here's a link to the API explorer where you can play around with this API:


Note that the API surface is exactly the same as normal v2.0, just that this version only interacts with the DCM sandbox environment. Note that there is no DDM Reporting sandbox, so only trafficking methods will work.

If you don't already have a sandbox account, you'll need to get in touch with the DCM support team.

Regards,
- Jonathon Imperiosi, DFA API Team

ric...@richardhatcher.com

unread,
Aug 20, 2015, 11:30:11 AM8/20/15
to Google's DoubleClick for Advertisers API Forum, sunnyv...@gmail.com
Johathon, your post is the only place that I can find any mention of a DCM sandboxv2.0. The link https://developers.google.com/apis-explorer/#p/dfareporting/sandboxv2.0/ has no mention of a sandbox. 

Can you direct me to a DCM sandbox instruction page?

Jonathon Imperiosi (DCM API Team)

unread,
Aug 20, 2015, 12:46:04 PM8/20/15
to Google's DoubleClick for Advertisers API Forum
Hi there,

I'm not aware of any documentation on the sandbox environment specifically. Each API version starting with v2.0 has a sandbox equivalent, such as the one you linked to. These versions only interact with DCM accounts in the sandbox environment, which is entirely separate from production. If you don't already have a sandbox DCM account, then you won't be able to make use of them.

Regards,
- Jonathon Imperiosi, DCM API Team

Richard Hatcher

unread,
Aug 20, 2015, 4:27:51 PM8/20/15
to google-doubleclick-...@googlegroups.com
We currently use the APIs at https://www.googleapis.com/dfareporting/v2.2/ for production. 

Which URL would we use to access the APIs in a sandboxed environment?

--
You received this message because you are subscribed to a topic in the Google Groups "Google's DoubleClick for Advertisers API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-doubleclick-for-advertisers-api/G33NhL8dFI4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-doubleclick-for-ad...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonathon Imperiosi (DCM API Team)

unread,
Aug 20, 2015, 4:35:07 PM8/20/15
to Google's DoubleClick for Advertisers API Forum
Hey Richard,

Every API version (2.0+) has a corresponding sandbox version named sandboxv2.x. For v2.2, the base sandbox URL would be https://www.googleapis.com/dfareporting/sandboxv2.2/. This is also exposed in the APIs explorer: https://developers.google.com/apis-explorer/#p/dfareporting/sandboxv2.2/.

Regards,
- Jonathon Imperiosi, DCM API Team

To unsubscribe from this group and all its topics, send an email to google-doubleclick-for-advertisers-api+unsubscribe@googlegroups.com.

Richard Hatcher

unread,
Aug 21, 2015, 5:09:55 PM8/21/15
to google-doubleclick-...@googlegroups.com
Ahhh. Woot woot! Thanks. 




To unsubscribe from this group and all its topics, send an email to google-doubleclick-for-ad...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Google's DoubleClick for Advertisers API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-doubleclick-for-advertisers-api/G33NhL8dFI4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-doubleclick-for-ad...@googlegroups.com.

giulio...@gmail.com

unread,
Sep 22, 2015, 9:58:56 AM9/22/15
to Google's DoubleClick for Advertisers API Forum
Hello Jonathon, I am trying to access the sandbox by using the .net library Dfareporting v2.2.
I could not find any documentation about it, so I decompiled the library itself looking for some clues.
By looking at the code I've noticed that there are a couple of readonly properties:

    /// <summary>
    /// Gets the service base URI.
    /// </summary>
    public override string BaseUri
    {
      get
      {
        return "https://www.googleapis.com/dfareporting/v2.2/";
      }
    }
    /// <summary>
    /// Gets the service base path.
    /// </summary>
    public override string BasePath
    {
      get
      {
        return "dfareporting/v2.2/";
      }
    }
One way to access the sandbox could be to extend the DfareportingService class in order to override these properties...but that's a very ugly solution: isn't it any better and tidier way to achieve the same ?
Thank you for your help,
Giulio D'Ambrosio (The Exchange Lab)

Jonathon Imperiosi (DCM API Team)

unread,
Sep 22, 2015, 11:16:45 AM9/22/15
to Google's DoubleClick for Advertisers API Forum
Hi Giulio,

Last time I checked I wasn't able to find a better way to do this, but I am not intimately familiar with the internals of the .NET client library. Your best bet would be to ask around on the client library specific support channels. If there isn't a better way, you could also open an issue on the libs github tracker to have this improved.

Regards,
- Jonathon Imperiosi, DCM API Team

Ryan Semple

unread,
Sep 29, 2015, 3:56:33 PM9/29/15
to Google's DoubleClick for Advertisers API Forum
Is there a way to hit the sandbox in the explorer, though? I tried typing in "sandbox" before the version number and it just dumps me back into the list of API services. 

Ryan Semple

unread,
Sep 29, 2015, 3:58:22 PM9/29/15
to Google's DoubleClick for Advertisers API Forum
Er that, and the link provided in previous messages ( https://developers.google.com/apis-explorer/#p/dfareporting/sandboxv2.2/)

Jonathon Imperiosi (DCM API Team)

unread,
Sep 30, 2015, 11:07:35 AM9/30/15
to Google's DoubleClick for Advertisers API Forum
Hi Ryan,

Just to confirm, you're not able to access the APIs Exporer link in your last message? Have you made a successful request any other way?

Regards,
- Jonathon Imperiosi, DCM API Team

Ryan Semple

unread,
Sep 30, 2015, 11:48:07 AM9/30/15
to Google's DoubleClick for Advertisers API Forum
I have, just not to any sandbox environment (Or whatever gets me to sandbox.google.com/dfa). That link with the sandboxv2.2 just winds up redirecting me to the list of APIs. I don't think there's a way for the PHP API client libraries I'm using to even hit a /sandboxv2.*, anyway. 

Jonathon Imperiosi (DCM API Team)

unread,
Oct 2, 2015, 4:44:29 PM10/2/15
to Google's DoubleClick for Advertisers API Forum
Hi Ryan,

Thanks for the info, I wasn't aware those links didn't work externally. I have the team here looking into why that is. In the meantime, you should still be able to make direct requests against the sandboxv2.2 endpoints. I'm not familiar enough with the internals of the PHP library to say what sort of config changes would be necessary to do that, unfortunately. I did take a quick look at the Google_Service_Dfareporting class and it seems like this particular value would need to change.

Regards,
- Jonathon Imperiosi, DCM API Team

Ryan Semple

unread,
Dec 30, 2015, 4:54:12 PM12/30/15
to Google's DoubleClick Campaign Manager API Forum
Hey Jonathon,

Pardon the thread necromancy, but I'm wondering if there's a need for a "sandbox" API private key in order to access stuff on /sandbox[version number] for DFA/DCM API. I've finally gotten around to tweaking that value that you mentioned in the API client libaries but I can't really seem to think of a way to generate that key unless there's a separate, like, "Sandbox" developers console or something...maybe? 

No clue. 

Thanks for any advice you can impart.

Ryan Semple

unread,
Dec 30, 2015, 5:40:42 PM12/30/15
to Google's DoubleClick Campaign Manager API Forum
Or do I use different scopes to hit the sandbox? I'm trying to use the same auth token so I figure the only thing that would differ would be the profile id# and the URL it should be pointing to, but it looks like it's not just that.

Jonathon Imperiosi (DCM API Team)

unread,
Jan 5, 2016, 11:19:12 AM1/5/16
to Google's DoubleClick Campaign Manager API Forum
Hi Ryan,

The scopes are the same, but you aren't able to share access and refresh tokens between prod and the sandbox (they are fully isolated environments/APIs). You can reuse the same client ID and secret if you'd like, but you'll need to go through the authorization process and generate separate access/refresh tokens for each environment.

Regards,
- Jonathon Imperiosi, DCM API Team

Ryan Semple

unread,
Jan 5, 2016, 6:10:53 PM1/5/16
to Google's DoubleClick Campaign Manager API Forum
Aye. I'll give that a shot. Thanks a bunch!
Reply all
Reply to author
Forward
0 new messages