我嘗試廣告添加到我的Android PhoneGap的應用程序,但我不是anywere越來越...我使用的PhoneGap 0.3.3AdMob聯播不是在PhoneGap的工作和Android
自己的AdMob廣告的關鍵關鍵是這樣的:CA-APP-酒館1973821888分之9718633180389415
IM我config.xml中我有:
<plugin name="com.admob.google" spec="4.0.8" source="pgb" />
,然後tryed我的指數:
function onDeviceReady() {
document.removeEventListener('deviceready', onDeviceReady, false);
// Set AdMobAds options:
admob.setOptions({
publisherId: "ca-app-pub-9718633180389415/1973821888", // Required
interstitialAdId: "ca-app-pub-9718633180389415/1973821888", // Optional
tappxIdiOs: "/XXXXXXXXX/Pub-XXXX-iOS-IIII", // Optional
tappxIdAndroid: "/XXXXXXXXX/Pub-XXXX-Android-AAAA", // Optional
tappxShare: 0.5 // Optional
});
// Start showing banners (atomatic when autoShowBanner is set to true)
admob.createBannerView();
// Request interstitial (will present automatically when autoShowInterstitial is set to true)
admob.requestInterstitial();
}
但注意到displayer: 即時通訊使用https://github.com/sunnycupertino/cordova-plugin-admob-simple