Finally I found some info on the issue.. not good news I'm afraid.
According to a member of the AdMob SDK this is a known bug that doesn't have a fix yet.
Question
When trying to display an interstitial ad on our app, the ad doesn't display correctly.
When the app runs on the 720p emulator then the ad displays with the correct size:
On the WVGA the ad gets cut off in one quarter (seems that the size of the ad is for the 720p screen):
As for the WXGA the ad displays with a white border around it (I'm guessing that like the WVGA, the ad size is for the 720p screen):
We tested on a device to be sure that the problem wasn't emulator specific, but we got the same results.
This is the code we used to create the ad:
InterstitialAd _ad = new InterstitialAd("<ADMOB_ID>");
AdRequest adRequest = new AdRequest();
_ad.ReceivedAd += delegate(object sender, AdEventArgs e)
{
_ad.ShowAd();
};
_ad.LoadAd(adRequest);
Is there a way to define the ad size? Or this is a bug on the AdMob SDK?
Solution 2
Finally I found some info on the issue.. not good news I'm afraid.
According to a member of the AdMob SDK this is a known bug that doesn't have a fix yet.
OTHER TIPS
Its pointless anyways because WP apps crash with the latest Abmob SDK when the user clicks on the ad and presses the back button.
No need to give Size etc... just follow the following code, it works for me on Windows Phone 8 very well.
namespace MainPage
{
public partial class MainPage: PhoneApplicationPage
{
private InterstitialAd interstitialAd;
private AdRequest adRequest;
public MainPage()
{
InitializeComponent();
InterstitialAds();
}
private void InterstitialAds()
{
interstitialAd = new InterstitialAd("Unit-ID"); // Unit ID is a Unique Key pri
adRequest = new AdRequest();
interstitialAd.ReceivedAd += OnAdReceived;
interstitialAd.LoadAd(adRequest);
}
private void OnAdReceived(object sender, AdEventArgs e)
{
System.Diagnostics.Debug.WriteLine("Ad received successfully");
interstitialAd.ShowAd();
}
}
}