react-native-admob icon indicating copy to clipboard operation
react-native-admob copied to clipboard

Banner does not show on real iOS devices

Open ricardofavero opened this issue 7 years ago • 15 comments

I always get

Error: Request Error: No ad to show.

Is anyone having the same problem?

Tests: Android emulator: ok Android real device: ok iOS emulator: ok iPhone 8: banner won't show iPhone 5c: banner won't show (edited) iPhone 8 Plus: ok

Using react-native 0.47.1 and the latest commit of this library

import { AdMobBanner } from 'react-native-admob';

export default class MyAdMobBanner extends Component {
  render() {
    return (
      <View style={{ alignItems: 'center' }}>
        <AdMobBanner
          adSize={'smartBannerPortrait'}
          adUnitID={myID}
          onAdFailedToLoad={er => console.log(er)}
        />
      </View>
    );
  }
}

ricardofavero avatar Dec 14 '17 17:12 ricardofavero

I think the alignItems on the parent view causes the banner to collapse, and then admob doesn’t return an ad. Can you try without?

koenpunt avatar Dec 15 '17 08:12 koenpunt

@koenpunt thanks for the reply I removed the parent view, but it didn't make any difference While I was doing other things, I noticed that the banner appears very rarely, in about 5% of the cases I open the app.

ricardofavero avatar Dec 15 '17 18:12 ricardofavero

Same problem here :(

michelalbers avatar Jan 18 '18 14:01 michelalbers

@ricardofavero @michelalbers Try to add validAdSizes={['banner', 'largeBanner', 'mediumRectangle']} into your AdMobBanner

malonguwa avatar Jan 24 '18 03:01 malonguwa

any progress ?

AbdelhalimAhmed avatar Feb 22 '18 13:02 AbdelhalimAhmed

EDIT: Still not working on the 5c. I tested it on an iPhone 8 Plus and it's working normally.

ricardofavero avatar Mar 07 '18 19:03 ricardofavero

@rica do you test it on real device??

AbdelhalimAhmed avatar Mar 07 '18 19:03 AbdelhalimAhmed

@AbdelhalimAhmed

Sorry, I thought the problem was gone but it's not. It's still not showing on the iPhone 5c. Only news I have is that it works on the iPhone 8 Plus.

ricardofavero avatar Mar 07 '18 19:03 ricardofavero

I think Apple gods won’t accept it :D

AbdelhalimAhmed avatar Mar 07 '18 19:03 AbdelhalimAhmed

@AbdelhalimAhmed

Actually they rejected my app because of "too many ads" (1 banner in each screen). They even showed me a screenshot of the banner.

ricardofavero avatar Mar 07 '18 20:03 ricardofavero

Same issue.

Update: I have the same problem, but when i back home and connect with 4G or home wifi it displays. I don't know why and don't know how to do now.

rothanachoun avatar Mar 20 '18 08:03 rothanachoun

Did you check if the setting 'Limit Ad Tracking' in iOS was turned on ?

manuhook avatar Mar 22 '18 18:03 manuhook

Same Here on iphone 6 any updates !!!

MinaFSedrak avatar Apr 04 '18 14:04 MinaFSedrak

Same issue. Sometimes ads will not show on iOS real device.

a26364177 avatar Apr 07 '18 17:04 a26364177

same issue iPhone 6plus. pls help?

sangolariel avatar May 17 '21 10:05 sangolariel