Upgrading to DBM API v1.1, custom date range issue

233 views
Skip to first unread message

Niels van Kaam

unread,
Jan 7, 2020, 9:07:25 AM1/7/20
to Google's DoubleClick Campaign Manager API Forum
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

DCM API (DoubleClick Campaign Mgr)

unread,
Jan 7, 2020, 10:00:45 AM1/7/20
to n.va...@travelaudience.com, google-doubleclick-...@googlegroups.com
Hi Niels,

Your concern is related to DBM API. So, I recommend contacting DBM team from the following link:
https://developers.google.com/bid-manager/get-support

Feel free to contact us for DCM API related questions.

Thanks,
Lakshmi, DCM API Team



 

ref:_00D1U1174p._5001UOGAzO:ref
Reply all
Reply to author
Forward
0 new messages