Commit with ad codes