Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17071

[SDKBOX] AdMob advertisement size problem

$
0
0

@LuisOscar wrote:

I have implemented AdMob, but i have an issue when trying to show ads that properly fit in the size i want for different iPhone resolutions.

My ad is defined like this on the json config file:

"start": {
"type": "banner",
"id": "ADKEY",
"alignment": "bottom",
"width": 320,
"height": 50
},

and on iPhone 5 it looks perfect, it fits the whole lower part of the screen.

The problem is that on iPhone 6s Plus it only fits part of it.

I would think that cocos being kind of resolution independent would handle this somehow but it doesn't.

Does anyone knows how to solve this issue? Am i forced to have different ad types and show each based on the screen resolution size?

Note: My Cocos2dx design resolution is set to:

ResolutionPolicy rp = ResolutionPolicy::SHOW_ALL;
glview->setDesignResolutionSize(640, 1136, rp);

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17071

Trending Articles