You might be young but you are clearly tuned into your daughter so give yourself some more credit! You are a good Mama.
She will need to go to the pediatrician, if she hasn't already, to determine if she has an infection. If she does, you can ask for numbing drops in addition to the antibiotics they will prescribe.
Ibuprofen for now....If you only have Tylenol, use that for now until you can get some Motrin.
Also, it can hurt more to be horizontal so if she can't sleep you might want to try holding her upright against you .... Either in a rocker or proppd up together in your bed so you can both get some rest.
I have had two ear infections recently as an adult and I was sorely reminded how much they hurt.
Two of my kids have had tubes and the third will likely get them this year.
Ear problems are the pits. Good luck.