Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why I can‘t use banner ad for ios #86

Closed
sunjianan9900 opened this issue Oct 16, 2019 · 18 comments
Closed

why I can‘t use banner ad for ios #86

sunjianan9900 opened this issue Oct 16, 2019 · 18 comments
Labels
bug Something isn't working iOS Only effects iOS

Comments

@sunjianan9900
Copy link

sunjianan9900 commented Oct 16, 2019

0.3.3
it's work on android
but not work on ios:
{error: Request Error: Cannot find an ad network adapter for mediation., errorCode: 8}
no matter using test banner id or my banner id

but interstitial Ad is work on both.

i add this on my plist.info:

<key>io.flutter.embedded_views_preview</key>
	<true/>
<key>GADApplicationIdentifier</key>
	<string>ca-app-pub-XXXXX</string>

IDE : XCODE 11.2 BETA

@edeuss edeuss added bug Something isn't working iOS Only effects iOS labels Oct 18, 2019
@edeuss
Copy link
Collaborator

edeuss commented Oct 18, 2019

@kmcgill88 Can you have a look at this?

@edeuss
Copy link
Collaborator

edeuss commented Oct 18, 2019

Can you do flutter doctor -v and post the output. @sunjianan9900

@edeuss edeuss added the waiting for response Waiting for customer response label Oct 18, 2019
@sunjianan9900
Copy link
Author

[✓] Flutter (Channel master, v1.10.5-pre.22, on Mac OS X 10.14.6 18G95, locale
zh-Hans-CN)
• Flutter version 1.10.5-pre.22 at /Volumes/Jianan/SDK/flutter
• Framework revision ebd8e0b34b (4 weeks ago), 2019-09-19 03:38:41 -0400
• Engine revision bf3af4d157
• Dart version 2.6.0 (build 2.6.0-dev.1.0 ea969c358e)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Volumes/Jianan/SDK/sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
• Xcode at /Volumes/Jianan/APP/Xcode.app/Contents/Developer
• Xcode 10.3, Build version 10G8
• CocoaPods version 1.8.3

[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)

[!] IntelliJ IDEA Ultimate Edition (version 2018.1.5)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins

[!] Connected device
! No devices available

I back my xcode to 10.3 still not work

@edeuss edeuss removed the waiting for response Waiting for customer response label Oct 24, 2019
@sunjianan9900
Copy link
Author

Can you do flutter doctor -v and post the output. @sunjianan9900

Have you try ios banners?

@kmcgill88
Copy link
Owner

https://github.com/kmcgill88/admob_flutter/blob/master/example/lib/main.dart#L245

Double check using the correct ideas for the right platform.

@sunjianan9900
Copy link
Author

https://github.com/kmcgill88/admob_flutter/blob/master/example/lib/main.dart#L245

Double check using the correct ideas for the right platform.

Thanks for your reply

I try the demo ios project , it works。
And then I copy and replace the main.dart to my project, it works too.
And then I make main.dart to the second page , put an button on first page to get it , and it doesn't work. And the log print
<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.
And the app stucked.

So I back to the demo project, and make the main.dart code to the second page, and it also Not work.
It seems like jsut work on the first page.
this is the 2file I change from the example:
https://github.com/sunjianan9900/Danmupic/tree/master/demo

@kmcgill88
Copy link
Owner

Have you tried replacing test id's with your own account id's? I'm currently using this code in product and I'm not having any issues. I've also seen this message while I debugged. I'm not sure what else for you to try?

@sunjianan9900
Copy link
Author

Have you tried replacing test id's with your own account id's? I'm currently using this code in product and I'm not having any issues. I've also seen this message while I debugged. I'm not sure what else for you to try?

But I can run interstitial ads and reward ads on my demo code using test ad id
-> https://github.com/sunjianan9900/Danmupic/tree/master/demo (just move the ads to second page from example code , not change any id)
interstitial ads and reward ads Can work anywhere , but banner only work on main.dart

It also have the same issues on my release ios app , android not have any issues

@atereshkov
Copy link

atereshkov commented Oct 27, 2019

In my case this one helped me and now banner ads is showing in the iOS app:

Open iOS project in Xcode, go to Runner -> Targets -> Runner -> Build Phases -> Link Binary With Libraries

and here add iAd.framework

image

@kmcgill88 this one also could be documented in some "FAQ" section / etc

@sunjianan9900
Copy link
Author

In my case this one helped me and now banner ads is showing in the iOS app:

Open iOS project in Xcode, go to Runner -> Targets -> Runner -> Build Phases -> Link Binary With Libraries

and here add iAd.framework

image

@kmcgill88 this one also could be documented in some "FAQ" section / etc

it's still not work for me (cry)
WX20191029-194009@2x

@jotafabric
Copy link

In my case this one helped me and now banner ads is showing in the iOS app:

Open iOS project in Xcode, go to Runner -> Targets -> Runner -> Build Phases -> Link Binary With Libraries

and here add iAd.framework

image

@kmcgill88 this one also could be documented in some "FAQ" section / etc

Not work for me too

@DigitalSolomon
Copy link

Any improvements with this @josiasfabricio ?

@jotafabric
Copy link

Any improvements with this @josiasfabricio ?

Unfortunately, no

@duck-dev-go
Copy link

duck-dev-go commented Jun 8, 2021

Did you figure out how to do this? We have the exact same issue

@sunjianan9900
Copy link
Author

sunjianan9900 commented Jun 8, 2021

Did you figure out how to do this? We have the exact same issue

Hey I'm using this : https://pub.dev/packages/google_mobile_ads

@duck-dev-go
Copy link

duck-dev-go commented Jun 8, 2021

Yes we are too but we have the same issue, do you have any hints on how to approach the problem? We have AddMob network as our mediation group source and no other sources. But we keep getting this error.

@sunjianan9900
Copy link
Author

sorry I can't remember anything about this, it's too long ago...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iOS Only effects iOS
Projects
None yet
Development

No branches or pull requests

7 participants