removed unnecessary require
added as_indexed_json to Ad