webely / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 1 forks source link

MMedia ads #326

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to integrate Millennial Media ads through Adwhirl but I get the 
following error. The libraries are added to my project and I have no problem in 
producing Millennial Media ads outside of Adwhirl. The error log is attached.

Original issue reported on code.google.com by ehsan.ba...@gmail.com on 13 Aug 2012 at 8:08

Attachments:

GoogleCodeExporter commented 8 years ago
Same issue here. 
Millenial 4.6.0
AdWhirl 3.2.0

Original comment by sniper.d...@gmail.com on 20 Aug 2012 at 7:20

GoogleCodeExporter commented 8 years ago
I could resolve the issue by downgrading to an older version of Millenial. It 
seems like the AdWhirl SDK is not updated for the latest version of  Millenial 
yet.

Original comment by ehsan.ba...@gmail.com on 20 Aug 2012 at 7:23

GoogleCodeExporter commented 8 years ago
Please, advise, where we can get an older version of Millenial - I wasn't able 
to find it on their website. Can you attach it to this issue?

Thanx for help!

Original comment by sniper.d...@gmail.com on 20 Aug 2012 at 7:25

GoogleCodeExporter commented 8 years ago
Here you go! Attached is a version of MMAdView.jar that actually works with
AdWhirl. I think AdWhirl should either update the SDK code or at least put
a reminder for developers. It took me a couple of days to figure it out!

Original comment by ehsan.ba...@gmail.com on 20 Aug 2012 at 7:33

GoogleCodeExporter commented 8 years ago
After including your JAR file in my apk and adding next lines in Manifest.xml:

        <activity android:name="com.millennialmedia.android.MMAdViewOverlayActivity"
                  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
                  android:configChanges="orientation|keyboard|keyboardHidden" />
        <activity android:name="com.millennialmedia.android.VideoPlayer"
                  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
                  android:configChanges="keyboardHidden|orientation|keyboard" />

I do see banner (however, sometimes it is centered and sometimes it is too long 
and is stretched out of the screen). 
But at the same time I get Popup saying activity not found!
And in log:

08-21 08:37:38.290: D/AdWhirl SDK(10078): Valid adapter, calling handle()
08-21 08:37:38.300: I/webclipboard(10078): clipservice: 
android.sec.clipboard.ClipboardExManager@41e56410
08-21 08:37:38.325: D/MillennialMediaAdSDK(10078): New MMAdView Started
08-21 08:37:38.330: W/System.err(10078): 
android.content.pm.PackageManager$NameNotFoundException: 
ComponentInfo{com.mycompany.s3eadwhirl/com.millennialmedia.android.VideoPlayer}
08-21 08:37:38.330: W/System.err(10078):    at 
android.app.ApplicationPackageManager.getActivityInfo(ApplicationPackageManager.
java:235)
08-21 08:37:38.330: W/System.err(10078):    at 
com.millennialmedia.android.MMAdView.init(MMAdView.java:214)
08-21 08:37:38.330: W/System.err(10078):    at 
com.millennialmedia.android.MMAdView.<init>(MMAdView.java:148)
08-21 08:37:38.330: W/System.err(10078):    at 
com.adwhirl.adapters.MillennialAdapter.handle(MillennialAdapter.java:77)
08-21 08:37:38.330: W/System.err(10078):    at 
com.adwhirl.adapters.AdWhirlAdapter.handle(AdWhirlAdapter.java:168)
08-21 08:37:38.330: W/System.err(10078):    at 
com.adwhirl.AdWhirlLayout.handleAd(AdWhirlLayout.java:231)
08-21 08:37:38.330: W/System.err(10078):    at 
com.adwhirl.AdWhirlLayout.access$300(AdWhirlLayout.java:53)
08-21 08:37:38.330: W/System.err(10078):    at 
com.adwhirl.AdWhirlLayout$HandleAdRunnable.run(AdWhirlLayout.java:399)
08-21 08:37:38.330: W/System.err(10078):    at 
android.os.Handler.handleCallback(Handler.java:605)
08-21 08:37:38.330: W/System.err(10078):    at 
android.os.Handler.dispatchMessage(Handler.java:92)
08-21 08:37:38.330: W/System.err(10078):    at 
android.os.Looper.loop(Looper.java:137)
08-21 08:37:38.335: W/System.err(10078):    at 
android.app.ActivityThread.main(ActivityThread.java:4514)
08-21 08:37:38.335: W/System.err(10078):    at 
java.lang.reflect.Method.invokeNative(Native Method)
08-21 08:37:38.335: W/System.err(10078):    at 
java.lang.reflect.Method.invoke(Method.java:511)
08-21 08:37:38.335: W/System.err(10078):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
08-21 08:37:38.335: W/System.err(10078):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
08-21 08:37:38.335: W/System.err(10078):    at 
dalvik.system.NativeStart.main(Native Method)
08-21 08:37:38.365: V/(10078): NotificationPresenterImpl::setSettingsValue 0 
08-21 08:37:38.365: V/(10078): NotificationPresenterImpl::setSettingsValue 0 
08-21 08:37:38.365: W/System.err(10078): 
android.content.pm.PackageManager$NameNotFoundException: 
ComponentInfo{com.mycompany.s3eadwhirl/com.millennialmedia.android.MMAdViewOverl
ayActivity}
08-21 08:37:38.370: W/System.err(10078):    at 
android.app.ApplicationPackageManager.getActivityInfo(ApplicationPackageManager.
java:235)
08-21 08:37:38.370: W/System.err(10078):    at 
com.millennialmedia.android.MMAdView.init(MMAdView.java:234)
08-21 08:37:38.370: W/System.err(10078):    at 
com.millennialmedia.android.MMAdView.<init>(MMAdView.java:148)
08-21 08:37:38.370: W/System.err(10078):    at 
com.adwhirl.adapters.MillennialAdapter.handle(MillennialAdapter.java:77)
08-21 08:37:38.370: W/System.err(10078):    at 
com.adwhirl.adapters.AdWhirlAdapter.handle(AdWhirlAdapter.java:168)
08-21 08:37:38.370: W/System.err(10078):    at 
com.adwhirl.AdWhirlLayout.handleAd(AdWhirlLayout.java:231)
08-21 08:37:38.370: W/System.err(10078):    at 
com.adwhirl.AdWhirlLayout.access$300(AdWhirlLayout.java:53)
08-21 08:37:38.370: W/System.err(10078):    at 
com.adwhirl.AdWhirlLayout$HandleAdRunnable.run(AdWhirlLayout.java:399)
08-21 08:37:38.370: W/System.err(10078):    at 
android.os.Handler.handleCallback(Handler.java:605)
08-21 08:37:38.370: W/System.err(10078):    at 
android.os.Handler.dispatchMessage(Handler.java:92)
08-21 08:37:38.370: W/System.err(10078):    at 
android.os.Looper.loop(Looper.java:137)
08-21 08:37:38.370: W/System.err(10078):    at 
android.app.ActivityThread.main(ActivityThread.java:4514)
08-21 08:37:38.370: W/System.err(10078):    at 
java.lang.reflect.Method.invokeNative(Native Method)
08-21 08:37:38.370: W/System.err(10078):    at 
java.lang.reflect.Method.invoke(Method.java:511)
08-21 08:37:38.370: W/System.err(10078):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
08-21 08:37:38.370: W/System.err(10078):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
08-21 08:37:38.370: W/System.err(10078):    at 
dalvik.system.NativeStart.main(Native Method)
08-21 08:37:38.385: D/MillennialMediaAdSDK(10078): Automatic ad fetching is off 
with -1. You must manually call for ads.
08-21 08:37:38.385: D/MillennialMediaAdSDK(10078): Calling for an 
advertisement: 
http://androidsdk.ads.mp.mydas.mobi/getAd.php5?sdkapid=94501&auid=35316605619942
7&ua=Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; GT-I9300 Build/IMM76D) 
AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile 
Safari/534.30GT-I9300&mmisdk=3.6.3-10.10.26.a&mode=live&adtype=MMBannerAdTop

