Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2015-03-10 Thread Josh Radcliff (AdWords API Team)
Hi, If the AdWords accounts you are trying to access are not linked to your MCC, then you can still access those accounts via the API but you will need to get a separate *refresh token* for each account using the OAuth flow described in our Authentication guide

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2015-03-10 Thread Sofia Agboatwalla
Hi Bikram, I am trying to send data to other Adwords accounts which are not related to my MCC. You wrote: "After this is done, you have to register the OAuth process where the client can visit your page and give access to the above OAuth account. This step will generate "oAuthRefreshToken"." C

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2015-02-24 Thread Iuliya Echevarria
Hi Bikram, I am wondering if you made that work ( I mean, if you could access Adword accounts that are not related to any MCC) I am new to adwords api and I can not find anywhere a confirmation of if it is possible to access a separated adwords account using adwords api If this is possible I w

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2015-02-23 Thread Bikram Bhuyan
Hi Luliya, Yah it is working fine at our end. Yes, it is common to go though the initial analysis as it is little confusing to get our head around how it really work. Below are the steps we have to follow. 1. First you should have your production MCC account. After you that you can register your

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2014-05-07 Thread Josh Radcliff (AdWords API Team)
Hi, This is a common point of confusion -- a developer token can be used to issue requests against *any* AdWords account (regardless of the accounts linked to the token's MCC) with the restriction that a pending developer token can only be used for requests on a test account. Of course, if you

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2014-05-06 Thread micdevepro
hi,Takeshi I got same troubles.I called the api against a test account. You noticed that " you need to make sure the client account is linked to the MCC account with which you got your OAuth2 credential" and i found this "You cannot link a test MCC account or a test AdWords account with a

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2014-02-12 Thread Mcc Test
I found a article on google and it had this Test MCC account procedure. https://developers.google.com/adwords/api/docs/test-accounts?hl=fr The Client account I use to test is visible under the MCC account. I used the email of the Client Account and created the OAuth details and added them to the a

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2014-02-12 Thread Mcc Test
Dear Bikram, Really sorry for bugging. What has happen was, person who handles the MCC account has given me wrong developer token. He had typed B instead for 6. I can't understand why he haven't copy and pasted it. Thank you very much for help. Thanks Kasun On Wed, Feb 12, 2014 at 3:17 PM, Mcc

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2014-02-12 Thread adwmcctest
Hi Bikram, Thanks for the info. I tried as you sugested. Below are my steps 1. I logged in to my live adwords client account (not the mcc account). 2. I logged in to the API console at https://cloud.google.com/console/ using the same email 3. I created a OAuth client and got the

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2014-02-12 Thread adwmcctest
Dear Bikram and Takeshi, I'm new to Adwords API and I'm having the same problem. I have following accounts now. (all emails are dummy) · production...@gmail.com (production MCC account) and client...@gmail.com client account created under mentioned MCC account · test...@gmai

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2014-02-11 Thread Bikram Bhuyan
Hi Kasun, I believe there is no concept of Test MCC account. Always we have the production MCC account where the developer token is pending if it is not approved till now. Could you please confirm this scenario. Also please confirm if you see the TEST Client account under the MCC account. If you

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-12-11 Thread Takeshi Hagikura (AdWords API Team)
Great. Thanks for sharing. Best, - Takeshi, On Tuesday, December 10, 2013 11:50:40 AM UTC-8, Christian Gibbs wrote: > > I GOT IT! > > > > After getting the ?code= from the URL > > > $url = "https://accounts.google.com/o/oauth2/token";; > $params = array( > "code" => $authCode, > "

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-12-10 Thread Christian Gibbs
I GOT IT! After getting the ?code= from the URL $url = "https://accounts.google.com/o/oauth2/token";; $params = array( "code" => $authCode, "client_id" => $clientId, "client_secret" => $clientSecret, "redirect_uri" => $callbackUrl, "grant_type" => "authorization_code" );

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-12-10 Thread Christian Gibbs
I am trying to access accounts that are not linked to our MCC by the consent of the user. It first starts here, $user = new AdWordsUser(); $user->SetOAuth2Info(array( "response_type" => 'code', "client_id" => $clientId, "client_secret" => $clientSecret, "access_token" => $access

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-11-11 Thread Takeshi Hagikura (AdWords API Team)
Hi Bikram, If the accounts are not linked to your MCC, you need to get a separate access token (and a refresh token) for each client account. In that case, I think an installed application mechanism is not practical because it requires manual process for each account. You can use the web appl

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-11-08 Thread Bikram Bhuyan
Hi Takeshi, Thanks for your detailed explanation. You are absolutely right. If both the accounts are under our MCC account then everything should work fine as you mentioned. I am trying to connect to our clients AdWords account which will definitely be not under our MCC account. So I am trying

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-11-07 Thread Takeshi Hagikura (AdWords API Team)
HI Bikram, Glad to hear your issue has resolved. As for the next question, I'm assuming following account structures. MCC1 | -- AdWords1 | -- AdWords2 If client accounts are linked to the MCC, getting a refresh token is required only once. You can use the same credential of MCC1 when you

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-11-07 Thread Bikram Bhuyan
Hi Takeshi, I finally able to find the right MCC account for and user that to generate the tokens and am able to access the API now. That issues is resolved now. So thanks a lot for your help. Now I have a different issues to deal with. Looking at the refresh token generation process, I see th

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-11-07 Thread Bikram Bhuyan
Hi Takeshi, I tried with both these email address with generating the access token and the refresh token, but non of them worked. 1. etengt...@gmail.com 2. reesecoo...@gmail.com These are the 2 emails I got from our management team who did the initial account set up with AdWords. Could you ple

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-11-06 Thread Takeshi Hagikura (AdWords API Team)
Thanks for the logs. Your clientCustomerId header looks in the request looks fine. For the next step, you need to make sure the client account is linked to the MCC account with which you got your OAuth2 credential. What email address did you use when you got the OAuth2 credential (access_tok

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-11-06 Thread Bikram Bhuyan
Hello Takeshi, Thanks for the reply. I suspect the same as well. But I am making the calls based on the account information that is provided by google adwords team after applying for the account set up. So I am not sure where is the issues. I am attaching the API logs as per your message below.

Re: AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-11-06 Thread Takeshi Hagikura (AdWords API Team)
Hi Bikram, My first guess is you are making an API call against a client account that is different from the account you authenticated with using OAuth2. Can you please share the SOAP request xml (please remove sensitive info before posting) log and the email you used when you authenticated usin

AuthorizationError.USER_PERMISSION_DENIED While accessing campaigns

2013-10-31 Thread Bikram Bhuyan
Hello, We have a test mcc account and a test customer id. Also we have got the pending developer token for our production account. I generated the OAuth2ClientId, OAuth2ClientSecret & OAuth2RefreshToken successfully by following the steps. Now when I make a the api call to fetch the list of ca