handle error and create intial ad data