Skip to content

feat(ads): pixels, conversions API and custom conversions - #32

Merged
alihesari merged 4 commits into
mainfrom
feature/ads-tracking
Oct 18, 2026
Merged

alihesari merged 4 commits into
mainfrom
feature/ads-tracking

Conversation

@alihesari

Copy link
Copy Markdown
Member

What changed

New fopost ads tracking group over the Go SDK's ads tracking methods (fopost-go branch feature/ads-tracking):

  • pixels list · get · create · stats · match-quality (get --code and create print the install script)
  • custom-conversions list · create · delete (delete confirms unless --yes)
  • conversions list (recent batches) and conversions send, which reads a JSON array of events from --events <path> or --events - (stdin) and sends it once per required --idempotency-key, sent as the Idempotency-Key header via Ads.SendConversions

Every pixel command takes --connection and --ad-account; --workspace stays the root flag. README and CHANGELOG (Unreleased) updated. No version bump, no tag.

Tests

Run locally with a temporary replace github.com/fopost/fopost-go => <fopost-go feature/ads-tracking worktree> in go.mod (not committed):

  • go build ./... ok
  • go test ./... ok (new internal/cmd/ads_tracking_test.go: idempotency header is sent and stdin events travel, missing key exits 2 without reaching the API, pixel read is scoped by the three query params, custom conversion create sends the rule and default value)
  • go vet ./... ok, gofmt -l . clean

Owed before merge

  • Pin go.mod to the next fopost-go tag that includes ads_tracking.go (Ads.SendConversions, pixels, custom conversions). Until then CI will not compile, since go.mod still points at v0.3.0.

@alihesari
alihesari merged commit 003453f into main Oct 18, 2026
0 of 3 checks passed
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