Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to the CLI are documented here. Releases are `v<version>` tags on `main`.

## Unreleased

### Added

- `fopost ads tracking pixels list · get · create · stats · match-quality`, `custom-conversions list · create · delete` and `conversions list · send`. `conversions send` reads a JSON array of events from a file or stdin and sends it exactly once per `--idempotency-key`; `custom-conversions delete` confirms unless `--yes` is passed.
- Requires `fopost-go` with `Ads.SendConversions` and the pixel and custom conversion methods (the pin in `go.mod` must be bumped once that SDK version is released).

## 0.3.0 - 2026-10-18

### Added
Expand Down
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ fopost webhooks list · create · test · delete
deliveries list · get · redeliver
fopost connect-sessions create · get
fopost activity list · audit
fopost ads networks · tree · pause · resume · insights · leads · catalogs · library
fopost ads networks · tree · pause · resume · insights · leads · catalogs · library ·
google · tracking
fopost completion bash · zsh · fish · powershell
fopost version
```
Expand Down Expand Up @@ -354,3 +355,28 @@ fopost ads google query --connection c4d5e6f7-… --customer 1234567890 \

`--customer` has to name an account the connection's grant reaches; any other answers
404. The other `fopost ads` commands work across networks and dispatch by connection.

### Ads tracking

`fopost ads tracking` covers pixels, the Conversions API and custom conversions. Every
pixel command names the connection and the ad account that owns the pixel; the ads scope
is enough:

```bash
fopost ads tracking pixels list --connection c4d5e6f7-… --ad-account act_123
fopost ads tracking pixels create --connection c4d5e6f7-… --ad-account act_123 --name "Site"
fopost ads tracking pixels get 123 --connection c4d5e6f7-… --ad-account act_123 --code
fopost ads tracking pixels stats 123 --connection c4d5e6f7-… --ad-account act_123
fopost ads tracking pixels match-quality 123 --connection c4d5e6f7-… --ad-account act_123
fopost ads tracking custom-conversions list --connection c4d5e6f7-… --ad-account act_123
fopost ads tracking custom-conversions create --connection c4d5e6f7-… --ad-account act_123 \
--pixel 123 --name "Signed up" --event-type COMPLETE_REGISTRATION --url-contains /thanks
fopost ads tracking custom-conversions delete 456 --connection c4d5e6f7-… --ad-account act_123
fopost ads tracking conversions list --limit 20
fopost ads tracking conversions send --connection c4d5e6f7-… --ad-account act_123 \
--pixel 123 --idempotency-key order-981 --events events.json
```

`conversions send` reads a JSON array of events from `--events` (a path, or `-` for stdin)
and sends it exactly once per `--idempotency-key`: a key sent before answers replayed and
sends nothing. Identity fields are hashed by the API and never stored.
3 changes: 2 additions & 1 deletion internal/cmd/ads.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func init() { register(newAdsCmd) }
func newAdsCmd(state *State) *cobra.Command {
cmd := &cobra.Command{
Use: "ads",
Short: "Inspect campaigns and catalogs, change status, and read insights, leads, the ad archive and ad comments",
Short: "Inspect campaigns and catalogs, change status, read insights, leads, the ad archive and ad comments, and track conversions",
}
cmd.AddCommand(
newAdsNetworksCmd(state),
Expand All @@ -28,6 +28,7 @@ func newAdsCmd(state *State) *cobra.Command {
newAdsCatalogsCmd(state),
newAdsLibraryCmd(state),
newAdsGoogleCmd(state),
newAdsTrackingCmd(state),
newAdsIdentitiesCmd(state),
newAdsSparkPostsCmd(state),
newAdsCommentsCmd(state),
Expand Down
Loading
Loading