1. Open the Google Developers Console
2. If you haven’t created any API project yet, click Create Project.
3. Create Credentials.
4. Enable API you want to use: Select Google Cloud Messaging
5. Click to get GCM Sender ID is project number , which is 1470765158277
1. Click on Credentials and create credentials