An error has occurred: { "error" : "invalid_grant" }

215 views
Skip to first unread message

Andy Steinhauf

unread,
Mar 11, 2015, 2:58:50 PM3/11/15
to adwor...@googlegroups.com
Hello,

I'm make my first steps with the adwords api and PHP. I've an client-id, client-secret and refreshtoken, but after / during authentification a get the above error.

What exactly does it mean ? How I can fix it ?


Thanks in advance...


Andy

Anash P. Oommen (AdWords API Team)

unread,
Mar 11, 2015, 3:10:16 PM3/11/15
to adwor...@googlegroups.com
Hi Andy,

Try regenerating the refresh token once more. Looks like the refreshtoken grant changed after it was issued.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Andy Steinhauf

unread,
Mar 12, 2015, 4:06:50 AM3/12/15
to adwor...@googlegroups.com
Hello,

Thanks a lot for your answer. I recreated the refresh token, but the error still occurs.

best regards


Andy

Anash P. Oommen (AdWords API Team)

unread,
Mar 16, 2015, 10:23:16 AM3/16/15
to adwor...@googlegroups.com
Hi Andy,

Could you double-check your steps against the ones listed on https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0? If that doesn't work, pls open an issue on https://github.com/googleads/googleads-php-lib/issues and I'll ask the PHP library maintainer to follow up with you.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Andy Steinhauf

unread,
Mar 23, 2015, 7:13:51 AM3/23/15
to adwor...@googlegroups.com
Hello,

I tried it again as suggested above, but it resulted in the same error. I open'd an issue:

https://github.com/googleads/googleads-php-lib/issues/84
Reply all
Reply to author
Forward
0 new messages