Flask API implementation for ADS Recommender service