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 access to AdWords1 and 
AdWords2. 

So once, you need to get a refresh token manually like opening a web 
browser and grant your application access to your MCC data. 
Then store the refresh token, you can use the same refresh token for both 
AdWords1 and AdWords2. 
(if you use one of our client libraries, it automatically refresh expires 
access tokens. Note: An access token expires in one hour)

Does that answer your question?

Best,
- Takeshi, AdWords API Team

On Friday, November 8, 2013 9:31:15 AM UTC+9, Bikram Bhuyan wrote:
>
> 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 that we need to open the web page and give access 
> to our MCC account manually and then the refresh token is generated which 
> can be used to make the API call. Now for our requirement, we have a 
> windows service which runs in the background, and we have several clients 
> who are using our application. Now the question is how do our application 
> get access API access to their AdWords accounts and proceed with fetching 
> the data etc.
>
> Say for an example we have 2 separate account AdWords1 and Adwords2. How 
> do we get access to these different accounts in code. I understand they 
> have to give access our account somehow, but I don't get the process 
> correctly and how it can be implemented in a background running program.
>
> If you could help me in providing some details on this, that will be 
> really helpful.
>
> Thanks,
> Bikram. 
>
> On Wednesday, November 6, 2013 7:57:59 PM UTC-8, Takeshi Hagikura (AdWords 
> API Team) wrote:
>>
>> 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 discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to