You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an issue with the Google Play Developer API (v3) when fetching reviews for an app. Despite setting maxResults to 100 or 50, the nextToken in the response is consistently null, even when the number of reviews returned is less than maxResults, and I know additional reviews exist.
Steps to Reproduce
Environment:
PHP Version: 8.4.1
Laravel Framework: 11.31
Google API Client Library: ^2.18
Google Play Developer API Version: v3
Authentication via env('GOOGLE_APPLICATION_CREDENTIALS') (service account JSON)
The nextToken field in the API response should contain a value to indicate there are more reviews to fetch when the total number of reviews exceeds the maxResults parameter.
Observed Behavior
The nextToken field is null in the response, even when:
Fewer reviews are returned than the maxResults parameter (e.g., 80 reviews when maxResults is 100).
Additional reviews are available for the app.
Additional Notes
I’ve verified that my authentication setup is correct using env('GOOGLE_APPLICATION_CREDENTIALS'), and other API endpoints work as expected.
This behavior occurs consistently, regardless of the maxResults value (tested with 100 and 50).
Environment
PHP: 8.4.1
Laravel Framework: ^11.31
google/apiclient: ^2.18
Google Play Developer API Version: v3
Authentication: Service Account JSON (env('GOOGLE_APPLICATION_CREDENTIALS'))
Request for Clarification
Could you confirm if:
This is a bug with the API's pagination mechanism?
There’s a specific filter or limitation causing this behavior?
Any workaround exists to ensure all reviews are fetched without relying on nextToken?
The text was updated successfully, but these errors were encountered:
I am encountering an issue with the Google Play Developer API (v3) when fetching reviews for an app. Despite setting
maxResults
to 100 or 50, thenextToken
in the response is consistentlynull
, even when the number of reviews returned is less thanmaxResults
, and I know additional reviews exist.Steps to Reproduce
Environment:
env('GOOGLE_APPLICATION_CREDENTIALS')
(service account JSON)Code:
Service:
Controller:
API Request:
Example of the API request using the provided code:
Example API Response:
Expected Behavior
The
nextToken
field in the API response should contain a value to indicate there are more reviews to fetch when the total number of reviews exceeds themaxResults
parameter.Observed Behavior
nextToken
field isnull
in the response, even when:maxResults
parameter (e.g., 80 reviews whenmaxResults
is 100).Additional Notes
env('GOOGLE_APPLICATION_CREDENTIALS')
, and other API endpoints work as expected.maxResults
value (tested with 100 and 50).Environment
google/apiclient
: ^2.18env('GOOGLE_APPLICATION_CREDENTIALS')
)Request for Clarification
Could you confirm if:
nextToken
?The text was updated successfully, but these errors were encountered: