HTTP OAuth doesnt connect with Google cloud login

Hi everyone,

I want to connect the google ads api from Google cloud. I completed all the steps from this page, however after step 18 I keep getting the below error:

However, as far as the help center page and GPT of make.com advises, the below URL redirect seems correct. Please help in completing the connection?

As the setup below, doesnt work.
PS: Left the client id and client secret id empty on purpose for sharing.

Maybe someone has a solution. A workaround where I can create a verified user connection with the google API on another way would work aswell.

Welcome to the Make community!

I don’t think you can use access type offline there.

How to create an OAuth app in GCP: https://www.make.com/en/help/tutorials/calling-google-apis-via-the--http-make-a-oauth-2-0-request--module ← FOLLOW THIS

1a. Enable the relevant API

Find the relevant API here: Google Cloud console
Go to API page, end click “Enable”

1b. Add the relevant scopes

Direct Link: https://console.cloud.google.com/apis/credentials/consent/edit

2. Insert all the known Google Redirect URIs for your app

Direct Link: https://console.cloud.google.com/apis/credentials

Here are some known redirect URIs you need for your Google Cloud Console OAuth app. If you set these up, you can reuse the same GCP app for other Google apps and modules on Make.

Once you’ve set these up, you can use/reuse the same Make connection for all the supported Google apps & modules on Make - you’ll only have to enable the APIs for your custom app.

3. Publish your GCP OAuth2 app

Direct Link: https://console.cloud.google.com/apis/credentials/consent

You might need to set your OAuth application to “Production”, otherwise the credentials expire very frequently.

1. To do this, go to menu item “OAuth consent screen”

or click here https://console.cloud.google.com/apis/credentials/consent

2. Then click the button below if the Publishing status is not “In production”

4. Set up connection (HTTP OAuth, or respective Google App)

A. HTTP OAuth2

You need a “Authorize parameters” key of redirect_uri with the above Make OAuth2 callback URL.

You can find the Client ID and Client Secret in the OAuth2 app you created in GCP, on the right-hand side of where you inserted the 8 callback URLs in step 2:


B. Google App

Insert the GCP app client ID and secret here BEFORE clicking “Sign in”
Gmail example:

samliew – request private consultation

Join the unofficial Make Discord server to chat with us!

1 Like

Thanks and is this set-up identical for the google ads api? Hence thats the one, I want to connect.

Give it a try with step 4B, and report back if it works (it should), because all Google services are connected through the Google Cloud API (just with different scopes - so ensure you select the right scopes or all of them for convenience).

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!

1 Like

Thanks and I was able to move forward. However, when adding all the information, which I verified through the make.com GPT, I get an 404 error when running the HTTP module. Any idea whats causing this, as to my knowledge it seems correct?

Setup:


JSON request content
{
“customerId”: “9561946005”,
“language”: {
“resourceName”: “languageConstants/1000”
},
“geoTargetConstants”: [
{
“resourceName”: “geoTargetConstants/2392”
},
{
“resourceName”: “geoTargetConstants/2036”
}
],
“keywordPlanNetwork”: “GOOGLE_SEARCH”,
“keywordSeed”: {
“keywords”: [
“kinderslaapproblemen”,
“slaapproblemen baby”,
“slaaptips kinderen”,
“baby slaapt niet”,
“kind slaapt slecht”,
“slaaprituelen kind”,
“slaaptraining baby”,
“slaapcoach kinderen”,
“slaapgewoontes kinderen”,
“slaapproblemen peuter”,
“kind moeilijk in slaap”,
“slaaptherapie kind”,
“slaap tips baby”,
]
}
}

However, it get the 404 in my output:

[
{
“ca”: null,
“qs”: ,
“url”: “https://googleads.googleapis.com/v10/customers/9561946005/keywordPlans:generateKeywordIdeas”,
“data”: “{\n "customerId": "9561946005",\n "language": {\n "resourceName": "languageConstants/1000"\n },\n "geoTargetConstants": [\n {\n "resourceName": "geoTargetConstants/2392"\n },\n {\n "resourceName": "geoTargetConstants/2036"\n }\n ],\n "keywordPlanNetwork": "GOOGLE_SEARCH",\n "keywordSeed": {\n "keywords": [\n "kinderslaapproblemen",\n "slaapproblemen baby",\n "slaaptips kinderen",\n "baby slaapt niet",\n "kind slaapt slecht",\n "slaaprituelen kind",\n "slaaptraining baby",\n "slaapcoach kinderen",\n "slaapgewoontes kinderen",\n "slaapproblemen peuter",\n "kind moeilijk in slaap",\n "slaaptherapie kind",\n "slaap tips baby",\n ]\n }\n}”,
“gzip”: true,
“method”: “post”,
“headers”: [
{
“name”: “Authorization”,
“value”: “Bearer ya29.a0AXooCgtz7KUo_TpDNPLvbJjb3rGwnNZt0IFwgWe6-uNs1usjgcguNPUmgFcRN1BRJl5pLYaAzOHi8qUwnvB41TNHEkvOhPmtniqFRgLIbcZNS1aXF0eoijDxVl0DJBdUul2fubiq9Mg7CWvi0_pMnQ-4LjSkKbMFyluwaCgYKAUESARASFQHGX2MideBDi63cuom3xlhR2DnJVw0171”
},
{
“name”: “Content-Type”,
“value”: “application/json”
}
],
“timeout”: null,
“useMtls”: false,
“bodyType”: “raw”,
“contentType”: “application/json”,
“serializeUrl”: false,
“shareCookies”: false,
“parseResponse”: true,
“followRedirect”: true,
“useQuerystring”: false,
“followAllRedirects”: false,
“rejectUnauthorized”: true
}
]

[
{
“statusCode”: 404,
“headers”: [
{
“name”: “date”,
“value”: “Wed, 19 Jun 2024 09:22:26 GMT”
},
{
“name”: “content-type”,
“value”: “text/html; charset=UTF-8”
},
{
“name”: “server”,
“value”: “ESF”
},
{
“name”: “content-length”,
“value”: “1619”
},
{
“name”: “x-xss-protection”,
“value”: “0”
},
{
“name”: “x-frame-options”,
“value”: “SAMEORIGIN”
},
{
“name”: “x-content-type-options”,
“value”: “nosniff”
},
{
“name”: “alt-svc”,
“value”: “h3=":443"; ma=2592000,h3-29=":443"; ma=2592000”
},
{
“name”: “connection”,
“value”: “close”
}
],
“cookieHeaders”: ,
“data”: “\n\n \n <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">\n Error 404 (Not Found)!!1\n \n {margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px} > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\n \n \n

404. That’s an error.\n

The requested URL /v10/customers/9561946005/keywordPlans:generateKeywordIdeas was not found on this server. That’s all we know.\n”,
“fileSize”: 1619
}
]

Any idea what to correct in order to solve the 404?

No problem, glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

4. Do join the unofficial Make Discord server for live chat and video assistance

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!

1 Like

Thanks and I will mark this as solved

2 Likes