The past tense of gain the advantage over is gained the advantage over.
The third-person singular simple present indicative form of gain the advantage over is gains the advantage over.
The present participle of gain the advantage over is gaining the advantage over.
The past participle of gain the advantage over is gained the advantage over.