SDK DocumentationRecipesAnnouncementsSupport Forum
AndroidiOSAnnouncementsSupport Forum

Support Forum

Ask a Question

duplicate resource error

<declare-styleable name="TaboolaWidget"> <attr format="string" localization="suggested" name="publisher"/> <attr format="string" localization="suggested" name="mode"/> <attr format="string" localization="suggested" name="placement"/> <attr format="string" localization="suggested" name="page_type"/> <attr format="string" localization="suggested" name="target_type"/> <attr format="string" localization="suggested" name="url"/> <attr format="boolean" localization="suggested" name="auto_resize_height"/> <attr format="boolean" localization="suggested" name="scroll_enabled"/> <attr format="boolean" localization="suggested" name="item_click_enabled"/> error: duplicate value for resource 'attr/mode' with config ''.

error itms-90171 invalid bundle structure

Hi, we're using TaboolaSDK 2.6.0 on iOS via CocoaPods. Everything seems to work perfectly, however when we try to upload a build to the App Store, we get the following error concerning some resources within the TaboolaSDK: error itms-90171 invalid bundle structure: the binary file ...Frameworks/TaboolaSDK.Framework/TaboolaSDKResource.Bundle/TaboolaSDKResource is not permitted. Your app can't contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. You can see a screenshot here Any idea on how to fix this? Thanks

can you help to solve the NullPointerException

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void' on a null object reference at$ClearRenderer$ + 54( at android.os.Handler.handleCallback + 815( at android.os.Handler.dispatchMessage + 104( at android.os.Looper.loop + 207( at + 5816( at java.lang.reflect.Method.invoke( at$ + 789( at + 679(

gradle error while using Android SDK 2.8.0 or 2.8.1

Hi - We are getting the following error while trying to upgrade to 2.8.0 or 2.8.1 ``` > Task :app:processDebugManifest FAILED [com.taboola:android-sdk:2.8.1] /Users/jenkins/.gradle/caches/transforms-2/files-2.1/77fdf33b9b8bd0b1c455fdf83ef81be1/jetified-android-sdk-2.8.1/AndroidManifest.xml:14:9-65 Error: Missing 'package' key attribute on element package at [com.taboola:android-sdk:2.8.1] AndroidManifest.xml:14:9-65 [com.taboola:android-sdk:2.8.1] /Users/jenkins/.gradle/caches/transforms-2/files-2.1/77fdf33b9b8bd0b1c455fdf83ef81be1/jetified-android-sdk-2.8.1/AndroidManifest.xml Error: Validation failed, exiting ``` What should we do?

Error when upgrading from Android v2 to v3: "E/TBLWebUnit: setUnitExtraProperties got unrecognized property."

