Cryptonomicon Posted July 17, 2014 Share Posted July 17, 2014 I am thinking about building space into my dialog menus for ads via coocoonjs which uses mopub. Does anyone know whether cocoonjs inserts their ads into your game world - in which case they will pick up your game scaling. Or whether they overlay their ads on your game world in which case they wont. In a nutshell can I be confident that if I leave a 50px space for a banner - perhaps with a frame around it that an ad will always appear within it to my game scale. Or will I have to do a query and a bit of math as well as having some flexibility in the ui so I can adjust the size of the box to 50 device pixels? I am being fussy but if I am going to have ads I want them to feel designed in not stuck on christianstrang 1 Link to comment Share on other sites More sharing options...
Ludei Posted July 22, 2014 Share Posted July 22, 2014 Hello Cryptonomicon You just need to call CocoonJS.Ad.setRectangle(rect);, where rect is an object of type CocoonJS.Ad.Rectangle. You can find a example of the Ad demo source code here. Link to comment Share on other sites More sharing options...
Recommended Posts