question

OSAMAJUTT-4299 avatar image
0 Votes"
OSAMAJUTT-4299 asked Eduardoqc-8831 commented

Request to update Xamarin.Facebook.AudienceNetwork.Android Nuget !

Hello dear, Please update Xamarin.Facebook.AudienceNetwork.Android nuget package to V 6.2 as the latest Audience Network SDK provided by Facebook is of V 6.2. The current nuget package listed on Nuget.org is of V 5.10.1 . Facebook continuously asking me to update the sdk as OLD sdk is affecting my Ads experience and revenue. I shall be very thankful to you if you resolve this issue as soon as possible .

Note: Also some APIs have been removed and alternatives are provided as shown in change log .
I have also tried to bind AAR file with successful results but the old api ad.setAdListener(AdListener listener) is deprecated and causing me issues in Xamarin.Forms project.

dotnet-xamarin
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@OSAMAJUTT-4299 If you have any feature request about Xamarin.Facebook.AudienceNetwork.Android nuget package,You can open an issue or feature request in the thread:https://github.com/xamarin/FacebookComponents/issues

0 Votes 0 ·

I have already opened the issue on github on 1st of October, but zero reply. Then again on 12th October, i opened issue but result is zero. Another person opened issue on 25 September but result is zero ........ When the condition is this, then what we can do ???????

My Opened Issue : https://github.com/xamarin/FacebookComponents/issues/185

0 Votes 0 ·

@OSAMAJUTT-4299 checked facebook audience changelog, as you have already noticed that there are alternative APIs available to deprecated ones, for ad.setAdListener it provides ad.loadAd(ad.buildLoadAdConfig().withAdListener(listener).build()) as an alternative api, you can try this first as a workaround for now.

Also, may I know what does it mean by "I have also tried to bind AAR file with successful results", do you mean you successfully binded facebook AudienceNetwork library? If so, I think it should be good to go, you can also share what's preventing you from using the binding library.

Last but not least, we've send the feedback to our developers, will update you here once we get any news.


0 Votes 0 ·

I am attaching the error image so you can easily understand it

43964-66256.jpg


0 Votes 0 ·
66256.jpg (140.0 KiB)

Not sure if the change log is 100% right, it's always better to refer to sdk document


0 Votes 0 ·
OSAMAJUTT-4299 avatar image
0 Votes"
OSAMAJUTT-4299 answered

Yes i have binded library successfully without any issue. The main issue i am know facing is that the old api (SetAdListner) is present in old sdk but in latest sdk it is deprecated and removed completely. Know i 'm stuck it that point "How to use new provided api alternative to SetAdListner". Also searched a lot over the internet but did not find any solution related specifically to C#(Xamarin.Forms) . In alternative api provided when using in Xamarin.Forms, the piece of code .withAdListner is not present and preventing me to successfully create ad listener to show Ad . In Next comment i'm sharing a piece of code so that you can easily understand .

Again answering your question : Yes i have successfully bind the facebook audience netwrok library without any isuue as in past i binded V 5.10.1 sdk myself. After few days it is updated to 5.10.1 Officially.

Now the situation is same on V 6.2 as was on 5.10.1 .................................

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

OSAMAJUTT-4299 avatar image
0 Votes"
OSAMAJUTT-4299 answered NicoleLu-9366 edited

Using Xamarin.Facebook.Ads

public class FacebookInterstitialAds : IFacebookInterstitialAds
{
private InterstitialAd interstitialAd;

     public void ShowAd()
     {
         interstitialAd = new InterstitialAd(Android.App.Application.Context, "603441207042820_603460923707515"); //Ads Unit ID
         interstitialAd.LoadAd();
         interstitialAd.SetAdListener(new InterstitialAdListener(interstitialAd));  
     }
 }

In above code the line with .SetAdListner is causing issues as .SetAdListner is removed completely in V 6.2 SDK.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

hi @OSAMAJUTT-4299 the Xamarin binding just lets the Xamarin app call the API provided by Facebook, and upper-cases them to switch from Java to C# naming conventions, nothing else. In this case it should be similar to:

 ad.LoadAd(ad.BuildLoadAdConfig().WithAdListener(listenser).Build());

Also, we've notified the repo maintainers about the request, but we don't have an estimate for when it will be updated, and also this is an open source repo and you are encouraged to submit a pull request with your updates about the sdk. The github is the correct place to report the version issue. I see there's another thread asking update the sdk, but please be aware that multiple people reporting in the same thread will attract the most attention.

0 Votes 0 ·
Eduardoqc-8831 avatar image
0 Votes"
Eduardoqc-8831 answered Eduardoqc-8831 commented

Any updates on this??, im facing the same problem.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Found a solution:
https://www.youtube.com/watch?v=EiPyEBFOr0Y

For anyone interested.
Greetings.

0 Votes 0 ·