问题与标题相同。.我试图在底部添加一个小横幅。 admob的基本测试横幅广告效果很好,我在网站上制作了一个真实的横幅广告,并复制了unitID和再见,没有任何显示。也许我需要在某个地方添加AppID?
这是我的代码...
import React, { Component } from 'react';
import { View } from 'react-native';
import {
AdMobBanner
} from 'react-native-admob';
export default class Banner extends Component {
render() {
return(
<View style={{ marginTop: 40 }}>
<AdMobBanner
adUnitID="ca-app-pub-7484134098633054/8798606096"
testDeviceID="EMULATOR"
onAdFailedToLoad={error => console.log(error)}
adSize="fullBanner"/>
</View>
);
}
}
这是我的console.log:
Running application "BurpSimV3" with appParams: {"rootTag":41}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:62578 Error: Internal error, an invalid response was received from the ad server.
at createErrorFromErrorData (blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:62772)
at AdMobBanner.handleAdFailedToLoad (blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:62717)
at AdMobBanner.proxiedMethod (blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:36853)
at Object.invokeGuardedCallback (blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:4173)
at Object.invokeGuardedCallback (blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:4242)
at Object.invokeGuardedCallbackAndCatchFirstError (blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:4245)
at executeDispatch (blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:4416)
at executeDispatchesInOrder (blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:4436)
at executeDispatchesAndRelease (blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:4531)
at executeDispatchesAndReleaseTopLevel (blob:http://localhost:8081/842d3eb6-8510-49bb-b3ac-0443ff0d526d:4544)
我要疯了:'(