# Rule engine & campaign objective validation
### local Rule baseed engine for facebook optimization
- define rules in frontend at the time of campaign creation
- need a practical example for rule
- apply rules in backend
### refs
- everything needed for validation is hear https://developers.facebook.com/docs/marketing-api/reference/ad-campaign-group/#objective-validation
### list of objectives
- APP_INSTALLS
- application id on facebook
- app store url
- BRAND_AWARENESS
- CONVERSIONS
- connected pixel in adset promoted object
- EVENT_RESPONSES
- LEAD_GENERATION
- LINK_CLICKS
- if for mobile app application_id and object store url (similar to APP_INSTALLS objective)
- MESSAGES
- POST_ENGAGEMENT
- PRODUCT_CATALOG_SALES
- product_set_id in adset promoted object
- REACH
- STORE_VISITS
- VIDEO_VIEWS
- PAGE_LIKES
- page_id in adset proted object
# thoughts about A\B testing