Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing vserv in J2ME Application , No ads shown
    primarykey
    data
    text
    <p>I'm trying to use Vserv ad network in my J2ME application(The Banner Ad one) but until now i can't receive any ads,i don't get any exception, i just notice that the vservAdFailed() method is always executed first, and the debug result is :</p> <p><strong>Ad Failed o=vInAppAdEngine.VservAd@e5125d64</strong></p> <p>This is the screen which must have the ad, i put all the code in it. What is missing?!</p> <pre><code> public class Vserv extends Screen implements VservAdListener{ private VservManager vservManager; private VservAd vservAd; public Vserv(byte screenName,AppMidletBuilder app,AppData appData,Operation operation ){ super(screenName,app,appData.getLocalizationUtil(),appData.getImageUtil(),appData,operation); //This is required only once in your application life cycle Hashtable vservConfigTable=new Hashtable(); vservConfigTable.put("appId","My app Id"); vservManager=new VservManager(app,vservConfigTable); } protected void initScreen() { //This is required for requesting new ad vservAd=new VservAd(Vserv.this); vservAd.requestAd(); } protected void screenDefinition() { } public void vservAdReceived(Object obj) { System.out.println("Ad Recieved"); if(((VservAd)obj).getAdType().equals(VservAd.AD_TYPE_IMAGE)) { //Use retrived image ad for rendering Image imageAd=(Image)((VservAd)obj).getAd(); } else if(((VservAd)obj).getAdType().equals(VservAd.AD_TYPE_TEXT)) { //Use retrieved text ad for rendering String textAd=(String)((VservAd)obj).getAd(); } } public void vservAdFailed(Object o) { System.out.println("Ad Failed o="+o); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload