Google deprecated the API section in the Dev Play Console and i cannot get the new cloud API to work
php serverside looks like this
using https://github.com/googleapis/google-api-php-client
putenv('GOOGLE_APPLICATION_CREDENTIALS='.__DIR__.'/credentials.json');
$client = new Google_Client();
$client->useApplicationDefaultCredentials();
$client->addScope('https://androidpublisher.googleapis.com');
$service = new Google_Service_AndroidPublisher($client);
$purchase = $service->purchases_products->get("com.test.app", "premium", $receipt);
i created an service account and activated the Google Play Android Developer API with the same account i have access to the Dev Play Console
Did you face the same issue? Please help, i also coudnt find any recent tutorial, all the ones i found still have the API section in the Dev Play Console.
this was the most recent tutorial i could find https://medium.com/@msasikanth/google-play-iap-verification-using-cloud-functions-bd8c3a22f9b9 which is already outdated, under “grant access” there are only Roles i can grant, one of them is “Finacial Services Admin” and none seems app or google play related
official doc is here https://developers.google.com/android-publisher/getting_started cant do step 5 because i either dont know where to find it or it was removed (more likely)
I suspect that the Roles are key but i have no clue which and i dont find any good tutorial/documentation
What is the error message?
Different, somtimes Permission denied, currently its invalid authentication, but thats an IAM issue i think.