The steps you are doing may be wrong, follow this document to get the API key and project ID, http://frontline.sybase.com/support/resolutionDetails.aspx?KBID=8103
After that for google enrollment: Copy the Browser API key and paste it into the Afaria 7> server>config>enrollment code>under google api key.
For GCM: Copy the server API key and project ID >server>config>component >gcm server.
You need to restart the afaria server and create new enrollment code to use it with GCM.
- Midhun VP