Hi,
These are the supported date ranges
<https://developers.google.com/adwords/api/docs/guides/reporting#date_ranges>,
which includes setting a custom date range (ex. May 01, 2017 to May 02,
2017), that you can include in your drop-down list to filter your generated
reports.
You may trigger the generation of the filtered report upon selection of a
particular date range in your drop down. However, creation of a drop-down
with a selection of date ranges is not available in the AdWords API. You
have to do this on your end as the AdWords API is mainly for pulling and
pushing data into your AdWords account.
Additionally, below is a sample code in java on how to set a custom date
range via a selector.
Selector selector = new Selector();
DateRange date = new DateRange();
date.setMin("20170501");
date.setMax("20170502");
selector.setDateRange(date);
.....
ReportDefinition reportDefinition = new ReportDefinition();
....
reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE);
Regards,
Ivan
AdWords API Team
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
---
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/b2fdfb64-5e0a-49c4-b53e-e0acba715008%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.