ammarahm-ed/react-native-admob-native-ads

[BUG] adChoicesPlacement prop not working with preload ad

luongminh2410dev opened this issue · 1 comments

Setting adChoicesPlacement not working on situation ads be preload even adChoicePlacement be placed on NativeAdView tag

AdChoicesPlacement alway show default position on both Android & IOS (top_left for IOS, top_right for Android)

AdChoicesPlacement of other ad (not preload) seem to be affect

  • Preload ad
    await AdManager.registerRepository({
        name: 'top_detail_admob',
        adUnitId: rn_admob_detail_top,
        expirationPeriod: 2 * 60 * 60 * 1000,
        numOfAds: 3,
        mediationEnabled: true,
        adChoicesPlacement: 'topRight'
    })
  • Show ad
    <NativeAdView
      ref={refNativeAdView}
      repository='top_detail_admob'
      onAdFailedToLoad={onFailed}
      onNativeAdLoaded={onNativeAdLoaded}
      refreshInterval={2 * 60 * 1000}
      enableTestMode={__DEV__}
      adChoicesPlacement='topRight'
      style={styles.admob}>
      ......
     </NativeAdView>

i resolve my issue by change adChoicesPlacement on node_modules like that ( use path-patch to save change on node_modules)
Screen Shot 2022-12-07 at 09 34 30