Openai ads conversions setup

From openai/plugins · View interactive version

Openai ads conversions setup is an AI agent skill from the GitHub repository openai/plugins. Guide Codex through instrumenting or extending repositories with OpenAI Ads Measurement Pixel and optional Conversions API (CAPI). Use when adding Ads conversion tracking, browser pixel events, server-side conversion events, event_id deduplication, CAPI secret placeholders, incremental conversion co

How to use this skill

Skill file

OpenAI Ads Conversions Setup

Overview

Use this skill to add, extend, or review OpenAI Ads conversion instrumentation in an advertiser repository. It supports browser Pixel setup, server-side Conversions API setup, Pixel+CAPI deduplication, and incremental reruns after the app adds new pages or flows, while keeping diffs small and avoiding secret exposure.

Use only public OpenAI Ads documentation and repository-local patterns for implementation choices. If the docs are unavailable or unclear, ask for clarification or leave a documented follow-up instead of relying on undocumented behavior.

Required Inputs

Before editing code, identify:

Treat the linked OpenAI Ads docs as the source of truth for exact SDK syntax, endpoint shape, supported events, request fields, and validation rules. When browsing is available, check the current docs before writing concrete calls; if the docs conflict with this skill, follow the docs and mention the conflict in the setup report. When browsing is unavailable, use this skill's references as a fallback. Do not invent SDK functions, event names, request schemas, or endpoint paths.

Primary docs to prefer when available:

Workflow

  1. Inspect the repository shape.
  1. Confirm the setup plan.
  1. Implement the smallest useful patch.
  1. Verify locally.
  1. Produce a setup report.

Incremental Reruns

When rerunning this skill on a repository that may already have OpenAI Ads instrumentation:

Pixel Rules

Use references/measurement-pixel.md for browser Pixel details.

CAPI Rules

Use references/conversions-api.md for server-side setup details.

Framework Hints

Use references/framework-patterns.md for common locations and pitfalls in Next.js, React/Vite, Remix, Express, Rails, Django, Flask, and monorepos.

Treat these as hints, not rules. The repository's existing conventions win.

Verification And Reporting

Use references/verification-checklist.md for validation steps and references/report-schema.md for the final setup report format.

High-priority failure cases:

When To Stop And Ask

Ask before proceeding when:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.