Back to the Media Job Compiler journey

DecidedStop 13 of 13

Checking a campaign still matches what was approved

Campaign Record Validator rebuilds the approval fingerprint from a campaign’s current details to spot changes. A fingerprint rebuilt after publication cannot prove the approval existed beforehand.

The question

A campaign is approved, then published. Later I want to check that the campaign on file still matches what was approved, and I built a checker for that. The approval is kept in an Media Job Compiler · Campaign Record Validator · The command-line toolApproval and eventsChecks the fingerprint’s kind, its method and whether it was rebuilt. It also checks that events are numbered without gaps and IDs are unique.See it in the Media Job Compiler build. It holds the approved details and a fingerprint of them, a short code that changes if any detail changes.

What I chose

Comparing two saved fingerprints is not enough. So the checker Media Job Compiler · Campaign Record Validator · The command-line toolFingerprint rebuildWrites the details as compact text, with field names sorted and lists kept in order. Then it makes a fingerprint of that text.See it in the Media Job Compiler build from the campaign as it is now. It takes the release, the creative and the destination from the campaign. It also takes the resource limits, the schedule and the cost details. It writes them all out as compact A technical wordJSONA common text format that programs use to send each other structured data., a common text format for data, in one fixed way. Field names are sorted at every level, and lists are kept in order. Then it makes a fingerprint of that text with a standard method.

The approval file must hold those same details, not just the same fingerprint. A correct fingerprint of different details still fails. So a campaign changed after approval no longer matches.

What made it hard

Rebuilding raises a question of time. A fingerprint saved before publication and one rebuilt afterwards mean different things. The rebuilt one shows the records agree now. It cannot show an approval existed earlier. So the record for a rebuilt fingerprint must say that itself. It must also say it does not allow another publication or reuse of the creative.

What it can’t prove

The fingerprints are not signatures. They do not name an approver or prove when the decision was made. Someone with enough file access could change every record to match. So confirming that a real action happened stays a separate step.