Hi, The OAuth2 guide <https://github.com/googleads/googleads-java-lib/wiki/Using-OAuth2.0> I mentioned in my previous post contain instructions on how to set most of those values (clientId, clientSecret, refreshToken). For the other values, please see the descriptions here <https://developers.google.com/adwords/api/docs/guides/soap>.
Thanks, Josh, AdWords API Team On Saturday, September 27, 2014 5:01:17 PM UTC-4, Gitaaab wrote: > > Thank you for your help, > > so i followed instructions in OAuth2 guide an di dowloaded this file; > adwords-axis-jars-and-examples-1.33.0 > Then open this file: > ads.properties > > here i have to fill: > api.adwords.refreshToken=INSERT_REFERSH_TOKEN_HERE > api.adwords.clientId= > pi.adwords.clientSecret=INSERT_CLIENT_SECRET_HERE > api.adwords.clientCustomerId=INSERT_CLIENT_CUSTOMER_ID_HERE > pi.adwords.userAgent=INSERT_USERAGENT_HERE > api.adwords.developerToken=INSERT_DEVELOPER_TOKEN_HERE > > I have only these information from > https://console.developers.google.com/project/seraphic-hawk-715/apiui/credential > Client ID > Email address > Public key fingerprints > > How can i find the other values? > Thank you > > > > > Le vendredi 26 septembre 2014 12:35:16 UTC-4, Josh Radcliff (AdWords API > Team) a écrit : >> >> 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/6ee7fc2f-1750-4a6b-960d-9d04a2b47507%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.