Ibuprofen and periods

Kristin • fitness freak.
I was having horrible cramps most of my life finally got insurance and saw a doctor she told me to take ibuprofen 3 days before my period 3 times a day and then two days after it started. I started it last month and things were fine this month when I felt like I was getting my period I started taking them then my period never came then a week later today it kind of started I felt like cramps were coming on so I took an ibuprofen and it completely went away I'm freaking out because Google said that'll stop my ovulation that's not why I'm taking these my doctor did not tell me that when she knew I was trying to get pregnant I'm so mad right now. Does anyone else take ibuprofen for cramps? Do they stop your period too? I'm NOT taking them anymore.