YouTubePlaylist
YouTubePlaylist copied to clipboard
On production playstore
{ "errors": [ { "domain": "global", "reason": "required", "message": "Required parameter: part", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "Required parameter: part" }
thats the error I got. and I have an api key working. any Idea?
Do you have a stack trace showing which class the error is coming from? It's either GetPlaylistAsyncTask.java or GetPlaylistAsyncTask.java. Take a look inside those classes, notice the class member variables YOUTUBE_PLAYLIST_PART and YOUTUBE_VIDEOS_PART. These selectors indicate which part of the "playlist" or "video" API request should be included in the response. The error message you posted seems to indicate that the "part" parameter is missing from the API request which is required. You're going to have to do some debugging to figure out what's happening with your code in production that this parameter is not being set on the API request.
on debug works perfect, but when I use the app on the playstore fails, I check the key by using http request, I put the part on the builder and nothing works
Same Issue Occured
It work perfectly on debug but videos are not show when upload the app on playstore.