Skip to main content
Participating Frequently
August 1, 2014
Question

How to display ads with Vungle?

  • August 1, 2014
  • 1 reply
  • 763 views

Hi, I´m working on App and it seems like I have integrated Vungle correctly because I can see it reflected on my dashboard, the problem is when I call for the ads the app crashes or simply doesnt display the ads

This is part of my code where I want it to work

I have imported these

import com.vungle.extensions.*;
import com.vungle.extensions.events.*;
import com.vungle.extensions.Vungle;
import com.vungle.extensions.events.VungleEvent;

public function main()

  {

  menuStart.showStartScreen();

  menuStart.addEventListener("START_PLAYING", startGame);

  menuStart.addEventListener("GO_OPTIONS", openOpt);

  Vungle.create([,"53dc06fd5d261a11060001a3"]);

  introChannel = introS.play();

  function openOpt(e:Event):void

  {

  menuStart.hideStartScreen();

  menuEnd.hideScreen();

  menuOpt.showScreen();

  Vungle.vungle.displayAd();

  popS.play();

  menuOpt.addEventListener("GO_BACK", goBack);

  }

And I have made all modifications to my xml according to Vungle

<application>

    <activity

      android:name="com.vungle.sdk.VungleAdvert"

      android:configChanges="keyboardHidden|orientation|screenSize"

      android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

    />

    <service android:name="com.vungle.sdk.VungleIntentService"/>

  </application>

... and the permissions

Any idea why this might be happening?

Thanks in advance

This topic has been closed for replies.

1 reply

August 4, 2014

Hi,

Looks like the AppID you're using with Vungle.create is not actually a valid AppID. You can find yours on your app's page on our dashboard. It's in red, at the top left. If you have further questions, please contact us at tech-support@vungle.com

Thanks!
Jordyn

Vungle Tech Support Engineer