reorganised and updated config
retrieve ads from JSON object