GithubHelp home page GithubHelp logo

Comments (4)

avermeil avatar avermeil commented on June 30, 2024 1

@issacg, regarding the issues not working correctly: make sure you're not running adblock. The name of this repo causes issues with some github features sometimes.

If you're keen to get things working reliably on your end before @kritzware's solution, consider splitting up your request into two: the first with attributes, and the second with segments & metrics. Since you're segmenting by date 30x (I assume?), this will make your response sizes much smaller, since the attributes are wastefully repeated when you segment. You'll need to merge the results of the two requests in your application code (on resource_name), but it sure beats downloading a 9MB payload!

from google-ads-api.

avermeil avatar avermeil commented on June 30, 2024 1

It turns out that the limit of 4MB was set client side by the node-grpc library that we use. We've raised that limit to 1GB in our latest release, 2.1.1. It's pretty likely that something else will break before you can actually download a 1GB report in a single query, but hey 🤷‍♂

Happy querying!

from google-ads-api.

kritzware avatar kritzware commented on June 30, 2024

Hmm, that's odd. I don't think we have any restrictions on commenting, so perhaps it's an issue on your end? No worries though, we can continue here.

Adding streamed responses is something we are considering for sure. It would be handled in our gRPC library google-ads-node though, where I've opened an issue on this topic. If this works out well, we would most likely implement streaming internally in this library for larger requests, so your code remains the same 👍

from google-ads-api.

issacg avatar issacg commented on June 30, 2024

Another option, for other stuck here, is to use the pagination controls available via report. It's a bit of a hack, and a bad one too - since you'd need to guess around the payload size of a given page - but it works, and in theory is doing something similar to what streaming would be doing behind the scenes...

(it might be nice to offer page_size via query, too)

from google-ads-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.