AD codes, or Authorized Dealer Codes, are mandatory codes assigned by the Reserve Bank of India (RBI) to importers and exporters. They guarantee adherence to foreign exchange regulations for cross-border trade transactions.