project_matrix.sh

$ cat project.txt

TIKTOK CAMPAIGN AUTOMATION

Go service that monitors TikTok ad campaigns and auto-disables underperformers. Reads thresholds from Google Sheets and alerts the team on Slack.

$ ls -la project/

TIKTOK CAMPAIGN AUTOMATION

A cost-control automation that watches TikTok campaigns against spend and conversion targets, disables flagged campaigns, and notifies the team.

Go Docker Slack

The Challenge

Inefficient campaigns drain ad budget long before anyone catches them in a daily manual review.

Our Solution

A scheduled Go service reads advertiser and campaign config from Google Sheets, pulls live TikTok metrics, applies spend and conversion thresholds, disables losers and posts a combined Slack alert.

Key Features

Scheduled monitoring of live campaign metrics
Google Sheets configuration for advertisers and thresholds
TikTok Ads API integration with OAuth2 token refresh
Dual threshold logic on spend and cost-per-acquisition
Slack notifications for every action taken
Dry-run mode for safe testing

Technical Architecture

Frontend

  • framework: N/A
  • stateManagement: N/A
  • styling: N/A
  • testing: N/A

Backend

  • runtime: Go
  • framework: net/http + scheduler
  • database: Google Sheets (config)
  • caching: N/A

Deployment

  • hosting: Docker (scheduled)
  • ci_cd: N/A
  • monitoring: Slack notifications

Results & Impact

Catches wasteful campaigns far faster than manual review

Single Slack digest across multiple advertisers

Dry-run mode prevents accidental disablement

Automatic OAuth2 token refresh keeps it unattended