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"."

Can you  give me details on the above note? How do we register the OAuth 
process? Which page does the client need to visit for giving access to us?
 

Currently, I am using my own "oAuthRefreshToken" in the API call and hence 
am seeing this seeing  [AuthorizationError.USER_PERMISSION_DENIED @ ; 
trigger:''] returned from Adwords.

Thanks for for help.

On Monday, February 23, 2015 at 4:16:10 PM UTC-8, Bikram Bhuyan wrote:
>
> 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 OAuth account which will give you ("oAuthClientId" & 
> "oAuthClientSecret").
> 2. Also I hope you must have your "developerToken". This is required to 
> connect to the API.
>
> 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".
>
> Please note that "oAuthClientId", "oAuthClientSecret" & "developerToken" 
> will be common for your application which you can store in your config 
> file. But "oAuthRefreshToken" will be unique for each client who give 
> access to register against your MCC account.
>
> After the registration is complete, you can use "oAuthRefreshToken" & 
> "CustomerId" to make the API call. I hope this will give you the steps 
> which need to be followed.
>
> Let me know if you still have any questions.
>
> Thanks,
> Bikram.
>
> On Mon, Feb 23, 2015 at 2:58 PM, Iuliya Echevarria <iechev...@gmail.com 
> <javascript:>> wrote:
>
>> 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 would like to know:
>> - do I need to have a production mcc token?
>> - what clientCustomerId I need to specify?
>> - what happen if the customerId specified is different from the oauth 
>> credentials?
>>
>>
>> On Tuesday, November 12, 2013 at 10:43:24 AM UTC+3, Takeshi Hagikura 
>> (AdWords API Team) wrote:
>>>
>>> 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 application flow 
>>> <https://developers.google.com/accounts/docs/OAuth2#webserver> by 
>>> preparing a web server that doesn't require manual process in your side 
>>> when a client grants your application access to their data. 
>>>
>>> > Also please let me know what is the durability of our refresh token. 
>>> Will not ever change after we give access and generate it.
>>> A refresh token never expires unless you explicitly revoke the access. 
>>>
>>> Best,
>>> - Takeshi, AdWords API Team
>>>
>>> On Saturday, November 9, 2013 2:18:31 AM UTC+9, Bikram Bhuyan wrote:
>>>>
>>>> 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 to figure out 
>>>> what will be the best mechanism to implement it.
>>>>
>>>> Also please let me know what is the durability of our refresh token. 
>>>> Will not ever change after we give access and generate it.
>>>>
>>>> Thanks,
>>>> Bikram.
>>>>
>>>> On Thursday, November 7, 2013 10:08:43 PM UTC-8, Takeshi Hagikura 
>>>> (AdWords API Team) wrote:
>>>>>
>>>>> 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 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/d45ed6ce-500b-4e42-9661-ec1de457f0e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to