# Issue connecting Google Ads OAUTH

**URL:** https://matillioncommunity.discourse.group/t/issue-connecting-google-ads-oauth/1999
**Category:** Matillion ETL
**Created:** [December 20, 2022, 3:11pm UTC](https://matillioncommunity.discourse.group/t/issue-connecting-google-ads-oauth/1999 "2022-12-20T15:11:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JoeBarkley](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@JoeBarkley](https://matillioncommunity.discourse.group/u/JoeBarkley)
#### Post date: [December 20, 2022, 3:11pm UTC](https://matillioncommunity.discourse.group/t/issue-connecting-google-ads-oauth/1999/1 "2022-12-20T15:11:45Z")

</div>

I've been attempting to add a Google Ads Data connector in my Matillion instance and I have followed all the steps in our Google Cloud instance for setting up the OAuth in OAuth consent screen and OAuth credentials and made sure the Google Ads API is turned on but any time I input the client secret and client id and then click the authorization link I am getting this message "Access blocked: Authorization error - device\_id and device\_name are required for private IP".

&nbsp;

What steps I have taken to resolve:

- This Google Ads API is setup as web application and I made sure the google account we are using is setup as a test user 
- I made sure the URL we have set up that our callback URL re directs to is setup as an approved URI in the credentials. 
- I have reset the client secret multiple times and then tried to connect and I still get the same error message. 

&nbsp;

Does anyone have any other tips or ideas on what I can try to get this connected?

---

<div class="post-metadata">

### Author: ![ClaireSeniorCommunityManager](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@ClaireSeniorCommunityManager](https://matillioncommunity.discourse.group/u/ClaireSeniorCommunityManager)
#### Post date: [January 26, 2023, 3:19pm UTC](https://matillioncommunity.discourse.group/t/issue-connecting-google-ads-oauth/1999/2 "2023-01-26T15:19:33Z")

</div>

Hi [@JoeBarkley](https://matillioncommunity.discourse.group/u/JoeBarkley)​ and thanks so much for joining us on the forums.

If you're still having issues getting this sorted, could I suggest you take a look at the following documents if you haven't already? [**Google Ads Query**](https://documentation.matillion.com/docs/9773612) and [**Google Query Authentication Guide**](https://documentation.matillion.com/docs/2339840). Let us know how you get on.

Many thanks,

Claire

---

<div class="post-metadata">

### Author: ![tchaudhary1619178878382](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@tchaudhary1619178878382](https://matillioncommunity.discourse.group/u/tchaudhary1619178878382)
#### Post date: [May 10, 2023, 6:54pm UTC](https://matillioncommunity.discourse.group/t/issue-connecting-google-ads-oauth/1999/3 "2023-05-10T18:54:33Z")

</div>

Hello,&nbsp;

Google doesn't accept a private IP address when doing Oauth calls.&nbsp;

I added an entry in my Windows hosts file for the local IP on my local machine:

&nbsp;

For windows, please go to the following directory: \Windows\System32\drivers\etc

Add the following entry:

192.168.1.99&nbsp;&nbsp;fakedomain123.com

&nbsp;

(With 192.168.1.99 as your Matillion IP)

&nbsp;

In Google Cloud / credentials you have to add the following

- Under Authorized Javascript origins: https://fakedomain123.com

- Under Authorized Redirect URIs: https://fakedomain123.com/oauth\_redirect.html

&nbsp;

&nbsp;

Now log into your Matillion instance with the fake url: fakedomain123.com

You should go thru the steps again in setting up your OAuth using the Client Id and Secret key from Google.&nbsp;

After the status of your OAuth is "Configured" , you should be able to use it in your Google Component

&nbsp;

You can log off Matillion and log on back with your private IP address and the OAuth should work.

&nbsp;

I am not sure regarding how long the OAuth lasts or when it needs to be redone.

&nbsp;

I hope this helps

&nbsp;
