Start_time Timestamp or ISO-8601?


While trying to create a campaign using Twitter Ads API. When i send start_time as an ISO-8601 string i get the following error message: Expected Timestamp, got "2016-01-10T12:24:57.282Z" for start_time

The documentation clearly says you need to send a ISO-8601 format string. Is this a bug?

Below is the twurl request:
twurl -H -X POST -d "start_time=2015-01-10T00:00:00.000Z&name=Test+Campaign&funding_instrument_id=hxh2j&paused=true&standard_delivery=true&frequency_cap=5&duration_in_days=30&daily_budget_amount_local_micro=15000000" /0/accounts/gq106g/campaigns


On second try a plain utc timestamp as value for start_time doesn’t work either.


Try using 2015-01-10T00:00:00Z instead of 2015-01-10T00:00:00.000Z - that should do the trick :slightly_smiling:

Have a look at our Timezone docs for some more information and examples.