how to apply ad code