Recently, I've been working on a project, and as it begins to near completion, I've been wanting to integrate adMob. However, the one thing that's been keeping me from it is that I'll have to do something with Cocos' TouchJSON files in order to get them to work well. So far, the only way I've "something" I've seen is renaming every class etc. in the TouchJSON library so that it doesn't conflict with adMob. Is there any other way to do this?
Implement both adMob and Cocos2D
(3 posts) (3 voices)-
Posted 1 year ago #
-
I have exact same problem like you. If anyone has a version of cocos2d that already renamed TouchJSON, I appreciate it.
Posted 1 year ago # -
I just did this yesterday... If you're not using cocosLive, all you have to do is completely delete the TouchJSON folder from cocos2d since AdMob already includes it. Then you'll get one error in a cocosLive implementation file when you try to compile (can't remember which one since I'm away from my Mac). Just comment out the whole file and everything should work.
Posted 1 year ago #
Reply
You must log in to post.