Inquiry Regarding Automatic Conversion of Protobuf Types for Google Ads API

18 views
Skip to first unread message

T Sumanth

unread,
Sep 30, 2024, 10:06:14 AM9/30/24
to Google Ads API and AdWords API Forum
Hi Team,

  I am currently working on a project that involves loading Google Ads data into Snowflake, and I’ve encountered a challenge while converting the various Protobuf types defined in the ad.proto file (specifically from version v17). The file I’m referring to can be found at the following link:  https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v17/resources/ad.proto

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

Google Ads API Forum Advisor

unread,
Sep 30, 2024, 3:17:20 PM9/30/24
to t.su...@cimpress.com, adwor...@googlegroups.com

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.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGbJq:ref" (ADR-00270068)

Thanks,
 
Google Logo
Sarah Pollack (Botwinick)
Google Ads API Team


Reply all
Reply to author
Forward
0 new messages