It could be allegies or mites or mosquito bite, so hows the ear now??
Welcome to the forum,,,lets us know how the dog is doing??
Have you looked inside the dog's ear? If a dog scratches his ear a lot, it's usually because there is some kind of infection going on inside. He'll need a vet to provide medications if that's what is going on.