Hi,
In the monotouch bindings there is a Google Admobs binding. This is working
for me.
Admob has a new feature called Mediation. With this feature you can use
additional Ad Networks from within Admob. For this to work you need to add
the .a lib adapter file to xcode and set the linker flags:
/
You now need to add -ObjC and -all_load to the Other Linker Flags of your
application target's build setting:
In XCode's project navigator, press the blue top-level project icon.
Click on your target, then the Build Settings tab.
Under Other Linker Flags, add these two values to both Debug and
Release:
-ObjC
-all_load
/
I don't know how to set these linker flags for Monotouch, maybe that's my
mistake...
What i did to get this to work in Monotouch is expanding the Makefile and
the AssemblyInfo.cs to add the .a files because they only need to get
linked.
In the AssemblyInfo.cs i added(for every ad network):
[assembly: LinkWith ("libAdapterInMobi.a", LinkTarget.Simulator |
LinkTarget.ArmV6 | LinkTarget.ArmV7, Frameworks = "AudioToolbox MessageUI
SystemConfiguration MediaPlayer QuartzCore CoreGraphics CoreLocation",
ForceLoad = true)]
In the makefile i added(for every ad network):
--link-with=libAdapterInMobi.a,libAdapterInMobi.a
Resulting in a nice GoogleAdmobAds.dll assembly, when looking in the object
browser, the .a files for every ad network is added.
Then i start to compile the app and get this:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_JTAdWidget", referenced from:
objc-class-ref in libAdapterSDKJumptap.a(GADMAdapterJumptap.o)
"_OBJC_CLASS_$_MobFoxVideoInterstitialViewController", referenced from:
objc-class-ref in libAdapterSDKMobFox.a(GADMAdapterMobFox.o)
"_OBJC_CLASS_$_MobFoxBannerView", referenced from:
objc-class-ref in libAdapterSDKMobFox.a(GADMAdapterMobFox.o)
"_OBJC_CLASS_$_IMAdRequest", referenced from:
objc-class-ref in libAdapterInMobi.a(GADMAdapterInMobi.o)
"_OBJC_CLASS_$_IMAdInterstitial", referenced from:
objc-class-ref in libAdapterInMobi.a(GADMAdapterInMobi.o)
"_OBJC_CLASS_$_IMAdView", referenced from:
objc-class-ref in libAdapterInMobi.a(GADMAdapterInMobi.o)
Normally when getting undefined symbols in a binding they relate to
frameworks missing. But this is different, am i doing something wrong with
the binding?
Link to documentation implementing Mediation:
https://developers.google.com/mobile-ads-sdk/docs/ios/mediation/
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Binding-Admob-Mediation-adapters-tp4655091.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch