Skip to main content
YouTube On your own instance the Google Cloud project is yours: create the OAuth client, enable the YouTube APIs, then put the client id and secret in your environment. Follow the instructions as available in the Obtaining authorization credentials.

General Setup

1

Go to Credentials Page

Make sure you are logged in to your Google account and visit the Credentials - APIs & Services page. Make sure to read the terms and conditions and “Agree and Continue”.
2

Create Project

Create a new project by clicking on the “Create Project” button. Fill in the project name, and details and click “Create”.
3

Create OAuth Credentials

Create credentials by clicking on the “Create Credentials” button. Select the “OAuth client ID” option.
4

Configure Consent Screen

Navigate to the OAuth consent screen tab. If it is not already configured:
  1. Select “External” user type, unless you have a Google Workspace organization
  2. Fill in the required app information
  3. Add yourself as a test user
  4. Save and continue through the wizard
On the Scopes step, add the eight PostQueen asks for. The connect is refused if any one of them is missing:
While the app sits in Testing, only accounts you added as test users can connect. For an install you intend to keep, publish the app.
5

Fill in OAuth Details

Create the OAuth client ID. Select “Web application” as the application type and fill in the details.Your YouTube OAuth2 Redirect URI:
  • Production: https://postqueen.example.com/integrations/social/youtube
  • Local development: http://localhost:4200/integrations/social/youtube
  • Docker: http://localhost:4007/integrations/social/youtube
Under “Authorized redirect URIs”, insert your OAuth2 Redirect URI.
The OAuth client configuration in Google Cloud Console, with the Authorized redirect URIs field
After following all of the steps above you should be met with a screen that shows your client ID and client secret. Add these to your providers configuration.
6

Add Test User

Add yourself as a test user of the application
The OAuth consent screen test users panel, with the control for adding your own account
7

Activate YouTube's API

Go to “Enabled APIs and Services”. Then click on “Enable APIs and Services”. Search “YouTube Data API v3” and activate the API by selecting it and clicking “Enable”. Do the same Process with “YouTube Analytics API” and “YouTube Reporting API”.
The Enabled APIs and Services page in Google Cloud Console
The API library search results, with YouTube Data API v3 ready to enable
8

Restart and add the YouTube channel

Additional Steps for Brand Accounts

When using a Brand account you will need to set your APP to External and setup a test user. You do not need to publish the APP, but it does take time for the changes to propagate. You will also need to add the app to the trusted apps within your google workspace Admin.
1

Go to admin.google.com

Sign in
2

Go to Security Settings

Go to Security → Access and data Controls → API Controls Click Manage Third Party App Access
3

Configure new App

Click “Configure new App” Put your Client ID for the app you created in previous steps into the search box and select your app
4

Set scopes and Google Data Access

Set scopes and Google Data Access for the app to Trusted Once set, click save
5

Wait for propagation

Wait at least 5 hours for the changes to propagate. After this time you should now be able to add your YouTube channel to your PostQueen account

Next steps

What she can post to YouTube

Limits, post types and settings

Configuration reference

Every variable she reads

Connect errors

Invalid state, invalid_grant and the rest

Another channel

Every network, and what each one asks for