ADF Google Ads Linked Service using Service Authentication as the Authentication Type ERROR pkcs8PrivateKey

mamadou bhoye sow 30 Reputation points
2025-03-04T21:37:57.02+00:00

Trying to access Google Ads data using a Google Ads Service Account, and the ADF Google Ads Linked Service. The linked service "Authentication type" set to "Service authentication".  We generated a private key for this Service Account in Google, and we have used the key as the value in the "Private key" field of the linked service.  We have populated the other required linked service fields (Name, Client customer ID, Developer token, Email), and also the optional "Login customer ID" field.  We have also designated the linked service to use a self-hosted integration runtime instead of the AutoResolveIntegrationRuntime.  

Point here:
the private key is a valid too and we tested its validity using openssl
-----BEGIN PRIVATE KEY-----

MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC...

-----END PRIVATE KEY-----

When testing the connection, we are receiving this error message:

The error said we the parameter is empty looks like the google ads connector ui is not recognizing the content of the private key.

Test connection operation failed.
Failed to open the database connection.
Fail to read from Google Ads.
Parameter was empty Parameter name: pkcs8PrivateKey

Any help from Microsoft?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,339 questions
{count} vote

Accepted answer
  1. AnnuKumari-MSFT 34,351 Reputation points Microsoft Employee
    2025-03-12T10:04:52.18+00:00

    mamadou bhoye sow ,

    Glad that you figured out the way to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    The issue was solved by setting up an self hosted integration runtime. Created a linked service with google ads connector with all the required credentials. The private key need need to be PKCS#8 and should not contains space between the headers.

    For the private key , follow the below command:

    -----BEGIN PRIVATE KEY-----Masdfasdfasdfadsfadfadsfadsfasdf....kajdfakasdfa-----END PRIVATE KEY---

    Kindly accept the answer by clicking on Accept answer button so that the solution reaches the community in case anyone is facing similar issue. Thankyou.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.