The optimal duration for running a Facebook ad varies depending on several factors such as campaign goals, campaign budget, and seasonal trends. However, a general guideline is to allow at least 1 to 2 weeks for initial testing and optimization, with ideal campaign lengths often ranging from 2 weeks to a month to gather sufficient data and achieve the best ROI. Facebook ads typically undergo a learning phase to optimize targeting and bidding, which lasts approximately 7 days.