Supermetrics Support Forum

How to Authenticate/Re-authenticate Twitter Premium in Google Sheets, Google Data Studio & Microsoft Excel

This guide gives instructions on how to successfully authenticate Twitter Premium.  


Quick links to specific sections: 

Google Sheets

Data Studio

Excel

"If everything fails..." 

Data Source Access Requirements:

License required: Please note that Twitter Premium is available only with the Enterprise license, whether you are using Data Studio, Google Sheets, or Microsoft Excel. 


*Multi-account login or Agency access: Twitter Premium API does not allow to fetch data from multiple accounts with one login. However, there are simple workarounds, and to do so please follow the steps below with * that are product-specific.  


Authenticating with Google Sheets

To authenticate Twitter Premium in Google Sheets, please do the following steps:

1. Open up the Supermetrics sidebar in your Google Sheets. 

2. Select Twitter Premium in the sidebar, under data source.

2. An automatic Twitter Premium login page will open up, click on start

3. Click on authorize app. If you wish to learn more about data security and data privacy, please see this page.

* Multi-account login or Agency access: Since it is not possible to fetch data from multiple accounts with one login, you will need to add each account separately. 


To add a new account separately, click on "add new user".

Please note that you may need to log out from the active account in the browser to add another account, else it will use the existing cookie.


**Warning** More profiles mean more requests, therefore, selecting multiple profiles increases the chances to run into the rate-limiting (depending on the type of request). To learn more about this topic, please see this guide.


4. You have completed all the steps. You can now go back to the sidebar and select your Twitter Premium account under data source.

Re-authenticating with Google Sheets:

To re-authenticate Twitter Premium in Google Sheets, please go to this guide.


Authenticating with Data Studio:

To authenticate Twitter Premium in Google Data Studio, please do the following steps:

1. Click on add data.

2. Search for Twitter Premium by Supermetrics and click on it.

3. Click on authorize. If you wish to learn more about data security and data privacy, please see this page

4. Click on authorize app. If you wish to learn more about data security and data privacy, please see this page

5. Click on the link below to authenticate your account. 

With this link you can also add or delete accounts.


6. Click on OK, let's continue to continue with that account. If you wish to log in with a different account, click on Add Twitter Premium user account. Click on remove to remove the account. 

7. *Multi-account login or Agency access: Since it is not possible to fetch data from multiple accounts with one login, you will need to add each account separately. 


To add a new account separately, click on "add Twitter Premium user account".

You might need to refresh the configuration page to select multiple accounts.

**Warning** More profiles mean more requests, therefore, selecting multiple profiles increases the chances to run into the rate-limiting (depending on the type of request). To learn more about this topic, please see this guide


- If your Data Studio account belongs to multiple teams, you will see the option to select the team you wish to use. Go to the link below and select the team name with your license to proceed. (If you only belong to one team, skip to the next step).

7. Select the account and query type and click on next

- There are additional filters such as: "Include retweets" and "Include replies" that can be skipped and added later.


8. Click on add on the bottom right side to continue. 

9. As a final step, click on add to report.

Re-authenticating with Data Studio:

To re-authenticate Twitter Premium in Data Studio, please go to this guide.

Authenticating with Excel:

To authenticate Twitter Premium in Excel, please do the following steps:

1. Click on data and open up the Supermetrics sidebar in Excel.

2. Select Twitter Premium in the sidebar under data source.

3. An automatic popup will open up, click on start.

4. Click on authorize app. If you wish to learn more about data security and data privacy, please see this page

5. *Multi-account login or Agency access: Since it's not possible to fetch data from multiple accounts with one login, you will need to add each account separately. 


To add a new account separately, click on "add account".


Note that you may need to log out from the active account in the browser to add another account, else it will use the existing cookie.


6. To see all the accounts logged in, scroll down to “Select accounts:”, and select the one you wish to use with the query.

**Warning** More profiles mean more requests, therefore, selecting multiple profiles increases the chances to run into the rate-limiting (depending on the type of request). To learn more about this topic, please see this guide.


7. You have completed all the steps. You can now go back to the sidebar and select your Twitter Premium account under data source.

Re-authenticating with Excel:

To re-authenticate Twitter Premium in Excel, please go to this guide.


"If everything fails..." 

Common errors:

If you encounter any of the following errors below, please see the guide linked after the error message.

For Twitter Premium only:

  • For Twitter Premium limitations and rate limitsplease see this guide

General errors: 

  • Error: "This was a reauthorization request for user X but logged in as user Y", please see this guide
  • Error: "You're not allowed to run queries with this license #12345. This is because you have not been assigned to the license as a valid user." please see this guide.
  • Error: "This action is not supported when you are signed into multiple accounts". please see this guide.
  • If you no longer see a specific account/page/etc. when logging in, please see this guide
  • If you haven't managed to authenticate you might be affected by an issue at Google account management. For more information, please see this guide.

Forcing a refresh per account data & removing a data source:

To force a refresh per data source, please see this guide.

To remove a data source from Google Sheets, please see this guide.

To remove a data source from Data Studio, please see this guide.

To remove a data source from Excel, please see this guide.


Refreshing tokens 

As a final step, if you wish your tokens to be refreshed, please create a support ticket.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.