Advil and Tylenol

Sara
Has anyones Dr told them they can take Advil and Tylenol together for migraines while pregnant? Mine did and I'm worried cause I heard Advil is a huge no no while preggers. Why would she tell me to if it's bad?