It Provides methods to add, edit and manage advertising campaigns running within Facebook. Your ad management application can work with keywords, ad groups and even generate reports.
Have a look the getting started link below
http://developers.facebook.com/search?q=Ads_API_Getting_Started