Closed oliverbytes closed 3 years ago
Getting a simliar error using banner ads. LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No ad config.)
Using Flutter stable 2.0.1
and google_mobile_ads: 0.11.0+2
@nemoryoliver @cranst0n Did you manage this issue?
@houdayec In my case the problem was the test ad unit code. I tried with the production one and everything works fine.
My app is relatively new and has had it's ad serving limited so that may be the real culprit in my case. Will likely have to wait a few week until the limit is lifted by Google.
Issue is not present anymore with the latest SDK.
HI this issue is still there, happens when using google_mobile_ads and local_auth package together
Error comes when FlutterFragmentActivity
is used for local_auth
java.nio.BufferUnderflowException
HI this issue is still there, happens when using google_mobile_ads and local_auth package together Error comes when
FlutterFragmentActivity
is used for local_authjava.nio.BufferUnderflowException
Agree, google_mobile_ads is not working when using FlutterFragmentActivity in MainActivity. Anyone was able to make it work?
Bug report
I was only able to successfully load a native ad once and I've tried countless times and I'm just getting the error.
"LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No ad config.)"
or"LoadAdError(code: 1, domain: com.google.android.gms.ads, message: Error building request URL.)"
I've ensured I'm using the correct Test Device ID set in the AdReques() object and using the correct Test Ad Unit ID.
Flutter doctor
Click To Expand
``` ✓] Flutter (Channel stable, 2.0.1, on macOS 11.1 20C69 darwin-x64, locale en-PH) • Flutter version 2.0.1 at /Users/nemoryoliver/fvm/versions/stable • Framework revision c5a4b4029c (14 hours ago), 2021-03-04 09:47:48 -0800 • Engine revision 40441def69 • Dart version 2.12.0 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1) • Android SDK at /Users/nemoryoliver/Library/Android/sdk • Platform android-30, build-tools 30.0.1 • ANDROID_HOME = /Users/nemoryoliver/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • CocoaPods version 1.10.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.53.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.20.0 [✓] Connected device (3 available) • IN2010 (mobile) • 022666eb • android-arm64 • Android 11 (API 30) • macOS (desktop) • macos • darwin-x64 • macOS 11.1 20C69 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.72 beta • No issues found! ```Flutter dependencies
Click To Expand
``` Dart SDK 2.12.0 Flutter SDK 2.0.1 app 2.2.0+76 dependencies: - app_settings 4.0.4 [flutter] - appodeal_flutter 0.5.1 [flutter] - background_fetch 0.7.1 [flutter] - badges 1.1.6 [flutter] - bubble_tab_indicator 0.1.4 [flutter] - cached_network_image 2.5.0 [flutter flutter_cache_manager octo_image] - chewie 0.12.2 [cupertino_icons flutter video_player wakelock] - cloud_firestore 0.16.0+1 [flutter meta quiver firebase_core firebase_core_platform_interface cloud_firestore_platform_interface cloud_firestore_web] - connectivity 2.0.2 [flutter meta connectivity_platform_interface connectivity_macos connectivity_for_web] - crypto 2.1.5 [collection convert typed_data] - device_info 1.0.0 [flutter device_info_platform_interface] - dio 3.0.10 [http_parser path] - dio_cookie_manager 1.0.0 [cookie_jar dio] - either_option 1.0.6 [test] - encrypt 4.1.0 [args asn1lib clock collection crypto pointycastle] - ext_storage 1.0.3 [flutter] - file_picker 2.1.6 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface] - firebase_analytics 7.0.1 [meta flutter firebase_core firebase_analytics_web firebase_analytics_platform_interface] - firebase_auth 0.20.1 [meta firebase_core firebase_core_platform_interface firebase_auth_platform_interface firebase_auth_web flutter] - firebase_core 0.7.0 [firebase_core_platform_interface flutter quiver meta firebase_core_web] - firebase_crashlytics 0.4.0+1 [flutter stack_trace firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface] - firebase_database 6.0.0 [flutter firebase_core] - firebase_in_app_messaging 0.3.0+1 [meta flutter firebase_core] - firebase_messaging 8.0.0-dev.15 [meta flutter firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web] - firebase_performance 0.5.0+1 [flutter firebase_core] - firebase_remote_config 0.6.0 [flutter firebase_core] - flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine] - flutter_cache_manager 2.1.1 [flutter path_provider uuid http path sqflite pedantic clock file rxdart image] - flutter_email_sender 4.0.0 [flutter] - flutter_facebook_login 3.0.0 [flutter collection] - flutter_icons 1.1.0 [flutter] - flutter_inappwebview 4.0.0+4 [flutter uuid mime] - flutter_linkify 4.1.0 [flutter linkify] - flutter_local_notifications 4.0.1+1 [flutter flutter_local_notifications_platform_interface platform timezone] - flutter_loggy 1.0.2 [flutter loggy rxdart] - flutter_native_admob 2.1.0+3 [flutter] - flutter_rating_bar 3.2.0+1 [flutter] - flutter_screen_lock 1.2.9 [flutter] - flutter_spinkit 4.1.2+1 [flutter] - flutter_twitter_login 1.1.0 [flutter] - flutter_user_agent 1.2.2 [flutter] - geocoding 1.0.5 [flutter geocoding_platform_interface url_launcher] - get 3.25.6 [flutter] - get_storage 1.4.0 [flutter path_provider get] - google_fonts 1.1.2 [flutter http path_provider crypto] - google_mobile_ads 0.11.0+1 [meta flutter] - google_sign_in 4.5.9 [google_sign_in_platform_interface flutter meta google_sign_in_web] - hive 1.4.4+1 [meta crypto] - hive_flutter 0.3.1 [flutter hive path_provider path] - http_parser 3.1.4 [charcode collection source_span string_scanner typed_data] - image_gallery_saver 1.6.8 [flutter] - in_app_review 1.0.4 [flutter in_app_review_platform_interface] - in_app_update 1.1.15 [flutter] - intl 0.16.1 [path] - local_auth 0.6.3+4 [flutter meta intl platform flutter_plugin_android_lifecycle] - location 3.2.4 [flutter location_platform_interface location_web meta] - loggy 1.0.3 [stack_trace] - mediation_test 0.0.2 [flutter] - mopub_flutter 1.2.2+1 [flutter] - native_admob_flutter 0.9.4 [flutter] - package_info 0.4.3+4 [flutter] - path 1.7.0 - path_provider 1.6.27 [flutter path_provider_platform_interface path_provider_macos path_provider_linux path_provider_windows] - path_provider_ex 1.0.1 [flutter] - permission_handler 5.1.0+2 [flutter meta permission_handler_platform_interface] - photo_view 0.10.3 [flutter] - pull_to_refresh 1.6.4 [flutter] - purchases_flutter 2.0.3 [flutter] - random_string 2.1.0 - share 0.6.5+4 [meta mime flutter] - shimmer 1.1.2 [flutter] - simple_animations 2.5.1 [flutter supercharged sa_v1_migration pedantic] - step_progress_indicator 0.2.5+8 [flutter] - supercharged 1.12.0 [supercharged_dart flutter] - timeago 2.0.30 - transparent_image 1.0.0 - tuple 1.0.3 [quiver] - uni_links 0.4.0 [flutter] - unity_ads_plugin 0.1.2 [flutter] - url_launcher 5.7.10 [flutter url_launcher_platform_interface url_launcher_web url_launcher_linux url_launcher_macos url_launcher_windows] - uuid 2.2.2 [crypto convert] - validators 2.0.1 [vin_decoder] - wakelock 0.2.1+1 [flutter meta wakelock_platform_interface wakelock_web] - webview_cookie_manager 1.0.8 [flutter] - webview_flutter 1.0.7 [flutter] - youtube_player_flutter 7.0.0+7 [flutter flutter_inappwebview] dev dependencies: - build_runner 1.11.1 [args async build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style glob graphs http_multi_server io js logging meta mime path pedantic pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml] - flutter_launcher_icons 0.8.1 [image args yaml path] - flutter_native_splash 0.3.0 [yaml image xml] - hive_generator 0.8.2 [build source_gen hive analyzer dartx] transitive dependencies: - _fe_analyzer_shared 12.0.0 [meta] - analyzer 0.40.5 [_fe_analyzer_shared args cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - archive 2.0.13 [crypto args path] - args 1.6.0 - asn1lib 0.8.1 - async 2.4.2 [collection] - basic_utils 2.7.0-rc.1 [http logging json_annotation pointycastle convert crypto] - boolean_selector 2.0.0 [source_span string_scanner] - build 1.5.0 [analyzer async convert crypto logging meta path glob] - build_config 0.4.2 [checked_yaml json_annotation meta path pubspec_parse yaml] - build_daemon 2.1.4 [built_collection built_value http_multi_server logging pedantic path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 1.4.2 [analyzer build crypto graphs logging meta path package_config pool pub_semver] - build_runner_core 6.0.3 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pedantic pool timing watcher yaml] - built_collection 4.3.2 [collection quiver] - built_value 7.1.0 [built_collection collection fixnum quiver] - characters 1.1.0 - charcode 1.1.3 - checked_yaml 1.0.2 [json_annotation source_span yaml] - cli_util 0.2.0 [path] - clock 1.0.1 [meta] - cloud_firestore_platform_interface 3.0.2 [flutter meta collection firebase_core plugin_platform_interface] - cloud_firestore_web 0.3.0+2 [flutter flutter_web_plugins http_parser meta firebase_core firebase_core_web cloud_firestore_platform_interface js] - code_builder 3.5.0 [built_collection built_value collection matcher meta] - collection 1.15.0 - connectivity_for_web 0.3.1+2 [connectivity_platform_interface flutter_web_plugins flutter] - connectivity_macos 0.1.0+5 [flutter] - connectivity_platform_interface 1.0.6 [flutter meta plugin_platform_interface] - convert 2.1.1 [charcode typed_data] - cookie_jar 1.0.1 - coverage 0.14.1 [args logging package_config path source_maps stack_trace vm_service] - csslib 0.16.2 [source_span] - cupertino_icons 1.0.0 - dart_style 1.3.8 [analyzer args path source_span] - dartx 0.5.0 [collection path crypto characters time meta] - device_info_platform_interface 1.0.1 [flutter meta plugin_platform_interface] - ffi 0.1.3 - file 5.2.1 [intl meta path] - firebase 7.3.2 [http http_parser js] - firebase_analytics_platform_interface 1.0.3 [flutter meta] - firebase_analytics_web 0.1.1 [flutter flutter_web_plugins firebase firebase_analytics_platform_interface meta] - firebase_auth_platform_interface 3.1.0 [flutter meta firebase_core plugin_platform_interface] - firebase_auth_web 0.3.3 [flutter flutter_web_plugins meta http_parser intl firebase_core firebase_core_web firebase_auth_platform_interface js] - firebase_core_platform_interface 3.0.1 [flutter meta plugin_platform_interface quiver] - firebase_core_web 0.2.1+3 [firebase_core_platform_interface flutter flutter_web_plugins meta js] - firebase_crashlytics_platform_interface 1.1.6 [flutter meta collection firebase_core plugin_platform_interface] - firebase_messaging_platform_interface 1.0.0-dev.10 [flutter meta firebase_core plugin_platform_interface] - firebase_messaging_web 0.1.0-dev.6 [flutter flutter_web_plugins meta firebase_core firebase_core_web firebase_messaging_platform_interface js service_worker] - fixnum 0.10.11 - flutter_blurhash 0.5.0 [flutter meta] - flutter_local_notifications_platform_interface 2.0.0+1 [flutter plugin_platform_interface] - flutter_plugin_android_lifecycle 1.0.11 [flutter] - flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math] - geocoding_platform_interface 1.0.1+1 [flutter meta plugin_platform_interface] - glob 1.2.0 [async collection node_io path pedantic string_scanner] - google_sign_in_platform_interface 1.1.2 [flutter meta quiver] - google_sign_in_web 0.9.2 [google_sign_in_platform_interface flutter flutter_web_plugins meta js] - graphs 0.2.0 - html 0.14.0+4 [csslib source_span] - http 0.12.2 [http_parser path pedantic] - http_multi_server 2.2.0 [async] - image 2.1.19 [archive xml meta] - import_js_library 1.0.2 [flutter html flutter_web_plugins js] - in_app_review_platform_interface 1.0.5 [flutter url_launcher plugin_platform_interface platform] - io 0.3.4 [charcode meta path string_scanner] - js 0.6.3 - json_annotation 3.1.0 - linkify 3.0.0 - location_platform_interface 1.1.0 [flutter meta plugin_platform_interface] - location_web 1.0.1 [flutter flutter_web_plugins http_parser js location_platform_interface meta] - logging 0.11.4 - matcher 0.12.9 [stack_trace] - meta 1.3.0 - mime 0.9.7 - node_interop 1.1.1 [js] - node_io 1.1.1 [node_interop path] - node_preamble 1.4.12 - octo_image 0.3.0 [flutter flutter_blurhash] - package_config 1.9.3 [path charcode] - path_provider_linux 0.0.1+2 [path xdg_directories path_provider_platform_interface flutter] - path_provider_macos 0.0.4+4 [flutter] - path_provider_platform_interface 1.0.3 [flutter meta platform plugin_platform_interface] - path_provider_windows 0.0.4+1 [path_provider_platform_interface meta path flutter ffi win32] - pedantic 1.9.2 [meta] - permission_handler_platform_interface 2.0.2 [flutter meta plugin_platform_interface] - petitparser 3.1.0 [meta] - platform 2.2.1 - plugin_platform_interface 1.0.3 [meta] - pointycastle 2.0.0 - pool 1.4.0 [async stack_trace] - process 3.0.13 [file intl meta path platform] - pub_semver 1.4.4 [collection] - pubspec_parse 0.1.5 [checked_yaml json_annotation pub_semver yaml] - quiver 2.1.4+1 [matcher meta] - rxdart 0.24.1 - sa_v1_migration 1.1.2 [flutter] - service_worker 0.2.4 [js] - shelf 0.7.9 [async collection http_parser path stack_trace stream_channel] - shelf_packages_handler 2.0.0 [path shelf shelf_static] - shelf_static 0.2.8 [convert http_parser mime path shelf] - shelf_web_socket 0.2.3 [shelf web_socket_channel stream_channel] - sky_engine 0.0.99 - source_gen 0.9.8 [analyzer async build dart_style glob meta path pedantic source_span] - source_map_stack_trace 2.0.0 [path stack_trace source_maps] - source_maps 0.10.9 [source_span] - source_span 1.7.0 [charcode collection meta path term_glyph] - sqflite 1.3.2+2 [flutter sqflite_common path] - sqflite_common 1.0.3 [synchronized path meta] - stack_trace 1.9.5 [path] - stream_channel 2.0.0 [async] - stream_transform 1.2.0 - string_scanner 1.0.5 [charcode meta source_span] - supercharged_dart 1.4.0 - synchronized 2.2.0+2 - term_glyph 1.1.0 - test 1.15.4 [analyzer async boolean_selector coverage http http_multi_server io js node_preamble package_config path pedantic pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel typed_data web_socket_channel webkit_inspection_protocol yaml test_api test_core] - test_api 0.2.18 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher] - test_core 0.3.11+1 [analyzer async args boolean_selector collection coverage glob io meta package_config path pedantic pool source_map_stack_trace source_maps source_span stack_trace stream_channel vm_service yaml matcher test_api] - time 1.3.0 - timezone 0.6.1 [path] - timing 0.1.1+2 [json_annotation] - typed_data 1.3.0 [collection] - url_launcher_linux 0.0.1+3 [flutter] - url_launcher_macos 0.0.1+8 [flutter] - url_launcher_platform_interface 1.0.9 [flutter meta plugin_platform_interface] - url_launcher_web 0.1.5 [url_launcher_platform_interface flutter flutter_web_plugins meta] - url_launcher_windows 0.0.1+1 [flutter] - vector_math 2.1.0 - video_player 1.0.0 [meta video_player_platform_interface video_player_web flutter] - video_player_platform_interface 2.2.0 [flutter meta] - video_player_web 0.1.4 [flutter flutter_web_plugins meta video_player_platform_interface] - vin_decoder 0.1.2 [meta basic_utils http random_string] - vm_service 4.2.0 [meta] - wakelock_platform_interface 0.1.0+1 [flutter meta] - wakelock_web 0.1.0+3 [flutter flutter_web_plugins import_js_library js wakelock_platform_interface] - watcher 0.9.7+15 [async path pedantic] - web_socket_channel 1.1.0 [async crypto stream_channel] - webkit_inspection_protocol 0.7.3 [logging] - win32 1.7.3 [ffi] - xdg_directories 0.1.2 [meta path process] - xml 4.5.1 [collection convert meta petitparser] - yaml 2.2.1 [charcode collection string_scanner source_span] ```Code
Followed from: Code Labs
MainActivity.kt
ListTileNativeAdFactory.kt