Registering your application
You need to register your application, including your digitally signed .apk file's public certificate in the Google Developers Console, to be able to use the YouTube Android Player API. The following steps explain how to register your application and certificate as well as how to find your application's authorization credentials.
Create your project and select API services
1. Go to the Google Developers Console.
2. Select a project.
3. In the sidebar on the left, select APIs & auth. In the list of APIs, make sure the status is ON for the YouTube Data API v3.
4. In the sidebar on the left, select Credentials.
5. The API supports two types of credentials. Create whichever credentials are appropriate for your project: ◦
OAuth 2.0: Your application must send an OAuth 2.0 token with any request that accesses private user data. Your application sends a client ID and, possibly, a client secret to obtain a token. You can generate OAuth 2.0 credentials for web applications, service accounts, or installed applications.
Learn more
API keys: A request that does not provide an OAuth 2.0 token must send an API key. The key identifies your project and provides API access, quota, and reports.
If the key type you need does not already exist, create an API key by selecting Create New Key and then selecting the appropriate key type. Then enter the additional data required for that key type.