About Taboola SDK
The Taboola SDK allows publishers to integrate Taboola’s content recommendations into their iOS and Android applications. With this SDK, you can effortlessly display personalized content suggestions to your app users, increasing engagement and revenue.
Key Features
- Monetize your app with relevant sponsored content
- Increase user engagement with personalized recommendations
- Seamless integration into iOS and Android apps
- Easy setup and configuration
- Support for multiple ad placements
- Customizable appearance to match your app’s design
Compatibility
The Taboola SDK is compatible with iOS 10.0 and later, and Android 4.1 (API Level 16) and above.
Installation
To integrate the Taboola SDK into your iOS or Android app, follow the steps below:
iOS
1. Install the Taboola SDK using CocoaPods by adding the following line to your Podfile:
// Add this line under your app target in the Podfile
pod 'TaboolaSDK'
2. Run the command pod install
in your project directory.
Android
1. Add the following dependency to your app’s Gradle file:
// Add this line in the dependencies section of your build.gradle file
implementation 'com.taboola.android:sdk:X.X.X'
2. Replace X.X.X
with the latest version of the Taboola SDK found in the Taboola Android SDK Releases.
Integration
Once you have installed the Taboola SDK, follow these steps to integrate it into your app:
iOS
1. Add the import statement to your view controller:
#import <TaboolaSDK/TaboolaSDK.h>
2. Initialize the Taboola SDK in your viewDidLoad()
method:
TaboolaSDK.sharedInstance().start(withPublisherID: "Your Publisher ID")
3. Create a TaboolaView instance and add it to your view hierarchy:
let taboolaView = TaboolaView(frame: CGRect(x: 0, y: 0, width: 320, height: 250))
view.addSubview(taboolaView)
4. Load recommendations by calling the fetchContent()
method:
taboolaView.fetchContent()
Android
1. Import the necessary classes in your activity:
import com.taboola.android.TaboolaWidget;
2. Initialize the Taboola SDK in your onCreate()
method:
TaboolaWidget.Plugin.onPageViewed(this, "Your Publisher ID");
3. Add the TaboolaWidget to your layout XML file:
<com.taboola.android.TaboolaWidget
android:id="@+id/taboola_widget"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
4. Load recommendations by calling the populate()
method:
TaboolaWidget taboolaWidget = findViewById(R.id.taboola_widget);
taboolaWidget.populate();
Advanced Customization
The Taboola SDK provides various customization options to ensure the recommendations seamlessly blend into your app’s design:
Customizing Appearance
Change the visual aspects of the TaboolaView or TaboolaWidget to match your app’s design. Customize the following properties:
- Background color
- Text color
- Font
- Thumbnail size
Ad Placements
The Taboola SDK supports multiple ad placements to fit your app’s layout:
- Above the fold
- Below the fold
- Inside scrollable views
Refer to the Taboola SDK documentation for detailed instructions on how to implement these customizations.
Additional Resources
For more information, please refer to the following resources:
- Taboola iOS SDK GitHub Repository
- Taboola Android SDK GitHub Repository
- Taboola SDK API Documentation
Conclusion
By integrating the Taboola SDK into your iOS or Android app, you can maximize monetization opportunities and enhance the user experience with personalized content recommendations. Follow the installation and integration instructions provided above to get started quickly.