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

OSAMA JUTT 1 Reputation point
2020-11-27T06:47:30.66+00:00

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.

Developer technologies | .NET | Xamarin
{count} votes

3 answers

Sort by: Most helpful
  1. OSAMA JUTT 1 Reputation point
    2020-11-30T17:08:43.907+00:00

    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 .................................

    0 comments No comments

  2. OSAMA JUTT 1 Reputation point
    2020-11-30T17:12:55.23+00:00

    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.


  3. Eduardo qc 1 Reputation point
    2021-06-27T19:33:07.623+00:00

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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.