Hello All,
I am upgrading our DBM API to v1.1 to use the new filter options, but I am unable to create offline reports with a dataRange "CUSTOM_DATES". I am getting the response "The date range must include a start date". I am however providing the date range the same way as I was in v1.0 of the API, and according to the release notes no changes have been made to this part. Is there some issue in v1.1 of the API here?
The body of my request is the following:
{
"kind": "doubleclickbidmanager#query",
"metadata": {
"title": "TEST_REPORT",
"dataRange": "CUSTOM_DATES",
"format": "CSV",
"sendNotification": false
},
"params": {
"type": "TYPE_GENERAL",
"groupBys": [
"FILTER_DATE",
"FILTER_ADVERTISER_NAME",
"FILTER_ADVERTISER",
"FILTER_COUNTRY",
"FILTER_CITY_NAME",
"FILTER_CITY"
],
"filters": [
{
"type": "FILTER_PARTNER",
"value": "XXXXXXXXXX"
}
],
"metrics": [
"METRIC_IMPRESSIONS",
"METRIC_CLICKS",
"METRIC_CTR"
]
},
"schedule": {
"frequency": "ONE_TIME",
"endTimeMs": 0
},
"reportDataStartTimeMs": "1575360000000",
"reportDataEndTimeMs": "1576051200000"
}
The full response:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "eventId=59B8D41DA835A.A77B616.8400F0D9 The date range must include a start date."
}
],
"code": 400,
"message": "eventId=59B8D41DA835A.A77B616.8400F0D9 The date range must include a start date."
}
}
Additional notes:
- If I change the dataRange to "LAST_14_DAYS" the request succeeds.
- If I perform this request on v1.0 of the API (requires changing the groupby's), it also succeeds.
- If I use getquery of the api, and use the response to create a new query, I get the same error
Thanks,
Niels van Kaam