floatinghotpot / cordova-plugin-facebookads

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

Showing error "This SDk does not support for new facebook App" SDK 4.99.1 But I did mange To load add but not image #114

Open designskiller opened 5 years ago

designskiller commented 5 years ago

Hi,

I have used your Plugin for my Ionic project before and It was working fine. But when am using this plugin for my new ionic project it is saying "this SDK does not support for new Facebook App". So I changed your plugin code according to new SDK which is 4.99.1 which I am using. And native Ad is loaded but I don't know how to use cover image and Icon through JSON which is using in earlier SDK.

I new SDK image.getUrl() function is removed and I think they are sending the whole image in Object and I don't have knowledge of JAVA code so I don't understand how to use image and Icon. I have added gist of change code of plugin Please have a look and tell me any suggestion how do I implement the image and icon.

https://gist.github.com/designskiller/f3a6ba07b830ca3f8da1435b37ae2cca

vietnux commented 5 years ago

method image.getUrl() is remove in SDK 4.99+ i also to has a problem :|

ugirishm commented 5 years ago

As I am only using banner ad, I found a work around. The above errors are relating to Native ads code and I commented all those imports and functions. Now it builds with the latest facebook sdk.

Also if you are showing banner with over lap, the getWidth() and getHeight() methods of adView are returning zero and hence the ads wont show up. I modified the code to getWidth() and getHeigh() methods of adSize and it works fine.

merbin2012 commented 5 years ago

Try this https://github.com/merbin2012/cordova-plugin-codeplay-facebookads-free

vietnux commented 5 years ago

Try this https://github.com/merbin2012/cordova-plugin-codeplay-facebookads-free

Can you to fix for nativead?

ugirishm commented 5 years ago

Can be fixed but not for free! On Thursday, July 25, 2019, 01:27:10 PM GMT+5:30, vietnux notifications@github.com wrote:

Try this https://github.com/merbin2012/cordova-plugin-codeplay-facebookads-free

Can you to fix for nativead?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

vickytak commented 4 years ago

@designskiller , you mentioned you managed to load nativeadd with sdk 4.99.1, can you tell me what changes you done for that, I am struggling to get it working from last 2 days. Need your help!!