Facebook Campaign Autopatching
Integrating Facebook campaign data into EOS required manual patching through Google Sheets — Performance Marketing mapped campaign details to microsite URLs line by line, then engineers ingested them back into EOS, creating delays and errors.
Designed a direct autopatching pipeline from Facebook to EOS that automatically maps campaigns to microsites, with a new EOS table interface for media spend tracking and a confirmation modal for user input validation.
Cut 50%+ of manual campaign patching workload, reduced average setup time per campaign by 70%, and ensured engineers are only needed for new project/page launches — not routine campaign operations.
The Google Sheets bridge problem
Every time the Performance Marketing team launched a new Facebook campaign, they had to manually log campaign details into a Google Sheet, map the microsite URL (Conversion Domain), and wait for engineers to ingest the data into EOS. This manual workflow created delays, was prone to errors, and required significant effort from both marketing and engineering teams.
The proposed solution was straightforward but impactful: enable direct autopatching from Facebook to EOS, eliminating the Google Sheet step entirely. Engineers would only need to perform manual setup when a brand-new page or project is created on Facebook (the initial dev setup to enable data ingestion). All subsequent campaigns and ads on existing pages would be automatically synced.
The stakes were clear — faster campaign setup meant we could start generating leads sooner, potentially reducing cost per lead and fulfilling agent KPIs before preview dates, so we wouldn't fall into expensive post-launch periods.
Direct Facebook-to-EOS pipeline
The automation was designed to cover both lead routing and media spend tracking in a single integrated system:
Automated lead routing
Once the Performance Marketing team sets up a new Facebook Page and assigns it to the system engineer account, lead routing is automatically synced into EOS — no manual action required on the EOS side. The system detects new page assignments and begins ingestion immediately.
Media spend tracking table
Built a new Facebook Media Spend table in EOS (under Project Marketing) that mirrors the Google Sheet columns: Page ID, Campaign Name, Campaign ID, Ad Name, Adset ID, Ad ID, Conversion Domain, and Remarks — all auto-populated from META except the user-input Conversion Domain.
Input validation & error handling
Implemented a confirmation modal for saving changes, URL format validation for Conversion Domain entries, and edge case handling (valid-but-wrong URL, invalid URL). If autopatching fails, explicit Slack alerts are sent to #alerts-ppc-crm for both campaign patching and media spend issues.
Token refresh automation
Addressed the recurring maintenance burden of token management: explored Facebook System User automation for the 3-month token refresh cycle, and implemented Outbrain API-based auto-refresh for monthly token renewal — eliminating another manual engineering task.
Impact metrics
The automation delivered measurable improvements across the campaign operations workflow:
50%+
Reduction in manual campaign patching tasks for the Performance Marketing team.
70%+
Reduction in average time from campaign creation on Facebook to campaign available in EOS.
~0
Engineers only needed for new page/project setups, not routine campaign operations.
9
Full campaign data columns migrated from Google Sheet to native EOS table with META auto-population.
3 alerts
Automated Slack alerts for: automation downtime, lead flow interruption, and media spend flow interruption.
Full log
Backend change logs capturing Date, User, and What Changed for every campaign sync modification.