+6 votes

I have found a few 3rd party modules for displaying ads (AdMob, Appodeal etc) in Android mobile games developed in Godot.

But I am curious if is there any module for iOS ads?

in Engine by (56 points)
edited by

I also investigated this topic and I haven't found any module for this. To my knowledge there exists no iOS Godot game that uses ads for monetising. It's quite surprising (and quite disappointing) that such important module does not exist. Especially in era when majority of commercially successful games use ads for monetising.

There is chartboost for ios and android. No idea how it works though.

I've made a module for Chartboost as well. You can find it here: https://github.com/beocat/mamau_chartboost

@beocet: Maybe you can convert your comment as an answer and maybe also mention chartboost module from the post of ericdl.
And, thanks a lot for the module! There is not many modules for iOS.

Does this work on android and ios too?
Mamau's chartboost

1 Answer

+4 votes

Google Admob for IOS https://github.com/kamilors/Gomob

by (22 points)
edited by

Thank you for your sharing and this code works fine on device. But have you ever tried it on Simulator? I compiled it with setting "ios_sim=yes" and got the following error message:

~/ios/lib/Admob/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:11:2: error: The Google Mobile Ads SDK requires a deployment target of iOS 6.0 or later.
#error The Google Mobile Ads SDK requires a deployment target of iOS 6.0 or later.

How can I solve it?

Hello @Kamil and @kenHuang0917
I am new to Godot and I have created a game, I need Admob on iOS, when I try to compile godot with this module I get the following error:

Undefined symbols for architecture armv7:
"CFHostCreateWithName", referenced from:
l6022 in GoogleMobileAds(flat-armv7)
CFHostStartInfoResolution", referenced from:
l6022 in GoogleMobileAds(flat-armv7)
"_CFHostGetAddressing", referenced from:
l6022 in GoogleMobileAds(flat-armv7)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am compiling as instructed in the docs:
scons p=iphone target=debug

I really need your help,

I have same problem i resolve it by adding CFNetwork Framework in config.py file

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.