feat: expand initial Meta Ads policy coverage#12
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ae6c1ba31a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| description: Meta campaigns for housing, employment, or financial products/services may require Special Ad Category configuration and targeting limits. | ||
| modules: [platform] | ||
| platforms: [meta] | ||
| industries: [finance, saas, general] |
There was a problem hiding this comment.
Apply Special Ad Category review across all advertiser verticals
This rule is currently limited to industries: [finance, saas, general], but filter_policies drops any policy whose industry list does not include the submission’s industry. That means Meta ads with explicit housing/employment signals (for example, healthcare recruiting ads tagged industry: health) will bypass this review entirely, even though the rule description says those campaign types may require Special Ad Category handling.
Useful? React with 👍 / 👎.
| description: Meta ads should not request financial, health, or other private information without appropriate permission and review. | ||
| modules: [platform] | ||
| platforms: [meta] | ||
| industries: [health, wellness, finance] |
There was a problem hiding this comment.
Do not scope private-information request checks to select industries
Restricting this high-risk rule to health, wellness, and finance creates a false-negative path for Meta ads that request sensitive data but are labeled with other industries (or left at the default industry: general). Since policy filtering is industry-gated, prompts like “enter your credit score” in otherwise general campaigns will not be flagged by this new policy.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4686cb6416
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - insurance quote | ||
| - investment opportunity | ||
| - mortgage application | ||
| - refinance today |
There was a problem hiding this comment.
Widen refinance trigger for Meta finance authorization checks
This signal is matched as an exact phrase, and _signal_to_regex escapes literals before compiling the pattern, so only copy containing refinance today will trigger this rule. That creates false negatives for common refinance ads such as “refinance your mortgage” that should still be covered by meta_financial_services_authorization_review based on its description.
Useful? React with 👍 / 👎.
Summary
Verification
make benchmark-datamake benchmarkmake evalmake policy-coveragemake test→ 179 passedmake policy-coverage-validatemake pr-preflight