Re: Google Ads API PERMISSION_DENIED after migrateing adwords api to google ads api

83 views
Skip to first unread message
Message has been deleted

Sheersha TV

unread,
Dec 31, 2019, 1:07:04 PM12/31/19
to AdWords API and Google Ads API Forum


On Tuesday, December 31, 2019 at 3:51:34 PM UTC+6, Akav Zhen wrote:
Hi,

My program is working fine with adwords api.
Now,I migrate some codes from adwords api to google ads api,for the ini config part,I add a new section GOOGLE_ADS, and copy the developerToken from the ADWORDS section, and nothing else.
Then,when I run the sample code of google ads, I got error messages as below:
(the peoject ID was replaced by xxxxxxxx)

Fault                                                                                                                                                                                         
-------                                                                                                                                                                                       
Status code: 7                                                                                                                                                                                
Details: Google Ads API has not been used in project xxxxxxxxxxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/googleads.googleapis.com/over
view?project=xxxxxxxxxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

I tried the adwords api,it is still working.

so,what's wrong with the api in the project ?Or,did I missing something in the migrating?

thank you very much.

Google Ads API Forum Advisor Prod

unread,
Jan 2, 2020, 10:49:01 AM1/2/20
to vmin...@gmail.com, adwor...@googlegroups.com
Hi Akav,

Thank you for reaching out. You must make sure that you've enabled Google Ads API for your project in the developer console as explained in the error message. You can do that by following these instructions. Please make sure you've disabled any ad blockers or proxies when visiting the console page.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5001UOFYbT:ref

Akav Zhen

unread,
Jan 2, 2020, 9:02:41 PM1/2/20
to AdWords API and Google Ads API Forum
Hi,
Thank you for your reply.

My point is,the adwords api and google ads api are using exactly the same ads developer token and google api project.
I only changed the ADWORDS  section to GOOGLE_ADS section in the config file.

The adwords part is still working,which makes sure the adwords api developer token  and google api Credentials are available.

Which makes the Falut message difficult to understand.Or,is there any other necessary operations that I missed while migrating adwords to google ads api.

Thank you.

Google Ads API Forum Advisor Prod

unread,
Jan 3, 2020, 1:49:09 PM1/3/20
to vmin...@gmail.com, adwor...@googlegroups.com
Hi Akav,

You also need to go to the project in the Developer Console and enable Google Ads API as explained here. You can use the same project but you have to enable the new API for it as well.

Bzusbsg Fusnskav

unread,
Jan 3, 2020, 9:24:18 PM1/3/20
to AdWords API and Google Ads API Forum
Thank you for reaching out

Uehsisbs Gjssnsivj

unread,
Jan 3, 2020, 10:19:44 PM1/3/20
to AdWords API and Google Ads API Forum
tks for all supporting
Reply all
Reply to author
Forward
0 new messages