github.com
Open in
urlscan Pro
140.82.121.3
Public Scan
Submitted URL: http://adlic.rjfun.com/
Effective URL: https://github.com/floatinghotpot/cordova-admob-pro
Submission: On November 06 via manual from GR — Scanned from DE
Effective URL: https://github.com/floatinghotpot/cordova-admob-pro
Submission: On November 06 via manual from GR — Scanned from DE
Form analysis
3 forms found in the DOMGET
<form id="query-builder-test-form" action="" accept-charset="UTF-8" method="get">
<query-builder data-target="qbsearch-input.queryBuilder" id="query-builder-query-builder-test" data-filter-key=":" data-view-component="true" class="QueryBuilder search-query-builder" data-catalyst="">
<div class="FormControl FormControl--fullWidth">
<label id="query-builder-test-label" for="query-builder-test" class="FormControl-label sr-only"> Search </label>
<div class="QueryBuilder-StyledInput width-fit " data-target="query-builder.styledInput">
<span id="query-builder-test-leadingvisual-wrap" class="FormControl-input-leadingVisualWrap QueryBuilder-leadingVisualWrap">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search FormControl-input-leadingVisual">
<path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path>
</svg>
</span>
<div data-target="query-builder.styledInputContainer" class="QueryBuilder-StyledInputContainer">
<div aria-hidden="true" class="QueryBuilder-StyledInputContent" data-target="query-builder.styledInputContent"></div>
<div class="QueryBuilder-InputWrapper">
<div aria-hidden="true" class="QueryBuilder-Sizer" data-target="query-builder.sizer"><span></span></div>
<input id="query-builder-test" name="query-builder-test" value="" autocomplete="off" type="text" role="combobox" spellcheck="false" aria-expanded="false" aria-describedby="validation-82fcee4d-127a-4410-87d7-26b57dcbcf24"
data-target="query-builder.input" data-action="
input:query-builder#inputChange
blur:query-builder#inputBlur
keydown:query-builder#inputKeydown
focus:query-builder#inputFocus
" data-view-component="true" class="FormControl-input QueryBuilder-Input FormControl-medium" aria-controls="query-builder-test-results" aria-autocomplete="list" aria-haspopup="listbox">
</div>
</div>
<span class="sr-only" id="query-builder-test-clear">Clear</span>
<button role="button" id="query-builder-test-clear-button" aria-labelledby="query-builder-test-clear query-builder-test-label" data-target="query-builder.clearButton" data-action="
click:query-builder#clear
focus:query-builder#clearButtonFocus
blur:query-builder#clearButtonBlur
" variant="small" hidden="" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium mr-1 px-2 py-0 d-flex flex-items-center rounded-1 color-fg-muted"> <svg aria-hidden="true" height="16"
viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x-circle-fill Button-visual">
<path
d="M2.343 13.657A8 8 0 1 1 13.658 2.343 8 8 0 0 1 2.343 13.657ZM6.03 4.97a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042L6.94 8 4.97 9.97a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215L8 9.06l1.97 1.97a.749.749 0 0 0 1.275-.326.749.749 0 0 0-.215-.734L9.06 8l1.97-1.97a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L8 6.94Z">
</path>
</svg>
</button>
</div>
<template id="search-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search">
<path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path>
</svg>
</template>
<template id="code-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code">
<path
d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z">
</path>
</svg>
</template>
<template id="file-code-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-file-code">
<path
d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z">
</path>
</svg>
</template>
<template id="history-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-history">
<path
d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z">
</path>
</svg>
</template>
<template id="repo-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo">
<path
d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z">
</path>
</svg>
</template>
<template id="bookmark-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-bookmark">
<path
d="M3 2.75C3 1.784 3.784 1 4.75 1h6.5c.966 0 1.75.784 1.75 1.75v11.5a.75.75 0 0 1-1.227.579L8 11.722l-3.773 3.107A.751.751 0 0 1 3 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.91l3.023-2.489a.75.75 0 0 1 .954 0l3.023 2.49V2.75a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</template>
<template id="plus-circle-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-plus-circle">
<path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7.25-3.25v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5a.75.75 0 0 1 1.5 0Z"></path>
</svg>
</template>
<template id="circle-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-dot-fill">
<path d="M8 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"></path>
</svg>
</template>
<template id="trash-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-trash">
<path
d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z">
</path>
</svg>
</template>
<template id="team-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-people">
<path
d="M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z">
</path>
</svg>
</template>
<template id="project-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-project">
<path
d="M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25ZM11.75 3a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0v-7.5a.75.75 0 0 1 .75-.75Zm-8.25.75a.75.75 0 0 1 1.5 0v5.5a.75.75 0 0 1-1.5 0ZM8 3a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 3Z">
</path>
</svg>
</template>
<template id="pencil-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pencil">
<path
d="M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z">
</path>
</svg>
</template>
<div class="position-relative">
<ul role="listbox" class="ActionListWrap QueryBuilder-ListWrap" aria-label="Suggestions" data-action="
combobox-commit:query-builder#comboboxCommit
mousedown:query-builder#resultsMousedown
" data-target="query-builder.resultsList" data-persist-list="false" id="query-builder-test-results"></ul>
</div>
<div class="FormControl-inlineValidation" id="validation-82fcee4d-127a-4410-87d7-26b57dcbcf24" hidden="hidden">
<span class="FormControl-inlineValidation--visual">
<svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill">
<path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path>
</svg>
</span>
<span></span>
</div>
</div>
<div data-target="query-builder.screenReaderFeedback" aria-live="polite" aria-atomic="true" class="sr-only"></div>
</query-builder>
</form>
POST /search/feedback
<form id="code-search-feedback-form" data-turbo="false" action="/search/feedback" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token"
value="IrOI0oURRLx55j4nAFCmkwM7hnjvK6xXVqQAOXV+F0Kxl+YdzjdGUcIliOe58pSaT9MuI3/KCbkQP7JO70ECFA==">
<p>We read every piece of feedback, and take your input very seriously.</p>
<textarea name="feedback" class="form-control width-full mb-2" style="height: 120px" id="feedback"></textarea>
<input name="include_email" id="include_email" aria-label="Include my email address so I can be contacted" class="form-control mr-2" type="checkbox">
<label for="include_email" style="font-weight: normal">Include my email address so I can be contacted</label>
</form>
POST /search/custom_scopes
<form id="custom-scopes-dialog-form" data-turbo="false" action="/search/custom_scopes" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token"
value="9kal+pryqOGMvKW4VDYQn/1+8lVh/9ePbULKoLiRKW5yzLH+mArBLxUtqyrwu3b1ayGN1WYKNwbgzMJSAMMeJQ==">
<div data-target="custom-scopes.customScopesModalDialogFlash"></div>
<input type="hidden" id="custom_scope_id" name="custom_scope_id" data-target="custom-scopes.customScopesIdField">
<div class="form-group">
<label for="custom_scope_name">Name</label>
<auto-check src="/search/custom_scopes/check_name" required="">
<input type="text" name="custom_scope_name" id="custom_scope_name" data-target="custom-scopes.customScopesNameField" class="form-control" autocomplete="off" placeholder="github-ruby" required="" maxlength="50" spellcheck="false">
<input type="hidden" data-csrf="true" value="pb40WSd/1M4WrHiC1kxtPtj7Kq2Fx+TEKwIpwpWBzlFNXiOtNnttY3ZKzh1BRsOuhNtVFQ6eJ3xYLUGCclZI1A==">
</auto-check>
</div>
<div class="form-group">
<label for="custom_scope_query">Query</label>
<input type="text" name="custom_scope_query" id="custom_scope_query" data-target="custom-scopes.customScopesQueryField" class="form-control" autocomplete="off" placeholder="(repo:mona/a OR repo:mona/b) AND lang:python" required=""
maxlength="500">
</div>
<p class="text-small color-fg-muted"> To see all available qualifiers, see our <a class="Link--inTextBlock" href="https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax">documentation</a>. </p>
</form>
Text Content
Skip to content Toggle navigation Sign up * Product * Actions Automate any workflow * Packages Host and manage packages * Security Find and fix vulnerabilities * Codespaces Instant dev environments * Copilot Write better code with AI * Code review Manage code changes * Issues Plan and track work * Discussions Collaborate outside of code Explore * All features * Documentation * GitHub Skills * Blog * Solutions For * Enterprise * Teams * Startups * Education By Solution * CI/CD & Automation * DevOps * DevSecOps Resources * Learning Pathways * White papers, Ebooks, Webinars * Customer Stories * Partners * Open Source * GitHub Sponsors Fund open source developers * The ReadME Project GitHub community articles Repositories * Topics * Trending * Collections * Pricing Search or jump to... SEARCH CODE, REPOSITORIES, USERS, ISSUES, PULL REQUESTS... Search Clear Search syntax tips PROVIDE FEEDBACK We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback SAVED SEARCHES USE SAVED SEARCHES TO FILTER YOUR RESULTS MORE QUICKLY Name Query To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} floatinghotpot / cordova-admob-pro Public * Notifications * Fork 353 * Star 716 🔥 Cordova Plugin for Google AdMob, DFP, ADX. Easy monetization using mobile Ad, with single line of JavaScript. Compatible with Cordova CLI, Inoic, PhoneGap Build, etc. LICENSE MIT license 716 stars 353 forks Activity Star Notifications * Code * Pull requests 6 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Pull requests * Actions * Projects * Wiki * Security * Insights FLOATINGHOTPOT/CORDOVA-ADMOB-PRO This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags NAME ALREADY IN USE A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 5 branches 0 tags Go to file Code * Local * Codespaces * Clone HTTPS GitHub CLI Use Git or checkout with SVN using the web URL. Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP SIGN IN REQUIRED Please sign in to use Codespaces. LAUNCHING GITHUB DESKTOP If nothing happens, download GitHub Desktop and try again. LAUNCHING GITHUB DESKTOP If nothing happens, download GitHub Desktop and try again. LAUNCHING XCODE If nothing happens, download Xcode and try again. LAUNCHING VISUAL STUDIO CODE Your codespace will open once ready. There was a problem preparing your codespace, please try again. LATEST COMMIT Liming Xie bugfix and refactoring … cd984c9 Feb 12, 2022 bugfix and refactoring cd984c9 GIT STATS * 276 commits FILES Permalink Failed to load latest commit information. Type Name Latest commit message Commit time docs update README January 16, 2019 20:23 src bugfix and refactoring February 13, 2022 03:46 test upgrade admob ios sdk to v7.37.0 January 11, 2019 00:03 typescript Add support for large banner January 1, 2017 06:54 www bugfix November 15, 2017 00:59 .gitignore update README, add plugin-verify for demo June 4, 2015 18:45 LICENSE admob plugin totally re-written, tested on android and ios August 9, 2014 02:57 README.md upgrade to work with admob sdk for ios v8.13.0 January 3, 2022 20:34 package.json bugfix and refactoring February 13, 2022 01:13 plugin.xml bugfix and refactoring February 13, 2022 01:13 View code AdMob Plugin Pro Contents Description History Features Quick Demo Quick start Installation Usage AdMob Mediation Adapters API Use AdMobPro with Ionic Wiki and Docs Video Tutorial Screenshots Tips License Credits README.MD ADMOB PLUGIN PRO Cordova / PhoneGap Plugin for Google Ads, including AdMob / DFP (doubleclick for publisher) and mediations to other Ad networks. CONTENTS 1. Description 2. History 3. Features 4. Demo 5. Quick Start 6. Installation 7. Usage 8. API 9. Wiki and Docs 10. Important Tips & Warning 11. Video Tutorial 12. Screenshots 13. License 14. Credits DESCRIPTION This Cordova / PhoneGap plugin enables displaying mobile Ads with single line of javascript code. Designed for the use in HTML5-based cross-platform hybrid games and other applications. HISTORY Community-driven project. Designed and maintained by Raymond Xie since August 2014. It also features integration in AngularJS projects via [ngCordova] (http://www.ngcordova.com). It was published to Cordova registry with id "com.google.cordova.admob" since Aug 2014, and has been downloaded more than 120,000 times. Now it's the No. 1 monetization plugin for Cordova community. From May 2015, Cordova team announced the deprecation of Cordova registry, and suggest all plugins to be moved to npm repository. Now, the AdMob plugin is published to npm and renamed as "cordova-plugin-admobpro". FEATURES Platforms supported: * iOS, via SDK v8.13.0 (see Release Notes) * Android, via Android SDK (part of Google Play service, see Release Notes) Ad Types: * Banner * Interstitial (text, picture, video), highly recommended. 🔥 * Reward Video, highly recommended. 🔥 * Reward Interstitial (on roadmap) * Native Ads (not applicable to Cordova web apps) * Native Ads Advanced (not applicable to Cordova web apps) Mediation to other Ad networks: * AdMob (built-in) * DFP (DoubleClick for Publisher, built-in) * Meta Audience Network * Flurry * InMobi * Millennial Media * MobFox QUICK DEMO Wanna quickly see the mobile ad on your simulator or device? Try the following commands. # install cordova CLI [sudo] npm install cordova -g # install a small utility to run all the commands for you [sudo] npm install plugin-verify -g # Demo 1: run admob demo with sample index.html plugin-verify cordova-plugin-admobpro # Demo 2/3: run admob demo in game powered by PIXI/phaser HTML5 engine plugin-verify admob-demo-game-pixi ios --landscape plugin-verify admob-demo-game-phaser ios --landscape # Demo 4: run admob demo in app powered by ionic/angular framework plugin-verify admob-demo-app-ionic ios --portrait QUICK START # create a demo project cordova create test1 com.rjfun.test1 Test1 cd test1 cordova platform add android cordova platform add ios # now add the plugin, cordova CLI will handle dependency automatically cordova plugin add cordova-plugin-admobpro # now remove the default www content, copy the demo html file to www rm -r www/*; cp plugins/cordova-plugin-admobpro/test/* www/; # now build and run the demo in your device or emulator cordova prepare; cordova run android; cordova run ios; # or import into Xcode / eclipse INSTALLATION * If use with Cordova CLI: cordova plugin add cordova-plugin-admobpro cordova plugin add cordova-plugin-admobpro --save --variable PLAY_SERVICES_VERSION=20.4.0 --variable ADMOB_ANDROID_APP_ID="__your_admob_android_app_id___" --variable ADMOB_IOS_APP_ID="__your_admob_ios_app_id___" If use other tools or online build services, see: * Apache Cordova CLI, v7.0+ (How To ...) * Google Mobile Chrome App (How To ...) * Meteor (How To ...) * Ionic V1, Ionic V1 Demo * Ionic, Ionic Demo Notice: * If build locally using cordova-plugin-admobpro, to avoid build error, you need install some extras in Android SDK manager (type android sdk to launch it): USAGE Show Mobile Ad with single line of javascript code. Step 1: Create Ad Unit Id for your banner and interstitial, in AdMob portal, then write it in your javascript code. // select the right Ad Id according to platform var admobid = {}; if( /(android)/i.test(navigator.userAgent) ) { // for android & amazon-fireos admobid = { banner: 'ca-app-pub-xxx/xxx', // or DFP format "/6253334/dfp_example_ad" interstitial: 'ca-app-pub-xxx/yyy' }; } else { // for ios admobid = { banner: 'ca-app-pub-xxx/zzz', // or DFP format "/6253334/dfp_example_ad" interstitial: 'ca-app-pub-xxx/kkk' }; } Step 2: Want cheap and basic banner? single line of javascript code. // it will display smart banner at top center, using the default options if(AdMob) AdMob.createBanner({ adId: admobid.banner, position: AdMob.AD_POSITION.TOP_CENTER, autoShow: true }); Step 3: Want interstitial Ad to earn more money ? Easy, 2 lines of code. // preppare and load ad resource in background, e.g. at begining of game level if(AdMob) AdMob.prepareInterstitial( {adId:admobid.interstitial, autoShow:false} ); // show the interstitial later, e.g. at end of game level if(AdMob) AdMob.showInterstitial(); Or, you can just copy this admob_simple.js to your project, change the ad unit id to your own, and simply reference it in your index.html, like this: <script type="text/javascript" src="admob_simple.js"></script> Remember to remove isTesting:true if release for production. ADMOB MEDIATION ADAPTERS Optional mediations to increase your revenue (Read about AdMob Mediation Networks): cordova plugin add cordova-plugin-admob-facebook cordova plugin add cordova-plugin-admob-flurry cordova plugin add cordova-plugin-admob-unityads cordova plugin add cordova-plugin-admob-inmobi cordova plugin add cordova-plugin-admob-mmedia cordova plugin add cordova-plugin-admob-mobfox Notice: If you want to add multiple mediations, please balance flexibility and binary size. API Methods: // use banner createBanner(adId/options, success, fail); removeBanner(); showBanner(position); showBannerAtXY(x, y); hideBanner(); // use interstitial prepareInterstitial(adId/options, success, fail); showInterstitial(); isInterstitialReady(function(ready){ if(ready){ } }); // use reward video prepareRewardVideoAd(adId/options, success, fail); showRewardVideoAd(); // set values for configuration and targeting setOptions(options, success, fail); // get user ad settings getAdSettings(function(inf){ inf.adId; inf.adTrackingEnabled; }, fail); Events: // onAdLoaded // onAdFailLoad // onAdPresent // onAdDismiss // onAdLeaveApp document.addEventListener('onAdFailLoad', function(e){ // handle the event }); USE ADMOBPRO WITH IONIC Use with Capacitor: $ npm install cordova-plugin-admobpro $ npm install @awesome-cordova-plugins/admob-pro $ ionic cap sync Or, use with Cordova: $ ionic cordova plugin add cordova-plugin-admobpro $ npm install @awesome-cordova-plugins/admob-pro Code for Angular: import { AdMobPro } from '@awesome-cordova-plugins/admob-pro/ngx'; import { Platform } from '@ionic/angular'; constructor(private admob: AdMobPro, private platform: Platform ) { } ionViewDidLoad() { this.admob.onAdDismiss() .subscribe(() => { console.log('User dismissed ad'); }); } onClick() { let adId; if(this.platform.is('android')) { adId = 'YOUR_ADID_ANDROID'; } else if (this.platform.is('ios')) { adId = 'YOUR_ADID_IOS'; } this.admob.prepareInterstitial({adId: adId}) .then(() => { this.admob.showInterstitial(); }); } See more: https://ionicframework.com/docs/native/admob-pro WIKI AND DOCS Quick start, simply copy & paste: * Example Code * Complete Demo index.html API Reference: * API Overview * How to Use Banner * How to Use Interstitial * How to Handle Ad Events * Chinese/中文文档 Other Documentations: * ChangeLog * Known issues & solutions/workarounds * FAQ * Notice for Android Proguard Demo projects: * App demo for Ionic V1, by Jaive * App demo for Ionic, by Jaive * Game demo using phaser game engine * Game demo using PIXI game engine VIDEO TUTORIAL * Using Cordova CLI to Add AdMob Plugin: * Run AdMob Demo App on Android: More video by developers: * How to add Banner ads To Ionic apps with Admob Pro For android, by pointDeveloper * How To Add Banner Ads To Ionic 2 with AdMob Cordova Plugin, by pointDeveloper * How to add Interstitial Add on navigation for phonegap using JavaScript and AdMob Pro plugin, by pointDeveloper * Interesting Evolution of cordova-admob-pro (Gource Visualization), by Landon Wilkins SCREENSHOTS iPhone Banner iPhone Interstitial Android Banner Android Interstitial TIPS Some important tips, FYI. * Why Google AdMob is recommended ? Advertisement is main business and income source of Google, so clients are all around the world. Google is one of the most rialable partners for its high standard service. * High fill rate, nearly 100% all around world. * High quality Ad, bring high RPM. * Stable price, auto pay on time. Pay on every 20th next month. * Strongly recommend Interstitial, more than 10 times profit than banner Ad. Ad Format Banner Interstitial Click Rate < 1% 3-15% RPM (revenue per 1000 impression) US$ 0.5~4 US$ 10~50 * Using SMART_BANNER to auto-fit the screen width, avoid using BANNER or FULL_BANNER (unless you are using DFP) ⚠:Remember Google's slogan: "Don't be evil". Invalid usage violating Google rules, may cause your AdMob account suspended ! * AdMob publisher may NOT abuse or encourage abuse any Google products, including Google Play, YouTube or Blogger, incuding allow user downloading YouTube video, or embed YouTube video in your own apps. * Publishers may NOT click their own ads or use any means to inflate impressions and/or clicks artificially, including manual methods. Testing your own ads by clicking on them is not allowed. More details, please read AdMob & AdSense policies LICENSE You can use the plugin for free, or you can also pay to get a license. IMPORTANT!!! Before using the plugin, please read the following content and accept the agreement. THIS WILL AVOID POTENTIAL PROBLEM AND DISPUTE. There are 3 license options, fully up to you: 1. Free and Open Source, no support 2. Commercial, with email/skype support 3. Win-win partnership, with forum support If you hope to get a fully open source plugin (either need DIY, or hope to get full control on the code), use this open source one instead. Fork and pull request is welcome, but please mention it's derived source. Simply renaming then publishing to npm is forbidden. Open source project URL: https://github.com/floatinghotpot/cordova-plugin-admob If use in commercial project, please get a license, or, you have monetized more than $1000 using this plugin, you are also required to either get a commercial license ($20). As a commercial customer, you will be supported with high priority, via private email or even Skype chat. If you don't want to get a license as your apps may not earn too much, or you don't have a PayPal account to pay, here is a compromised option. You don't have to pay, we are also okay if just share 2 percent user traffic, so that we can cover our effort and focus on maintenance and online support. (We have maintained this project since Aug 2014, and closed more than 560 support issues) Please read the License Agreement for details. CREDITS This project is created and maintained by Raymond Xie. More Cordova/PhoneGap plugins by Raymond Xie, find them in plugin registry, or find them in npm. Project outsourcing and consulting service is also available. Please contact us if you have the business needs. ABOUT 🔥 Cordova Plugin for Google AdMob, DFP, ADX. Easy monetization using mobile Ad, with single line of JavaScript. Compatible with Cordova CLI, Inoic, PhoneGap Build, etc. TOPICS cordova ionic monetization phonegap cordova-plugin admob doubleclick google-admob admob-plugin RESOURCES Readme LICENSE MIT license Activity STARS 716 stars WATCHERS 90 watching FORKS 353 forks Report repository RELEASES No releases published PACKAGES 0 No packages published CONTRIBUTORS 10 * * * * * * * * * * LANGUAGES * Java 38.1% * Objective-C 37.0% * HTML 14.8% * JavaScript 10.1% FOOTER © 2023 GitHub, Inc. FOOTER NAVIGATION * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can’t perform that action at this time.