Hi Pradeep,
Since you will be using a custom date range based on the user's selection,
then you can use a CUSTOM_DATE
<https://developers.google.com/adwords/api/docs/guides/reporting#custom_date_ranges>
for
the dateRangeType. Below is a sample PHP code snippet on how to do this:
$range = new DateRange();
$range->setMin('20170904'); //Update this part based on the value of the
user's dropdown
$range->setMax('20170905'); //Update this part based on the value of the
user's dropdown
$selector->setDateRange($range);
$reportDefinition->setDateRangeType(
ReportDefinitionDateRangeType::CUSTOM_DATE);
Also, please make sure that you import the DateRange in your file:
use Google\AdsApi\AdWords\v201708\cm\DateRange;
Let me know if this helps.
Thanks,
Vincent
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/88837518-7134-485f-8144-4ffc80f658c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.