You find them in dangerous areas, where there are Rexs, carnos, or/and spinos. I found mine by the triple water fall on the west side of the map by the snow biome

More Ankylosaurus Encountering Tips