Re: AuthenticationError.NOT_ADS_USER with service account
Hi, This is an old forum thread. Could you kindly start a new thread for your question? Thanks, Shwetha, AdWords API Team. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/5d97c798-ae25-4095-a009-18f4389f9292%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: AuthenticationError.NOT_ADS_USER with service account
That property I need to set in case of Java? I filled up api.adwords.jsonKeyFilePath, api.adwords.clientCustomerId, api.adwords.developerToken but no person or anything close to this in config. понедельник, 27 октября 2014 г., 19:34:25 UTC+3 пользователь Anash P. Oommen (AdWords API Team) написал: > > Hi, > > You should also set oauth2_prn to identify the OAuth2 user. This should be > the login email of your AdWords account, or your AdWords MCC account. If > you are setting the email address of your AdWords account, > then client_customer_id should contain your AdWords account's CID. If you > are setting the email address of your AdWords MCC account, then > client_customer_id > should be beneath the MCC. > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Friday, October 24, 2014 8:01:18 AM UTC-4, Ismary Cruz wrote: >> >> I have a services account , I been trying to get adwords data without >> success. I have a MCC account. >> >> I followed, step by step, the user guide. >> >> I created the project, then I created new credentials. I selected >> 'services account' and generated public/secret key. >> >> I followed the guide to delegating domain-wide authority to the service >> account (I used https://www.googleapis.com/auth/adwords as scope). >> >> I got the authorization token without any problem. But when I try to call >> any service of Adwords, I got the same error: >> >> >> AdwordsApi::V201409::CampaignService::ApiException at ... >> [AuthenticationError.NOT_ADS_USER @ ; trigger:''] >> >> This is my adwords_api.yml configuration: >> >> :authentication: >> :method: OAuth2_JWT >> :oauth2_client_id: >> :oauth2_issuer: >> :oauth2_keyfile: >> :oauth2_secret: >> :developer_token: >> :client_customer_id: >> >> :service: >> :environment: 'PRODUCTION' >> :connection: >> :enable_gzip: false >> :library: >> :log_level: DEBUG >> >> >> Other informations: >> gem google-adwords-api (0.13.2) >> gem oauth2 (1.0.0) >> API versio v:201409 >> >> For some reason my service account doesn't have permission for Adwords, >> although I had defined them as indicated it in the user guide. >> >> If you have any ideas, I will be very grateful you. >> >> Thanks in advanced, >> >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/613fbdd7-931d-4090-8c84-7bac57c80dec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: AuthenticationError.NOT_ADS_USER with service account
Hi, You should also set oauth2_prn to identify the OAuth2 user. This should be the login email of your AdWords account, or your AdWords MCC account. If you are setting the email address of your AdWords account, then client_customer_id should contain your AdWords account's CID. If you are setting the email address of your AdWords MCC account, then client_customer_id should be beneath the MCC. Cheers, Anash P. Oommen, AdWords API Advisor. On Friday, October 24, 2014 8:01:18 AM UTC-4, Ismary Cruz wrote: I have a services account , I been trying to get adwords data without success. I have a MCC account. I followed, step by step, the user guide. I created the project, then I created new credentials. I selected 'services account' and generated public/secret key. I followed the guide to delegating domain-wide authority to the service account (I used https://www.googleapis.com/auth/adwords as scope). I got the authorization token without any problem. But when I try to call any service of Adwords, I got the same error: AdwordsApi::V201409::CampaignService::ApiException at ... [AuthenticationError.NOT_ADS_USER @ ; trigger:'null'] This is my adwords_api.yml configuration: :authentication: :method: OAuth2_JWT :oauth2_client_id: service_account_client_id :oauth2_issuer: service_account_email :oauth2_keyfile: service_account_keyfile :oauth2_secret: password_to_keyfile :developer_token: developer_token :client_customer_id: adwords_account_client_customer_id :service: :environment: 'PRODUCTION' :connection: :enable_gzip: false :library: :log_level: DEBUG Other informations: gem google-adwords-api (0.13.2) gem oauth2 (1.0.0) API versio v:201409 For some reason my service account doesn't have permission for Adwords, although I had defined them as indicated it in the user guide. If you have any ideas, I will be very grateful you. Thanks in advanced, -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/436739b2-5849-412f-b475-339a777249ff%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
AuthenticationError.NOT_ADS_USER with service account
I have a services account , I been trying to get adwords data without success. I have a MCC account. I followed, step by step, the user guide. I created the project, then I created new credentials. I selected 'services account' and generated public/secret key. I followed the guide to delegating domain-wide authority to the service account (I used https://www.googleapis.com/auth/adwords as scope). I got the authorization token without any problem. But when I try to call any service of Adwords, I got the same error: AdwordsApi::V201409::CampaignService::ApiException at ... [AuthenticationError.NOT_ADS_USER @ ; trigger:'null'] This is my adwords_api.yml configuration: :authentication: :method: OAuth2_JWT :oauth2_client_id: service_account_client_id :oauth2_issuer: service_account_email :oauth2_keyfile: service_account_keyfile :oauth2_secret: password_to_keyfile :developer_token: developer_token :client_customer_id: adwords_account_client_customer_id :service: :environment: 'PRODUCTION' :connection: :enable_gzip: false :library: :log_level: DEBUG Other informations: gem google-adwords-api (0.13.2) gem oauth2 (1.0.0) API versio v:201409 For some reason my service account doesn't have permission for Adwords, although I had defined them as indicated it in the user guide. If you have any ideas, I will be very grateful you. Thanks in advanced, -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/789faddf-6d87-451a-8dc7-b85aa5ce1426%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.