How do I make admobs work on cordova

Get help using Construct 2

Post » Tue Oct 25, 2016 8:57 pm

cordova-plugin-ad-admob is works me fine on android but not on iOS
B
20
S
10
G
10
Posts: 143
Reputation: 7,096

Post » Wed Oct 26, 2016 3:00 am

1) Load the project into Intel XDK
2) Add a third party plugin manually: cordova-plugin-ad-admob
3) Build the application
4) Download the zip file
5) Extract the zip file
6) Copy the one that says armv7 to your android device via a USB cable
7) Find that file on your android device using a file manager
8) Tap on that file
9) Go through the prompts to allow installing from unknown sources
10) Click on install
11) Goto the apps area and click on your app
12) Proceed to test the ad functionality of your application

Fun Facts:
NO, there is no other way to test ads. You must redo this process EACH and EVERY time you want to try new code for ads (That I am aware of*)
IF, you don't have test mode on and start viewing your own ads, you'll lose your account because you are commiting fraud
YES, it sucks having to do this process. Welcome to the world of programming and app development. Doing the same thing over and over and over again
B
13
S
7
G
1
Posts: 31
Reputation: 1,866

Post » Thu Oct 27, 2016 3:29 pm

3) Build the application => Build Failed if I use cordova-plugin-ad-admob by iOS
B
20
S
10
G
10
Posts: 143
Reputation: 7,096

Post » Thu Oct 27, 2016 3:40 pm

** BUILD FAILED **

The following build commands failed:
CompileC build/FAT\ BEE.build/Release-iphoneos/FAT\ BEE.build/Objects-normal/armv7/AdMobPlugin.o FAT\ BEE/Plugins/cordova-plugin-ad-admob/AdMobPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,.../cordova_project/platforms/ios/cordova/build-release.xcconfig,-project,FAT BEE.xcodeproj,ARCHS=armv7 arm64,-target,FAT BEE,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=.../cordova_project/platforms/ios/build/device,SHARED_PRECOMPS_DIR=.../cordova_project/platforms/ios/build/sharedpch
B
20
S
10
G
10
Posts: 143
Reputation: 7,096

Previous

Return to How do I....?

Who is online

Users browsing this forum: Kermad, lukewasthefish, marc254, tarek2 and 15 guests