Does anyone know what happens if you have adwords set up for the same keywords, different sites (different campaigns).

I assume google does not show multiple ads from the 1 account (from different campaigns), so how does google juggle between the different campaigns? How does google decide which campaign to show?

Thanks