{"id":16007465,"url":"https://github.com/techingcrewmatt/cordova-plugin-admob-techingcrew","last_synced_at":"2026-04-09T21:50:43.487Z","repository":{"id":57207673,"uuid":"122504593","full_name":"TechingCrewMatt/cordova-plugin-admob-techingcrew","owner":"TechingCrewMatt","description":"AdMob plugin for Cordova multi-platform apps. Exposes Banner Ads, Interstitial Ads, and Rewarded Videos.","archived":false,"fork":false,"pushed_at":"2018-09-14T17:20:35.000Z","size":34,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-05T02:15:02.124Z","etag":null,"topics":["admob-plugin","android","banner-ads","cordova","interstitial-ads","rewarded-videos","video"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TechingCrewMatt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-22T16:30:37.000Z","updated_at":"2018-09-14T17:20:37.000Z","dependencies_parsed_at":"2022-09-10T04:14:06.593Z","dependency_job_id":null,"html_url":"https://github.com/TechingCrewMatt/cordova-plugin-admob-techingcrew","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechingCrewMatt%2Fcordova-plugin-admob-techingcrew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechingCrewMatt%2Fcordova-plugin-admob-techingcrew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechingCrewMatt%2Fcordova-plugin-admob-techingcrew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechingCrewMatt%2Fcordova-plugin-admob-techingcrew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechingCrewMatt","download_url":"https://codeload.github.com/TechingCrewMatt/cordova-plugin-admob-techingcrew/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276188,"owners_count":20912288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admob-plugin","android","banner-ads","cordova","interstitial-ads","rewarded-videos","video"],"created_at":"2024-10-08T12:03:34.100Z","updated_at":"2025-10-24T13:52:09.398Z","avatar_url":"https://github.com/TechingCrewMatt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cordova-plugin-admob-techingcrew\nAdMob plugin for Cordova multi-platform apps. Exposes Banner Ads, Interstitial Ads, and Rewarded Videos. No revenue sharing. Truly free plugin for an open-source platform. Imagine that.\n\nThis plugin uses Gradle/Maven to pull the latest Google Play Services - Ads SDK. Tested on Samsung Galaxy S6 using Android 7.0 and project built using CLI 6.1.1 -iOS version is in development.\n\n1. Install the plugin:\n\n```\ncordova plugin add cordova-plugin-admob-techingcrew\n```\n\n2. Adjust the AdMob settings in JavaScript. The plugin comes pre-loaded with test credentials.\n\n```\nadmob.settings = {\n    overlapWebView: false,\n    bannerAutoShow: false,\n    bannerPosition: 'top', // or 'bottom'\n    bannerSize: 'SMART_BANNER', // see sizes at https://developers.google.com/admob/android/banner\n    bannerID: 'ca-app-pub-3940256099942544/6300978111',\n    interstitialID: 'ca-app-pub-3940256099942544/1033173712',\n    rewardID: 'ca-app-pub-3940256099942544/5224354917',\n    appID: 'ca-app-pub-3940256099942544~3347511713',\n    userID: 'xxx'\n};\n```\n\n3. Initialize MobileAds:\n\n```\nadmob.init(successCallback, errorCallback);\n```\n\n4. Build and show Banner Ads (Optional):\n\n```\nadmob.createBanner(successCallback, errorCallback);\n```\n   After the first time \"bannerLoaded\" is fired, you can show the Banner:\n```\nadmob.showBanner(successCallback, errorCallback);\n```\n\n5. Build and show Interstitial Ads (Optional):\n```\nadmob.createInterstitial(successCallback, errorCallback);\n```\n   You only need to call this function once. After \"interstitialLoaded\" is fired, you can show the ad. After the ad is closed, a new ad    will be requested automatically.\n```\nadmob.showInterstitial(successCallback, errorCallback);\n```\n\n6. Build and show Rewarded Videos (Optional):\n```\nadmob.createRewardedVideo(successCallback, errorCallback);\n```\nYou only need to call this function once. After \"rewardedLoaded\" is fired, you can show the video. After the video is closed, a new video will be requested automatically.\n```\nadmob.showRewardedVideo(successCallback, errorCallback);\n```\n\n\nThe following code can be used in a demo app to test the functionality:\n\n```\n\u003cscript\u003e\n    function setOptions() {\n        admob.settings = {\n            overlapWebView: false,\n            bannerAutoShow: false,\n            bannerPosition: 'top',\n            bannerSize: 'SMART_BANNER',\n            bannerID: 'ca-app-pub-3940256099942544/6300978111',\n            interstitialID: 'ca-app-pub-3940256099942544/1033173712',\n            rewardID: 'ca-app-pub-3940256099942544/5224354917',\n            appID: 'ca-app-pub-3940256099942544~3347511713',\n            userID: 'xxx'\n        };\n    }\n    \n    document.addEventListener('admobInit', function () { console.log('admobInit'); });\n    document.addEventListener('bannerLoaded', function () { console.log('bannerLoaded'); });\n    document.addEventListener('bannerFailedToLoad', function () { console.log('bannerFailedToLoad'); });\n    document.addEventListener('bannerOpened', function () { console.log('bannerOpened'); });\n    document.addEventListener('bannerLeftApplication', function () { console.log('bannerLeftApplication'); });\n    document.addEventListener('interstitialLoaded', function () { console.log('interstitialLoaded'); });\n    document.addEventListener('interstitialFailedToLoad', function () { console.log('interstitialFailedToLoad'); });\n    document.addEventListener('interstitialOpened', function () { console.log('interstitialOpened'); });\n    document.addEventListener('interstitialLeftApplication', function () { console.log('interstitialLeftApplication'); });\n    document.addEventListener('interstitialClosed', function () { console.log('interstitialClosed'); });\n    document.addEventListener('rewardEarned', function (event) { console.log('rewardEarned'); console.log(event); console.log('rewardType: ' + event.rewardType); console.log('rewardAmount: ' + event.rewardAmount); });\n    document.addEventListener('rewardedLeftApplication', function () { console.log('rewardedLeftApplication'); });\n    document.addEventListener('rewardedClosed', function () { console.log('rewardedClosed'); });\n    document.addEventListener('rewardedFailedToLoad', function () { console.log('rewardedFailedToLoad'); });\n    document.addEventListener('rewardedLoaded', function () { console.log('rewardedLoaded'); });\n    document.addEventListener('rewardedOpened', function () { console.log('rewardedOpened'); });\n    document.addEventListener('rewardedStarted', function () { console.log('rewardedStarted'); });\n\u003c/script\u003e\n\n\u003cbutton type=\"button\" onclick=\"setOptions(); admob.init(function (response) { console.log(response); }, function (error) { console.log('Init Error: ' + error);});\"\u003eInit\u003c/button\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbutton type=\"button\" onclick=\"admob.createBanner(function (response) { console.log('Create Banner Success:' + response); }, function (error) { console.log('Create Banner Error: ' + error);});\"\u003eCreate Banner\u003c/button\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbutton type=\"button\" onclick=\"admob.settings.overlapWebView = false; admob.settings.bannerPosition = 'top';admob.showBanner(function (response) {console.log('Show Top Success:' + response); }, function (error) { console.log('Show Top Error: ' + error);});\"\u003eShow Top Banner\u003c/button\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbutton type=\"button\" onclick=\"admob.settings.overlapWebView = true; admob.settings.bannerPosition = 'bottom'; admob.showBanner(function (response) {console.log('Show Bottom Overlap Success:' + response); }, function (error) { console.log('Show Bottom Overlap Error: ' + error);});\"\u003eShow Bottom Overlapping Banner\u003c/button\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbutton type=\"button\" onclick=\"admob.destroyBanner(function (response) { console.log('Destroy Banner Success:' + response); }, function (error) { console.log('Destroy Banner Error: ' + error);});\"\u003eDestroy Banner\u003c/button\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbutton type=\"button\" onclick=\"admob.createInterstitial(function (response) { console.log('Create Interstitial Success:' + response); }, function (error) { console.log('Create Interstitial Error: ' + error);});\"\u003eCreate Interstitial\u003c/button\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbutton type=\"button\" onclick=\"admob.showInterstitial(function (response) { console.log('Show Interstitial Success:' + response); }, function (error) { console.log('Show Interstitial Error: ' + error);});\"\u003eShow Interstitial\u003c/button\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbutton type=\"button\" onclick=\"admob.createRewardedVideo(function (response) { console.log('Create Rewarded Success:' + response); }, function (error) { console.log('Create Rewarded Error: ' + error);});\"\u003eCreate Rewarded Video\u003c/button\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003cbutton type=\"button\" onclick=\"admob.showRewardedVideo(function (response) { console.log('Show Rewarded Success:' + response); }, function (error) { console.log('Show Rewarded Error: ' + error);});\"\u003eShow Rewarded Video\u003c/button\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechingcrewmatt%2Fcordova-plugin-admob-techingcrew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechingcrewmatt%2Fcordova-plugin-admob-techingcrew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechingcrewmatt%2Fcordova-plugin-admob-techingcrew/lists"}