Open GoogleCodeExporter opened 9 years ago
Madvertise would be a great addition to adwhirl especially for european
developers.
Original comment by Souljah2k
on 21 Oct 2011 at 5:49
Hi,
I'd like to support the integration of madvertise into Adwhirl.
Thanks!
Original comment by richard....@gmail.com
on 25 Oct 2011 at 8:07
support for Adwhirl would be nice.
Cheers!
Original comment by janner1...@gmail.com
on 26 Oct 2011 at 9:32
I would also like to see madvertise in AdWhirl!
Original comment by KarinaHi...@googlemail.com
on 25 Nov 2011 at 7:35
Yes, please add madvertise! A good amount of my traffic is from Europe and they
are the best network there! Thanks!
Original comment by scheller...@yahoo.de
on 25 Nov 2011 at 8:19
Please!
Original comment by el.lu...@gmail.com
on 11 Jan 2012 at 1:17
[deleted comment]
[deleted comment]
Hello, I also vote AdWhirl integration, but at the moment I integrated it on
Android using a custom event "MAdvertise" on the AdWhirl web console calling
the function "adWhirlMAdvertise":
Class MyAdManager to initialize the ad calling initialize:
import com.adwhirl.AdWhirlLayout;
import com.adwhirl.AdWhirlLayout.AdWhirlInterface;
import com.adwhirl.AdWhirlManager;
public class MyAdManager implements AdWhirlInterface {
Context ctx;
AdWhirlLayout adWhirlLayout;
public static void initialize(Activity ctx, int adId) {
AdWhirlLayout adWhirlLayout = (AdWhirlLayout) ctx.findViewById(adId);
MyAdManager myAdManager = new MyAdManager();
myAdManager.setCtx(ctx);
myAdManager.setAdWhirlLayout(adWhirlLayout);
adWhirlLayout.setAdWhirlInterface(myAdManager);
}
public Context getCtx() {
return ctx;
}
public void setCtx(Context ctx) {
this.ctx = ctx;
}
public AdWhirlLayout getAdWhirlLayout() {
return adWhirlLayout;
}
public void setAdWhirlLayout(AdWhirlLayout adWhirlLayout) {
this.adWhirlLayout = adWhirlLayout;
}
@Override
public void adWhirlGeneric() {
}
public void adWhirlMAdvertise() {
new MAdvertiseEvent(this);
}
}
And the other class MAdvertiseEvent (I use a separated class to share
MyAdManager between projects, some of them without the MAdvertise SDK):
import android.view.ViewGroup.LayoutParams;
import android.widget.RelativeLayout;
import de.madvertise.android.sdk.MadvertiseView;
import de.madvertise.android.sdk.MadvertiseView.MadvertiseViewCallbackListener;
public class MAdvertiseEvent implements MadvertiseViewCallbackListener {
MyAdManager adManager;
public MAdvertiseEvent(MyAdManager adManager) {
this.adManager = adManager;
MadvertiseView madvertiseView = new MadvertiseView(adManager.getCtx());
madvertiseView.setMadvertiseViewCallbackListener(this);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT);
adManager.getAdWhirlLayout().addView(madvertiseView, layoutParams);
}
@Override
public void onLoaded(boolean succeed, MadvertiseView madView) {
if (succeed) {
adManager.getAdWhirlLayout().adWhirlManager.resetRollover();
adManager.getAdWhirlLayout().rotateThreadedDelayed();
} else {
adManager.getAdWhirlLayout().rollover();
}
}
@Override
public void onError(Exception exception) {
adManager.getAdWhirlLayout().rollover();
}
@Override
public void onIllegalHttpStatusCode(int statusCode, String message) {
adManager.getAdWhirlLayout().rollover();
}
}
Original comment by alberto.ruibal@gmail.com
on 21 Jan 2012 at 8:39
Can anyone provide full instructions on how to integrate madvertise sdk using
the adwhirl sdk etc. ?
Original comment by philiptr...@gmail.com
on 1 Mar 2013 at 1:23
Original issue reported on code.google.com by
johannes...@gmail.com
on 21 Oct 2011 at 3:36