Re: error invalid_grant OAUTH2

2013-07-25 Thread Roy Roes
Solved it myself.

When I run GetRefreshToken.php I get an url to validate my account for the 
app.
There I get a token.

I insert the token directly in the code ($code) of GetRefreshToken.php and 
than I get the refresh token for OAuth2.

When I put the refreshtoken in the auth.ini...all works fine.

Readme and instructions could be better though.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




error invalid_grant OAUTH2

2013-07-24 Thread Roy Roes
Hi,

I'm migrating from v201209 to v201306 in PHP

I've set the developerToken, userAgent, clientCustomerId (Advertiser 
account), client_id and client_secret in the auth.ini because I would like 
to use the OAuth2.
But I get the following error when I try to run the GetCampaigns.php 
example: An error has occurred: { "error" : "invalid_grant" }

When I run the GetRefreshToken.php file I get: Your OAuth2 Credentials are 
incorrect. Please see the GetRefreshToken.php example. { "error" : 
"invalid_request" }

I just get the OAuth2 credentials from 
https://code.google.com/apis/console#access 
using my MMC account.

The developerToken is also from the MMC account.

What am I doing wrong?

Best regards,
Roy Roes







-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.