It sounds like your pet might need an ear culture to rule out bacterial resistance if routine medications are not working. Talk to your vet about what diagnostics should be pursued to evaluate the type of bacteria causing the issue. Keep in mind that in severe, chronic cases, sometimes a surgical removal of the ear canal becomes the best option