TapForTap and AdMob mediation
I'm struggling with this. My app has successfully run with AdMob and TapForTap by releasing different versions for each. Now I'm trying to follow the instructions to have both together, mediated by AdMob.
In AdMob I set up the custom event and got my mediation id. As far as I can tell I don't need to make any changes to my app on the TapForTap site.
In my libraries folder AdMob.jar and AdMob.xml are dated 23/05/2012; GoogleAdMobAdsSdk.jar is dated 18/10/2012.
I downloaded MaxTapForTap.jar, MaxTapForTap.xml, TapForTap.jar, TapForTapAdMob.jar, TapForTapAdMobWrapper.jar and TapForTapAdMobWrapper.xml today.
I have a version of TapForTapWrapper.jar and TapForTapWrapper.xml dated 23/10/2012.
In the libraries tab of my app I've ticked AdMob (version 1.36), MaxTapForTap (version 1.02), TapForTapAdMobWrapper (version 1.00) and some others that are not relevant to this. (I'm guessing that MaxTapForTap supersedes TapForTapWrapper because it's added an extra parameter to the Initialize statement).
These are Globals:
HTML:
Dim AdView1 As AdView
Dim Amb As AdMobBanner
Dim Ad As TapForTap
These are in Activity_Create:
HTML:
AdView1.Initialize("Ad", "my mediation id")
Ad.Initialize("","my TapForTap key")
Activity.AddView(AdView1, 50%x - 160dip, 0dip, 320dip, 50dip)
AdView1.LoadAd
Anyway, I'm unable to compile, I keep getting -
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcom/tapfortap/Ad;
at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
I'm attaching the code, hoping somebody can see where I'm going wrong.