Hi Kevin,

Thanks for your response and sorry for the delay with my reply. I tried as 
mentioned by you and it works great. Thank you very much for your detailed 
answer!!

Madhav

On Friday, October 19, 2012 4:13:09 PM UTC+2, Kevin Winter wrote:
>
> Addendum to my response: you'll need to execute it like this:
>
> $ mvn -X exec:java 
> -Dexec.mainClass="adwords.axis.v201209.basicoperations.GetCampaigns"
>
> This uses the right class name and full package.
>
> - Kevin Winter
> AdWords API Team
>
>
> On Friday, October 19, 2012 10:11:26 AM UTC-4, Kevin Winter wrote:
>>
>> 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
>>> api.adwords.email=my_e...@gmail.com
>>> api.adwords.password=my_password
>>> api.adwords.clientCustomerId=
>>> # Optional, for cached AuthTokens.
>>> #api.adwords.clientLoginToken=INSERT_AUTH_TOKEN_HERE
>>> api.adwords.userAgent=Tester
>>> api.adwords.developerToken=my_em...@gmail.com++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 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



Reply via email to