Java streaming to google ads

51 views
Skip to first unread message

dhmitc...@gmail.com

unread,
Mar 18, 2024, 12:17:05 PM3/18/24
to Google Ads API and AdWords API Forum
I know how to stream from google ads search but I can't see any appropriate classes in the java sdk (v15) for streaming to google ads. In particular, I want to stream to ConversionUploadServiceClient or its equivalent as google's servers are frequently failing with our large payloads on this service.

Are there any good examples or any clues as to which interfaces to use to stream to google's servers?

Don Mitchell
Tech Fellow
CarGurus

Google Ads API Forum Advisor

unread,
Mar 19, 2024, 12:49:23 AM3/19/24
to dhmitc...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads API support team. 

By reviewing your concern, I understand that you aim to transmit data to ConversionUploadServiceClient or a similar service on Google's servers, as you're encountering recurrent failures when dealing with large payloads on this particular service. I would recommend you to kindly refer to the Java sample code as it describes on how to use this service while uploading conversions. 

In order to investigate your issue further, kindly provide us with the complete API logs (request and response logs with request-id and request header) generated at you end along with the uncropped UI screenshot of the Google Ads account of where you are facing this issue. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides in Java to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email. 

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

Thanks,
 
Google Logo Google Ads API Team


dhmitc...@gmail.com

unread,
Mar 19, 2024, 10:06:49 AM3/19/24
to Google Ads API and AdWords API Forum
I believe the problem on your servers started 15 March 11am NewYork time. It's possible that your servers have recovered and it's working better now. Your recovery occurred circa 18 Mar 1500 NY time.

I'd still like to know how to stream to your servers via protobuf java sdk. I know how to stream from your servers as I said.

Google Ads API Forum Advisor

unread,
Mar 19, 2024, 3:57:37 PM3/19/24
to dhmitc...@gmail.com, adwor...@googlegroups.com
Hi,

I would like to inform you that our team is currently working on this issue. One of our teammates will get back to you once we have an update on this. Meanwhile your patience is appreciated.

Google Ads API Forum Advisor

unread,
Mar 20, 2024, 8:20:25 AM3/20/24
to dhmitc...@gmail.com, adwor...@googlegroups.com
Hello,

There API doesn't support streaming uploads for conversions. You need to make separate discrete requests, each of which have a batch of 2000 or fewer conversions.

The API generally doesn't support streaming uploads for any feature. You can stream search results, however. Here's an example of how to do that in Java: https://github.com/googleads/google-ads-java/blob/main/google-ads-examples/src/main/java/com/google/ads/googleads/examples/basicoperations/GetCampaigns.java#L88

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

Thanks,
 
Google Logo
Michael Cloonan
Google Ads API Team


Don Mitchell

unread,
Mar 20, 2024, 8:36:27 AM3/20/24
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Thanks. Given that we average 500k records in this one job, that's 250 API calls. How awkward. Seems strange for a protocol (protobuf) which natively supports streaming. If you could put in a request for enhancement, that'd be great.

Google Ads API Forum Advisor

unread,
Mar 20, 2024, 8:40:29 AM3/20/24
to dhmitc...@gmail.com, adwor...@googlegroups.com
Hello,

I will pass your suggestion along to the team. I think it's quite a good idea, personally, but I can't make any guarantees on when or if it will ever be implemented.
Reply all
Reply to author
Forward
0 new messages