|
||||||
Hey Jinky,
Thank you so much for helping me out with the Authentication process. I was able to generate the refresh token successfully.
However, when I am trying to run a reporting example (get keywords stats from the documentation examples) using Python, it is giving me the following error:

I have installed the latest version of google-ads in Anaconda. I have also stored the credentials, customer-id, developer token and other details in the google-ads.yaml file.
Here are the screenshots of the entire code:


Could you please help me resolve this as well?
Thanks,
SOMYA MALVIYA (She/Her)
Data Analyst | GroupM Australia
—
WPP AUNZ Campus (Berry street)
Level 11, 65 Berry Street
North Sydney
NSW 2060
—
![]()
GroupM acknowledges the Traditional Owners of Country throughout Australia.
I recognise the Gadigal People of the Eora Nation – the land on which I live and work, and pay respect to Elders past and present.
From: Google Ads API Forum Advisor <ads...@forumsupport.google>
Sent: Friday, 3 June 2022 1:31 AM
To: Somya Malviya <somya....@groupm.com>
Cc: adwor...@googlegroups.com
Subject: RE: Redirect URI refused to connect
Hi Somya,
Thank you for raising your concern to my team.
Could you try using this sample
code instead for generating user credentials and follow the instruction below based on the authentication flow you are currently implementing?
"If using Web flow, the redirect URL must match exactly what’s configured in GCP for the OAuth client. If using Desktop flow, the redirect must be a localhost URL and is not explicitly set in GCP from google_auth_oauthlib.flow import Flow"
Let me know what goes after.
Best regards,
|
|
|
|

ref:_00D1U1174p._5004Q2bbCEC:ref