Snap beats Q2 estimates as shares jump 17% on ad growth