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/bd869948-8c2d-4cde-803b-5045536f6845%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to