Why is my baby fighting my nipple?

Seriously past the point of frustration. My baby is four weeks old today and has been breastfeeding from the start but the past few days there are times she doesn’t want to latch but I know she’s hungry. I really don’t get it. She will scream her head off and after like fifteen minutes she finally latches or I just give up and have dad give her a pumped bottle.