ludei / atomic-plugins-ads Goto Github PK
View Code? Open in Web Editor NEWAtomic Plugins for Ads
Home Page: http://atomic-plugins.com/
License: Mozilla Public License 2.0
Atomic Plugins for Ads
Home Page: http://atomic-plugins.com/
License: Mozilla Public License 2.0
Is there a way we can show multiple ads per screen?
Example: So there is facebook like newsfeed, we show an advert at the top and then user scrolls down and we show another advert. Ads are far apart this way so only 1 ad is viewable at a time.
Using the Cocoon.Ad.releaseBanner
method generates an undefined variable
error.
// Currently is
delete this.activeAds[id];
//Should be
delete this.activeAds[banner.id];
Hi,
I build my app with cordova 8.1.2, add platforms [email protected], add cocoon ads android admob plugin v 2.0.1, and, build success but run and only show black screen.
I made my apk with construct2 r265
why it happen?
Hi. Apparently, this plugin is causing Cordova apps not to compile successfully. This is the error message I keep getting, similar to Cranberrygame's equivalent plugin:
COMPILER ERROR:
/workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.
Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
Required by:
project :
CORDOVA LOG:
/workspace/plugins/cordova-plugin-filepath/CHANGELOG.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/LICENSE.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/package.json
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/plugin.xml
skipping existing file: FilePath.java
skipping existing file: FilePath.js
�[36m20181121T135342 [DEBUG] AndroidBuilder -�[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
�[36m20181121T135344 [DEBUG] AndroidBuilder -�[39m [build] create certs folder
�[36m20181121T135344 [DEBUG] AndroidBuilder -�[39m [build] keystore
�[36m20181121T135344 [DEBUG] AndroidBuilder -�[39m [build] create build.json
�[36m20181121T135344 [DEBUG] AndroidBuilder -�[39m [build] call cordova
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/README.md
skipping existing file: architecture.gradle
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/README.md
cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/plugin.xml
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/CHANGELOG.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/CHANGELOG.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/LICENSE.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/CHANGELOG.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/LICENSE.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/CHANGELOG.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/LICENSE.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/package.json
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/CHANGELOG.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/LICENSE.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/package.json
cp: dest file already exists: /workspace/plugins/cordova-plugin-filepath/plugin.xml
skipping existing file: FilePath.java
skipping existing file: FilePath.js
ANDROID_HOME=/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_2r6c57ziz211y74otld4kkop.run(/workspace/platforms/android/build.gradle:139)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
Download https://repo1.maven.org/maven2/com/facebook/android/facebook-android-sdk/4.14.1/facebook-android-sdk-4.14.1.pom
Download https://repo1.maven.org/maven2/com/parse/bolts/bolts-android/1.4.0/bolts-android-1.4.0.pom
Download https://repo1.maven.org/maven2/com/parse/bolts/bolts-tasks/1.4.0/bolts-tasks-1.4.0.pom
Download https://repo1.maven.org/maven2/com/parse/bolts/bolts-applinks/1.4.0/bolts-applinks-1.4.0.pom
FAILURE: Build failed with an exception.
Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.
Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
Required by:
project :
BUILD FAILED
Total time: 2.849 secs
�[91m20181121T135351 [ERROR] AndroidBuilder -�[39m { Error: /workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.
Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
Required by:
project :
Hi
I've been spending the past day tinkering with this module. Overall looks good. However, I have been device testing and with my Interstitial which is as follows.
I have a feeling it has to do with this issue.
<a href="http://www.example.com/">Test link</a>
Causes PhoneGap to die when clicking the Hyperlink. To note this is on iOS 7.1 and Phonegap Build. Version details are cli-5.2.0 (iOS 3.9.1 / Android 4.1.1 ).
Any help would be appreciated. Thanks!
I can´t build the proyect with the plugin, it´s throw me this error:
(https://cloud.githubusercontent.com/assets/7965895/13237280/a1a9bef4-d9a9-11e5-876f-686a1512e7a2.jpg)
This is the sample code from cocoon_ads.js
/**
* Triggered when an video reward is completed.
* @memberOf Cocoon.Ad.Interstitial
* @event On reward
* @example
* interstitial.on("reward", function(reward, error){
* if (reward && reward.amount > 0) {
* console.log("Reward completed. Earned " + reward.amount + " items");
* }
* });
*/
On Android the error parameter is empty when the video has been fully watched, or it's a string when user canceled the video. This way we can check in code whether we should reward the user or not. And that is awesome.
The problem is that the same code on iOS works differently. The error parameter is empty no matter if the video was canceled or not. This means it's not possible to check whether we should reward a user or not.
Could you please take a look at the iOS code? It looks like some small issue... a typo possibly?
BTW: The reward parameter (tested on Android) is not an object and does not have the .amount member. It's simply a string so it is no use here.
Thanks
I'm using PGB platform.
When I compile my App using cocoon-plugin-ads-android-admob and google-analytics-plugin the below error occurs.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode;
Seems like the cocoon-plugin-ads-android-admob plugin.xml has use a old version of google services.
Do you can update the plugin to works with lastest version of google services?
Apple says,
Your app uses or references the following non-public APIs:
itemKey
The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.
Next Steps
Please revise your app to remove any non-public APIs. If you have defined methods in your source code with the same names as the above-mentioned APIs, we suggest altering your method names so that they no longer collide with Apple's private APIs to avoid your application being flagged in future submissions.
For a example, it' in the LDAdServiceChartboost.h.
@Property (nonatomic, strong) NSString *itemKey;
One thing is strange that I use this API in my oldest version APPs, but threre're no rejects with this issue.
I told Apple wondering why.
Apple replies,
We have begun asking that all developers update their apps to remove private API’s.
We appreciate your cooperation with these matters.
need to be upgrade to new mobile ads sdk to implement adaptive banner
Hello,
I'm currently trying to integrate mopub (android, ios) to my cordova game. I'm trying the code examples from the readme, unchanged (except ids). But for some reason the plugins are just not working. And the weirdest part is that there is no errors neither in javascript console nor emulator console. Is this a bug or am i doing something completely wrong?
tested on various Android devices - banner.height is always larger than the actual height of the banner.
Sometimes it appears to be twice as much, on other devices a little less
i was trying to use this plugin with (CORDOVA without cocoon) as Cocoon is based on Cordova and if this is working in cocoon than it should work on cordova also, but when i tried it failed with error something like
"cocoon not defined"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.