Comments (4)
@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.
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.
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.
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)
- Wait for response forever in Cloud Functions
- unable to compile with 13.0.1
- No information on documentation HOT 1
- Adding/Removing Criteria, and missing Documentation HOT 1
- OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE
- List customers with their descriptive names
- Why is `toJSON` required for `generateKeywordIdeas`?
- Authentication Error
- Upgrade Google Ads API to v15 HOT 19
- How to create a custom segment via the SDK? HOT 1
- Customer report showing previous day's data when date_constant is 'TODAY'
- Bad resource id in query from conversion_action HOT 1
- TypeError: this.auth.getUniverseDomain is not a function HOT 1
- Query returns campaign data, but report options does not based on TODAY date_constant
- size of module growing, making use with AWS lambda functions difficult HOT 2
- Can't change a Promotion Asset from "Money Amount Off" to "Percent Off".
- Inquiry on Support for HTTP Proxy
- Service Account Authentication HOT 1
- API calls are too slow
- V16 is deprecated. need v17, other calls are invalid HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-ads-api.