Highlighted

How to display ads with Vungle?

New Here ,
Aug 01, 2014

Copy link to clipboard

Copied

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

TOPICS
Development

Views

646

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to display ads with Vungle?

New Here ,
Aug 01, 2014

Copy link to clipboard

Copied

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

TOPICS
Development

Views

647

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 01, 2014 0
New Here ,
Aug 04, 2014

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 04, 2014 0