Using access_token access Google Adwords API without Auth.ini file is possible.

255 views
Skip to first unread message

adwor...@emphasizebpo.com

unread,
May 26, 2015, 10:36:18 AM5/26/15
to adwor...@googlegroups.com
Hi Team,

I need to manage multiple different Adwords accounts for each user or company.

By default , Adwords API library files provide "Auth.ini" file to set default values of single client.

But I need to modify that credentials for different level of users or companies.

When am using connect with google snippet , i've got access_toekn & refresh_token  after accepting permission for "Manage Adwords Campaigns".

With use of these tokes can i access google adwords API library.IS it possible?

After login with google connect , I need MCC clientId , How can i do this , pls help me for this problem.

Thanks,
Senthil

Michael Cloonan (AdWords API Team)

unread,
May 26, 2015, 10:53:48 AM5/26/15
to adwor...@googlegroups.com, adwor...@emphasizebpo.com
Hello,

Please see our example on how to authenticate without using the auth.ini file. If you are making an app that needs to modify multiple different customers, this will be a more useful way to authenticate.

The refresh token and access tokens you get authenticate you as an MCC, which gives you privileges to make changes or report on every child account under that MCC. You do not need a new access/refresh token to make a call against a different client account. You only need to specify the new Client Customer ID.

Regards,
Mike, AdWords API Team

Minas Gratas

unread,
Jan 10, 2017, 1:40:28 PM1/10/17
to AdWords API Forum, adwor...@emphasizebpo.com
The link is not valid anymore. Is there any other source that we can use now with v201609?

Vishal Vinayak (Adwords API Team)

unread,
Jan 10, 2017, 5:23:47 PM1/10/17
to AdWords API Forum, adwor...@emphasizebpo.com
Hi Minas,

You can refer to this example to authenticate without using the ini file. More information available in the Basic Usage section of our PHP client library. 

Regards,
Vishal, AdWords API Team

Mns M

unread,
Jan 11, 2017, 6:14:40 PM1/11/17
to AdWords API Forum, adwordsapiadvis...@google.com, adwor...@emphasizebpo.com
Thank you Vishal,

I wish there was a better example for OAuth as there is one for .Net and Java:/ Still having issues on this one.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/OAy0jQblGUw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
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/877d3ca8-7c89-4932-b902-fa672e5081e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vishal Vinayak (Adwords API Team)

unread,
Jan 12, 2017, 11:24:30 AM1/12/17
to AdWords API Forum, adwordsapiadvis...@google.com, adwor...@emphasizebpo.com
Hi Minas,

You can refer to this example in Java to create AdWords session without using a properties file. This directory has more relevant examples. For instructions on how to set up similar configuration in the .Net library, please refer to this guide
Reply all
Reply to author
Forward
0 new messages