cordova-plugin-ads
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -28,3 +28,3 @@ # banner ads | ||
## Parameters: | ||
` - Google AdMob id for a banner ad ` | ||
` - Google AdMob id for a banner ad ` <br> | ||
can be `"test"` for test ads, and ad string (`"ca-app-pub-4029587076166791/6431168058"`), or an ad_id object: | ||
@@ -55,4 +55,4 @@ ``` | ||
``` | ||
common error names: | ||
LOAD_AD_ERROR may occur when an ad id is not reconized or not ready to show ads yet | ||
common error names: <br> | ||
- `LOAD_AD_ERROR` may occur when an ad id is not reconized or not ready to show ads yet | ||
@@ -59,0 +59,0 @@ ## Tips: |
@@ -29,3 +29,3 @@ # interstitial ads | ||
## Parameters: | ||
` - Google AdMob id for a interstitial ad ` | ||
` - Google AdMob id for a interstitial ad ` <br> | ||
can be `"test"` for test ads, and ad string (`"ca-app-pub-4029587076166791/6431168058"`), or an ad_id object: | ||
@@ -75,5 +75,5 @@ ``` | ||
``` | ||
common error names: | ||
LOAD_AD_ERROR may occur when an ad id is not reconized or not ready to show ads yet | ||
SHOW_AD_ERROR will occur when an ad is called to show before it is ready | ||
common error names: <BR> | ||
- `LOAD_AD_ERROR` may occur when an ad id is not reconized or not ready to show ads yet <BR> | ||
- `SHOW_AD_ERROR` will occur when an ad is called to show before it is ready <BR> | ||
@@ -80,0 +80,0 @@ # Example <a id="example"></a><br> |
# rewarded ads | ||
Rewarded video ads which are commonly displayed at break-points in an app, rewarding a user for a longer ad. | ||
Rewarded interstitial ads are currently better supported. | ||
Ask the user if they want to watch an ad to get a reward before calling the showRewarded methd. | ||
Rewarded video ads which are commonly displayed at break-points in an app, rewarding a user for a longer ad. <br> | ||
Rewarded interstitial ads are currently better supported. <br> | ||
Ask the user if they want to watch an ad to get a reward before calling the showRewarded method. <br> | ||
@@ -38,3 +38,3 @@ jump to: [rewarded](#rewarded) | [showRewarded](#show-rewarded) | [Example](#example) | ||
## Parameters: | ||
` - Google AdMob id for a rewarded ad ` | ||
` - Google AdMob id for a rewarded ad ` <br> | ||
can be `"test"` for test ads, and ad string (`"ca-app-pub-4029587076166791/6431168058"`), or an ad_id object: | ||
@@ -95,5 +95,5 @@ ``` | ||
``` | ||
common error names: | ||
LOAD_AD_ERROR may occur when an ad id is not reconized or not ready to show ads yet | ||
SHOW_AD_ERROR will occur when an ad is called to show before it is ready | ||
common error names: <br> | ||
- `LOAD_AD_ERROR` may occur when an ad id is not reconized or not ready to show ads yet <br> | ||
- `SHOW_AD_ERROR` will occur when an ad is called to show before it is ready | ||
@@ -100,0 +100,0 @@ # Example <a id="example"></a><br> |
# rewarded interstitial ads | ||
Rewarded full screen ads which are commonly displayed at break-points in an app, rewarding a user for a longer ad. | ||
Rewarded full screen ads which are commonly displayed at break-points in an app, rewarding a user for a longer ad. <br> | ||
Ask the user if they want to watch an ad to get a reward before calling the showRewardedInterstitial method. | ||
@@ -34,3 +34,3 @@ | ||
## Parameters: | ||
` - Google AdMob id for a rewarded interstitial ad ` | ||
` - Google AdMob id for a rewarded interstitial ad ` <br> | ||
can be `"test"` for test ads, and ad string (`"ca-app-pub-4029587076166791/6431168058"`), or an ad_id object: | ||
@@ -91,5 +91,5 @@ ``` | ||
``` | ||
common error names: | ||
LOAD_AD_ERROR may occur when an ad id is not reconized or not ready to show ads yet | ||
SHOW_AD_ERROR will occur when an ad is called to show before it is ready | ||
common error names: <br> | ||
- `LOAD_AD_ERROR` may occur when an ad id is not reconized or not ready to show ads yet | ||
- `SHOW_AD_ERROR` will occur when an ad is called to show before it is ready | ||
@@ -96,0 +96,0 @@ # Example <a id="example"></a><br> |
{ | ||
"name": "cordova-plugin-ads", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "CozyCode", |
@@ -10,2 +10,3 @@ # Cordova-Plugin-Ads | ||
</p> | ||
To include ads without any tracking, see: [cordova-plugin-ads-donottrack](https://github.com/cozycodegh/cordova-plugin-ads-donottrack) | ||
@@ -22,21 +23,23 @@ | ||
Add these calls inside of your cordova JavaScript to show ads: | ||
banner ads | ||
Add these calls inside of your cordova JavaScript to show ads: <br> | ||
<ins>banner ads</ins> <br> | ||
[`adMob.banner(bannerId)`](docs/banner.md) <br> | ||
[`adMob.removeBanner()`](docs/banner.md#remove-banner) <br> | ||
full screen ads | ||
<ins>full screen ads </ins><br> | ||
[`adMob.interstitial(interstitialId)`](docs/interstitial.md) <br> | ||
[`adMob.showInterstitial()`](docs/interstitial.md#show-interstitial) <br> | ||
rewarded video ads | ||
<ins>rewarded video ads </ins><br> | ||
[`adMob.rewarded(rewardedId)`](docs/rewarded.md) <br> | ||
[`adMob.showRewarded()`](docs/rewarded.md#show-rewarded) <br> | ||
rewarded full screen video ads (new, and better supported than rewarded ads) | ||
[`adMob.rewardedInterstitial(rewardedInterstitialId)`](docs/rewarded-interstitial.md) <br> | ||
[`adMob.showRewardedInterstitial()`](docs/rewarded-interstitial.md#show-rewarded-interstitial) <br> | ||
<ins>rewarded full screen video ads</ins> (new, and better supported than rewarded ads) <br> | ||
[`adMob.rewardedInterstitial(rewardedInterstitialId)`](docs/rewardedInterstitial.md) <br> | ||
[`adMob.showRewardedInterstitial()`](docs/rewardedInterstitial.md#show-rewarded-interstitial) <br> | ||
The plugin creates an `adMob` object that can request to load new ads. <br> | ||
Note: to fund the development of the plugin, the plugin requests 2% of ads for the plugin developer. <br> | ||
[see more on using the plugin](docs/pluginAPI.md) | ||
# CREATE AN APP WITH CORDOVA<a id="create-app"></a><br> | ||
@@ -62,3 +65,3 @@ | ||
2. Test that ads are working using test banners, use the id "test" to load test banners from the plugin | ||
2. Test that ads are working using test ads. Use the id `"test"` to load test ads from the plugin. | ||
``` | ||
@@ -158,3 +161,3 @@ var test_ad_id = "test"; | ||
##More on the plugin: <a id="more-plugin"></a><br> | ||
## More on the plugin: <a id="more-plugin"></a><br> | ||
- wait for `deviceready` to fire before calling any functions <br> | ||
@@ -161,0 +164,0 @@ - errors can be automatically retried after a timeout or ignored <br> |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1315727
182
0