Google play services fail in Distribution build

Found the problem, it was the keystore that was a debug one not a release keystore and also the game has to be downloaded from the app store in order for the services to function properly.