The fetch_ads method above returns Ads in JSON format which are rendered using the render_ads function.
fetch_ads
render_ads