Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osfunapps/os-firebase-ads-creator-npm
an automated script aiming to register new android/ios ad units to AdMob
https://github.com/osfunapps/os-firebase-ads-creator-npm
admob ads android automation ios
Last synced: 27 days ago
JSON representation
an automated script aiming to register new android/ios ad units to AdMob
- Host: GitHub
- URL: https://github.com/osfunapps/os-firebase-ads-creator-npm
- Owner: osfunapps
- Created: 2019-07-10T13:03:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T04:18:20.000Z (almost 2 years ago)
- Last Synced: 2024-11-15T21:57:22.894Z (about 1 month ago)
- Topics: admob, ads, android, automation, ios
- Language: JavaScript
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Introduction
------------This module aim to automate new ad units registration in Google's AdMob.
## Installation
Install via npm:
npm i os-firebase-ads-creator
## Usage
Require ac:
```js
var ac = require("os-firebase-ads-creator")
```
Create ad units:```js
adsList.push(ac.buildBannerAdUnit('cool banner'));
adsList.push(ac.buildInterstitialAdUnit('cool interstitial'));
adsList.push(ac.buildNativeAdvancedAdUnit('cool native advanced'))
adsList.push(ac.buildRewardAdUnit('cool reward', 'Dragon Sword', 1))
```** see the build signatures for each ad unit for more build arguments
If your app isn't registered yet to AdMob:
```js
ac.registerNewAppWithAdUnits('Your New App Name', 'ios', adsList, '/xml/output/path/');
```If your app already registered:
```js
ac.addAdUnitsToExistingApp('your exiting app's admob id', adsList, '/xml/output/path/');
```You can also save the output:t
```xml
ca-app-pub-8903917656945904~8745491231
ca-app-pub-8903917656945904/3116979782
ca-app-pub-8903917656945904/1229183040
ca-app-pub-8903917656945904/5551571435
ca-app-pub-8903917656945904/6289938033
```
## Additional notes
This is an automated module which uses [os-puppeteer-helper](https://github.com/osfunapps/os-puppeteer-helper-npm) to
automate the ads registration.If you all about automation,
checkout [os-firebase-project-creator](https://github.com/osfunapps/os-firebase-project-creator-npm) to automate firebase
project creation.## Links
[npm os-puppeteer-helper](https://github.com/osfunapps/os-puppeteer-helper-npm)
## Licence
ISC