FB_ADS_GENERATOR / fb_policies.py
JeCabrera's picture
Upload 12 files
f29535c verified
"""
Facebook Advertising Policies Reference
"""
fb_policies = {
"prohibited_content": {
"description": "Content that is not allowed in Facebook ads under any circumstances",
"categories": [
"Adult products or services",
"Illegal products or services",
"Discriminatory practices",
"Tobacco and related products",
"Drugs and drug-related products",
"Unsafe supplements",
"Weapons, ammunition, or explosives",
"Adult content",
"Third-party infringement",
"Sensational content",
"Personal attributes"
],
"examples": [
"Mentioning specific body parts in a suggestive manner",
"Targeting ads based on race, religion, age, sexual orientation, etc.",
"Showing images of firearms or weapons even if legal",
"Using 'you' statements that reference personal attributes (e.g., 'Do you have diabetes?')"
]
},
"restricted_content": {
"description": "Content that requires special approval or certification from Facebook",
"categories": [
"Alcohol",
"Dating services",
"Gambling and lotteries",
"Online pharmacies",
"Financial services",
"Subscription services",
"Political content",
"Weight loss products"
],
"requirements": [
"Age restrictions must be applied",
"Special ad category selection may be required",
"Disclaimers or disclosures may be needed",
"Certification or pre-approval might be necessary"
]
},
"misleading_claims": {
"description": "Claims that could be considered deceptive or unrealistic",
"avoid": [
"Guaranteed results (e.g., 'Guaranteed to lose 20 pounds')",
"Before-and-after images with dramatic changes",
"Unrealistic income claims (e.g., 'Make $10,000 in your first week')",
"Miracle cures or treatments",
"Clickbait or false urgency (e.g., 'Only 2 spots left!')",
"Implying Facebook endorsement"
]
},
"formatting_guidelines": {
"description": "Rules about how ad text should be formatted",
"rules": [
"No excessive use of capital letters (avoid ALL CAPS)",
"Limited use of emojis (not excessive)",
"No excessive exclamation points or question marks",
"Proper grammar and spelling",
"No circumventing systems (like using symbols to replace letters)",
"Text in images must not exceed 20% of the image (historical rule, now less strict but still relevant)"
]
},
"landing_page_requirements": {
"description": "Requirements for the page users land on after clicking the ad",
"rules": [
"Must be functional (no broken links or error pages)",
"Must match the product/service advertised",
"Must not use 'bait and switch' tactics",
"Must have clear navigation",
"Must clearly state terms and conditions for offers",
"Must have a privacy policy if collecting user data"
]
},
"personal_attributes": {
"description": "Avoiding direct or implied references to personal characteristics",
"examples": [
"Instead of 'Are you diabetic?' use 'For people managing diabetes'",
"Instead of 'Fix your depression' use 'Resources for those experiencing depression'",
"Instead of 'Designed for old people' use 'Designed for seniors'"
],
"guidance": "Avoid using 'you' or 'your' when referring to sensitive personal attributes, conditions, or situations"
}
}
def get_policy_checklist():
"""Returns a simplified checklist for ad creators"""
return [
"Does the ad avoid prohibited content (adult, illegal, weapons, etc.)?",
"Does the ad avoid making unrealistic claims or guarantees?",
"Does the ad avoid excessive capitalization, punctuation, or sensationalist language?",
"Does the ad avoid using 'you' or 'your' when referring to personal attributes?",
"Does the ad avoid creating false urgency or using clickbait tactics?",
"If in a restricted category, does the ad include necessary disclaimers?",
"Does the ad avoid mentioning Facebook or Instagram directly?",
"Does the ad avoid discriminatory language or targeting?",
"Is the landing page functional and relevant to what's being advertised?",
"Does the ad avoid using before-and-after imagery that shows dramatic changes?"
]