finscn / Ejecta

A Fast, Open Source JavaScript, Canvas & Audio Implementation for iOS
42 stars 6 forks source link

admob smart banner ? and refresh call ? #6

Open matrixreal opened 9 years ago

matrixreal commented 9 years ago

hi,

also is there a way to preload / load banner before show it for iAd ?

thanks

finscn commented 9 years ago

the google admob sdk has changed , I've no idea about new sdk. I have to learn it first. So I cann't answer you now, sorry

matrixreal commented 9 years ago

ok it not urgent thanks any way

matrixreal commented 9 years ago

To use Smart Banners, you will need to use the constant kGADAdSizeSmartBannerPortrait or kGADAdSizeSmartBannerLandscape, like so:

// Use kGADAdSizeSmartBannerLandscape if your app is running in landscape. GADBannerView *bannerView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeSmartBannerPortrait]; In portrait mode on phones, this will make the ad view either 320x50 or 360x50 in size, depending on whether the device is widescreen. In landscape mode on phones, this will make the ad view anywhere from 480x32 to 682x32 depending on the height of the device.

When an image ad won't take up the entire allotted space for the banner, we'll center the image and use a hexagonal textile filler (see image) to fill up the remaining space. Note that AdSense backfill ads will be centered and have "transparent" filler.

maybe this will help you !!!

matrixreal commented 9 years ago

@finscn any news about smart banner ? and what about how to use webview on ios?

matrixreal commented 9 years ago

@finscn To use Smart Banners, you will need to use the constant kGADAdSizeSmartBannerPortrait or kGADAdSizeSmartBannerLandscape, like so:

// Use kGADAdSizeSmartBannerLandscape if your app is running in landscape. GADBannerView *bannerView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeSmartBannerPortrait];

matrixreal commented 9 years ago

@finscn any news about refresh call ? preload call ? ans show smart banner and hide banner? please i just need those 4 javascript call