title: Integrating Facebook Audience Network in Xamarin
body: <p>I have been trying to integrate Facebook Audience Network so as to load native ads in my Xamarin Native iOS application. When I debug my application the code enters method &quot;NativeAdDidFail&quot; and the NSError says &quot;No fill&quot; and No other information is printed in the console.</p>
  <p>This is what I have done:</p>
  <ol>
  <li>Created a resource in business manager and Selected iOS as the target platform.</li>
  <li>I left out the payment/mediation and app store URL since my app is not published.</li>
  <li>Added an ad placement for native ads and Added one test device in the Monetization manager by adding my iphones IDFA.</li>
  <li>Enabled testing, Checked the checkbox for &quot;use real ads&quot;, I also clicked on the &quot;choose ad type&quot; <strong>but it doesnt seem to be saved?</strong></li>
  <li>Added one test user in business manager and Assigned access to the created property.</li>
  <li>Downloaded native Facebook app and Enabled tracking in the background for the native facebook app.</li>
  <li>Logged in on the native app with the email of the test user that I added.</li>
  <li>Added &quot;SkadNetworkIdentifier&quot; and LSApplicationQueriesSchemes in info.plist-&gt; v9wttpbfk9.skadnetwork &amp; n38lu8286q.skadnetwork</li>
  <li>Downloaded Xamarin.Facebook.Audiencenetwork.ios</li>
  </ol>
  <p><strong>This is my code:</strong></p>
  <pre><code>        AdSettings.SetAdvertiserTrackingEnabled(false);
          AdSettings.ClearTestDevices();
          AdSettings.AddTestDevice(&quot;74312C38-4958-4187-B385-9FCFE68FRRA9&quot;);
          nativeAd = new NativeAd(&quot;CAROUSEL_IMG_SQUARE_LINK#611875720420055_511995483752412&quot;)
              { Delegate = this };
              nativeAd.LoadAd();
  
      [Export(&quot;nativeAdDidLoad:&quot;)]
      public void NativeAdDidLoad(NativeAd nativeAd)
      {
  
      }
  
      [Export(&quot;nativeAd:didFailWithError:&quot;)]
      public void NativeAdDidFail(NativeAd nativeAd, NSError error)
      {
          var errorcode = error.Code;
          Console.WriteLine($&quot;{nameof(NativeAdDidFail)} - Native ad failed to load with error: {error.LocalizedDescription}&quot;);
          //AppDelegate.ShowMessage(&quot;Native Ad Error&quot;, error.LocalizedDescription, NavigationController);
      }
  
      [Export(&quot;nativeAdDidClick:&quot;)]
      public void NativeAdDidClick(NativeAd nativeAd) =&gt;
      Console.WriteLine($&quot;{nameof(NativeAdDidClick)} - Native ad was clicked.&quot;);
  
      [Export(&quot;nativeAdDidFinishHandlingClick:&quot;)]
      public void NativeAdDidFinishHandlingClick(NativeAd nativeAd) =&gt;
      Console.WriteLine($&quot;{nameof(NativeAdDidFinishHandlingClick)} - Native ad did finish click handling.&quot;);
  
      [Export(&quot;nativeAdWillLogImpression:&quot;)]
      public void NativeAdWillLogImpression(NativeAd nativeAd) =&gt;
      Console.WriteLine($&quot;{nameof(NativeAdWillLogImpression)} - Native ad impression is being captured.&quot;);
  </code></pre>
  <p>Here's <a href="https://developers.facebook.com/docs/audience-network/setting-up/testing/platform?__cft__%5B0%5D=AZXrltjw_M6dAIEONKINsrLRB35TFQf5lJz8dqcD71VyZJZJNnWrkWXhRcwbnTAfoDaxjkaABz-BxioydcsNV6l5b-IqjBZD6DKj9R_2NAkKX3p0cj7RqEOuMniIAsSuOi-sy4sDPpOuwQnZCriClU_h&amp;__tn__=R%5D-R" rel="nofollow noreferrer">the tutorial</a> I am trying to follow</p>
  <p>According to the <a href="https://developers.facebook.com/docs/audience-network/setting-up/test/checklist-errors/" rel="nofollow noreferrer">Facebook Audience Network</a>, this could be the possible reasons:</p>
  <p><a href="https://i.stack.imgur.com/VIpzX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VIpzX.png" alt="enter image description here" /></a></p>