Hi Madhav, The example name is GetCampaigns: https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201209/basicoperations/GetCampaigns.java
When you're executing the examples with maven like that, you need to make sure the class name exactly matches. I also recommend you use v201209 as v201109 sunsets next week. - Kevin Winter AdWords API Team On Thursday, October 11, 2012 9:29:34 AM UTC-4, Madhav Kakani wrote: > > Hi All, > > Novice question. I installed the following examples library to get the > Adwords API working against a sandbox environment. > adwords-axis-examples-1.10.0.tar.gz > > 1. I changed the ads.properties file with the google adwords account > credentials (this is *not* the account that I used to signup for the API): > > # Credentials to use for accessing the AdWords API > # Either email and password or clientLoginToken should be provided > [email protected] <javascript:> > api.adwords.password=my_password > api.adwords.clientCustomerId= > # Optional, for cached AuthTokens. > #api.adwords.clientLoginToken=INSERT_AUTH_TOKEN_HERE > api.adwords.userAgent=Tester > [email protected] <javascript:>++USD > api.adwords.isPartialFailure=false > api.adwords.returnMoneyInMicros=true > # Valid options are sandbox and production > api.adwords.environment=sandbox > > # Enable/disable automatic OAuth2 token refreshing. Default is enabled. > # api.adwords.refreshOAuth2Token=true > > 3. I then compiled the examples using the following command (as defined in > README) and the build was successful. > > $mvn -X compile > > 4. I then ran the following example: > > $mvn -X exec:java -Dexec.mainClass="adwords.axis.v201109.GetAllCampaigns" > > I am receiving an error: java.lang.ClassNotFoundException: > adwords.axis.v201109.GetAllCampaigns > > Please check the attached error.txt file for more details. > > Can one of you please let me know what could be going wrong and how to > resolve the issue? > > Thanks > Madhav > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
