Big Admob Ads in Android

10.2.12

In Turkey, Admob is the only logical ad network to use for Android. I have done lots of research and choose Admob. But it has a number of problems.

First of all, it only shows little banner ads. Most of the developers use only banner ads. I guess people all around the world are happy with them. But not me!

I was using wider ads for Android tablets. They cannot be used in phones since the screen size is not enough. But later then I realized that there is a rectangular ad size and it can be used in phones as well. The screen size is very important here. If the size is not enough it just shows blank ad and it is very inappropriate for the users.

I decided to place these ads in a dialog. All the other ad networks have interstitial ads. Admob has it also but only the top developers can use it. Ridiculous. So, I create my own interstitial ads. Smile I created a Dialog and an AdView. Then set the view of the Dialog as this AdView. But the ads are not showing. What can be the problem? The problem is: there is not enough space for the ads. Smile So I remove the title and the buttons from the dialog. Users can dismiss the dialog with back button on their phones. Moreover, in activities that I use ActionBar, the dialog doesn’t go over the bar at the top. So its size shrinks. In landscape the height becomes very low. So I decided to show normal ad when the phone is in landscape.

Here is the code to display these big ads:

public AlertDialog dialog;

public void showad()
    {
        Display disp = getActivity().getWindowManager().getDefaultDisplay();
        AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
        AdView adview;
        if(disp.getHeight() > 500 && disp.getWidth() > 250)
            adview = new AdView(getActivity(), AdSize.IAB_MRECT, "your_admob_id");
        else
            adview = new AdView(getActivity(), AdSize.BANNER, "your_admob_id");
            
        builder.setView(adview);
         adview.loadAd(new AdRequest());
        dialog = builder.create();
        dialog.show();
    }

Second thing I wanted to say is Admob often shows nonsense ads. But I realized that the big ads shows better ads. This was the second reason why I tried this.

By the way, this is my first post in English. When I googled “Admob” in Turkish websites, it shows nothing. There is no people in Turkey talking about how to monetize their apps. So I decided to write this post in English.

Koc Universitesi cok ayip..

7.2.12

Android programlarimin bazi yerlerinde Koc Universitesi kisisel web sayfami kullaniyordum. Bunu baska kisiler de yapiyorlar. Ama tahminimden cok daha fazla meshur oldugu icin programlar tabi ki cok fazla trafik olusmaya baslamisti.

Ben zaten sistemi baska yere tasiyordum. Orayi tamamen iptal edecektim. Orasi sadece gecici olarak duruyordu. http://home.ku.edu.tr/~sdane kisisel sayfami kapattilar ve icindeki her seyim silindi. En azindan bir uyari yapabilirlerdi. Direk her seyimin silinmesi biraz koydu acikcasi.

Bunun ustune dunden itibaren email adresim dahil hicbir seye giremiyorum. Koc Uni dahilinde hic bir seye giremiyorum artik. Wireless baglanti da sifreliye gectigine gore artik wireless a da giremiyorum. Yazicilari da kullanamiyorum. Acikcasi cok da umrumda degil ama hic bildirmeden boyle bir yol izlemeleri bana cok sacma geldi.

CIT Service Desk’I aradim adam yeni sifre falan verdi yine olmadi. 3. arayista bir yeri arayin dediler. Aradigimda oradaki adam musait degildi falan. Zaten direk sdane mi dedi kadin. Smile Sonra Tekin Dereli’yle gorusmen lazim dediler. Goruselim bakalim noolcak.