would you mind sharing your code? i haven’t seen any guides on integrating admob to cocos2dx, i think it would be great for the community to work out how to use it in our games.
thanks for the guide Simon, i just tested the ads and they work, but theres a problem, my size for the android app is 640x960 which get scaled by cocos2dx but the ads don’t so if i try to run it on smaller screen sizes i get
Received ad url: <"url": "http://googleads.g.doubleclick.net...
onReceiveAd()
Not enough space to show ad! Wants: <640, 100>, Has: <320, 480>
Thank you Lin.
I already visited your site and did my work taking hints from the page
>
But I came across memory leak. T.T
>
Haven’t you seen such thing with leak profiler…?
Dear ho ho:
I am not aware about the memory leak problems on my game.
This problem happened to you is only on iOS or Android ?
thanks for the guide Simon, i just tested the ads and they work, but theres a problem, my size for the android app is 640x960 which get scaled by cocos2dx but the ads don’t so if i try to run it on smaller screen sizes i get
[…]
Hi, game dev(^^):
I don’t use the scale mechanism provided by cocos2d-x.
Instead of that, I use my own scale mechanism because there are too many resolutions that I need to support.
And I only want to maintain one copy of resources. I think that’s why I don’t have the same problem that you have.