Skip to content

feat: add Instagram Ads connector (ads optimized)#38

Merged
maciejwitowski merged 1 commit intomainfrom
feat/instagram-ads-connector
Mar 24, 2026
Merged

feat: add Instagram Ads connector (ads optimized)#38
maciejwitowski merged 1 commit intomainfrom
feat/instagram-ads-connector

Conversation

@volod-vana
Copy link
Copy Markdown
Member

Adds a dedicated ads-only Instagram connector that exports:

  • Advertisers you saw ads from
  • Ad topics
  • Targeting categories (from "Categories used to reach you")

Optimized for speed (~15s vs 39s for the full Instagram connector):

  • Navigates directly to Accounts Center ads page
  • DOM-readiness polling instead of fixed page.sleep() calls
  • Skips profile and posts entirely

Includes updated instagram.ads schema with categories field and registry entry with checksums.

Adds a dedicated ads-only Instagram connector that exports:
- Advertisers you saw ads from
- Ad topics
- Targeting categories (from "Categories used to reach you")

Optimized for speed (~15s vs 39s for the full Instagram connector):
- Navigates directly to Accounts Center ads page
- DOM-readiness polling instead of fixed page.sleep() calls
- Skips profile and posts entirely

Includes updated instagram.ads schema with categories field
and registry entry with checksums.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@volod-vana volod-vana changed the title feat: add Instagram Ads connector (demo-optimized) feat: add Instagram Ads connector (ads optimized) Mar 13, 2026
@maciejwitowski maciejwitowski merged commit 165f7a7 into main Mar 24, 2026
@maciejwitowski maciejwitowski deleted the feat/instagram-ads-connector branch March 24, 2026 10:51
maciejwitowski added a commit to vana-com/data-connect that referenced this pull request Mar 30, 2026
## Summary

- Adds a dedicated `instagram-ads` entry to the `PLATFORM_REGISTRY` so
that clicking "Instagram Ads" on the home page loads the correct ads
data (`instagram.ads` scope) instead of falling back to regular
Instagram data
- Sets `showInConnectList: false` since the main Instagram connector
already exports ads — this entry exists purely for data resolution

## Root cause

The `instagram-ads-playwright` connector (added in
vana-com/data-connectors#38) had no matching registry entry. Without
one, the source page has no `ingestScope`, so it falls back to loading
whatever data it finds for company "Meta" — which is the regular
Instagram posts data.

## Test plan

- [x] Open DataConnect, go to home page
- [x] Verify "Instagram Ads" card appears (loaded from connector files)
- [x] Click "Instagram Ads" → source page should show ads data
(advertisers, ad topics), not Instagram posts
- [x] Verify regular "Instagram" still works and shows profile + posts
data
- [ ] Verify Instagram Ads does NOT appear as a separate option in the
connect flow (only in "Your data" if already connected)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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