Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

189
Visualizações
Possible reason admob test ads no longer working, but real ads still are

I have an Android app with 1mil+ downloads that uses admob. Everything works correctly, except Admob test ads (demo ad units) are not working anymore. Listing a device as test device still does the trick, and real ads work, but the sample ad unit id's seem to have stopped working. The weird thing is, I havent changed anything in my code, and the same problem occurs in previous project versions. Did admob change something over the last 5 months, explaining the

I/Ads: Ad failed to load : 3

errors I get? Thanks

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

They changed how test ads work with your package name. If you added apps-ads.txt, you can't use test ids any more with that package name. You should work with real ids and don't forget to add your current devices as a test device.

    public static void initTestDevicesForAds() {
        List<String> testDevices = new ArrayList<>();
        testDevices.add(AdRequest.DEVICE_ID_EMULATOR); 
        testDevices.add("YOUR_DEVICE_ID");
        //Add new test devices here.

        RequestConfiguration requestConfiguration
                = new RequestConfiguration.Builder()
                .setTestDeviceIds(testDevices)
                .build();
        MobileAds.setRequestConfiguration(requestConfiguration);
    }

if you still want to use test ids you can check Caution section real issue and solution described there. https://developers.google.com/admob/android/test-ads

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda