You must have published to the Play Store to be able to review the app. Otherwise the app does not exist and so cannot be rated. There is more information in the manual entry.
Not all Android devices have Google Play. There are different types of non-Google Android devices out there.
Okay, just one doubt, if I put the App ID for the already published app (different dev), what will happens? technically it should work correct?