Correct option is D
Option (d) is the correct meaning of the highlighted group of words.
Given Idiom: Had a ball → Meaning: To thoroughly enjoy oneself or have a great time.
Example: We had a ball at the wedding; the food and music were fantastic.
Similar Idioms: Had a blast, had fun.