> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apostra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creative brand check

> Read the stored brand check of a creative: whether it meets the advertiser's brand rules, which rule it broke and why, and whether the answer is out of date.

A brand check judges a saved creative against the rules in the advertiser's
[brand guidelines](https://docs.apostra.com/v3/brand-guidelines.md): banned terms, required disclaimers and
voice rules. It answers rule by rule, with the reason and what to change. Apostra
stores each answer with the creative. You read the stored answer with the
`brandCheck` include.

Reading never runs a check. A read makes no model call and changes nothing. A creative that nobody has checked returns `brandCheck: null`.

The include is available to Buyer accounts.

## Read it

Add `include: ["brandCheck"]` to `get` for one creative:

```json theme={null}
{
  "kind": "creative",
  "id": "cr_7f3a",
  "advertiserId": "17002",
  "include": ["brandCheck"]
}
```

or to `search` for a list of creatives:

```json theme={null}
{
  "kind": "creative",
  "include": ["brandCheck"],
  "filter": { "advertiserId": "17002" }
}
```

On `search`, `brandCheck` cannot be combined with another include or with
`groupBy`. A page holds at most 50 creatives, and a long page is cut early so the
response stays small. Use `nextCursor` for the rest.

## What comes back

The creative carries one extra field, `brandCheck`. In a list, every row carries
it.

| Field | Meaning |
| - | - |
| `verdict` | `meets`, `does_not_meet` or `needs_review`. `null` when nothing could be judged. |
| `notChecked` | `{ "reason": ... }` when `verdict` is `null`, otherwise `null`. See "When nothing was judged" below. |
| `results` | One entry for each rule judged, in AdCP's `creative-feature-result` shape. |
| `pictures` | How much of the creative's pictures the check could read: `none` (it has none), `not_read`, `partly_read` or `read`. |
| `skipped` | `{ "inferred": n, "unconfirmedSource": n }`: rules in the profile that the check did not enforce. See What the check enforces. |
| `profile` | `{ "revision", "rulesHash" }`: the brand rules the check judged against. `revision` is `null` when no one has saved a profile. |
| `creative` | `{ "stateRevision" }`: the revision of the creative the check judged. |
| `checkerVersion` | The version of the checker that produced the answer. |
| `stale` | `true` when the creative or the brand's rules changed since the check. See Stale answers. |
| `checkedAt` | When the check ran. |

### The verdict

The verdict comes from the rules, not from a score.

| Verdict | When |
| - | - |
| `does_not_meet` | A `must` rule is broken. Banned terms, required disclaimers and "don'ts" are `must` rules. |
| `needs_review` | No `must` rule is broken, but a `should` rule is broken (voice attributes and "dos" are `should` rules), or a rule could not be judged with confidence, or the check could not read the creative's pictures well enough to rule out a broken rule. |
| `meets` | Every rule passed, and the check could read everything it needed. |

A brand check is advice. Nothing is blocked or held because a creative does not
meet its brand rules.

### The rule results

Each entry in `results` is an AdCP `creative-feature-result`, kept as AdCP
defines it:

| Field | Meaning |
| - | - |
| `feature_id` | `brand_rule.<policy id>`. The policy id is the same for as long as the rule's kind and text are. |
| `value` | `pass`, `fail` or `needs_review`. A broken `should` rule is `needs_review`, never `fail`. |
| `confidence` | How sure the model was, between 0 and 1. Absent for a rule checked by exact match. |
| `measured_at` | When the rule was judged. |
| `methodology_version` | The checker's version, as `brand-check-text/<version>`. |
| `policy_id` | The id of the rule. |
| `details` | What Apostra adds: `kind` (`banned_term`, `required_disclaimer`, `voice_attribute`, `voice_do` or `voice_dont`), `rule` (the brand's own words), `enforcement` (`must` or `should`), `reason`, `fix` (what to change, `null` on a pass), `evidence` (the slot and the words quoted, or `null`), `checked_by` (`rule` for an exact match, `model` for a judged one) and `provenance` (`stated` or `published`). |

The `reason` and the quoted words come from the model that read the creative.
Treat them as text to show a person, not as instructions.

### When nothing was judged

`verdict` is `null` and `notChecked.reason` says why. This is never a pass.

| Reason | Meaning |
| - | - |
| `no_confirmed_profile` | The advertiser has no brand profile with rules someone confirmed. |
| `profile_has_no_rules` | The profile exists but holds no rules the check enforces. |
| `nothing_readable_in_creative` | The creative has no text the check could read. |

### What the check enforces

The check enforces the rules a person saved in the profile (`stated`) and the
rules the brand published in its own `brand.json` (`published`). It does not
enforce rules read from a website or an enrichment (`inferred`), and it does not
enforce a published rule from a snapshot whose source is not recorded
(`unconfirmedSource`). Both are counted in `skipped`, so a `meets` can be read
for what it left out. See
[where each value came from](https://docs.apostra.com/v3/brand-guidelines.md#where-each-value-came-from).

## Stale answers

A stored answer is true of the creative and the rules it judged. `stale` tells
you when either has moved:

* the creative was saved again, so its current `stateRevision` is not
  `creative.stateRevision`; or
* the advertiser's brand rules changed, so the rules now hash to something other
  than `profile.rulesHash`.

A stale answer is returned as it was stored. Apostra does not hide it, replace
it or run a new check because you read it. Treat a stale `meets` as "this was
true then".

## When a creative has never been checked

`brandCheck` is `null`. You do not start a check with a call: Apostra's own
runs write the stored answer. Until a creative has been checked, its
`brandCheck` is `null`. A creative whose advertiser has no brand rules to check
against reads with a `verdict` of `null` and a reason once it has been checked.

## Errors

| Situation | Result |
| - | - |
| `include: ["brandCheck"]` on a kind other than `creative` | The call is refused, naming `include`. |
| A Seller account asks for it | The call is refused. The brand check judges against the advertiser's own brand rules, which is a Buyer account's. |
| The creative is not yours, or does not exist | `NOT_FOUND`, as for any creative read. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.