Community Discussion
400 Error for activity_schedule
I quite literally enter it as it is in the documentation:
"activity_schedule": {
"mode": "CUSTOM",
"rules": [
{
"type": "INCLUDE",
"day": "MONDAY",
"from_hour": "10",
"until_hour": "18"
},
{
"type": "EXCLUDE",
"day": "SATURDAY",
"from_hour": "0",
"until_hour": "24"
},
{
"type": "EXCLUDE",
"day": "SUNDAY",
"from_hour": "10",
"until_hour": "22"
},
],
"time_zone": "US/Eastern"
},
And I get:
Taboola Error: {"http_status":400,"message":"Bad request","message_code":"api.action.bad_request.null"}
How can this be?
Posted by Steve over 1 year ago
Activity Schedule Object - hours in 0-24 range
Hello.
A cording to docs hours are in 0-24 range, inclusive, 'from' must be smaller then 'to'.
Its bit confusing:
0-0 does not work, so if 0-1 means 'first hour of the day' then 'to' is not inclusive.
0-24 does not work (25 hours if 'to' is inclusive)
0-23 works and so does 1-24 - both means 'whole day' because its 24 hours?
Then, if I set 1-23. is 23 hours (not including the first hour of the day)?
I think few examples can help because we can't have both hour 0 and hour 24 - at least not on this planet :)
Thanks
Misha
Posted by Misha Makarevsky almost 4 years ago
Campaign Settings Days and Hours Fields
Dear Team,
I was wondering if it is possible to access the fields that hold the campaign settings in the UI under "Schedule > Days and Hours > Specific days and hours via the API (the new interface in testing)?
Posted by Daniel SKultety almost 4 years ago