question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rewarded "Dummy" Ad Bug

See original GitHub issue

Bug report

Describe the bug Dummy Rewarded ads do not load when using test ID’s. Instead, it gives out an error as I pasted below. However, when using my actual ad ID it works (hope I don’t get flagged 🙏!).

Steps to reproduce

Steps to reproduce the behavior:

  1. Run the AdMob example as seen on the pub.dev example page
  2. Watch the error populate on the screen

Expected behavior

The ad successfully loads and populates the widget tree


Additional context

None

Flutter doctor

Run flutter doctor and paste the output below:

[✓] Flutter (Channel stable, 2.0.1, on macOS 11.2.2 20D80 darwin-arm, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] VS Code (version 1.54.1) [✓] Connected device (2 available)

• No issues found!

Click To Expand
<Google> Cannot find an ad network adapter with the name(s): com.google.DummyAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target. flutter: RewardedAd failed to load: LoadAdError(code: 8, domain: com.google.admob, message: Cannot find an ad network adapter with the name(s): com.google.DummyAdapter

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
- animated_text_kit 4.0.0 [flutter characters]
- auto_size_text 2.1.0 [flutter]
- confetti 0.5.5 [flutter random_color vector_math]
- countup 0.1.3 [flutter]
- cupertino_icons 1.0.2
- device_info 2.0.0 [flutter device_info_platform_interface]
- encrypt 5.0.0-beta.1 [args asn1lib clock collection crypto pointycastle]
- firebase_analytics 7.1.0 [meta flutter firebase_core firebase_analytics_web firebase_analytics_platform_interface]
- firebase_core 1.0.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- flutter_animated_dialog 1.2.0 [flutter]
- flutter_animator 3.1.0 [flutter vector_math]
- flutter_local_notifications 5.0.0-nullsafety.0 [flutter flutter_local_notifications_platform_interface platform timezone]
- font_awesome_flutter 8.11.0 [flutter]
- google_fonts 1.1.2 [flutter http path_provider crypto]
- google_mobile_ads 0.11.0+2 [meta flutter]
- http 0.12.2 [http_parser path pedantic]
- in_app_review 2.0.1 [flutter in_app_review_platform_interface]
- introduction_screen 1.0.9 [flutter dots_indicator]
- mailto 1.1.0 [meta]
- provider 5.0.0 [collection flutter nested]
- quick_actions 0.5.0 [flutter meta]
- shared_preferences 2.0.3 [meta flutter shared_preferences_platform_interface shared_preferences_linux shared_preferences_macos shared_preferences_web shared_preferences_windows]
- skeleton_text 2.0.2 [flutter]
- splashscreen 1.3.5 [flutter]
- toast 0.1.5 [flutter]
- tuple 1.0.3 [quiver]
- url_launcher 6.0.2 [flutter url_launcher_platform_interface url_launcher_linux url_launcher_macos url_launcher_windows url_launcher_web]
- video_player 1.0.1 [meta video_player_platform_interface video_player_web flutter]

dev dependencies:
- flutter_launcher_icons 0.9.0 [args image path yaml]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]

