Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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