I Getting Error (Admob) Failed to Load ad:3

  • pococo
    Likes 0

    Problem Description

    Hi again : (

    I trying admob and fix previous problems but i can’t show intersitial. 

    LogCat: http://i.imgur.com/cwhOVhe.png

    LogCat Errors;

    05-30 13:28:29.046: W/Ads(3366): JS: The page at about:blank displayed insecure content from gmsg://mobileads.google.com/loadAdURL?drt_include=1&request_id=7ec3c71a-8f38-4d06-8198-60087e3049a3&request_scenario=online_request&type=admob&url=https%3A%2F%2Fgoogleads.g.doubleclick.net%2Fmads%2Fgma%3Fsession_id%3D7667431589066881949%26seq_num%3D1%26rm%3D2%26fdz%3D-1%26js%3Dafma-sdk-a-v7571000.7571000.0%26hl%3Den%26submodel%3DSamsung%2520Galaxy%2520S2%2520-%25204.1.1%2520-%2520API%252016%2520-%2520480x800%26gnt%3D0%26ma%3D0%26platform%3DGenymotion%26forceHttps%3Dtrue%26u_sd%3D1%26sp%3D0%26cnt%3D1%26muv%3D10%26riv%3D5%26ms%3D-qfLeFeL5AhCygHDK6Jmkb5BVqfS-B9fckV0fguAsheHl8OCaWENPYMAFgrpXLkis-pungDcTspsz3tof4bKALz08bppA1Hrvk3IGChF_2ReFu-vVhSTy47jBsp3INlDcCMAYgYmesOFKQxytCqFOf2Cbh--fz7Cp8eOcFi9OmY759o0ToJJEpVJIh7yya-0qIYSsf7PHwMYXT6k9WgErROuNFWNqaRsiSN4jEByin5f2yPSi-E8wXrWwcwnGkfWS0gMA4J7XKfx6r9z9QrZDCO9F6HugZtEcwQQJ6R7XqtId2qUjJeI78WGgxg4RQMYpryvW0yf-1qs1bf5igCC4A%26format%3D320x50_mb%26coh%3D1%26gl%3DUS%26request_id%3D7ec3c71a-8f38-4d06-8198-60087e3049a3%26am%3D0%26cap%3Dm%26u_w%3D600%26u_h%3D1024%26msid%3Dorg.cocos.CocosProject5%26app_name%3D1.android.org.cocos.CocosProject5%26an%3D1.android.org.cocos.CocosProject5%26net%3Dwi%26u_audio%3D1%26u_so%3Dp%26preqs%3D0%26support_transparent_background%3Dtrue%26pimp%3D0%26currts%3D36686109%26basets%3D36686109%26pclick%3D0%26bisch%3Dfalse%26blev%3D1%26cans%3D5%26canm%3Dfalse%26output%3Dhtml%26region%3Dmobile_app%26u_tz%3D0%26client_sdk%3D1%26ex%3D1%26client%3Dca-app-pub-9674512702439044%26slotname%3D8246780413%26gsb%3Dwi%26caps%3DinlineVideo_interactiveVideo_mraid1_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di%26_efs%3Dfalse%26blockAutoClicks%3D0%26forceGmsDoritos%3D1%26eid%3D46621099%26tcar%3D3%26jsv%3D164%26urll%3D1300&base_uri=https%3A%2F%2Fgoogleads.g.doubleclick.net%2Fmads%2Fgma&use_webview_loadurl=0&enable_auto_click_protection=0&google.afma.Notify_dt=1432992509024.
    
    05-30 13:28:29.046: W/Ads(3366): JS: The page at https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html displayed insecure content from file:///android_asset/webkit/android-weberror.png.
    
    05-30 13:28:29.046: W/Ads(3366):  (null:1)
    
    05-30 13:28:29.426: W/Ads(3366): Failed to load ad: 3
    
    05-30 13:28:38.142: W/Ads(3366): There was a problem getting an ad response. ErrorCode: 0
    
    05-30 13:28:38.146: W/Ads(3366): Failed to load ad: 0
    
    

    My scene codes;

    #include "SonarFrameworks.h"
    #include "HelloWorldScene.h"
    #include "cocostudio/CocoStudio.h"
    #include "ui/CocosGUI.h"
    
    USING_NS_CC;
    using namespace cocostudio::timeline;
    
    Scene* HelloWorld::createScene()
    {
        // 'scene' is an autorelease object
        auto scene = Scene::create();
        
        // 'layer' is an autorelease object
        auto layer = HelloWorld::create();
    
        // add layer as a child to scene
        scene->addChild(layer);
    
        // return the scene
        return scene;
    }
    
    // on "init" you need to initialize your instance
    bool HelloWorld::init()
    {
        //////////////////////////////
        // 1. super init first
        if ( !Layer::init() )
        {
            return false;
        }
        
        auto rootNode = CSLoader::createNode("MainScene.csb");
    
        addChild(rootNode);
        SonarCocosHelper::AdMob::showFullscreenAd();
        return true;
    }
    

     


  • Sonar Systems admin
    Likes 0

    Try doing it on a button press not when the app is instantly opened and see if that works.


    This reply has been verified.
  • pococo
    Likes 0

    Thanks, it’s working fine. What should I do to show ads at the beginning of the game?


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    Call a function with a slight delay like a second.


    This reply has been verified.
  • pococo
    Likes 1

    Ok. Thank you so much : )


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    Your very welcome :D

  • hgokturk
    Likes 0

    What about

    AdMob::showPreLoadedFullscreenAd();
    AdMob::preLoadFullscreenAd();

    They both don’t work. And for my app, Google requires the interstitial to be preloaded and because of that, for 4 days ads in my game are banned. I need urgent help.

  • Sonar Systems admin
    Likes 0

    iOS or android?

  • hgokturk
    Likes 0

    It’s android.

  • hgokturk
    Likes 0

    Any updates on it?

  • Sonar Systems admin
    Likes 0

    We are looking into it

  • hgokturk
    Likes 0

    Still no solution?

Login to reply