I am very new to the AdWords API and have done a lot of research and 
testing trying to authenticate and test the API. I believe I have followed 
the authentication flow correctly, but since I am consistently getting the 
same error I wanted to reach out to an AdWords API Team Member and see if 
they could tell me what I am missing.

I created a manager AdWords account and have my developer token, the access 
level is Test Accounts. I also created a Test AdWords Account with test 
client accounts linked. I am attempting to authenticate with a service 
account (I had success with service accounts for the Content API). I 
followed the steps on this page (for my test manager 
account): 
https://developers.google.com/adwords/api/docs/guides/authentication#setting_up_service_account_access

I am using the googleads python client library to authenticate and interact 
with the AdWords API. This is a snippet of my code I am using (not 
including the exact values of my variables)

from googleads import adwords
from googleads import oauth2
from suds import WebFault
import json


scope = 'https://www.googleapis.com/auth/adwords'
key_file_path = 'FULL PATH OF MY JSON KEY FILE'
prod_man_token = 'PRODUCTION MANAGER DEVELOPMENT TOKEN'
test_man_cust_id = 'CUSTOMER ID FOR MY TEST MANAGER ACCOUNT (XXX-XXX-XXX)'


oauth2_client = oauth2.GoogleServiceAccountClient(scope, key_file=
key_file_path)
adwords_client = adwords.AdWordsClient(prod_man_token, oauth2_client, 
client_customer_id=test_man_cust_id)


user_list_service = adwords_client.GetService('AdwordsUserListService')
operation = {'operator': 'ADD',
             'operand': {'xsi_type': 'BasicUserList',
                         'name': 'Test List',
                         'description': 'Testing API',
                         'membershipLifeSpan': '365',
                         'conversionTypes': [],
                         # Optional field.
                         'status': 'OPEN'
                        }
            }
operations = [json.dumps(operation)]
try:
  result = user_list_service.mutate(operations)
  print result
except WebFault, e:
  print str(e)


I am able to create the oauth_client and adwords_client then use the 
adwords client to get the AdwordsUserListService, but when I try and 
execute the mutate call I get the following error:

Server raised fault: '[AuthenticationError.NOT_ADS_USER @ ; 
trigger:'<null>']'

Is there something I'm missing? I would be willing to give more specific 
account information to an API team member in a more private form.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/842fd098-8f5f-4cae-ab95-33e2af598ea9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Server to Ser... Jim 4Cite
    • Re: Serv... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum

Reply via email to