Hello Mike,
Correct, sorry I was typing from the top of my head. Can you share the full definition? Also, what is the exact issue ("this doesn't seems to work"), do you get report for the wrong dates? -Danial, AdWords API Team. On Thursday, March 19, 2015 at 9:52:48 PM UTC+3, rpay...@gmail.com wrote: > > Hi, Danial. > > I don't see DateTimeRange, but I did set dateRangeType to CUSTOM_DATE. > Could this have been a typo on your end, or am I setting the wrong thing? > > ReportDefinition def = new ReportDefinition(); > def.reportType = ReportDefinitionReportType.CAMPAIGN_PERFORMANCE_REPORT; > > def.dateRangeType = ReportDefinitionDateRangeType.CUSTOM_DATE; > > > > Thanks, > Mike > > > > On Thursday, March 19, 2015 at 9:26:33 AM UTC-4, Danial Klimkin wrote: >> >> Hello Mike, >> >> >> Do you also set DateTimeRange of the definition to CUSTOM_DATE? >> >> >> -Danial, AdWords API Team. >> >> >> On Thursday, March 19, 2015 at 12:09:10 PM UTC+3, rpay...@gmail.com >> wrote: >>> >>> Hi, >>> >>> I'm using the 201409 client library to pull campaign performance reports >>> and call details reports. When I use any of the date presets, it works >>> just fine, but when I try to use a custom date selector, this doesn't seem >>> to work. I've seen many solutions online that say to use something like >>> what I've pasted below, but it doesn't seem to work for me. Is there some >>> new syntax or something that I should be using? >>> >>> Thanks, >>> Mike >>> >>> >>> DateRange dateRange = new DateRange(); >>> dateRange.min = DateTime.Now.AddDays(-1).ToString("yyyyMMdd"); >>> dateRange.max = DateTime.Now.AddDays(-1).ToString("yyyyMMdd"); >>> selector.dateRange = dateRange; >>> >>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/7e3a5933-298f-481f-b9b1-479d4973d93c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.