Added advertising

Added advertising and error handler for Ad error