Hi,

The client library you are using is quite outdated. Please use the latest 
version on github here:

https://github.com/googleads/googleads-java-lib

The README 
<https://github.com/googleads/googleads-java-lib/blob/master/README.md> and 
OAuth2 
guide <https://github.com/googleads/googleads-java-lib/wiki/Using-OAuth2.0> are 
good places to start. The latter explains what you need to place in your 
properties file, and how to generate the OAuth credentials you'll need.

Cheers,
Josh, AdWords API Team

On Friday, September 26, 2014 10:49:08 AM UTC-4, Gitaaab wrote:
>
> Hi,
> i have a adwords account to test campaign creation etc...
> I can create them using my adwords account directly.
> What i want now is to create adwords campaign using java.
>
> I found a project here : 
> https://google-api-adwords-java.googlecode.com/svn/trunk/examples/v201309/
> and i used the code AddCampaign.java
>
> When i run this code from Netbeans, i have the following error:
>
> javax.xml.rpc.ServiceException: Could not get ClientLogin token for user: 
> Auth token could not be retrieved because of error: BadAuthentication
>     at 
> com.google.api.adwords.lib.AdWordsVersion$AdWordsVersionV201309.setHeaders(AdWordsVersion.java:147)
>     at 
> com.google.api.adwords.lib.AdWordsServiceFactory.getConfiguredStub(AdWordsServiceFactory.java:168)
>     at 
> com.google.api.adwords.lib.AdWordsServiceFactory.generateServiceStub(AdWordsServiceFactory.java:97)
>     at com.google.api.adwords.lib.AdWordsUser.getService(AdWordsUser.java:215)
>     at adwords.AddCampaign.main(AddCampaign.java:49)
>
>
> In my properties files i have:
>
> email=myemailaddress
> password=mypassword
> clientId=000-000-0000 //here i put my Customer ID?
> useragent=INSERT_COMPANY_NAME //shoukd i fill this?
> developerToken=INSERT_DEVELOPER_TOKEN_HERE // Where can i get this?
> partialFailure=false
> returnMoneyInMicros=false
>
> Please help to begin.
>
> Thank you very much
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3e0ec5e7-324f-481c-9944-abfedf68b1f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to