private void Text_Click(object sender, RoutedEventArgs e) { // Display text ad in the TextAdGrid // In order to maximize your revenues, we recommend allowing the application usage only if the returned value is true: // PAY ATTENTION: DisplayAd() checks for connectivity, first of all, // but GetIsNetworkAvailable() always returns true at the emulator //if (!InneractiveAd.DisplayAd("MyCompany_MyApp", InneractiveAd.IaAdType.IaAdType_Text, GetGrid(), 60, optionalParams)) //{ // MessageBox.Show("This application is free but requires an internet connection. Please configure your connectivity settings and re-try."); // //NavigationService.GoBack(); //} // When using the DisplayAd method you may choose to send event handlers, so you may catch the ad's events IaAdEventHandlers eventHandlers = new MyIaAdEventHandlers(); if (!InneractiveAd.DisplayAd("MyCompany_MyApp", InneractiveAd.IaAdType.IaAdType_Text, GetGrid(), 60, optionalParams, eventHandlers)) { MessageBox.Show("This application is free but requires an internet connection. Please configure your connectivity settings and re-try."); //NavigationService.GoBack(); } }