Do you have any idea what can cause this problem?
Thanx in advance!

Original comment by sniper.d...@gmail.com on 21 Aug 2012 at 11:38

GoogleCodeExporter commented 8 years ago
Add this activity to your manifest:

        <activity android:name="com.millennialmedia.android.MMActivity"
            android:configChanges="keyboardHidden|orientation|keyboard"
 android:theme="@android:style/Theme.Translucent.NoTitleBar"/>

You need to set the width and height as Wrap_Content. The MMedia ads will not 
be as large as the standard ads (e.g. admob ads). I am not sure if that's a 
problem with all devices or only the ones that have a higher resolution. You 
can take an extra step and set the width and height problematically, but that 
may mess up the ad image quality on some devices.

Original comment by ehsan.ba...@gmail.com on 21 Aug 2012 at 1:58

GoogleCodeExporter commented 8 years ago
Added it, but it shows same errors in log and popups saying "Whoops! Looks like 
you forgot to declare the Mullenial Media MMAdViewOverlayActivity in your 
manifect file" and same for "Video Player"

I tried with having all 3 declarations, only MMActivity, only 2 w/o MMActivity 
and with same result. Banner shows, but errors too.

Original comment by sniper.d...@gmail.com on 21 Aug 2012 at 3:06

GoogleCodeExporter commented 8 years ago
Can you post your manifest here?!

Original comment by ehsan.ba...@gmail.com on 21 Aug 2012 at 3:14

GoogleCodeExporter commented 8 years ago
Thanx! It was Manifest indeed. I use Marmalade SDK and I was changing xml 
template, while resulting xml in package was different.

Now it works without errors, however, banner is not centered on screen (screen 
width is 720), like in attachment.

Original comment by sniper.d...@gmail.com on 21 Aug 2012 at 3:32

Attachments:

GoogleCodeExporter commented 8 years ago
Great! I never tried to center it horizontally . I am sure you can do that by 
messing with your XML layout and/or your java code. I just thought it's not 
worth the time and energy!

Original comment by ehsan.ba...@gmail.com on 21 Aug 2012 at 3:42

GoogleCodeExporter commented 8 years ago
I would like to add millennial media sdk .. in marmalade sdk .. could you 
please provide steps to integrate .. its very urgent 

Original comment by ajgames...@gmail.com on 15 Oct 2012 at 9:31

GoogleCodeExporter commented 8 years ago
Hi! I haven't try to add providers separately.
I used Marmalade AdWhirl implementation from github, and added some providers 
there(default has only admob/iad/Home ad).

Original comment by sniper.d...@gmail.com on 15 Oct 2012 at 11:46

GoogleCodeExporter commented 8 years ago
Please could somebody provide me with a link to the older version of 
MMAdView.jar before they introduced this issue.
Comment 4 by  ehsan.ba...@gmail.com suggests it's available from somewhere.

Original comment by rdosul...@googlemail.com on 31 Oct 2012 at 9:43

GoogleCodeExporter commented 8 years ago
Here's the one I'm working with.

Original comment by sniper.d...@gmail.com on 31 Oct 2012 at 9:55

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

Attached is the jar that MMedia provided me to solve the issue. I haven't
tried it personally yet, but should work!

Ehsan

Original comment by ehsan.ba...@gmail.com on 31 Oct 2012 at 2:43