I display into my android application AdMob\'s banners. I would like that when the user click on the banner it gone. I have try the code AdView.setOnC
I can help you with AdWhirl adds.
I have seen sources and have done next:
public class AdWhirlLayoutCustom extends AdWhirlLayout {
public AdWhirlLayoutCustom(Activity context, String keyAdWhirl) {
super(context, keyAdWhirl);
}
public AdWhirlLayoutCustom(Context context, AttributeSet attrs) {
super(context, attrs);
}
// We intercept clicks
@Override
public boolean onInterceptTouchEvent(MotionEvent event) {
boolean result = super.onInterceptTouchEvent(event);
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
// Click!
break;
}
return result;
}
}