Adwords Api interface is thread safe

20 views
Skip to first unread message

adwor...@ylbs.com.cn

unread,
Sep 28, 2017, 5:07:48 AM9/28/17
to AdWords API Forum
Hi
Will the Google Adwords Api interface provided by the thread is safe?
I have a problem in the multithreaded concurrent request google API interface when there is an exception. my interface object is only created once(CamapignInterfaceService), and then found in the Google forum above someone also encountered the same problem, because the Adwords Api interface is not thread-safe, each request to create a new API.
I would like to confirm whether the Google Adwords API interface is thread safe
Thanks


Zweitze

unread,
Sep 28, 2017, 7:16:29 AM9/28/17
to AdWords API Forum
Assuming .NET, the library is not thread-safe. You can't use an instance in multiple threads.
Create and use an instance of AdWordsUser in every thread and you'll be fine.

Shwetha Vastrad (AdWords API Team)

unread,
Sep 28, 2017, 11:42:06 AM9/28/17
to AdWords API Forum
Hi, 

Please see this guide for more details on thread safety in the Java client library and this guide for thread safety in the .NET client library. I would suggest that you check the client library you are interested in for more details. 

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages