Hi Gurus,

I am trying to get a hang of Adwords API so I've downloaded 
adword-axis-example. I've set up a TestAccount including billing 
information and I've successfully generated a clientId and clientSecret.
Now it's all about entering the data correctly in ads.properties, and this 
is where things go wrong.
This is where I got so far:

api.adwords.clientId=***.apps.googleusercontent.com
api.adwords.clientSecret=**

api.adwords.clientCustomerId=***
api.adwords.userAgent=***
api.adwords.developerToken=***

But when I run GetRefreshToken(), I get a page that says


Fehler:redirect_uri_mismatch

The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a 
registered redirect URI

When I run CreateAccount(), I get the following runtime error:

Exception in thread "main" 
com.google.api.ads.common.lib.exception.OAuthException: Credential could 
not be refreshed.
    at 
com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:149)
    at 
adwords.axis.v201306.accountmanagement.CreateAccount.main(CreateAccount.java:58)
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 400 
Bad Request
{
  "error" : "invalid_grant"
}
    at 
com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)
    at 
com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
    at 
com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
    at 
com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
    at 
com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:248)
    at 
com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
    at 
com.google.api.ads.common.lib.auth.OAuth2Helper.callRefreshToken(OAuth2Helper.java:70)
    at 
com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:144)
    ... 1 more

Any idea what this is? Is it because I have no Refresh Token? If so, how 
can I obtain it?
Any help highly appreciated, thanks in advance!

Andrea

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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.

Reply via email to