Spam based attacks are growing in various social networks. Social network spam is a type of unwanted content that appears on social networking sites, such as Facebook, Twitter, Instagram, and others. This study used two categories of ensemble algorithms to build Twitter spam classification models. These algorithms worked by combining the strengths of individual learning algorithms and then reporting their total performances. In ensemble learning, models are formed from data based on the assumption that combining the output of multiple models is better than using a single classifier. Hence, this study used a labeled public dataset for machine learning-based Twitter spam detection. Several studies have investigated the classification of Twitter spam from the available datasets. However, there is a paucity of works that investigated how machine learning-based models, built with homogenous and heterogeneous algorithms, behave in Twitter spam classification. ANOVA-F test was used for selecting the most promising features in the dataset. Then, homogeneous tree-based Random Forest (RF) ensemble and a heterogeneous ensemble vote classifier were employed for the classification of Twitter spam. Tree-based algorithms were used to build a homogeneous twitter spam detection model, while a combination of Support Vector Machine (SVM) and Decision Tree (DT) algorithms was used for building the heterogeneous model (using maximum voting classifier). The current study found that the performance of the Twitter spam detection models were promising. In all, the heterogeneous model recorded better performance with regards to accuracy, precision, recall, and F1-score than the model built with homogeneous base classifier.