Hello,
I get into troubles with the API v200906 (.NET) when trying to access
an account in production environment.
When any operation is called I get an exception:
AuthorizationError.USER_PERMISSION_DENIED @
I've spent several hours figuring out what is wrong with the given
credentials or with permissions but still getting the same error. Then
I tried to use the v13 service instead of v200906 and everything
worked properly.
So the question is why when using v13 the operations are executed but
when using v200906 then I get the permission denied error?
We already migrated our tools to v200906 but we've always run it only
in a sandbox (because of some problems with the v2006) and the
"sandbox" authentication works allright, so that's why I think that
it's connected only to the production environment.
Here is piece of code demonstrating the issue:
var csrv13 = (com.google.api.adwords.v13.CampaignService)
adwordsUser.GetService(ApiServices.v13.CampaignService);
var cc13 = csrv13.getAllAdWordsCampaigns(0);
// ^^ variable cc13 contains all campaigns
var csrv2009 =
(com.google.api.adwords.v200906.CampaignService.CampaignService)
adwordsUser.GetService
(ApiServices.v200906.CampaignService);
com.google.api.adwords.v200906.CampaignService.CampaignSelector sel =
new com.google.api.adwords.v200906.CampaignService.CampaignSelector();
var cc2009 = csrv2009.get(sel);
// ^^ throws the exception AuthorizationError.USER_PERMISSION_DENIED @
--
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en.