Hi, I have been having an issue setting a custom date range for my report, here is the code I am using:
$start = date('Ymd', strtotime("-90 days")); $end = date('Ymd', strtotime("-1 days")); $selector = new Selector(); $selector->fields = array('CampaignId', 'AdGroupId', 'Id', 'Clicks', 'Impressions', 'Ctr', 'AverageCpc', 'AveragePosition', 'Cost', 'Date'); $selector->dateRange->min = $start; $selector->dateRange->max = $end; // Create report definition. $reportDefinition = new ReportDefinition(); $reportDefinition->selector = $selector; $reportDefinition->reportName = 'Remarketing performance report #' . uniqid(); $reportDefinition->dateRangeType = 'CUSTOM_DATE'; $reportDefinition->reportType = 'AUDIENCE_PERFORMANCE_REPORT'; $reportDefinition->downloadFormat = 'CSV'; When I run the file it returns all_time instead of using my custom date range. Any guidance is much appreciated. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/5009d4a2-81a6-4650-bdd6-785bdbb1d3a1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.