502 bad gateway

After a change on AdSanity my site is displaying a 502 bad gateway.

Also, what is the best solution for serving ads? i just need an ad system.