addOrder() - startdate

Is there a reason why when you add an order to a campaign the OrderStartDate, must be the (day you give it)+1.

e.g.

DateTime.Today.AddDays(1)

DateTime.Today, throws an invalid start date error.

I have noticed this in the reporting also, but this error was corrected there, that is the date you give is the date you give, not the date-1

[366 byte] By [dreadjr] at [2008-2-20]
# 1

Hi,

The following works when setting the start date prior to a call to AddOrders:

orders[1].OrderStartDate = DateTime.Today;

I don’t know why this is resulting in an invalid start date for you. Please provide details about what time zone you are in and the time of day (in your time zone) when you are making the call.

Thank you.

Walter Poupore - MSFT

WalterPoupore-MSFT at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Microsoft adCenter: Development...
# 2

That is the order i am populating the order in.

First I am creating the object and populating its startdate with DateTime.Today. Then calling addOrders();

With this call i get invalid startdate, but when i add 1 day to the date, it works in the UI shows DateTime.Today.

dreadjr at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Microsoft adCenter: Development...
# 3

Hi again,

I recommend that you follow up with the adCenter API support team for this issue.

Thank you.

Walter Poupore - MSFT

WalterPoupore-MSFT at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Microsoft adCenter: Development...

Windows Live Developer Forums

Site Classified