Skip to content

ads: surface the Text Link size on the Monetize page - #98

Merged
ralyodio merged 1 commit into
masterfrom
ads/format-text-link
Jul 17, 2026
Merged

ralyodio merged 1 commit into
masterfrom
ads/format-text-link

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

What

Adds the native, full-width Text Link ad to the publisher size picker on /ads/slots.

Changes

  • lib/ads/formats.ts — append text_link to PUBLISHER_FORMAT_IDS.
  • supabase/migrations/20260717130000_ad_slot_text_link_format.sql — widen the ad_slots.formats default to include text_link and backfill existing slots.

Why the migration

Unlike the banner sizes, text_link predates the ad_slots.formats default. serveAd() gates fills to a slot's formats array, so without widening it a publisher who pastes the text-link embed would get nothing back. The migration fixes both new slots (default) and existing ones (backfill).

⚠️ Apply by hand

Per the crawlproof runbook, prod migration history has diverged and supabase db push is blocked — apply this migration via psql over the pooler after merge, or the text-link embed won't fill in production.

Notes

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

Add the native, full-width text-link ad to the publisher size picker.
Unlike the banners, text_link predates the ad_slots.formats default, so
a migration widens the default and backfills existing slots — otherwise
serveAd() would gate it out and the copied embed would never fill.

- lib/ads/formats.ts: add text_link to PUBLISHER_FORMAT_IDS
- supabase/migrations: allow text_link on ad_slots.formats (+ backfill)

Note: prod migration history has diverged, so this must be applied by
hand via psql over the pooler (see the crawlproof-alerts runbook), not
`supabase db push`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ralyodio
ralyodio force-pushed the ads/format-text-link branch from 626fe99 to 465ba82 Compare July 17, 2026 07:27
@ralyodio
ralyodio merged commit 1bf585d into master Jul 17, 2026
8 checks passed
@ralyodio
ralyodio deleted the ads/format-text-link branch July 17, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant