I created an issue as the client library. https://github.com/googleads/google-ads-java/issues/438
Christian H. schrieb am Donnerstag, 3. Juni 2021 um 11:42:10 UTC+2: > I found out what causes the size difference between the uncompressed > results: > > Each result line created by the new Google Ads API seems to contain the > resource names (even though I didn't requested it) for the campaign, > adgroup and adgroup criterion. This makes each result "line" about 5,7 > times larger compared to the report file I requested using the old Adwords > API. This matches the mentioned 50MB vs. 280MB difference between the old > and the new report download size. > > I suspect that sending the resource names cannot be disabled. So the only > way to reduce the bandwidth usage would be activating transfer compression. > Is there already a possibility to do it > (io.grpc.stub.AbstractStub.withCompression(String) seems to support gzip) > or should I open an issue at https://github.com/googleads/google-ads-java > ? > > Best regards > > Christian > > Christian H. schrieb am Donnerstag, 3. Juni 2021 um 09:30:12 UTC+2: > >> Hi! >> >> I started the migration from Adwords to Ads API and began with the >> reports. I have noticed that the new reports take longer to run. I found >> out that the reason is the amount of data transferred. One of my reports >> just queries the states of all criteria in an account: >> >> SELECT campaign.status, ad_group.status, ad_group_criterion.status, >> ad_group_criterion.type >> FROM ad_group_criterion >> WHERE ad_group_criterion.negative = false >> AND campaign.status != REMOVED >> AND ad_group.status != REMOVED >> AND ad_group_criterion.status != REMOVED >> >> For my example account the result of this query using the old Adwords API >> is a compressed CSV-File of 150KB (after decompression 50MB). When using >> the Ads API's SearchStream, 280MB of data are transferred. So the longer >> runtime is not caused by a slower response, but by the amount of data that >> takes more time to be transferred. >> >> Is there a possibility to enable any kind of stream compression to >> prevent transferring these huge amounts of data? >> >> Thank you, >> >> Christian >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/d8941f71-0356-4ade-b7fa-498943e94028n%40googlegroups.com.
