Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Ads Interface - Page 9 - Gideros Forum

Ads Interface

1679111216

Comments

  • there will be no caching, but rather option to preload any ad, without showing it, and only then show it when needed :)
  • SinisterSoftSinisterSoft Maintainer
    edited February 2014
    On Android:

    Tried adcolony again, crashes at the registration (init works).

    Tried chartboost again (as no ads visible), looks like every add results in Ad error - with no message.

    Anyone else having problems with these?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • Yes my chartboost on android only shows 3-4 ads a day. Then it never show any ads until the next day. Not sure what causes this. =(
  • Redid the adcolony and it doesn't crash now - but fails on ads. Contacted ar2rawseen and looks like he is aware of the problem. :)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • I'm using Gideros 2014.01 and Ads Interface 1.2 and was able to get iAd to display in the iOS Simulator and on an iPad 4.

    When testing on an iPad 1 and iPod Touch (4th Generation) I just received a black screen and the following error in Xcode:

    "Thread 1: EXC_BAD_ACCESS (code=1, address=0x44)"

    I've tested the Gideros iAd plugin with the iPad 1 and iPod Touch (4th Generation) and it works fine.

    Has anyone successfully had iAd display on older iOS devices using Ads Interface?

    Thanks!
  • SuperappmanSuperappman Member
    edited February 2014
    Thanks @amaximov! I have two iPod Touch 4th generation devices and both had iOS 5.1.1. I updated one iPod Touch to iOS 6 and iAd worked fine.

    Apps on the iPad 1 and iPod Touch with iOS 5.1 still crash when using the Ad Interface iAd plugin.

    Thanks again for the help. That solved the mystery.
  • Hmm, interesting
    don't have an IOS 5 device, will try on simulator
  • Hello,

    I'm trying to implement Ad interface in my Android game. The game uses the Scene Manager class and I want to show the banners at the game scene, so I used the code below inside the init function.

    Questions & problems:
    - The ad it's shown only once (BAD) during the application lifetime and after starting the game scene (GOOD) and not in the menus (GOOD), but if I change to the menu scene during the ad it dosen't hide (BAD).
    - Now the ad is not appearing any more (BAD)
    - Should I use the code below in an other part of the program?
    - Why the ads are appearing only once?

    I would be very grateful if you help me because I've tried lots of things an many ad companys with the same result...

    --
    require "box2d"
    require "ads"

    scene = gideros.class(Sprite)

    function scene:init()
    [...]
    --initialize amazon
    amazon = Ads.new("amazon")
    amazon:setKey("XX")

    --initialize admob
    admob = Ads.new("admob")
    admob:setKey("YY")

    --if amazon fails
    --show admob
    amazon:addEventListener(Event.AD_FAILED, function(e)
    print("amazon AD_FAILED", e.error)
    admob:showAd("auto")
    end)

    --if admob fails
    --show amazon
    admob:addEventListener(Event.AD_FAILED, function(e)
    print("admob AD_FAILED", e.error)
    amazon:showAd("auto")
    end)

    --start displaying amazon ads
    amazon:showAd("auto")
    [...]
    end
    ----
  • ar2rsawseenar2rsawseen Maintainer
    edited March 2014
    @synchrotrongames I'm currently working on a new version of AdsInterface (Android will be released real soon)

    But what I would suggest is to create the instances of ads in the main lua, and then only use global variables to show/hide ads on specific scenes.

    And I don't hide calls anywhere in your code, as in
    amazon:hideAd("auto"), etc
  • ar2rsawseenar2rsawseen Maintainer
    edited March 2014
    Updated AdsInterface for Android:

    version 1.3
    Android Update
    updated all Adndroid frameworks
    Fixed Chartboost method call order
    Added adType to events to know for which ad event was dispatched
    Implemented hiding specific ad using hideAd(adType)
    Added loadAd to preload ads but without showing them (dispatched AD_RECEIVED)
    Added Millenial Ad framework

    http://giderosmobile.com/labs/ads-interface
  • ChangChang Member
    edited March 2014
    @ar2rsawseen Will admob in Ads Interface work with Google Play Services plugin?
  • ar2rsawseenar2rsawseen Maintainer
    Yes it is working now already
    AdsAdmob.java is for goolgle play version
    AdsAdmob_OldJar.java is for old jar vesion and you should rename it to AdsAdmob.java before using ;)
  • SinisterSoftSinisterSoft Maintainer
    edited March 2014
    With heyzap I get a crash:

    heyzap:showAd("v4vc")

    results in:

    heyzap AD_RECEIVED nil
    heyzap AD_RECEIVED nil
    heyzap AD_RECEIVED nil

    Then the advert shows and after the ad you can't click the X, then it crashes.

    (it worked ok before)

    03-02 21:42:14.890: D/STATUSBAR-IconMerger(2697): checkOverflow(960), More:false, Req:false Child:5
    03-02 21:42:14.910: D/dalvikvm(4601): GC_CONCURRENT freed 490K, 79% free 12213K/56792K, paused 1ms+8ms, total 43ms
    03-02 21:42:14.910: D/dalvikvm(4601): WAIT_FOR_CONCURRENT_GC blocked 25ms
    03-02 21:42:14.915: E/AndroidRuntime(4601): FATAL EXCEPTION: main
    03-02 21:42:14.915: E/AndroidRuntime(4601): java.lang.StackOverflowError
    03-02 21:42:14.915: E/AndroidRuntime(4601): at java.util.regex.Splitter.fastSplit(Splitter.java:52)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at java.lang.String.split(String.java:1831)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at java.lang.String.split(String.java:1813)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at java.net.URI.isValidDomainName(URI.java:577)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at java.net.URI.isValidHost(URI.java:545)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at java.net.URI.parseAuthority(URI.java:491)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at java.net.URI.parseURI(URI.java:409)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at java.net.URI.(URI.java:204)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at java.net.URI.create(URI.java:725)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at org.apache.http.client.methods.HttpPost.(HttpPost.java:79)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.http.AsyncHttpClient.post(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.http.AsyncHttpClient.post(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.internal.APIClient.post(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.VideoModel.onComplete(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.HeyzapVideoActivity.onHide(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.IncentivizedAd.dismiss(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap$2.onHide(AdsHeyzap.java:111)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsState.hide(AdsState.java:84)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsState.reset(AdsState.java:62)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsManager.reset(AdsManager.java:77)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsManager.reset(AdsManager.java:71)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap.onComplete(AdsHeyzap.java:253)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.HeyzapVideoActivity.onHide(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.IncentivizedAd.dismiss(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap$2.onHide(AdsHeyzap.java:111)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsState.hide(AdsState.java:84)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsState.reset(AdsState.java:62)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsManager.reset(AdsManager.java:77)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsManager.reset(AdsManager.java:71)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap.onComplete(AdsHeyzap.java:253)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.HeyzapVideoActivity.onHide(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.IncentivizedAd.dismiss(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap$2.onHide(AdsHeyzap.java:111)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsState.hide(AdsState.java:84)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsState.reset(AdsState.java:62)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsManager.reset(AdsManager.java:77)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsManager.reset(AdsManager.java:71)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap.onComplete(AdsHeyzap.java:253)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.HeyzapVideoActivity.onHide(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.IncentivizedAd.dismiss(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap$2.onHide(AdsHeyzap.java:111)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsState.hide(AdsState.java:84)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsState.reset(AdsState.java:62)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsManager.reset(AdsManager.java:77)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsManager.reset(AdsManager.java:71)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap.onComplete(AdsHeyzap.java:253)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.HeyzapVideoActivity.onHide(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.IncentivizedAd.dismiss(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap$2.onHide(AdsHeyzap.java:111)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsState.hide(AdsState.java:84)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsState.reset(AdsState.java:62)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsManager.reset(AdsManager.java:77)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.AdsManager.reset(AdsManager.java:71)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap.onComplete(AdsHeyzap.java:253)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.HeyzapVideoActivity.onHide(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.heyzap.sdk.ads.IncentivizedAd.dismiss(Unknown Source)
    03-02 21:42:14.915: E/AndroidRuntime(4601): at com.giderosmobile.android.plugins.ads.frameworks.AdsHeyzap$2.onHide(Ads
    03-02 21:42:14.945: I/ActivityManager(2358): Notify an ApplicationCrash
    03-02 21:42:14.955: W/DropBoxManagerService(2358): Dropping: data_app_crash (10 > 0 bytes)
    03-02 21:42:15.030: I/dumpstate(7435): begin
    03-02 21:42:15.320: E/android.os.Debug(2358): !@Dumpstate > sdumpstate -k -t -z -d -o /data/log/dumpstate_app_error

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • ar2rsawseenar2rsawseen Maintainer
    Yes, firstly there was an auto fetching enabled, that could potentially cause showing multiple ads
    and heyzap sdk is designed to handle only single active ad.
    And secondly, there was a problem with closing ad multiple times, fixed now and uploaded to the labs

    What I still don't get, why you have nil for e.type?

  • Hmmm sadly I am getting crashing now when Charboost ad attempts to display in my android app 'Unfortunately, [AppName] has stopped - OK' with the latest v1.3 Gideros Ads release.
  • ar2rsawseenar2rsawseen Maintainer
    @MobAmuse did you add chartboost activity to the manifest?
  • @ar2rsawseen ads version on labs still says 1.3, is it really updated? (not downloaded yet).
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • ar2rsawseenar2rsawseen Maintainer
    yes sorry, did not update the version
    but it it uploaded
  • I tested it and heyzap now plays vids great..... on a normal android tablet - but on a kindle it always says no video available. I've registered a new 'kindle' app on heyzap and still the same problem. Is there something in the heyzap lib - like a flag - that says its a kindle app? According to this they support both:

    http://blog.heyzap.com/post/69093049360/heyzap-now-supporting-video-ads-for-android-and-amazon
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • "What I still don't get, why you have nil for e.type?" ???
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • ar2rsawseenar2rsawseen Maintainer
    You printed that you get

    heyzap AD_RECEIVED nil

    I assumed the third param was e.type

    About amazon, I already set the flag:
    if(android.os.Build.MANUFACTURER.equals("Amazon"))
    {
    	HeyzapAds.start(sActivity.get(), HeyzapAds.DISABLE_AUTOMATIC_FETCH|HeyzapAds.AMAZON);
    }
    else
    {
    	HeyzapAds.start(sActivity.get(), HeyzapAds.DISABLE_AUTOMATIC_FETCH);
    }
    I don't own a Kindle device, so all I had was this table:
    https://developer.amazon.com/appsandservices/solutions/devices/kindle-fire/specifications/01-device-and-feature-specifications#Device Specifications

    Which said to return Amazon value

    Can you check in logcat what does your device return from android.os.Build.MANUFACTURER?

    like put this somewhere inside onCreate method
    Log.d("Detecting", android.os.Build.MANUFACTURER);
  • It should be automatic - maybe the flag confuses things?

    https://developers.heyzap.com/docs/android_sdk_amazonads

    Edit:
    I made it so it was just 'HeyzapAds.start(sActivity.get(), HeyzapAds.DISABLE_AUTOMATIC_FETCH);' but still no luck. :(
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • ar2rsawseenar2rsawseen Maintainer
    ah, I see
    maybe they dont have enough fill for amazon?
    can you enable test ads on Heyzap?
  • test mode shows no video (if I've done it right - I put in my IP address) - but 'interstitial' shows an advert that belongs to the amazon store.

    maybe they have something broken re amazon video.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • jdbcjdbc Member
    I am trying to use Vungle videos ads

    Is it normal than I get always "vungle AD_FAILED No video available" in test mode.

    It seems there are no videos.
  • I am using vungle via the ads lib - it works here (Android) no problem.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • jdbcjdbc Member
    edited March 2014
    May be it is a lack of videos today.

    Vungle app state is inactive but in test mode. I have read Vungle documentation, and it seems after it was initialized some period is needed to download ad. I will try later.
  • @ar2rsawseen Thank you very much, I've done what you said and now is working fine.

    Likes: ar2rsawseen

    +1 -1 (+1 / -0 ) Share on Facebook
  • jdbcjdbc Member
    edited March 2014
    Vungle is always returning 'false' for VunglePub.isVideoAvailable() in AdsVungle class and method loadAd

    In the main.lua:
    local android = application:getDeviceInfo() == "Android"
     
    -- Setup Vungle
    if (android) then
    	require "ads"
     
    	vungle = Ads.new("vungle")
    	vungle:setKey("my app id") -- App ID field from app info (not reporting APP id)
     
    	vungle:addEventListener(Event.AD_RECEIVED, function(e)
    										print("vungle AD_RECEIVED")
    									      end)
     
    	vungle:addEventListener(Event.AD_FAILED, function(e)
    									      print("vungle AD_FAILED", e.error)
    									   end)
     
    	vungle:addEventListener(Event.AD_DISMISSED, function(e)
    									            print("vungle AD_DISMISSED")
    										end)
    end
    and later in some scene:
    vungle:showAd("video")
    I do not have yet a Google Play URL defined in Vungle dashboard. Am I missing anything?

Sign In or Register to comment.