Mahrah Al Nahyan received a two-year community order and a £5,000 fine after pleading guilty to child neglect.
Prosecutors said a three-year-old was left unattended near moving traffic in west London while Al Nahyan was unconscious.
The court heard about cocaine use in the days before the incident and Al Nahyan’s plans for continued addiction treatment.