The post log export schema, column by column

Updated 2026-11-11

One row per spot, the same columns in the same order for every station. Each column below says what it holds and what an empty cell means, because on a station post log an empty cell is information: a spot that did not run often has no air time, and a log with no rate column prices nothing. There is no surrogate row id, and two rows can be legitimately identical; the keys and the de-duplication rule are spelled out below.

The spot columns

The per-file CSV writes these and only these, in this order, with this header row. The Excel workbook carries the same fields with readable headers and typed cells, and shows an optional column only when some row needs it.

ColumnTypeWhat it holds
stationtextThe station's call letters, without a -TV or -DT suffix, so one station is spelled one way everywhere. Blank where the log names no real station rather than carrying a placeholder.
air_datedate (YYYY-MM-DD)The day the spot aired, rolled past midnight where the station logged it on a broadcast clock: a spot printed at 25:30 under Sunday the 30th has an air_date of the 31st. Use this to place the airing in time.
broadcast_datedate (YYYY-MM-DD)The day the station logged the spot under, which is the day it bills. Equal to air_date except for a spot logged past midnight, and at a month edge the two fall in different broadcast months. Use this to tie a row to an invoice.
air_timetime (HH:MM:SS, 24-hour)The time the station reported it aired, in the station's own local time. Empty when the log printed none, which is common on a spot that did not run; the notes column says so.
durationinteger (seconds)Spot length. Always populated: where the log printed none, 30 is assumed and the notes column says "No length in the log; :30 assumed".
advertisertextAs the station wrote it, not normalised to a brand list. This is the pairing key when a row carries no ISCI or Ad-ID.
isci_codetextThe creative's ISCI or Ad-ID as printed. Empty when the log has no such column. Not unique: one creative airs many times.
producttextThe product or brand, where the log has a column for it. Usually empty.
programtextThe programme the spot ran in, as printed. Empty when the log has no programme column.
dayparttext (enum)The station's own daypart where the log printed one, otherwise derived from the air time on that station's network clock. Not a billing field: treat it as a label, not a contract.
statustext (enum)Whether the spot ran. LOWERCASE in the CSV and Title Case in the Excel workbook, which is deliberate (one is a machine surface, the other is read by a buyer) and is the single most common thing to get wrong when loading both.
ratenumberThe gross rate the log printed, in dollars. Empty when the station's log has no rate column at all, which is 14 of the 1,096 layouts tested. 0 is a real value, not a missing one: a station writes $0 on a makegood that costs nothing.
scheduled_datedate (YYYY-MM-DD)The booked date, where the log prints a booked column beside the aired one.
scheduled_timetime (HH:MM:SS)The booked time, where the log prints one. Empty on a single-clock log: reporting the airing as the booking would manufacture a shift of zero out of nothing.
notestextWhat was assumed or could not be read on this row, and any note the station wrote on it. Read this column before trusting a row you are going to bill or claim on.

Which date to join on

There are two, and they answer different questions. air_date is when the spot aired. broadcast_date is the day the station logged it under, which is the day it bills.

They differ only for a spot logged past midnight on a broadcast clock. A spot printed at 25:30 under Sunday 30 March aired at 01:30 on the 31st: air_date is the 31st, broadcast_date is the 30th, and those fall in different broadcast months. The rule: anything that bills, invoices or totals by month joins on broadcast_date; anything that places the airing in time joins on air_date.

Status values

The vocabulary is closed. Three of the five mean the spot did not run in its slot, and those are the ones a credit or a makegood is owed on:

unknown means the log carried a status word the parser does not read. The spot is counted as aired and the row's notes column quotes the cell, so you can decide rather than have a guess decided for you.

The CSV writes these lowercase and the Excel workbook writes them Title Case. That is deliberate, the CSV being the machine surface and the workbook the one a buyer reads, and it is the thing most likely to break a loader that ingests whichever file was forwarded: a filter on status != 'aired' counts every workbook row as not aired. Compare case-insensitively.

Daypart values

Where the station printed a daypart, that is what you get. Where it did not, the label is derived from the air time on that station's own network clock, and that is not one clock: a Central or Mountain station runs the evening an hour earlier, Arizona changes which clock it keeps depending on the date, and a Fox, CW or MyNetworkTV affiliate ends network prime two hours in rather than three. The values are:

Daytime, Early Fringe, Early Morning, Early News, Late Fringe, Late News, Late Night, Overnight, Prime, Prime Access

Treat the daypart as a label rather than a contract. Where money depends on it, join on the time.

Keys, and why there is no row id

There is no surrogate key, and inventing one would be worse than going without: an id that is not stable across re-parses becomes a duplicate the moment the same file is uploaded twice, and anything stable enough has to be derived from the row's own contents, which is something you can do yourself and tune.

The natural key is station + broadcast_date + air_time + isci_code. It is not unique, and that is not a fault in the data: two units of the same creative can be booked in one break at the same logged minute, and the station's log reports both. De-duplicating on that key deletes a spot that really aired and really billed. Carry an occurrence number inside the key instead.

isci_code identifies a creative, not a row: one Ad-ID airs many times. advertiser is the pairing key when a log carries no creative column, and it is as the station wrote it, not normalised to a brand list.

Reading the file without corrupting it

Two things will bite a pipeline, and both follow from the same file also being opened in Excel by a person.

What the combined export adds

Dropping several stations at once gives one workbook and one CSV across all of them: every column above, plus source_file, aired_at, network, time_zone, aired_at_utc. The UTC column is the one to join on across stations, and it is filled only where the station's time zone is known from the log. It is left empty rather than guessed.

Formats in and out

Files read: .csv, .eml, .pdf, .tsv, .txt, .xls, .xlsx (a scanned PDF by OCR, up to 20 pages, with every spot from it flagged for review). Export formats: csv, excel, mediaocean_affidavit, mediaocean_buy, strata_xml, 4as_invoice, agency_excel, plus a combined multi-station workbook and custom column layouts. Every format is free on every plan, including anonymous use of the home page.

This page is generated from the code that writes the files, so it cannot drift from them.

Questions buyers ask

What is the primary key of a SpotProof post log export?

There is no surrogate key. The natural key is station + broadcast_date + air_time + isci_code, and it is not unique: two units of one creative can air in the same break at the same logged minute. Carry an occurrence number rather than de-duplicating on it.

Does an empty cell mean the data is missing?

It means the station's log did not print it, which is itself information. A spot that did not run often has no air time, and a log with no rate column leaves every rate empty and says so. A zero rate is a real zero, not a blank.

Why do the CSV and the Excel file disagree on the status case?

The CSV is the machine surface and writes the enum value lowercase; the workbook is read by a buyer and writes it Title Case. Compare case-insensitively if you load both.

Should I join on air_date or broadcast_date?

Join on broadcast_date for anything that bills, invoices or totals by month, because that is the day the station keys the spot to. Join on air_date to place the airing in time. They differ only for a spot logged past midnight, which is exactly where a month edge bites.

Why does an advertiser name sometimes start with an apostrophe?

Because the value itself starts with =, +, - or @, which a spreadsheet would execute. Strip one leading apostrophe where the next character is one of those four and the value matches ours exactly.

Try it on one of your own logs. Drop a post log or affidavit on the home page and see every spot as a clean row.

Drop a log