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

I use NativeMediaView on iOS, but "Asset uses ImageView, not MediaView" is showing.

Open CHOIJUNHYUK01 opened this issue 1 year ago • 13 comments

const AdImageContainer = styled(NativeMediaView)``;

I wrote my advertisement image View for this above code. But still get AdLoadFail because of that message. And Android, the Advertisement showing well.

So, I have a question. In this situation, NativeMediaView is not defined for MediaView on ios?

I use React Native for 0.65.3 react-native-admob-native-ads for 0.6.3

CHOIJUNHYUK01 avatar Oct 17 '23 05:10 CHOIJUNHYUK01

@ammarahm-ed I had this issue on 2023, October 11th. It suddenly happends to me, just on iOS

CHOIJUNHYUK01 avatar Oct 17 '23 05:10 CHOIJUNHYUK01

Same here I am also getting this message in Android. In IOS and Android google admob impressions have suddnly stopped. Its 0 impressions since last few days.

haresh4d avatar Nov 07 '23 03:11 haresh4d

Same here I am also getting this message in Android. In IOS and Android google admob impressions have suddnly stopped. Its 0 impressions since last few days.

Same to me. This plugin seems inactive. There is no update since a long time

akaoppa avatar Nov 21 '23 15:11 akaoppa

Kindly provide an example to reproduce the issue.

ammarahm-ed avatar Dec 06 '23 03:12 ammarahm-ed

This is off-topic, but I get a similar error on the native Android platform. I suppose the issue is related to the AdMob backend. I have communicated with the AdMob support team for a month, but unfortunately, the problem has not been resolved. A fresh app release solves the problem for a while, but in a few days, the error appears again. Test ad placement with video runs without any issues.

I believe this issue should be addressed directly to AdMob.

aazhevsky avatar Dec 06 '23 10:12 aazhevsky

This is off-topic, but I get a similar error on the native Android platform. I suppose the issue is related to the AdMob backend. I have communicated with the AdMob support team for a month, but unfortunately, the problem has not been resolved. A fresh app release solves the problem for a while, but in a few days, the error appears again. Test ad placement with video runs without any issues.

I believe this issue should be addressed directly to AdMob.

Could it be related to the version of Admob library used. In your native app, are you using the same v20 or v22?

ammarahm-ed avatar Dec 06 '23 10:12 ammarahm-ed

Could it be related to the version of Admob library used. In your native app, are you using the same v20 or v22?

I use 22.4.0. I see a fresh release 22.5.0 is available, but no hints address the issue.

And yes, the first time the error appeared was on October 11.

aazhevsky avatar Dec 06 '23 10:12 aazhevsky

same issue on android. Test ads are working but real ads have this issue.

LOG {"error": {"code": 3, "domain": "com.google.android.gms.ads", "message": "Asset uses ImageView, not MediaView. <https://support.google.com/admob/answer/9905175#5>"}} ERROR

Implementation

import React, { useEffect, useRef, useState } from 'react';
import { StyleSheet, View } from 'react-native';
import NativeAdView, {
  AdBadge,
  CallToActionView,
  HeadlineView,
  IconView,
  ImageView,
  TaglineView
} from 'react-native-admob-native-ads';
import Config from '../../env';
import fonts from '../constants/fonts';
import { SCREEN_WIDTH, moderateScale, wp } from '../constants/scaling';
import colors from '../constants/theme';
const NativeAdsLow = ({}) => {
  const nativeAdViewRef = useRef();
  const [isloading, setIsLoading] = useState(true);
  useEffect(() => {
    nativeAdViewRef.current?.loadAd();
  }, []);
  return (
    <NativeAdView
      ref={nativeAdViewRef}
     
      onNativeAdLoaded={data => {
        setIsLoading(false);
      }}
      onAdFailedToLoad={err => {
        console.log(err,"ERROR");
      }}
      adUnitID={Config.NATIVE_AD_ID_LOW}>
      <View
        style={{
          opacity: isloading ? 0 : 1,
          height: wp(70),
          backgroundColor: '#0000',
        }}>
        <View style={styles.rowView}>
          <View style={styles.Left}>
            <View style={{flexDirection: 'row'}}>
              <IconView style={styles.IconView} />
              <View
                style={{
                  marginLeft: moderateScale(5),
                }}>
                <HeadlineView numberOfLines={2} style={styles.HeadlineView} />
                <TaglineView numberOfLines={3} style={styles.tabLineText} />
              </View>
            </View>
          </View>
          <View style={styles.Right}>
            <AdBadge style={styles.AdBadge} textStyle={styles.AdBadgeText} />
          </View>
        </View>
        <ImageView style={styles.ImageView} />
        <CallToActionView
          style={styles.CallToActionView}
          textStyle={styles.CallToActionViewText}
        />
      </View>
    </NativeAdView>
  );
};

//export default (NativeAdsLow);

export default memo(NativeAdsLow);

package.json

"react-native-admob-native-ads": "^0.6.6",

aftabaminzoobiapps avatar Jan 22 '24 11:01 aftabaminzoobiapps

Same here I am also getting this message in Android. In IOS and Android google admob impressions have suddnly stopped. Its 0 impressions since last few days.

i have tested it on 20, 21 and 22 bit for all same issue

aftabaminzoobiapps avatar Jan 22 '24 12:01 aftabaminzoobiapps

Same here, any solution?

bolo992 avatar Jan 30 '24 13:01 bolo992

Same issue, @aftabaminzoobiapps did you find any solution?

minhchienwikipedia avatar Mar 28 '24 12:03 minhchienwikipedia

same issue again. it fixed for 2 or 3 days and then again the same issue

AftabUfaq avatar Apr 01 '24 10:04 AftabUfaq

I think this plugin is outdated now. can we try another one. like to develop our own module.

zoobibackups avatar Apr 25 '24 10:04 zoobibackups