How to Authenticate Apple Search Ads in Google Sheets, Google Data Studio & Microsoft Excel

This guide gives instructions on how to authenticate Apple Search Ads with Google Sheets and Microsoft Excel.


Quick links to specific sections: 

Google Sheets

Data Studio

Excel

API Certificate

"If everything fails..." 


Data Source Access Requirements:

To enable Supermetrics for Apple Search Ads, you must meet the following requirements:

  • Admin access is required to generate an API certificate. To create an API certificate, please see how to create an API certificate.
  • When creating an API certificate, Read only or higher access level must be selected for the certificate itself.


Authenticating with Google Sheets

To authenticate Apple Search Ads in Google Sheets, please do the following steps:

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

2. Select Apple Search Ads in the sidebar, under add data sources.

3. Insert the key and certificate and click on start. To create these credentials, see how to create an API certificate


4. You have completed all the steps. Now you can go back to the sidebar and select your Apple Search Ads account under select accounts.


Authenticating with Data Studio:

To authenticate Apple Search Ads in Google Data Studio, please do the following steps.

1. Since the data source is in early access, please use this link to authenticate the data source. 

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


3. Insert the key and certificate and click on start. To create these credentials, see how to create an API certificate


4. Select your account to proceed.

5. Click on connect on the top right side to continue.

6. By default, there will be a list of fields. You can skip this list and click on create report.

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


Adding additional user accounts or removing old ones with Data Studio


1. Click on the link below to add additional user accounts or to remove old user accounts. If you don't need to add/remove user accounts, you can skip this step.

2. If you wish to add a user account, click on Add Apple Search Ads user account. If you wish to remove a user account, click on the bin icon. To continue with the same user account, click on continue.


Team management with Data Studio

From the link below, you  can access your team management page, where you can change assigned users on your license, add new team members, etc. For more details, see Team Management Basics.


Authenticating with Excel:

To authenticate Apple Search Ads in Excel, please do the following steps:

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

2. Select Apple Search Ads in the sidebar under add data source.


3. Insert the key and certificate and click on start. To create these credentials, see how to create an API certificate


4. You have completed all the steps. Now you can go back to the sidebar and select your Apple Search Ads account under select accounts.


How to create an API Certificate: 

  1. Log in to Apple Search Ads and insert your username and password to proceed.
  2. Go to account settings and, under API click on create API certificate.

  3. Create an API certificate name (can be anything). Select account read only and click on create. 
    Please note that "limited access" is not enough.
  4. You might need to wait a minute or two for the certificate to be generated. Refresh the page until you see your new certificate.
  5. Hand-pick your certificate, click on actions, and click on download certificate to download it.
  6. Once you have opened the certificate, an automatic download-page will open up. Extract the zip file (by clicking on the arrow on the left side) of "certificates", and you will see two files.
  7. The two files will have two different domains.
    The document ending with "KEY" will give you the "key" login information.
    The document ending with "PEM" will give you the "certificate" login information.
    Right-click on each file and, under open with select Notepad or TextEdit (for Mac), or a similar text editor. Might require selecting an application manually.
  8. Copy-paste the whole text from the document ending with.key to the "key" login text.
    Copy-paste the whole text from the document ending with.pem to the "certificate" login text.
    For key, make sure to include -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY-----.
    For certificate, make sure to include -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----
    Example of how the key text looks like:


"If everything fails..." 

Common errors:

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

Common errors

  • Error: "Authentication failed" & "You need to re-authenticate at X and then run the query again.", please see this guide.
  • 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.


Further assistance 

If you have followed all the above steps and you still encounter an authentication error, please create a new support request with the details of the issue and we will assist you.


Did you find it helpful? Yes No

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