AdMob ADS in App List

//App OnCreate

//This code use AD position

ads_num = 9;

adview1.setVisibility(View.GONE);


//OnBind

//Code use to top position

final com.google.android.gms.ads.AdView adview1 = (com.google.android.gms.ads.AdView)

_v.findViewById(R.id.adview1);


//This position Add your list all view items text, image and more


//Ads position

if (((_position % ads_num) == 0) && (_position > 1)) {

adview1.setVisibility(View.VISIBLE);

adview1.loadAd(new AdRequest.Builder().addTestDevice("Test Device ID")

.build());

}

else {

adview1.setVisibility(View.GONE);

}


//Button OnClick

adview1.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View _view) {

}
});


Video Help


Post a Comment

Previous Post Next Post