Android Question trouble with adbuddiz sdk

renzino

Member
Licensed User
Longtime User
Hi, I'm trying to compile my app with sdk, it seems I followed all their instructions (below):

1. Download Basic4android Plugin
Basic4android Plugin 3.1.9:

2. Installation of the BAAdBuddiz lib
Add the jar and the .xml in the extralibs folder of your app.

In the right libs panel, make sure AdBuddiz-Basic4androidPlugin-3.1.9 is checked.

3. Update the Manifest of your App
In the project menu, update the manifest of your App with the following info.

a) Permission
AddPermission(android.permission.ACCESS_NETWORK_STATE)
b) Application - Activity
AddApplicationText(<activity android:name="com.purplebrain.adbuddiz.sdk.AdBuddizActivity"
android:theme="@android:style/Theme.Translucent"/>)
4. Init lib
You should init the lib as soon as your app starts. In Sub Globals, declare a variable of type BAAdBuddiz.

Dim ad As BAAdBuddiz
Initialize it in Sub Activity_Create. Use the following code:

ad.Initialize("AdBuddizDelegate","TEST_PUBLISHER_KEY",False, ad.Info);
Depending on your app, replace "TEST_PUBLISHER_KEY" with the right publisher key:

...but I get this error message:

B4A version: 5.50
Parsing code. Error
Error parsing program.
Error description: Input string was not in a correct format.
Occurred on line: 60 (Main)
ad.Initialize("AdBuddizDelegate", "TEST_PUBLISHER_KEY", False, ad.Info);

1) It's strange the semicolon at the end of the line, perhaps an error?
2) which text i have to substitute with "TEST_PUBLISHER_KEY"?

How I can solve this problem?
Thanks
 

renzino

Member
Licensed User
Longtime User
Solved!
The right command line is:
Ad.Initialize("AdBuddizDelegate", "TEST_PUBLISHER_KEY", False, Ad.AdBuddizLogLevel_Info)

"TEST_PUBLISHER_KEY" is a key generated from the site after added the app in the dashboard
Greetings
 
Upvote 0
Top