floatinghotpot / cordova-plugin-facebookads

Cordova/PhoneGap plugin for Facebook Audience Network Ads
64 stars 71 forks source link

Error code - 1012 #104

Open t-roymyers opened 5 years ago

t-roymyers commented 5 years ago

I keep seeing an error code of 1012 with a reason of none when trying to display any type of live ad. I can't figure out how to get the device hash on Ionic so I'm not sure how to run test ads. I looked into the Facebook documentation and 1012 isn't even listed.

THE-KIPDEV commented 5 years ago

Hello, do you find the solution, i have same problem ?

Keis828 commented 5 years ago

Same here. I also saw error code 1002 "Ad Load Too Frequently" in my case. But I never display ads in my app.

hodaifa82 commented 5 years ago

same here did you solve this @keis828

Keis828 commented 5 years ago

@hodaifa82 not yet... I also message to facebook, but no response.

SachinGanesh commented 5 years ago

Did any one solve this issue? Im also getting error code 1012

eralpkaraduman commented 5 years ago

Did any one solve this issue? Im also getting error code 1012

I did, In my case issue was AudienceNetwork SDK used by this cordova plugin was too old. This error code was not documented at the time i was trying to tackle this issue. I figured that, at the business.facebook.com's monetization dashboard, there was a note on top saying that my sdk was old and i needed to update.

I ended up making a custom native plugin for myself with the latest sdk, didn't use this plugin at all.

I hope this would give you some ideas to solve it. I didn't attempt to do it but, probably updating the sdk in this plugin would also solve the issue.

SachinGanesh commented 5 years ago

Did any one solve this issue? Im also getting error code 1012

I did, In my case issue was AudienceNetwork SDK used by this cordova plugin was too old. This error code was not documented at the time i was trying to tackle this issue. I figured that, at the business.facebook.com's monetization dashboard, there was a note on top saying that my sdk was old and i needed to update.

I ended up making a custom native plugin for myself with the latest sdk, didn't use this plugin at all.

I hope this would give you some ideas to solve it. I didn't attempt to do it but, probably updating the sdk in this plugin would also solve the issue.

Thanks for the reply! I did update the Facebook Audience Network SDK to the latest version. Now I'm getting error 1013. We will be grateful if you can share your solution with us!

eralpkaraduman commented 5 years ago

Haven’t got 1013 Myself, I’d suspect something else then.

I can suggest checking the ad request debugger on fb monetization dashboard. Also make sure you are trying on a real device and facebook app is installed and signed in by your account, this is a way for them to mark you as a test account i think?

Instructions are here; https://developers.facebook.com/docs/audience-network/testing/

Go to Monetization Manager Click Manage property Click on Property Settings > Request Debugger on the top right Click on Start to monitor the requests from your app or website.

Unfortunately my plugin is done in objc for very specific purpose and even placement ids are hardcoded also does other stuff then ads, doesn’t support android also which i didn’t need to. So It’s in no shape to be shared :) If I’d find free time to clear it out, i can share it then.

But to put you into same direction, i created a very basic boilerplate cordova extension then just integrated fb an sdk as if it was a native app to that.

blukis commented 5 years ago

Thanks for the reply! I did update the Facebook Audience Network SDK to the latest version. Now I'm getting error 1013. We will be grateful if you can share your solution with us!

@SachinGanesh I was also getting 1013 on iOS device, while trying to get this plugin working. I had this block temporarily included... FacebookAds.setOptions({ isTesting: true, deviceHash: 'xxxxxxxxx' /*(was replaced with my own, apparently(?))*/ });

When I removed this block, the 1013 went away, as did the onAdFailLoad event fire, and ad started appearing. (I still don't know what 1013 means, and it's frustrating it's not documented. But maybe this is a clue.)

priyasamyal commented 4 years ago

Did you find any fix for 1013 error code