{"[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']"} from account which has administrative permission

2015-11-18 Thread Jonathan Walder
We are trying to setup several feeds into the AdWords CRM UserListService 
"https://adwords.google.com/api/adwords/rm/v201509/AdwordsUserListService;

We seem to be getting past the OAuth2 hurdles fine in that we are not 
getting an "Authentication" error, we are getting an "Authorization" error. 
The ClientID and ClientSecret were generated under an account which has 
permissions to the MCC and has administrative privileges. When logging in 
to AdWords, we can access the "ClientCustomerID" just fine. From the API 
though, the "ADD" operation fails with the error" 
{"[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']"}.

We are using the managed code from GitHub for C# and the code is very 
straight forward:

AdWordsUser awUser = new AdWordsUser();

// Get the UserListService.
AdwordsUserListService userListService =

(AdwordsUserListService)awUser.GetService(AdWordsService.v201509.AdwordsUserListService);

#region AddUserList and Populate Test
// Create remarketing user list.
CrmBasedUserList userList = new CrmBasedUserList()
{
name = "Test List 1",
description = "A list of customers that originated from 
email addresses",
membershipLifeSpan = 365L,
//optOutLink = "http://endpoint1.example.com/optout;
};
UserListOperation ulistop = new UserListOperation()
{
operand = userList,
@operator = Operator.ADD 
};
var ulo = new UserListOperation[] { ulistop };
// Add user list.
UserListReturnValue result = userListService.mutate(ulo);   
< ERROR ABOVE

I presume there is something very straight forward and probably 
configuration related that is causing this. Any insight is much appreciated.

Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/83f33517-9f2e-4db3-af41-56dd6fc34645%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Authorization Error trouble

2015-11-18 Thread Jonathan Walder
We are trying to create some CRM based lists in AdWords via the API and are 
just getting started with it. We have run into an issue at the gates which 
is making it difficult to proceed. There appear to be no OAuth2 issues as 
we are not getting any "Authentication" errors, instead we are getting an 
"Authorization" error.

Details:
- The "ClientID" and associated "ClientSecret" are from a project under an 
account which has administrative permissions on the master.
- The "RefreshToken" was generated authorizing the same account as above to 
the AdWords scope.
- The "DeveloperToken" was generated on a different account under a 
different master which has basic API access.
- Using the C# GitHub managed code base for Google.Api.Ads.AdWords.v201509

ERROR: [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']

Any insight on what could possibly be the issue here would be greatly 
appreciated.

This is the relevant portion of the code:

*// Get Auth First*
*AdWordsUser awUser = new AdWordsUser();*

*// Get the UserListService.*
*AdwordsUserListService userListService =*
*
(AdwordsUserListService)awUser.GetService(AdWordsService.v201509.AdwordsUserListService);*

*#region AddUserList and Populate Test*
*// Create remarketing user list.*
*CrmBasedUserList userList = new CrmBasedUserList()*
*{*
*name = "Test List 1",*
*description = "A list of customers that originated 
from email addresses",*
*membershipLifeSpan = 365L,*
*};*
*UserListOperation ulistop = new UserListOperation()*
*{*
*operand = userList,*
*@operator = Operator.ADD *
*};*
*var ulo = new UserListOperation[] { ulistop };*
*// Add user list.*
*UserListReturnValue result = userListService.mutate(ulo);