K
K
KuratnikDmitry2013-10-24 11:40:43
Android
KuratnikDmitry, 2013-10-24 11:40:43

AirPush. Not showing SmartWall ads?

Sorry for the banal question, but I haven't been able to fix it for two days now, and the airpush-a support can't offer anything new regarding the documentation.
Unable to display SmartWall ads. How to fix?
The code is written exactly according to the documentation, but there is still no advertising, only banner (inAppAd), but I need SmartWall.
There are no problems in the manifest.

public class Test extends Activity implements AdCallbackListener{
  private AirPlay airPlay; //Declare AirPlay here
  
  @Override 
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    
    if(airPlay==null)
      airPlay=new AirPlay(this, null, true);

      airPlay.startSmartWallAd();
  }
  
  
  @Override
  public void onAdCached(AdType adType) {
     airPlay.showCachedAd(this, AdType.appwall); 
  }

  @Override
  public void onAdError(String arg0) {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void onSDKIntegrationError(String arg0) {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void onSmartWallAdClosed() {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void onSmartWallAdShowing() {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void onVideoAdFinished() {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void onVideoAdShowing() {
    // TODO Auto-generated method stub
    
  }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
farodig, 2013-11-20
@farodig

no magic, everything works only on these lines

import com.xxxxxx.xxxxx.Airpush;
public class Test extends Activity {
  @Override 
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Airpush airpush = new Airpush(getApplicationContext());
        airpush.startSmartWallAd();
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question