5) Display Logic

To control each interstitial Ads in different locations, you have to use 'Display logic'.

For example, you can show an event image at first interstitial ad, cross promotion ads at main screen of game and incentive interstitial ads at the end of stages.

You can have advantages from Display logic.
  • Targeting users for each location of game.
  • Analyse advertising performance at each locations of game.
Logics you can apply are as follows.
  • Show notice or event images
  • Display a dedicated or random cross promotion.
  • Display a dedicated or random in-house promotion.
  • Random incentive promotion.
  • Random non-incentive promotion.
To use 'Display Logic', assign a name("notice_start" for example) in the second parameter of prepareInterstitialAd() method and configure 'Display Logic' for the name at Tnk site.

[Display Logic coding sample]

Display Logic Sample code

@Override

public void onCreate(Bundle savedInstanceState) {


        // ...                

        

        // Load an interstitial ad for "notice_start"

        TnkSession.prepareInterstitialAd(this, "notice_start", new TnkAdListener() {

                @Override

                public void onClose(int type) {

                }


                @Override

                public void onFailure(int errCode) {

                }


                @Override

                public void onLoad() {

                       TnkSession.showInterstitialAd(MainActivity.this);

                }


                @Override

                public void onShow() {

                }

        });


}



Comments