Before you can sync data with Google Sheets, you need to create a Google Cloud project and set up OAuth 2.0 credentials. This is a one-time setup process.
Step 1: Create a Google Cloud Project
- Go to the Google Cloud Console.
- Click Select a project at the top, then click New Project.
- Enter a project name (e.g., “SyncSheets”) and click Create.
Step 2: Enable Required APIs
SyncSheets requires two Google APIs to function:
- Google Sheets API — For reading and writing spreadsheet data.
- Google Drive API — For listing your spreadsheets (read-only metadata access).
To enable them:
- In Google Cloud Console, go to APIs & Services → Library.
- Search for Google Sheets API, click it, then click Enable.
- Search for Google Drive API, click it, then click Enable.
Step 3: Configure OAuth Consent Screen
- Go to APIs & Services → OAuth consent screen.
- Select External user type (or Internal if using Google Workspace).
- Fill in the required fields: App name, User support email, and Developer contact email.
- On the Scopes step, add these two scopes:
https://www.googleapis.com/auth/spreadsheetshttps://www.googleapis.com/auth/drive.metadata.readonly
- Save and continue through the remaining steps.
Step 4: Create OAuth 2.0 Client ID
- Go to APIs & Services → Credentials.
- Click Create Credentials → OAuth client ID.
- Set Application type to Web application.
- Under Authorized redirect URIs, add the redirect URI shown in SyncSheets → Settings in your WordPress admin.
- Click Create.
- Copy the Client ID and Client Secret.
Step 5: Connect in WordPress
- Go to SyncSheets → Settings in your WordPress admin.
- Paste your Client ID and Client Secret.
- Click Connect Google Account.
- You will be redirected to Google to authorize access. Grant the requested permissions.
- Once connected, you will see your Google account email displayed on the Settings page.
Your Google account is now connected and you are ready to create sync jobs!