problem with creating sandbox acc v201109 No such operation: (HTTP GET PATH_INFO: /v201109/CampaignService)

232 views
Skip to first unread message

sgrgic

unread,
Dec 1, 2011, 6:20:43 AM12/1/11
to adwor...@googlegroups.com
Hi,

Since I'm new to Google AdWords API I need some help with creating sandbox account.
I went through steps described on http://code.google.com/apis/adwords/docs/sandbox.html:
  1. created google account
  2. get authToken (http://code.google.com/apis/adwords/docs/headers.html#authToken and http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html)
  3. send a get request to CampaignService
So, this is what I've done:
get authToken:

https://www.google.com/accounts/ClientLogin?accountType=GOOGLE&Email=MY_GOO...@gmail.com&Passwd=MY_PASS&service=adwords&source=MY_COMPANY-adwords_api-v201109

and I get SID, LSID and Auth.

I take Auth and put it to get request to CampaignService:

https://adwords-sandbox.google.com/api/adwords/cm/v201109/CampaignService?authToken=AUTH_TOKEN_FROM_STEP_1&developerToken=MY_GOOGLE_ACC++USD&userAgent=adwords_api

and I got this:

No such operation:  (HTTP GET PATH_INFO: /v201109/CampaignService)

So, what I'm doing wrong? Please let me know what I need to do to create sandbox account.

Thanks,

Sinisa.

Anash P. Oommen

unread,
Dec 2, 2011, 3:06:38 AM12/2/11
to adwor...@googlegroups.com
Hi Sinisa,

AdWords API is a SOAP service, which means it takes only a POST request and a SOAP xml as POST body. That explains the "no such operation" error. 

I would recommend picking up an appropriate client library from http://code.google.com/apis/adwords/docs/clientlibraries.html and use it for making API calls. Each library has its own README file that explains its configuration and usage. As for initializing sandbox, what you need to do is to 

1. Call CampaignService.get (http://code.google.com/apis/adwords/docs/reference/latest/CampaignService.html#get) to initialize the sandbox.
2. Call ServicedAccountService.get (http://code.google.com/apis/adwords/docs/reference/latest/ServicedAccountService.html#get) to get the sandbox accounts created in step 1.

It is possible to make API calls using pure HTTP POST alone, but that's a harder route. If you really want to go down that route, then look for the NoClientLibrary wiki article in the client library of your choice of language. For instance, the .NET library's NoClientLibrary wiki talks about this approach at http://code.google.com/p/google-api-adwords-dotnet/wiki/NoClientLibrary#Option_1:_Make_a_raw_API_call. It is a bit outdated (meaning, the xml shown there is for an older API version), but the concept remains the same.

Let me know if you have more questions.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

sgrgic

unread,
Dec 2, 2011, 7:00:22 AM12/2/11
to adwor...@googlegroups.com

Hi Anash,

Thanks for quick response. Everything is clear now, I manage to initialize sandbox via API call (Ruby client).

Regards,
Sinisa.
Reply all
Reply to author
Forward
0 new messages