No compile after import Admob in Cocos Creator 2.3.1

Hello,
i am still very new with cocos creator and sdkbox. i have read the instructions (http://docs.sdkbox.com/en/qa/cocos_creator/), but unfortunately, i can’t compile my project anymore after the integration of admob. before everything was fine.

i have already read many threads, but most of them are either not up to date or do not help me

Thanks

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':testss:processReleaseResources'.
> Android resource linking failed
  Output:  C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml:205: error: resource android:attr/fontVariationSettings not found.
  C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml:206: error: resource android:attr/ttcIndex not found.
  error: failed linking references.
  
  Command: C:\Users\User1\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\72eae146b6eabc7f684a3cce2332e71f\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
          C:\Users\User1\AppData\Local\Android\Sdk\platforms\android-27\android.jar\
          --manifest\
          C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml\
          -o\
          C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\processed_res\release\processReleaseResources\out\resources-release.ap_\
          -R\
          @C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\incremental\processReleaseResources\resources-list-for-resources-release.ap_.txt\
          --auto-add-overlay\
          --java\
          C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\generated\not_namespaced_r_class_sources\release\processReleaseResources\r\
          --proguard\
          C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\proguard-rules\release\aapt_rules.txt\
          --custom-package\
          com.fireball.testss\
          -0\
          apk\
          --output-text-symbols\
          C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\symbols\release\R.txt\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
  Output:  C:\Users\User1\.gradle\caches\transforms-1\files-1.1\core-1.0.0.aar\ef05cfd35e1739ec7b1211f8f6f7b940\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
      
  C:\Users\User1\.gradle\caches\transforms-1\files-1.1\core-1.0.0.aar\ef05cfd35e1739ec7b1211f8f6f7b940\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
      
  error: failed linking references.
  Command: C:\Users\User1\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\72eae146b6eabc7f684a3cce2332e71f\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
          C:\Users\User1\AppData\Local\Android\Sdk\platforms\android-27\android.jar\
          --manifest\
          C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml\
          -o\
          C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\processed_res\release\processReleaseResources\out\resources-release.ap_\
          -R\
          @C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\incremental\processReleaseResources\resources-list-for-resources-release.ap_.txt\
          --auto-add-overlay\
          --java\
          C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\generated\not_namespaced_r_class_sources\release\processReleaseResources\r\
          --proguard\
          C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\proguard-rules\release\aapt_rules.txt\
          --custom-package\
          com.fireball.testss\
          -0\
          apk\
          --output-text-symbols\
          C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\symbols\release\R.txt\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.0-4818971-windows Daemon #0

47 actionable tasks: 5 executed, 42 up-to-date
AAPT2 aapt2-3.2.0-4818971-windows Daemon #0: shutdown
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4s
Error running command, return code: 1.

does admob workds with cocos creator 2.2.x?

to be honest, i really dont know. i updated cocos creator before i used sdkbox.
An old version could help?

my native.log looks like this:
native.zip (10.3 KB)

with fixed of settings.gradle

$ git diff frameworks/runtime-src/proj.android-studio/settings.gradle
diff --git a/frameworks/runtime-src/proj.android-studio/settings.gradle b/frameworks/runtime-src/proj.android-studio/settings.gradle
index 6ca9d81..b87fca6 100755
--- a/frameworks/runtime-src/proj.android-studio/settings.gradle
+++ b/frameworks/runtime-src/proj.android-studio/settings.gradle
@@ -1,4 +1,4 @@
-include ':libcocos2dx',':game', ':instantapp'
+include ':libcocos2dx'
 project(':libcocos2dx').projectDir = new File('/Users/admin/Applications/ccc231/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/libcocos2dx')
 include ':hello_world'
 project(':hello_world').projectDir = new File(settingsDir, 'app')

values.xml:205: error: resource android:attr/fontVariationSettings not found.

plz check build/jsb-link/frameworks/runtime-src/proj.android-studio/gradle.properties

# Android SDK version that will be used as the compile project
PROP_COMPILE_SDK_VERSION=28

# Android SDK version that will be used as the earliest version of android this application can run on
PROP_MIN_SDK_VERSION=16

# Android SDK version that will be used as the latest version of android this application has been tested on
PROP_TARGET_SDK_VERSION=28

# Android Build Tools version that will be used as the compile project
PROP_BUILD_TOOLS_VERSION=28.0.3

plugins

$ sdkbox info
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016-2020 SDKBOX Inc. v1.3.1.0
 installed packages:
     v2.6.0.1 sdkboxads
     v2.6.0.1 admob
     v2.6.0.1 googleplayservices

build

Move apk to /Users/admin/repos/ccc231/build/jsb-link/publish/android
Build succeed.

Thanks :D:D
Compiling went through now, if I copy the apk to my mobile phone and execute it there I can click the 2 buttons from the tutorial. But nothing happens. I followed all steps from the manuatutorial. Any ideas why?

plz show the logcat message.

didnt know what i should filter the log (i filtered admob)

2020-03-26 22:14:31.043 1134-1134/? D/AdMob: Interstitial extras=Bundle{ }Bundle
2020-03-26 22:16:00.962 4659-4691/? D/AdMob: device 0: FE20924C46522E2E204587EB339897C6
2020-03-26 22:16:00.962 4659-4691/? D/AdMob: device 1: kGADSimulatorID
2020-03-26 22:16:00.962 4659-4691/? D/AdMob: AdMob appid=ca-app-pub-3419843187741199~4590610143
2020-03-26 22:16:01.027 4659-4691/? D/jswrapper: JS: Success to load scene: db://assets/admobtest.fire
2020-03-26 22:16:01.157 4659-4659/? D/AdMob: Interstitial extras=Bundle{ }Bundle
2020-03-26 22:16:01.205 4659-4659/? D/AdMob: RewardVideo extras=Bundle{ }Bundle
2020-03-26 22:16:01.218 4659-4659/? D/AdMob: RewardVideo extras=Bundle{ }Bundle
2020-03-26 22:16:01.230 4659-4659/? D/AdMob: Banner extras=Bundle{ }Bundle
2020-03-26 22:16:01.244 4659-4659/? D/AdMob: Interstitial extras=Bundle{ }Bundle
2020-03-26 22:16:01.253 4659-4659/? D/AdMob: Banner extras=Bundle{ }Bundle
2020-03-26 22:16:01.386 4659-4659/? D/AdMob: Interstitial onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-26 22:16:01.386 4659-4659/? D/AdMob: AdMo cache name=gameover after 0 seconds.
2020-03-26 22:16:01.414 4659-4659/? D/AdMob: Interstitial onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-26 22:16:01.414 4659-4659/? D/AdMob: AdMo cache name=next_level after 0 seconds.
2020-03-26 22:16:01.574 4659-4659/? D/AdMob: onAdFailedToLoad ERROR_CODE_NO_FILL
2020-03-26 22:16:01.574 4659-4659/? D/AdMob: AdMo cache name=top_banner after 0 seconds.
2020-03-26 22:16:02.989 4659-4659/? D/AdMob: onAdLoaded

no ads from admob.

has a ad.

i tried top fix it but no, results… this are the new logcat:

filter Error:

2020-03-28 09:45:19.859 13009-13044/com.fireball.mygame E/jswrapper: ERROR: Uncaught TypeError: Cannot set property ‘width’ of null, location: src/cocos2d-jsb.js:0:0
STACK:
[0]setCanvasSize@src/cocos2d-jsb.js:34535
[1]jsb.onResize@jsb-adapter/jsb-engine.js:2770
2020-03-28 09:45:19.859 13009-13044/com.fireball.mygame E/jswrapper: [ERROR] (C:/CocosCreator_2.3.1/resources/cocos2d-x/cocos/scripting/js-bindings/jswrapper/v8/Object.cpp, 562): Invoking function (0x79135e1ba0) failed!
2020-03-28 09:46:04.611 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=rewarded msg=ERROR_CODE_INVALID_REQUEST
2020-03-28 09:46:04.662 13009-13009/com.fireball.mygame D/AdMob: Interstitial onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.678 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=rewarded2 msg=ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.678 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=gameover msg=ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.678 13009-13009/com.fireball.mygame D/AdMob: onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.681 13009-13009/com.fireball.mygame D/AdMob: Interstitial onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.704 13009-13009/com.fireball.mygame D/AdMob: onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.709 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=top_banner msg=ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.709 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=next_level msg=ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.724 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=home msg=ERROR_CODE_INTERNAL_ERROR

Filter admob:

2020-03-28 09:46:03.588 13009-13044/com.fireball.mygame D/AdMob: device 0: FE20924C46522E2E204587EB339897C6
2020-03-28 09:46:03.588 13009-13044/com.fireball.mygame D/AdMob: device 1: kGADSimulatorID
2020-03-28 09:46:03.588 13009-13044/com.fireball.mygame D/AdMob: AdMob appid=ca-app-pub-3419843187741199~4590610143
2020-03-28 09:46:04.025 13009-13009/com.fireball.mygame D/AdMob: Interstitial extras=Bundle{ }Bundle
2020-03-28 09:46:04.172 13009-13009/com.fireball.mygame D/AdMob: RewardVideo extras=Bundle{ }Bundle
2020-03-28 09:46:04.236 13009-13009/com.fireball.mygame D/AdMob: RewardVideo extras=Bundle{ }Bundle
2020-03-28 09:46:04.272 13009-13009/com.fireball.mygame D/AdMob: Banner extras=Bundle{ }Bundle
2020-03-28 09:46:04.315 13009-13009/com.fireball.mygame D/AdMob: Interstitial extras=Bundle{ }Bundle
2020-03-28 09:46:04.337 13009-13009/com.fireball.mygame D/AdMob: Banner extras=Bundle{ }Bundle
2020-03-28 09:46:04.585 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=rewarded after 0 seconds.
2020-03-28 09:46:04.651 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=rewarded2 after 0 seconds.
2020-03-28 09:46:04.662 13009-13009/com.fireball.mygame D/AdMob: Interstitial onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.663 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=gameover after 0 seconds.
2020-03-28 09:46:04.678 13009-13009/com.fireball.mygame D/AdMob: onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.679 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=top_banner after 0 seconds.
2020-03-28 09:46:04.681 13009-13009/com.fireball.mygame D/AdMob: Interstitial onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.681 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=next_level after 0 seconds.
2020-03-28 09:46:04.704 13009-13009/com.fireball.mygame D/AdMob: onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.705 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=home after 0 seconds.

Filter ad:

2020-03-28 09:45:40.327 13009-13044/com.fireball.mygame V/Track: ~Track(): 0x79499badc0
2020-03-28 09:46:03.549 13009-13044/com.fireball.mygame D/jswrapper: JS: LoadScene 24vw2Zr71M9KHF3YPVcvyY: 86.71600000000035ms
2020-03-28 09:46:03.588 13009-13044/com.fireball.mygame D/AdMob: device 0: FE20924C46522E2E204587EB339897C6
2020-03-28 09:46:03.588 13009-13044/com.fireball.mygame D/AdMob: device 1: kGADSimulatorID
2020-03-28 09:46:03.588 13009-13044/com.fireball.mygame D/AdMob: AdMob appid=ca-app-pub-3419843187741199~4590610143
2020-03-28 09:46:03.608 13009-13044/com.fireball.mygame I/fireball.Coron: The ClassLoaderContext is a special shared library.
2020-03-28 09:46:03.609 13009-13044/com.fireball.mygame I/chatty: uid=10427(com.fireball.mygame) GLThread 638 identical 1 line
2020-03-28 09:46:03.611 13009-13044/com.fireball.mygame I/fireball.Coron: The ClassLoaderContext is a special shared library.
2020-03-28 09:46:03.665 13009-13044/com.fireball.mygame I/DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:21200
2020-03-28 09:46:03.665 13009-13044/com.fireball.mygame I/DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 21200
2020-03-28 09:46:03.671 13009-13044/com.fireball.mygame D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl
2020-03-28 09:46:03.689 13009-13044/com.fireball.mygame I/Ads: Updating ad debug logging enablement.
2020-03-28 09:46:03.735 13009-13009/com.fireball.mygame I/WebViewFactory: Loading com.android.chrome version 80.0.3987.149 (code 398714932)
2020-03-28 09:46:03.848 13009-13009/com.fireball.mygame I/cr_LibraryLoader: Loaded native library version number “80.0.3987.149”
2020-03-28 09:46:04.007 13009-13160/com.fireball.mygame V/AudioManager: isWiredHeadsetOn…
2020-03-28 09:46:04.025 13009-13009/com.fireball.mygame D/AdMob: Interstitial extras=Bundle{ }Bundle
2020-03-28 09:46:04.045 13009-13009/com.fireball.mygame D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
2020-03-28 09:46:04.053 13009-13009/com.fireball.mygame I/Ads: Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList(“31660FEE9E143DCA2E6D73650C9CEEA1”) to get test ads on this device.
2020-03-28 09:46:04.090 13009-13135/com.fireball.mygame I/fireball.Coron: The ClassLoaderContext is a special shared library.
2020-03-28 09:46:04.103 13009-13009/com.fireball.mygame I/DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:21200
2020-03-28 09:46:04.103 13009-13009/com.fireball.mygame I/DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 21200
2020-03-28 09:46:04.172 13009-13009/com.fireball.mygame D/AdMob: RewardVideo extras=Bundle{ }Bundle
2020-03-28 09:46:04.196 13009-13009/com.fireball.mygame I/DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:21200
2020-03-28 09:46:04.196 13009-13009/com.fireball.mygame I/DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 21200
2020-03-28 09:46:04.196 13009-13009/com.fireball.mygame V/DynamiteModule: Dynamite loader version >= 2, using loadModule2NoCrashUtils
2020-03-28 09:46:04.217 13009-13009/com.fireball.mygame I/Ads: Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList(“31660FEE9E143DCA2E6D73650C9CEEA1”) to get test ads on this device.
2020-03-28 09:46:04.236 13009-13009/com.fireball.mygame D/AdMob: RewardVideo extras=Bundle{ }Bundle
2020-03-28 09:46:04.248 13009-13009/com.fireball.mygame I/DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:21200
2020-03-28 09:46:04.248 13009-13009/com.fireball.mygame I/DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 21200
2020-03-28 09:46:04.248 13009-13009/com.fireball.mygame V/DynamiteModule: Dynamite loader version >= 2, using loadModule2NoCrashUtils
2020-03-28 09:46:04.256 13009-13009/com.fireball.mygame I/Ads: Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList(“31660FEE9E143DCA2E6D73650C9CEEA1”) to get test ads on this device.
2020-03-28 09:46:04.272 13009-13009/com.fireball.mygame D/AdMob: Banner extras=Bundle{ }Bundle
2020-03-28 09:46:04.278 13009-13129/com.fireball.mygame W/fireball.Coron: Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
2020-03-28 09:46:04.281 13009-13009/com.fireball.mygame D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
2020-03-28 09:46:04.286 13009-13009/com.fireball.mygame I/Ads: Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList(“31660FEE9E143DCA2E6D73650C9CEEA1”) to get test ads on this device.
2020-03-28 09:46:04.298 13009-13189/com.fireball.mygame W/Ads: Not retrying to fetch app settings
2020-03-28 09:46:04.302 13009-13191/com.fireball.mygame W/Ads: Not retrying to fetch app settings
2020-03-28 09:46:04.304 13009-13219/com.fireball.mygame W/Ads: Not retrying to fetch app settings
2020-03-28 09:46:04.315 13009-13009/com.fireball.mygame D/AdMob: Interstitial extras=Bundle{ }Bundle
2020-03-28 09:46:04.322 13009-13009/com.fireball.mygame D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
2020-03-28 09:46:04.325 13009-13009/com.fireball.mygame I/Ads: Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList(“31660FEE9E143DCA2E6D73650C9CEEA1”) to get test ads on this device.
2020-03-28 09:46:04.326 13009-13199/com.fireball.mygame W/Ads: Not retrying to fetch app settings
2020-03-28 09:46:04.337 13009-13009/com.fireball.mygame D/AdMob: Banner extras=Bundle{ }Bundle
2020-03-28 09:46:04.344 13009-13009/com.fireball.mygame D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
2020-03-28 09:46:04.349 13009-13009/com.fireball.mygame I/Ads: Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList(“31660FEE9E143DCA2E6D73650C9CEEA1”) to get test ads on this device.
2020-03-28 09:46:04.351 13009-13191/com.fireball.mygame W/Ads: Not retrying to fetch app settings
2020-03-28 09:46:04.365 13009-13133/com.fireball.mygame W/Ads: Update ad debug logging enablement as false
2020-03-28 09:46:04.377 13009-13191/com.fireball.mygame W/Ads: Not retrying to fetch app settings
2020-03-28 09:46:04.585 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=rewarded after 0 seconds.
2020-03-28 09:46:04.585 13009-13009/com.fireball.mygame I/Ads: Ad failed to load : 1
2020-03-28 09:46:04.611 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=rewarded msg=ERROR_CODE_INVALID_REQUEST
2020-03-28 09:46:04.651 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=rewarded2 after 0 seconds.
2020-03-28 09:46:04.651 13009-13009/com.fireball.mygame I/Ads: Ad failed to load : 0
2020-03-28 09:46:04.662 13009-13009/com.fireball.mygame D/AdMob: Interstitial onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.663 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=gameover after 0 seconds.
2020-03-28 09:46:04.663 13009-13009/com.fireball.mygame I/Ads: Ad failed to load : 0
2020-03-28 09:46:04.678 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=rewarded2 msg=ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.678 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=gameover msg=ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.678 13009-13009/com.fireball.mygame D/AdMob: onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.679 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=top_banner after 0 seconds.
2020-03-28 09:46:04.679 13009-13009/com.fireball.mygame I/Ads: Ad failed to load : 0
2020-03-28 09:46:04.681 13009-13009/com.fireball.mygame D/AdMob: Interstitial onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.681 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=next_level after 0 seconds.
2020-03-28 09:46:04.682 13009-13009/com.fireball.mygame I/Ads: Ad failed to load : 0
2020-03-28 09:46:04.704 13009-13009/com.fireball.mygame D/AdMob: onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.705 13009-13009/com.fireball.mygame D/AdMob: AdMo cache name=home after 0 seconds.
2020-03-28 09:46:04.705 13009-13009/com.fireball.mygame I/Ads: Ad failed to load : 0
2020-03-28 09:46:04.709 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=top_banner msg=ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.709 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=next_level msg=ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.724 13009-13044/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=home msg=ERROR_CODE_INTERNAL_ERROR
2020-03-28 09:46:04.855 13009-13044/com.fireball.mygame D/jswrapper: JS: [WARN]: loadScene: Failed to load scene ‘Game’ because ‘Game’ is already being loaded.
2020-03-28 09:46:04.857 13009-13044/com.fireball.mygame D/jswrapper: JS: LoadScene 689z94GeRHs6534Apt5gp7: 2.5689999999958673ms
2020-03-28 09:46:14.795 13009-13044/com.fireball.mygame D/jswrapper: JS: LoadScene 24vw2Zr71M9KHF3YPVcvyY: 29.957000000002154ms
2020-03-28 09:47:05.630 13009-13009/com.fireball.mygame V/ActivityThread: Handle window ActivityRecord{7cf0f3a token=android.os.BinderProxy@828f4f7 {com.fireball.mygame/org.cocos2dx.javascript.AppActivity}} visibility: false

#update: it looks like i cant get any ads…

2020-03-28 18:54:18.845 16766-16766/com.fireball.mygame D/AdMob: Interstitial onAdFailedToLoad ERROR_CODE_INTERNAL_ERROR
2020-03-28 18:54:18.848 16766-16766/com.fireball.mygame D/AdMob: AdMo cache name=gameover after 0 seconds.
2020-03-28 18:54:18.849 16766-16766/com.fireball.mygame I/Ads: Ad failed to load : 0
2020-03-28 18:54:18.872 16766-16800/com.fireball.mygame D/jswrapper: JS: adViewDidFailToReceiveAdWithError name=gameover msg=ERROR_CODE_INTERNAL_ERROR

I think i found the first problem:
In the Admob settings the ad was specific to the location. I turn this off (also add permission for location to my app)
I add payment configuration to admob setting

Now my logcat looks like this
Filter Ads:

2020-03-29 21:38:33.843 28373-28373/com.fireball.mygame I/Ads: This request is sent from a test device.
2020-03-29 21:38:34.056 3184-31193/? I/Ads: SDK version: afma-sdk-a-v20088999.19649000.1
2020-03-29 21:38:34.164 28373-28373/com.fireball.mygame I/Ads: Ad failed to load : 3

Filter:admob

020-03-29 21:42:28.631 28373-28373/com.fireball.Corona D/AdMob: Interstitial extras=Bundle{ }Bundle
2020-03-29 21:42:28.988 28373-28373/com.fireball.Corona D/AdMob: Interstitial onAdFailedToLoad ERROR_CODE_NO_FILL
2020-03-29 21:42:28.990 28373-28373/com.fireball.Corona D/AdMob: AdMo cache name=gameover after 0 seconds.

i already try about one hour, i dont think its a problem because of lack of ads… (i setup test = true)

Android

type	id
Banner	ca-app-pub-3940256099942544/6300978111
Interstitial	ca-app-pub-3940256099942544/1033173712
Interstitial Video	ca-app-pub-3940256099942544/8691691433
Rewarded Video	ca-app-pub-3940256099942544/5224354917
iOS

type	id
Banner	ca-app-pub-3940256099942544/2934735716
Interstitial	ca-app-pub-3940256099942544/4411468910
Interstitial Video	ca-app-pub-3940256099942544/5135589807
Rewarded Video	ca-app-pub-3940256099942544/1712485313

has use tried these ad id ?

https://developers.google.com/admob/ios/test-ads
https://developers.google.com/admob/android/test-ads

Thanks for the support.

The problem was that admob had first check my account till they send me the first ads. Today it work, without changing nothing.

Thanks :smiley:

how many days did you wait? i want to write this info on document.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.