Drain corn and black beans. Combine beans, tomatoes, onion, corn, cilantro, and avocado.
Combine ketchup, vinegar, and spices in a separate bowl and mix well. Pour over the vegetables and combine.