Problem with setting up source for GSC #44499
Unanswered
Nikaz92
asked this question in
Connector Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I already set up the sources for gads, facebook, bing ads, but nothing works for me, when it comes to google search console. I tried both ways, using oauth and json file key. When Im trying to get refresh key the same way I did for gads, except with the scope https://www.googleapis.com/auth/webmasters.readonly which is also added to oath consent screen I generate auth code using:
https://accounts.google.com/o/oauth2/auth?client_id=my.client.id&redirect_uri=my.redirect.uri&response_type=code&scope=https://www.googleapis.com/auth/webmasters.readonly
I get the code, use curl to get refresh code but every time I get error:
"error": "invalid_request",
"error_description": "\nYou can\u0026#39;t sign in to this app because it doesn\u0026#39;t comply with Google\u0026#39;s OAuth 2.0 policy for keeping apps secure.\n\nYou can let the app developer know that this app doesn\u0026#39;t comply with one or more Google validation rules.\n
Even though the scope in oauth screen is under "non-sensitive scopes". Google ads went smooth, but this is just mind breaking. Is it because google now uses OAuth 2.0 and airbyte just states OAuth as in legacy version?
After this, I tried 2nd way - using service account. I created one, got my json key, I set up domain-wide delegation for this service account with scope "https://www.googleapis.com/auth/webmasters.readonly" but I still get this error when trying to set up source in airbyte:
"Configuration check failed
"Unable to check connectivity to Google Search Console API - KeyError('siteEntry')"
I tried using in Website URL Property regular url https://mysite.com and also sc-domain:mysite.com and both fail with the same error
@edit: it is not specified exactly whether I need to use google service account email or owner email of this account in airbyte connector. after I tried using the owner mail, not the service mail I get this error;
"InvalidSiteURLValidationError('The following URLs are not permitted: sc-domain:mysite.com')", same with https://
Beta Was this translation helpful? Give feedback.
All reactions