You need to create or import the ToastAdListsner class wherever you go it from. NB ToastAdListener is NOT an Admob class.
At a guess I'd say you have copied the code above from somewhere. Go back to that source and find the ToastAdListener class. Or implement you own AdListener. Or don't use an AdListener at all. It depends on your use case.