UNPKG

admob-plus-cordova

Version:

Trustable Google AdMob Cordova Plugin, successor of cordova-plugin-admob-free. Unlike some Cordova AdMob plugins, no ad-sharing, free to use. TypeScript friendly. Compatible with Ionic. admob-plus-cordova is one of the most popular Cordova AdMob plugins.

331 lines (310 loc) 14.3 kB
<?xml version='1.0' encoding='utf-8'?> <plugin id="admob-plus-cordova" version="2.0.0-alpha.19" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android"> <name>admob-plus-cordova</name> <js-module name="AdMob" src="www/admob.js"> <clobbers target="admob" /> </js-module> <engines> <engine name="cordova" version=">=7.0.0" /> <engine name="cordova-android" version=">=6.0.0" /> <engine name="cordova-ios" version=">=5.0.0" /> </engines> <platform name="android"> <preference name="APP_ID_ANDROID" default="ca-app-pub-xxx~yyy" /> <preference name="PLAY_SERVICES_VERSION" default="23.2.0" /> <config-file target="AndroidManifest.xml" parent="/manifest/application"> <activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:excludeFromRecents="true" android:name="com.google.android.gms.ads.AdActivity" android:noHistory="true" /> <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="$APP_ID_ANDROID" /> <meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true"/> <meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true" /> <meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true" /> <meta-data android:name="com.google.android.gms.ads.flag.INTEGRATION_MANAGER" android:value="webview" /> </config-file> <config-file target="res/xml/config.xml" parent="/*"> <feature name="AdMob"> <param name="android-package" value="admob.plus.cordova.AdMob"/> </feature> </config-file> <framework src="com.google.android.gms:play-services-ads:$PLAY_SERVICES_VERSION" /> <source-file src="src/android/core/util.kt" target-dir="app/src/main/kotlin/admob/plus/core" /> <source-file src="src/android/cordova/AdMob.kt" target-dir="app/src/main/kotlin/admob/plus/cordova" /> <source-file src="src/android/cordova/ExecuteContext.kt" target-dir="app/src/main/kotlin/admob/plus/cordova" /> <source-file src="src/android/cordova/Generated.kt" target-dir="app/src/main/kotlin/admob/plus/cordova" /> <source-file src="src/android/cordova/ads/AdBase.kt" target-dir="app/src/main/kotlin/admob/plus/cordova/ads" /> <source-file src="src/android/cordova/ads/WebViewAd.kt" target-dir="app/src/main/kotlin/admob/plus/cordova/ads" /> <source-file src="src/android/cordova/ads/AppOpen.kt" target-dir="app/src/main/kotlin/admob/plus/cordova/ads" /> <source-file src="src/android/cordova/ads/Banner.kt" target-dir="app/src/main/kotlin/admob/plus/cordova/ads" /> <source-file src="src/android/cordova/ads/Interstitial.kt" target-dir="app/src/main/kotlin/admob/plus/cordova/ads" /> <source-file src="src/android/cordova/ads/Native.kt" target-dir="app/src/main/kotlin/admob/plus/cordova/ads" /> <source-file src="src/android/cordova/ads/Rewarded.kt" target-dir="app/src/main/kotlin/admob/plus/cordova/ads" /> <source-file src="src/android/cordova/ads/RewardedInterstitial.kt" target-dir="app/src/main/kotlin/admob/plus/cordova/ads" /> <!-- AUTOGENERATED: ANDROID_BEGIN --> <!-- AUTOGENERATED: ANDROID_END --> </platform> <platform name="ios"> <preference name="APP_ID_IOS" default="ca-app-pub-xxx~yyy" /> <preference name="USAGE" default="This identifier will be used to deliver personalized ads to you." /> <preference name="disableSDKCrashReporting" default="false" /> <config-file target="config.xml" parent="/*"> <feature name="AdMob"> <param name="ios-package" value="AMBPlugin" /> </feature> </config-file> <config-file target="*-Info.plist" parent="GADApplicationIdentifier"> <string>$APP_ID_IOS</string> </config-file> <config-file target="*-Info.plist" parent="GADDelayAppMeasurementInit"> <true/> </config-file> <config-file target="*-Info.plist" parent="NSAppTransportSecurity"> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSAllowsArbitraryLoadsForMedia</key> <true/> <key>NSAllowsArbitraryLoadsInWebContent</key> <true/> </dict> </config-file> <config-file target="*-Info.plist" parent="NSUserTrackingUsageDescription"> <string>$USAGE</string> </config-file> <config-file target="*-Info.plist" parent="GADIntegrationManager"> <string>webview</string> </config-file> <config-file target="*-Info.plist" parent="SKAdNetworkItems"> <array> <dict> <key>SKAdNetworkIdentifier</key> <string>cstr6suwn9.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>4fzdc2evr5.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>4pfyvq9l8r.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>2fnua5tdw4.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>ydx93a7ass.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>5a6flpkh64.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>p78axxw29g.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>v72qych5uu.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>ludvb6z3bs.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>cp8zw746q7.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>3sh42y64q3.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>c6k4g5qg8m.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>s39g8k73mm.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>3qy4746246.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>f38h382jlk.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>hs6bdukanm.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>v4nxqhlyqp.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>wzmmz9fp6w.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>yclnxrl5pm.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>t38b2kh725.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>7ug5zh24hu.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>gta9lk7p23.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>vutu7akeur.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>y5ghdn5j9k.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>n6fk4nfna4.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>v9wttpbfk9.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>n38lu8286q.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>47vhws6wlr.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>kbd757ywx3.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>9t245vhmpl.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>eh6m2bh4zr.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>a2p9lx4jpn.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>22mmun2rn5.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>4468km3ulz.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>2u9pt9hc89.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>8s468mfl3y.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>klf5c3l5u5.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>ppxm28t8ap.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>ecpz2srf59.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>uw77j35x4d.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>pwa73g5rt2.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>mlmmfzh3r3.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>578prtvx9j.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>4dzt52r2t5.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>e5fvkxwrpn.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>8c4e2ghe7u.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>zq492l623r.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>3rd42ekr43.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>3qcr597p9d.skadnetwork</string> </dict> </array> </config-file> <!-- AUTOGENERATED: IOS_BEGIN --> <source-file src="src/ios/AMBAdBase.swift" /> <source-file src="src/ios/AMBAppOpenAd.swift" /> <source-file src="src/ios/AMBBanner.swift" /> <source-file src="src/ios/AMBContext.swift" /> <source-file src="src/ios/AMBCore.swift" /> <source-file src="src/ios/AMBGenerated.swift" /> <source-file src="src/ios/AMBInterstitial.swift" /> <source-file src="src/ios/AMBNativeAd.swift" /> <source-file src="src/ios/AMBPlugin.swift" /> <source-file src="src/ios/AMBRewarded.swift" /> <source-file src="src/ios/AMBRewardedInterstitial.swift" /> <!-- AUTOGENERATED: IOS_END --> <framework src="AppTrackingTransparency.framework" weak="true" /> <podspec> <config> <source url="https://cdn.cocoapods.org/" /> </config> <pods use-frameworks="true"> <pod name="Google-Mobile-Ads-SDK" spec="~> 11.6.0" /> </pods> </podspec> </platform> <platform name="browser"> <config-file target="config.xml" parent="/*"> <feature name="AdMob"> <param name="browser-package" value="AdMob" /> </feature> </config-file> <js-module src="src/browser/AdMobProxy.js" name="AdMobProxy"> <runs /> </js-module> </platform> </plugin>