Updated ad code