I'm currently upgrading from v2 to v3 in an Android App, but cannot see any taboola feed. These errors are thrown in the logs: > TBLWebUnit: setUnitExtraProperties got unrecognized property. key = mediatedVia > TBLWebUnit: setUnitExtraProperties got unrecognized property. key = isUsedInTaboolaWidget How can I resolve these errors? Should the taboola feed be visible nevertheless, and I'm missing out on something else? My taboola code looks like this: build.gradle: ``` //Include the Taboola SDK binary implementation 'com.taboola:android-sdk:3.6.3' //Taboola: Include the following dependencies (mandatory) implementation 'androidx.browser:browser:1.4.0' ``` Application.kt: ` Taboola.init(TBLPublisherInfo("[my-published-id]"))` ViewController.kt: ``` { private var taboolaPage: TBLClassicPage? = null private var taboolaUnit: TBLClassicUnit? = null fun init() { if (taboolaPage == null) { taboolaUnit = findViewById<TBLClassicUnit>( // Dark mode disabled for now // taboolaUnit?.setUnitExtraProperties(HashMap<String, String>().apply { put("darkMode", "true") }) taboolaPage = Taboola.getClassicPage("[my-url]", "article ") taboolaPage?.addUnitToPage( taboolaUnit, "Below Article Thumbnails", "thumbnails-a", TBL_PLACEMENT_TYPE.PAGE_BOTTOM, object : TBLClassicListener() { // None of the callbacks are being called override fun onItemClick( placementName: String?, itemId: String?, clickUrl: String?, isOrganic: Boolean, customData: String? ): Boolean { return true } override fun onTaboolaWidgetOnTop() {} override fun onAdReceiveSuccess() {} override fun onAdReceiveFail(error: String?) {} override fun onResize(height: Int) {} override fun onUpdateContentCompleted() {} override fun onEvent(actionType: Int, data: String?) {} }) } } private fun refreshView() { taboolaUnit?.fetchContent() } } ``` taboola_wiget.xml (I've also tried the way without declaring TBLClassicUnit via XML) ``` <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="" xmlns:taboola="" android:id="@+id/taboolaWrapper" android:layout_width="match_parent" android:layout_height="wrap_content"> < android:id="@+id/taboolaView" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/elementBackground" taboola:tb_mode="thumbnails-a" taboola:tb_page_type="article" taboola:tb_placement="Below Article Thumbnails" taboola:tb_publisher="[my-publisher-id]" taboola:tb_target_type="mix" taboola:tb_url="[my-url]" /> </FrameLayout> ``` Any help would be appreciated. Thanks! Simon

In iOS app adding taboola in table view as tast cell cause the table view to scroll up automatically.

Hi, In our iOS app we have used tabolla SDK. The page where we used taboola is a table view and we are adding taboola when user reaches the bottom of the table view. But while we add taboola cell to the table view as the last cell and reload the table, table view automatically scroll up. This scroll up effect is happening only on iPhone 6 and iPhone 6s. Please let us know if there is any solution for this.

Getting 400 in Native widget request

I am integrating Taboola native widget in my application in a list. Every third item need to be the Taboola view 1. I have created a TBLNativePage and TBLNativeUnit instances like this Note - same properties are used in your sample val properties = PlacementInfo.widgetProperties() val nativeTaboolaPage = Taboola.getNativePage(properties.pageType, properties.pageUrl) val requestData = TBLRequestData().setRecCount(1) taboolaNativeUnit =,TaboolaAdProvider.publisherInfo, requestData, object : TBLNativeListener() { override fun onItemClick( placementName: String?, itemId: String?, clickUrl: String?, isOrganic: Boolean, customData: String? ): Boolean { println("Taboola | onItemClick | isOrganic = $isOrganic") return super.onItemClick(placementName, itemId, clickUrl, isOrganic, customData) } }) 2. In ViewHolder I have fetched recommendation with this unit taboolaNativeUnit.fetchRecommendations(object : TBLRecommendationRequestCallback { override fun onRecommendationsFetched(recommendationsResponse: TBLRecommendationsResponse?) { // add data to view } override fun onRecommendationsFailed(throwable: Throwable?) { // Getting 400 Bad Request here } }) But I am getting 400 error code in network request with message - HTTP ERROR 400 Problem accessing /apiHandler/1.2/json/sdk-tester-rnd/recommendations.multiple-get. Reason: The source.type [article] is not supported URL - Please let me know what is missing here or where I am creating the wrong request. Note. For same adapter Classing Widget (XML) is working fine

In Mobile SDK v3 (Android), we dont have

Hi, I was looking at the documentation of Mobile SDK v3 (Android), and There was no mention of Native units. When I check the sample - It was loading Taboola native widget programmatically unlike the Classic widget which has TBLClassicUnit. in XML also. I have a few questions - 1. Are views like "TaboolaWidget" which are presented in V2 no longer in V3? 2. Can we add a Native unit using XML?

Show/hide "Sponsored Links by ..."

Hi there! I was wondering if there is any way to configure the TaboolaView from iOS side to obtain the "Sponsored Links by Taboola" or if the way to do it is by asking to Taboola account manager. Thanks!

Cannot customize click item event handler

Hi, I have implemented iOS classic SDK, and in function "didClickPlacementName" i have return false so that i can handle event by my own as per documentation. But Taboola sdk is opening that link along with my handler. Let me know, how i can stop taboola to handle event. Thanks & Regards, Ankit Sabharwal