B4A Library Tapit Ads wrapper

Hello All, i've updated this wrapper to Version 1.7, it uses the Tapit's latest SDK, better performance, i apologize for taking so long in updating it, please feel free to report any problems with this library.
You can add Interstitial, Full Screen, Banner and Prompt Ads with this library, Wall offer and Video Ads are not working yet.
All the permissions are included in the library, so there's no need to add them manually on your manifest file.

There's an example included so you can test it out, theres also documentation included that will help you start implementing this library right away, just add the TapitV1.7.xml, TapitV1.7.jar and TapitAdview.jar files to your additional libraries folder
and you're ready to start adding ads to your applications.

The library can be downloaded from here

https://github.com/walterf25/TapitAdsV1_7

For processing some ORMMA feature like playing embedded video please
add this before the </application>:
<activity android:name="com.tapit.adview.ormma.util.OrmmaActionHandler"/>

you also need this in your xml file to display the ads
<activity android:name="com.tapit.adview.AdActivity"
android:configChanges="keyboard|keyboardHidden|ori entation"/>


Enjoy!!!!!!
Walter
 
Last edited:

Inman

Well-Known Member
Licensed User
Longtime User
I cannot get Tapit to work in any way. This is what I have been trying to do.

There are 2 B4A plugins for Tapit available now. One is version 1.0, available in this thread created by Walter. Other is by Tapit which is version 1.3.

I first tried Tapit's version. I added the Manifest entries and all and registered my app at Tapit site. I then created a banner for tablet and provided the zone id. When I run the app, all I see is a white color view without any ad.

Then I tried Walter's plugin in this thread and I believe it works for banners. Because when I run the app, I can at least see a message in that white space, saying my zone id is not approved yet. But when I tried to load a video ad and interstitial ad, I get error messages in log like "java.lang.NoSuchMethodError: setShowCloseButtonTime" and "java.lang.NoSuchMethodError: setIsShowPhoneStatusBar". I believe this is because the new versions of SDK doesn't have these methods any more.

So this is my situation. Is Tapit working for anyone?
 

walterf25

Expert
Licensed User
Longtime User
Tapit ads

Hi there, yes you are correct i think the sdk version you are using is outdated, i'm currently working on updating the plug in, please be advised that the video and offer wall ads still do not work, only Full screen, Interstitial, PrompAds and banner ads are currently working, I will send you an example and the library files once i finish testing it!

Sorry about any troubles!

Walter
 

NFOBoy

Active Member
Licensed User
Longtime User
Hello Walter,

in trying to get this working, I have been successful with the banner and AdPrompt, but am having an issue with the interstitial and fullscreen. (getting "no creatives available" for the videoview, and I don't see offerwall offered as an App Placement, but do see: Leaderboard and Medium Rectangle)

Here is the problem Log:

** Activity (main) Create, isFirst = false **


** Activity (main) Resume **


Ad Banner has been loaded


Ad Prompt is ready to be displayed


video Ad failed to show No available creatives


walloffer failed to load No available creatives


Full screen Loaded and ready


main_adfull_ready (java line: 264)


android.content.ActivityNotFoundException: Unable to find explicit activity class {b4a.tapit.example/com.tapit.adview.AdActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1512)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1388)
at android.app.Activity.startActivityForResult(Activity.java:3252)
at com.tapit.adview.AdInterstitialBaseView.showInterstitial(AdInterstitialBaseView.java:121)
at com.dandre.tapitadsv1_7.TapitAdsV1_7.showFullScreen(TapitAdsV1_7.java:266)
at b4a.tapit.example.main._adfull_ready(main.java:264)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:165)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:153)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:149)
at com.dandre.tapitadsv1_7.TapitAdsV1_7.ready(TapitAdsV1_7.java:318)


at com.tapit.adview.AdInterstitialBaseView.end(AdInterstitialBaseView.java:140)
at com.tapit.adview.AdViewCore$LoadContentTask.onProgressUpdate(AdViewCore.java:784)
at com.tapit.adview.AdViewCore$LoadContentTask.onProgressUpdate(AdViewCore.java:551)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:618)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4517)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
at dalvik.system.NativeStart.main(Native Method)
android.content.ActivityNotFoundException: Unable to find explicit activity class {b4a.tapit.example/com.tapit.adview.AdActivity}; have you declared this activity in your AndroidManifest.xml?
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **


Ad Prompt is ready to be displayed


loading interstitial Ad


ad has been loaded


main_inter_ready (java line: 341)


android.content.ActivityNotFoundException: Unable to find explicit activity class {b4a.tapit.example/com.tapit.adview.AdActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1512)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1388)
at android.app.Activity.startActivityForResult(Activity.java:3252)
at com.tapit.adview.AdInterstitialBaseView.showInterstitial(AdInterstitialBaseView.java:121)
at com.dandre.tapitadsv1_7.TapitAdsV1_7.showInterstitial(TapitAdsV1_7.java:279)
at b4a.tapit.example.main._inter_ready(main.java:341)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:165)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:153)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:149)
at com.dandre.tapitadsv1_7.TapitAdsV1_7.ready(TapitAdsV1_7.java:318)
at com.tapit.adview.AdInterstitialBaseView.end(AdInterstitialBaseView.java:140)
at com.tapit.adview.AdInterstitialView.end(AdInterstitialView.java:73)
at com.tapit.adview.AdViewCore$LoadContentTask.onProgressUpdate(AdViewCore.java:784)
at com.tapit.adview.AdViewCore$LoadContentTask.onProgressUpdate(AdViewCore.java:551)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:618)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4517)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
at dalvik.system.NativeStart.main(Native Method)
android.content.ActivityNotFoundException: Unable to find explicit activity class {b4a.tapit.example/com.tapit.adview.AdActivity}; have you declared this activity in your AndroidManifest.xml?
** Activity (main) Pause, UserClosed = false **


** Activity (main) Resume **

Here is my manifest editor:

'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: Manifest Editor
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<activity android:name="com.tapit.adview.ormma.util.OrmmaActionHandler"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
<activity android:name="com.tapit.adview.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation"/>
)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.

and my generated manifest:

<?xml version="1.0" encoding="UTF-8"?>
-<manifest android:installLocation="internalOnly" android:versionName="" android:versionCode="1" package="b4a.tapit.example" xmlns:android="http://schemas.android.com/apk/res/android"> <uses-sdk android:targetSdkVersion="14" android:minSdkVersion="4"/> <activity android:name="com.tapit.adview.ormma.util.OrmmaActionHandler"/> <supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true"/> <activity android:name="com.tapit.adview.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android:permission:ACCESS_FINE_LOCATION"/> -<application android:label="B4A Example" android:icon="@drawable/icon"> -<activity android:name=".main" android:label="B4A Example" android:screenOrientation="unspecified" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> -<intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> </manifest>
(don't know why those spaces are showing in "orientation" and "OrmmaActionHandler", as they are not like that in my generated file. Just when I paste them here. ???)

Just wondering what I'm doing wrong with the Manifest, as "I" see it in there.


Thanks,

Ross
 

NFOBoy

Active Member
Licensed User
Longtime User
Ahhh,

Thanks much! Defininetly don't understand the manifest properties all that well... Thanks for all the support! I think my Pro sales might be close to paying for my initial investment with downloading B4A, and I appreciate all the help here! (hopefull adding ads will help out with getting above that level! :) )
 
Top