Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Dec 28, 2018 · 6 comments

Comments

@designskiller
Copy link

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

@designskiller designskiller changed the title Showing error "This SDk does not support for new facebook App" Showing error "This SDk does not support for new facebook App" SDK 4.99.1 Dec 28, 2018
@designskiller designskiller changed the title Showing error "This SDk does not support for new facebook App" SDK 4.99.1 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 Dec 28, 2018
@vietnux
Copy link

vietnux commented Mar 8, 2019

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

@ugirishm
Copy link

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
Copy link

@vietnux
Copy link

vietnux commented Jul 25, 2019

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

Can you to fix for nativead?

@ugirishm
Copy link

ugirishm commented Jul 25, 2019 via email

@vickytak
Copy link

@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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants