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 
issue a request against an AdWords account for which your OAuth credentials 
do not grant access, the request will fail.

In your case, you do not (and you can not) link your test accounts with 
your production MCC.  Instead, you should obtain a refresh token while 
logged in as your test account, and then use that in combination with your 
production MCC's developer token to make your API requests.

Cheers,
Josh, AdWords API Team

On Tuesday, May 6, 2014 11:47:20 PM UTC-4, micde...@gmail.com wrote:
>
> 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 
> production MCC account, or vice versa" on the test account doc,i am a 
> little confused,could you help me?
>
> 在 2013年11月7日星期四UTC+8上午11时57分59秒,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_token,  refresh_token)?
>> If you don't want to post it here, you can select "Reply to author" from 
>> the top right corner.
>>
>> Best,
>> - Takeshi, AdWords API Team
>>
>> On Thursday, November 7, 2013 2:59:39 AM UTC+9, Bikram Bhuyan wrote:
>>>
>>> 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.
>>>
>>> Could you please tell me where I am making wrong? If you want I can 
>>> email my account information to your email for further investigation (if 
>>> you give me the email address).
>>>
>>> Thanks,
>>> Bikram.
>>>
>>> On Wednesday, November 6, 2013 12:25:16 AM UTC-8, Takeshi Hagikura 
>>> (AdWords API Team) wrote:
>>>>
>>>> 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 using 
>>>> OAuth2?
>>>>
>>>> Best,
>>>> - Takeshi, AdWords API Team
>>>>
>>>> On Friday, November 1, 2013 8:30:39 AM UTC+9, Bikram Bhuyan wrote:
>>>>>
>>>>> 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 
>>>>> campaign associated with my test customer id, I am getting 
>>>>> "AuthorizationError.USER_PERMISSION_DENIED" error.
>>>>>
>>>>> Could you please suggest if I am missing any set up process?
>>>>>
>>>>> If you want I can send you my IDs and token currently I used in the 
>>>>> application.
>>>>>
>>>>> Thanks,
>>>>> Bikram.
>>>>>
>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to