Skip to content

feat: segments create/update and asa segments commands - #48

Merged
adressop6789-max merged 7 commits into
mainfrom
feat/segments-write
Oct 13, 2026
Merged

adressop6789-max merged 7 commits into
mainfrom
feat/segments-write

Conversation

@adressop6789-max

Copy link
Copy Markdown
Collaborator

What

  • adapty segments create|update — write Adapty segments through the Developer API with --filter field:OPERATOR:value[,value...]; get/create/update now carry filters, profile_count, refresh_in_progress and timestamps.
  • adapty asa segments create|update|list — the Ads Manager "create segment" button as commands: resolves campaigns, ad groups or keywords from the ASA service, builds the attribution filter over their Apple ids and names the segment the way the dashboard does ([ASA] Campaign: <name>), so the dashboard recognises it. --keyword takes one --ad-group as the lookup scope; --app is required (the Adapty app the segment belongs to).

Why

Segments built from Apple Search Ads campaigns could only be created in the dashboard. The Developer API now accepts POST/PUT /apps/{app}/segments/; this is the CLI side.

Notes

  • Requires the backend release that opens segment writes on the Developer API; until then the write commands answer 405.
  • Docs: README, docs/agent/asa-management.md (new section + recipe), skill reference. pnpm check:agent-docs passes.

Comment thread src/commands/segments/update.ts Outdated
mlnchk
mlnchk previously approved these changes Oct 13, 2026
@adressop6789-max
adressop6789-max merged commit d682061 into main Oct 13, 2026
4 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.

2 participants