feat(integrations): Meta Marketing API — structured use-case integrations#257
Open
lev-goryachev wants to merge 2 commits intomainfrom
Open
feat(integrations): Meta Marketing API — structured use-case integrations#257lev-goryachev wants to merge 2 commits intomainfrom
lev-goryachev wants to merge 2 commits intomainfrom
Conversation
… use case)
Replace fi_meta.py, fi_instagram.py, and facebook/fi_facebook.py with flat
per-use-case files matching Meta developer console use cases:
fi_meta_marketing_manage.py - Create & manage ads (campaigns, adsets, ads,
creatives, audiences, pixels, targeting, rules)
fi_meta_marketing_metrics.py - Measure ad performance (all insights endpoints)
fi_meta_pages.py - Manage Pages and ad accounts
fi_meta_ad_leads.py - Capture & manage ad leads (stub)
fi_meta_app_ads.py - App ads (stub)
fi_meta_threads.py - Threads API (stub)
fi_meta_whatsapp.py - WhatsApp Business (stub)
fi_meta_catalog.py - Catalog API (stub)
fi_meta_messenger.py - Messenger (stub)
fi_meta_instagram.py - Instagram messaging & content (stub)
facebook/ subpackage is kept as internal implementation library used by the
three real integration files above.
- Merge client.py + exceptions.py + models.py + utils.py into _fi_meta_helpers.py - Inline campaigns/adsets/ads/audiences/pixels/targeting/rules into fi_meta_marketing_manage.py - Inline insights.py into fi_meta_marketing_metrics.py - Inline accounts.py into fi_meta_pages.py - Delete facebook/ subpackage entirely All fi_meta_*.py files now self-contained with single helper dep.
ef0fbd0 to
a3888f1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fi_meta.py+fi_instagram.py+facebook/subpackage with a flat set of use-case-specific integration files_fi_meta_helpers.py(underscore prefix prevents it from being auto-parsed as a tool)Files
New integration files (one per API use case):
fi_meta_marketing_manage.py— Create & manage ads (campaigns, ad sets, ads, creatives, audiences, pixels, targeting, rules)fi_meta_marketing_metrics.py— Measure ad performance (insights, async reports)fi_meta_pages.py— Manage Facebook Pages and ad accountsfi_meta_instagram.py,fi_meta_messenger.py,fi_meta_whatsapp.py,fi_meta_threads.py,fi_meta_catalog.py,fi_meta_app_ads.py,fi_meta_ad_leads.py— stubs for uncovered use casesHelpers:
_fi_meta_helpers.py—FacebookAdsClient, all exceptions, all Pydantic models, validation utilsDeleted:
facebook/fi_facebook.py,facebook/client.py,facebook/exceptions.py,facebook/models.py,facebook/utils.py,facebook/campaigns.py,facebook/adsets.py,facebook/ads.py,facebook/audiences.py,facebook/pixels.py,facebook/targeting.py,facebook/rules.py,facebook/insights.py,facebook/accounts.pyfi_meta.py,fi_instagram.pyTest plan
_fi_meta_helpers.pyis NOT registered as a tool (underscore prefix)fi_meta_marketing_manage.pyloads and responds toop=helpfi_meta_marketing_metrics.pyloads and responds toop=helpfi_meta_pages.pyloads and responds toop=help