Bing Ads - SubmitReportRequest -> InvalidReportTimeSelection

sachin gupta 376 Reputation points


I am trying to submit a report request for Bing Ads. I am stuck at the <Time> Attribute. Below is the scenario

<Time i:nil="false">
          <CustomDateRangeEnd i:nil="false">
          <CustomDateRangeStart i:nil="false">
          <PredefinedTime i:nil="false">Yesterday</PredefinedTime>
          <ReportTimeZone i:nil="false">EasternTimeUSCanada</ReportTimeZone>

As per Microsoft documentation we can pass either the CustomDateRange or the PredefinedTime. In my case, If I omit one of them I get the error code 2003 AccountNotAuthorized and if I use both CustomDateRage and PredefinedTime then i get error code 2008 InvalidReortTimeSelection.

I don't understand what I am doing wrong here. I am following the documentation and still not able to figure this out. Can someone please help on this?


Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
402 questions
{count} votes