The callback type to handle an error loading an Ad.
typedef AdErrorCallback = void Function(Ad ad, String error);