You don't have to choose a target artifact or enchantment card to cast Campus Renovation. However, if you do, and that card is an illegal target at the time Campus Renovation tries to resolve, it won't resolve and none of its effects will happen. You won't exile any cards from your library.

Artwork
Loading artwork…
Campus Renovation
March of the Machine: The Aftermath · #127 · EN
Nonfoil—Foil—Etched—
Card rules
Return up to one target artifact or enchantment card from your graveyard to the battlefield. Exile the top two cards of your library. Until the end of your next turn, you may play those cards.
Reconstructing the past is Lorehold's specialty.
Uncommon · Illustrated by Robin Olausson
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions