Batch Reporting - Google Analytics API

Can we do batch reporting using the Google Analytics API?
I’m trying to create a query following the tutorial below: https://developers.google.com/analytics/devguides/reporting/core/v4/basics#sampling
but I keep getting errors.
This issue was also highlighted in the following thread: Google Analytics API v4
Thanks for the help!