Marketing

Find ads promoting products that are sold out

Stock and advertising data can disagree. Compare them so an agent can identify ads that may need attention.

From a scan of your exports. Pausing an ad is an approved action.

The problem and the outcome

The shop knows the stock, the ad platform knows the spend, and nobody owns the space between. An ad can keep paying for a product that cannot be bought. The outcome of this workflow is a list of advertised products whose stock was zero while the ad spent, each with the date the data was checked and the join that connects the two, so a person or an agent can decide what to do with the ad.

A concrete example

From the worked example on the e-commerce page: a fictional web shop, twelve months of exported data, checked against the files by a script.
fictional

What is in the data

A leather phone case was out of stock from 14 to 29 July 2026, and one campaign kept spending on it across those sixteen days: DKK 5,630 for 1,599 clicks and no conversion. The shop's own marketing rules say to pause ads the day stock reaches zero.

Source: the worked example's exports (stock, ad platform, the marketing rules document), checked by the example's own script. The figure is from invented data, not from a customer.

read before reusing

What the example claims, and does not

The situation is in the data and is checked there. The page does not publish a score for what a scan of it finds, and reading an export reveals a historical mismatch, not a live one.

Acme Commerce is a fictional web shop built for our demo: the company, its people, its customers, the device brands, the suppliers and the competing chains are all invented, and nothing in the data comes from any customer.

Detection, then execution

Two separate things. Finding the mismatch rests on the map; acting on the ad rests on your agent's access and an approval.
  1. Identify the advertised productThe ad platform names a product; the catalogue may spell it differently. The map says which join connects them and how far to trust it.
  2. Verify the stock matchStock on hand for that product, in the system that holds it, by the key the map gives. An ambiguous match is reported, not guessed.
  3. Show when the data was checkedThe dates of the exports, or the time of the read. A mismatch in last month’s export is last month’s.
  4. Propose the ad actionPause the ad set, with the product, the stock figure and the spend behind it. A proposal, written down.
  5. Apply approvalYour policy for that operation decides: ask first, or allowed. The agent acts in the ad platform with its own access.
  6. Confirm the resultRead the ad’s state back from the ad platform, then record the outcome in Maplith.

Who does what

What Maplith supplies

The map: where stock and spend live, the tested joins between the product in each, the marketing rules read from your documents, and the record of what was done.

What the agent does

Reads stock and spend in your systems, compares them by the keys the map gives, proposes the action and, when allowed, carries it out in the ad platform.

Where a person decides

Whether an ad is paused, when the policy asks first; every ambiguous product match; and the rule itself.

Routine action versus exception

SituationWhat happensWho decides
Stock zero, ad spending, product matched through a tested joinThe agent proposes pausing the ad set, with the evidence.A person, or the policy if you have allowed it.
The product in the ad does not match the catalogue cleanlyThe agent reports the ambiguity instead of pausing anything.A person.
The exports are older than the ad’s current stateThe agent says when the data was checked; it does not claim the ad is running now.A person, who reads the ad platform.

Prerequisites

PartWhy
Stock and ad platform data, as exports or a connectionBoth sides of the comparison, with a product key in each.
Your marketing rules, as the document your team usesThe rule that says when to pause is yours, not Maplith’s.
An agent with access to the ad platformPausing happens there, with your agent’s own access.
An approval policy for the pause operationAsk first, or allowed, per operation.

Questions people ask

Does Maplith pause the ad?

No. Your agent does, in the ad platform, with its own access, after the approval your policy requires. Maplith supplies the context and keeps the record.

Can it watch stock continuously?

That is a live rule, checked after a scan finishes and, for a connected system, between scans.

Is there a guide?

Not yet. A tested stock-versus-ads guide follows once a setup has been run end to end. Until then the worked example is the reference.

See the worked example

The e-commerce page shows the same situation with the pieces the agent uses, on the exports of a fictional web shop.