Hi Tom,

Sorry, I misread the original error.  Please remove any imports of 
*DateRange* that you currently have and replace them with:

import com.google.api.ads.adwords.lib.jaxb.v201309.DateRange;

Thanks,
Josh, AdWords API Team

On Tuesday, March 11, 2014 2:53:11 PM UTC-4, Tom wrote:
>
> Thanks for the reply Josh !
>  
> I imported com.google.api.ads.adwords.axis.v201309.cm.DateRange class and 
> getting the below error: 
>  
>
> The method 
> setDateRange(com.google.api.ads.adwords.lib.jaxb.v201309.DateRange) in the 
> type Selector is not applicable for the arguments 
> (com.google.api.ads.adwords.axis.v201309.cm.DateRange)
>  
>  
>  
>
> On Monday, March 10, 2014 5:33:44 PM UTC-7, Tom wrote:
>
>> Hi ,
>>  
>> I am new to adwords. I am trying to use custom date range using JAVA API 
>> and I found on forums that date range is a property of a selector and found 
>> this about stats objects 
>> http://googleadsdeveloper.blogspot.com/2013/10/adwords-api-how-to-migrate-from-stats.html
>> .
>> So I am trying:
>>  
>> Calendar cal = Calendar.getInstance();
>> Selector selector = new Selector();
>> String startdate = new SimpleDateFormat("20130101").format(cal.getTime());
>> String enddate = new SimpleDateFormat("20131231").format(cal.getTime());
>> selector.setDateRange(new DateRange(startdate, enddate));
>>  
>> but its throwing an error:
>>  
>> The method 
>> setDateRange(com.google.api.ads.adwords.lib.jaxb.v201309.DateRange) in the 
>> type Selector is not applicable for the arguments 
>> (com.google.api.ads.adwords.axis.v201306.cm.DateRange)
>>  
>> I am using client library version v201309.
>>  
>> Please let me know where am I erring.
>>  
>> Thanks for help !
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to