It worked for me. Thanks Josh !
On Thursday, April 3, 2014 6:35:54 AM UTC-7, Josh Radcliff (AdWords API
Team) wrote:
> Hi Tom,
>
> Below is a sample of how to pass a custom date range.
>
> DateRange dateRange = new DateRange();
> dateRange.setMin("20140101");
> dateRange.setMax("2014
Hi Tom,
Below is a sample of how to pass a custom date range.
DateRange dateRange = new DateRange();
dateRange.setMin("20140101");
dateRange.setMax("20140131");
selector.setDateRange(dateRange);
Are you using an IDE such as Eclipse? It would provide you with context
assistance
Hi ,
Picking up the old thread...I am using
Selector selector = new Selector();
SimpleDateFormat formatter = new SimpleDateFormat("-MM-dd");
java.util.Date startdate = formatter.parse("2014-04-01");
java.util.Date enddate = formatter.parse("2014-04-02");
selector.setDa
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
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.adword
Hi,
The exception below indicates that you simply imported the wrong *DateRange*
class.
If you are using Axis then you'll want to import the following:
com.google.api.ads.adwords.axis.v201309.cm.DateRange
As an aside, your constructor call for *SimpleDateFormat* looks incorrect.
You should
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:
Calen