At present, I need to write multiple if-else statements to handle different Protobuf types (such as DeviceEnum.Device, UrlCollection, TextAdInfo, etc.) manually. I wanted to inquire if there is a more efficient way to handle the conversion of these types by default, perhaps through a library or method within the Google Ads API, that would allow for a more seamless conversion process without requiring custom logic for each type.
Any guidance or suggestions on how to achieve this would be greatly appreciated.
Thank you in advance for your support.
Best regards,
T Sumanth
Hello T Sumanth,
Thank you for reaching out to the Google Ads API support team. I understand you would like to know if there are any libraries or methods available to assist with handling the various Protobuf types offered by the Google Ads API. The Google Ads API supports 6 open source client libraries. The supported languages are Java, .NET, PHP, Python, Ruby, and Perl. You can find the documentation for the client libraries here. We also offer some code samples for each library which can be found here. Let us know if you have any other questions.
![]() |
|
||||