abujehad139 / google-api-go-client

Automatically exported from code.google.com/p/google-api-go-client
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Setting RelativeDateRange to nothing may be strange or need documentation #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a report in the UI with a Relative Date Range
2. Attempt to use start and end date in the API
3. Had to set RelativeDateRange = "  " (blank spaces) to avoid error

example:

report.Criteria.DateRange.StartDate = startDate
    report.Criteria.DateRange.EndDate = endDate
    report.Criteria.DateRange.RelativeDateRange = "    " // Relative date range cannot be set if using start & end dates...

    reportPatch := dfareportingService.Reports.Patch(profileId, reportId, report)
    report, err = reportPatch.Do()

What is the expected output? What do you see instead?
I would expect to be able to set RelativeDateRange = "" or have a reset to 
nothing mechanism

What version of the product are you using? On what operating system?
Go API 1.3

Please provide any additional information below.

Original issue reported on code.google.com by frank.da...@digitas.com on 8 Oct 2013 at 4:15