Hi Hari,

In regards to your scenario on which your vendor doesn't want to provide 
the refresh token of the root/parent MCC for security purposes, then as I 
have previously mentioned, you can select a user on a client account that 
has access only to that client account and generate OAuth credentials. This 
way, the credential will only be used for that client account. If you'll 
attempt to use the credential to other client accounts, it will generate an 
error.

In regards to the code you have provided, I can see that you have already 
talked about this with my colleague, Peter. Since you are using our Java 
client library, then you don't need to create your own method for 
generating the AdWords session. Our examples already incorporated the 
creation of AdWords session as you can see on this line 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201710/basicoperations/GetCampaigns.java#L42>.
 
As what Peter previously mentioned, access tokens are also automatically 
generated (using the refresh token) once it is about to expire using our 
client libraries. As a recommendation and for simplicity, please follow the 
examples instead.

Thanks,
Vincent
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 [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].
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/ce26ffee-5ee7-4e20-8d12-89d4923d12df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Can I create cam... hari krishna
    • Re: Can I c... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
      • Re: Can... hari krishna
        • Re:... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
          • ... hari krishna
            • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
              • ... hari krishna

Reply via email to