transitive dependencies:
- archive 3.1.2 [crypto path]
- args 2.0.0
- asn1lib 0.9.0-nullsafety.0
- async 2.5.0 [collection]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.1.0
- charcode 1.2.0
- clock 1.1.0
- collection 1.15.0
- crypto 3.0.0 [collection typed_data]
- device_info_platform_interface 2.0.0 [flutter meta plugin_platform_interface]
- dots_indicator 1.2.0 [flutter]
- fake_async 1.2.0 [clock collection]
- ffi 1.0.0
- file 6.1.0 [meta path]
- firebase 7.3.3 [http http_parser js]
- firebase_analytics_platform_interface 1.1.0 [flutter meta]
- firebase_analytics_web 0.2.0 [flutter flutter_web_plugins firebase firebase_analytics_platform_interface meta]
- firebase_core_platform_interface 4.0.0 [flutter meta plugin_platform_interface]
- firebase_core_web 1.0.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- flutter_local_notifications_platform_interface 3.0.0-nullsafety.2 [flutter plugin_platform_interface]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- http_parser 3.1.4 [charcode collection source_span string_scanner typed_data]
- image 3.0.1 [archive meta xml]
- in_app_review_platform_interface 2.0.2 [flutter url_launcher plugin_platform_interface platform]
- js 0.6.3
- matcher 0.12.10 [stack_trace]
- meta 1.3.0
- nested 1.0.0 [flutter]
- path 1.8.0
- path_provider 2.0.1 [flutter path_provider_platform_interface path_provider_macos path_provider_linux path_provider_windows]
- path_provider_linux 2.0.0 [path xdg_directories path_provider_platform_interface flutter]
- path_provider_macos 2.0.0 [flutter]
- path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface]
- path_provider_windows 2.0.0 [path_provider_platform_interface meta path flutter ffi win32]
- pedantic 1.11.0
- petitparser 4.0.2 [meta]
- platform 3.0.0
- plugin_platform_interface 2.0.0 [meta]
- pointycastle 3.0.0-nullsafety.2 [collection]
- process 4.1.0 [file path platform]
- quiver 2.1.5 [matcher meta]
- random_color 1.0.5 [flutter]
- shared_preferences_linux 2.0.0 [flutter file meta path path_provider_linux shared_preferences_platform_interface]
- shared_preferences_macos 2.0.0 [shared_preferences_platform_interface flutter]
- shared_preferences_platform_interface 2.0.0 [flutter]
- shared_preferences_web 2.0.0 [shared_preferences_platform_interface flutter flutter_web_plugins meta]
- shared_preferences_windows 2.0.0 [shared_preferences_platform_interface flutter file meta path path_provider_platform_interface path_provider_windows]
- sky_engine 0.0.99
- source_span 1.8.0 [charcode collection path term_glyph]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.2.19 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timezone 0.7.0-nullsafety.0 [path]
- typed_data 1.3.0 [collection]
- url_launcher_linux 2.0.0 [flutter]
- url_launcher_macos 2.0.0 [flutter]
- url_launcher_platform_interface 2.0.2 [flutter plugin_platform_interface]
- url_launcher_web 2.0.0 [url_launcher_platform_interface meta flutter flutter_web_plugins]
- url_launcher_windows 2.0.0 [flutter]
- vector_math 2.1.0
- video_player_platform_interface 2.2.0 [flutter meta]
- video_player_web 0.1.4+1 [flutter flutter_web_plugins meta video_player_platform_interface]
- win32 2.0.0 [ffi]
- xdg_directories 0.2.0 [meta path process]
- xml 5.0.2 [collection meta petitparser]
- yaml 3.1.0 [collection source_span string_scanner]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
berrymay0418commented, Mar 26, 2021

This DummyAdapter error occurs when “Personalized Ads” is disabled or “limit ad tracking” is enabled on iOS, which means IDFA cannot be used.

Check your test device, then rewarded ads will work normally. For iOS14, Settings -> Privacy -> Apple Advertising -> Personalized Ads, check if it’s turned on. For iOS13 and earlier, Settings -> Privacy -> Advertising -> Limit Ad Tracking, check if it’s turned off.

Find more info here. https://groups.google.com/g/google-admob-ads-sdk/c/IJHU0Qqj1C0/m/x0Txr8MPBwAJ

0reactions
daisuke-200commented, Sep 1, 2021

I had the same problem, Cannot find an ad network adapter with the name error. In my case, not rewarded ads but banner ads. (google_mobile_ads version: “0.13.4”)

And I fixed this error by putting my app-ads.txt the line. google.com, pub-3940256099942544, DIRECT, f08c47fec0942fa0

If you use app-ads.txt, please check the details in the official docs, and try it. https://developers.google.com/admob/android/test-ads

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rewarded video did not Show on Device. · Issue #585 · googleads ...
Hi, I integrate both interstitial and rewarded video in my game. ... on device but Rewarded video only load mean in console it...
Read more >
How To Remove "Win Rewards From Samsung" Fake Ad Survey
This guide teaches you how to remove the "Win rewards from Samsung" Fake Survey by following easy step-by-step instructions.
Read more >
rewarded video ad not triggering OnUnityAdsShowComplete
Hi Termobudka, I understand your problem. In the editor, there is only a fake ad, and it won't fire the onComplete callback. If...
Read more >
Ads like these. Fake reaction, fake rewards, fake reviews ...
Ads like these. Fake reaction, fake rewards, fake reviews coming from bots all on the same day.
Read more >
80M People Scammed by Chrome Fake Ad Blockers
Chrome Web Store is overflown with malicious browser extensions. Millions of people use them and don't even realize they are in danger.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found