This is a contextual advertising solution with enhanced machine learning (ML) capabilities, designed to reach target audiences without using third party cookies. Contextual advertising enables advertisers to reach an audience based on the content consumed by users. It uses an event-driven serverless architecture based on a highly scalable and cost-optimized design. It enables demand side platforms (DSPs), advertisement publishers and supply side platforms (SSPs) to build a contextual intelligence solution utilizing AWS artificial intelligence (AI) and machine learning services to extract relevant metadata and map it to their own taxonomy or industry-standard taxonomy, which informs the programmatic bids for advertisement publishers, brand safety for advertisers and advertisement creative classification for supply side platforms.