cordova-plugin-facebookads icon indicating copy to clipboard operation
cordova-plugin-facebookads copied to clipboard

Getting error 2000 on ios

Open choppermio opened this issue 8 years ago • 16 comments
trafficstars

i tried to follow these steps and i'm getting error 2000 i created my app and i added the plugin like this cordova plugin add cordova-plugin-facebookads and it did not work so i browsed the issues section and i tried to add it like this cordova plugin add [email protected] and it did not work too i tried your example https://github.com/floatinghotpot/cordova-plugin-facebookads/blob/master/test/index.html and i changed the keys with my keys and did not work

choppermio avatar Sep 15 '17 06:09 choppermio

Please paste more error message details.

BTW, if I remember correctly, to get live ad, you may need get facebook approved your app id.

floatinghotpot avatar Sep 15 '17 07:09 floatinghotpot

And, can you see test Ad when use option isTesting:true? If yes, the plugin and SDK APIs are working fine, the error is caused by the ad unit placement id or other reason.

floatinghotpot avatar Sep 15 '17 07:09 floatinghotpot

yes testing isTesting:true and i can't see the ad not the banner not the interstitial not the native all of them give me the 2000 error

choppermio avatar Sep 15 '17 07:09 choppermio

just this is the error i see the code is working with android but the ios is not working facebookAds, onAdFailLoad, {'adNetwork':'FacebookAds','adType':'banner','adEvent':'onAdFailLoad','error':2000,'reason':'Server Error'} 2017-09-15 00:52:04.156 myApp[947:18590] FacebookAds, onAdFailLoad, {'adNetwork':'FacebookAds','adType':'interstitial','adEvent':'onAdFailLoad','error':2000,'reason':'Server Error'} 2017-09-15 00:52:37.657 myApp[947:18590] FacebookAds, onAdFailLoad, {'adNetwork':'FacebookAds','adType':'banner','adEvent':'onAdFailLoad','error':2000,'reason':'Server Error'} 2017-09-15 00:53:11.503 myApp[947:18590] FacebookAds, onAdFailLoad, {'adNetwork':'FacebookAds','adType':'banner','adEvent':'onAdFailLoad','error':2000,'reason':'Server Error'} 2017-09-15 00:53:46.013 myApp[947:18590] FacebookAds, onAdFailLoad, {'adNetwork':'FacebookAds','adType':'banner','adEvent':'onAdFailLoad','error':2000,'reason':'Server Error'}

choppermio avatar Sep 15 '17 07:09 choppermio

The "2000 server error" message seems be caused by out-dated SDK version. Please make sure you are using the latest version of plugin, v4.23.2. If the error persists, I will find time to check whether Facebook has released newer SDK.

floatinghotpot avatar Sep 15 '17 10:09 floatinghotpot

i used the plugin sdk 4.23.2 and for me the same problem error 2000 i don't know what is the problem the sdk version is now v4.26.0 https://developers.facebook.com/docs/ios

choppermio avatar Sep 15 '17 10:09 choppermio

Yes, I can reproduce your issue now, we may need update the plugin to latest SDK.

floatinghotpot avatar Sep 16 '17 00:09 floatinghotpot

The facebook SDK dependency has been updated to v4.26.0.

Please update the plugin like this:

cordova plugin rm cordova-plugin-facebookads
cordvoa plugin rm cordova-facebook-audnet-sdk

cordova plugin add cordova-plugin-facebookads

floatinghotpot avatar Sep 16 '17 01:09 floatinghotpot

You can also try this plugin with another id, [email protected], which depends on Facebook SDK repo directly, but you need install gradle and cocoapods first.

floatinghotpot avatar Sep 16 '17 01:09 floatinghotpot

i tired the plugin cordova plugin add cordova-plugin-facebookads when i try to run the app in xcode this error happen Apple Mach-O Linker Error Group

choppermio avatar Sep 16 '17 11:09 choppermio

See my workaround in issue #78 //Big

BigFoppa avatar Sep 20 '17 10:09 BigFoppa

Fixed, see: #78, and big thanks to @BigFoppa for the research and detailed description.

Please notice: Even after plugin fixed,

  • When I test the demo app on emulator, I always get "2000, Server Error".
  • But run same demo app on iPhone device, it just works without any problem.

floatinghotpot avatar Sep 20 '17 17:09 floatinghotpot

thank you it works now but it has some problems

when isTesting is true it gives you the 2000 error i got my device id(deviceHash) from xcode>window>devices and simulator and there is identifier in the device info

the second problem the native ad is not working the banner is working and interstitial is working when the isTesting:false but the native is not working

choppermio avatar Sep 21 '17 11:09 choppermio

Ok, so I still have the issue on iOS. The versions of cordova-facebook-audnet-sdk and cordova-plugin-facebookads are the latest, but I keep receiving the same "Server Error", how can a trouble shot this? @floatinghotpot

chrishenx avatar Sep 30 '17 02:09 chrishenx

Are you still getting this 2000 error? I'm not able to make it work with isTesting : true (I've a 1001 no fill error). When I'm not testing, i've got the 2000 error directly.

juxfr avatar Nov 29 '17 11:11 juxfr

Same error 2000 on iOS for ios 11.0 with cordova-facebook-audnet-sdk 4.26.2 "Facebook AudienceNetwork SDK for Cordova" cordova-plugin-extension 1.5.4 "Cordova Plugin Extension" cordova-plugin-facebookads 4.23.2 "FacebookAds"

Any Help?

lucaele avatar Jan 22 '18 23:01 lucaele