Ad interim has 2 different meanings across 1 category:
Adverb
for an intervening time; temporarily
"elected to serve ad interim"
In or for the meantime; temporarily