All 3 are extremely important but ap and speed stand on top. Speed because you gotta hit your enemy duh and ap because you have to actually damage yo enemy
Still, there's a thing called Mass X Acceleration = Newtons. This is probably not true on One Piece but if it was, then speed hands down since enough speed can also give you enough AP (look at flash's infinite mass punch).