Windows Phone 7 SDK - Beta Program

Windows Phone7 AppKomli Mobile now supports Windows Phone 7 publishing through its Windows Phone 7 SDK Beta Program. Publishers can use the Windows Phone 7 SDK Beta Program to deliver highly targeted mobile advertising to their Windows Phone 7 mobile apps and mobile games. This will display ads anywhere in your application using grid names as image.

Unique features of the Windows Phone 7 SDK include:

  Ability to fetch upto 5 ads at a time, cache and display them.

  Flip animated ads.


WP7 FAQ'sDownload WP7 SDK

How to Integrate Windows Phone 7 SDK with your Apps?


  1. Create a Komli Mobile Account
  2. Create an Windows Phone 7 Ad Client by going to "Sites & Apps"->"Create Site/App" and follow the steps given below.
  3. Download Komli Mobile Windows Phone 7 SDK pack from http://www.komlimobile.com/publishers/ZestADZ_WP7_SDK_v1.0.rar and unzip all folders.
  4. Open it with Visual Studio 10 and add the following references by right clicking the "Solution Explorer". Then navigate to "Add Reference".
    In the pop-up window, select the following reference and add it. Repeat the same flow to add all the references.

    References:
        a. System.Xml
        b. System.Xml.Uniq

    Add the following Name spaces copy from code:
        a. Using System.Xml.Linq; // Used for XML handling process.
  5. Copy the downloaded C# code to your MainPage.xaml.cs file, and then copy the downloaded xaml code to your MainPage.xaml code where you need to show the ad. eg: top, bottom.

    Assign the following variables in MainPage class.
        -  public partial class MainPage : PhoneApplicationPage

    Assign the keyword string as per your requirement. Based on your keyword the ads will show.
        -  const String mt_zest = "Base";

    Set the time interval to display the next ad or ad-to-ad interval as per your requirement.
        -  const int gettime_zest = 12; // Assigning values should be in seconds eg:1 second

    Copy the corresponding Client ID from your Komli Mobile account and assign it in variable as shown below
        -  const String cid_zest = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

    Copy and paste the following line without editing:
        -  int loopcount = 0;
        -  String lastimage = "";

    To initiate the ad pulling process while starting the application, we need to add the following line in mainpage method i.e in ( MainPage() )
    try
      {
        if ( Int32.Parse(gettime_zest.ToString()) == 0)
          {
            Debug.WriteLine( "Please enter a valid time, it should not be 0" );
          }
        else
          {
            // Create the Thread for continuous and independent operation.
            Thread t = new Thread(Getadsfromzest);
            // Start the thread.
            t.Start();
          }
        }
    catch
      {
        Debug.WriteLine("Error in MainPage method");
      }

    To continue the flow, copy & paste the following method into your class:
      a. Getadsfromzest - This method is used, to send request to Komli Mobile server.
        Note: Assign these variable after Getadsfromzest method for further process
        Assign the variable for animation.  
          private int _zIndex = 10; //set the position.
          private int time; //set the animation time interval.
       b. zestadzads_DownloadStringCompleted -
          Get the response from Komli Mobile server.
         Store the xml data to a list using xml linq paraser.
         Get the stored data from list.
         Add animation to ads(i.e image).
         Send it to view part i.e. to xaml.
      c. AddImage - This method is to add images to image grid, with or without animation.
      d. image_Loaded - This method is used to create flip animation when image is loaded.
      e. gopage - This method is used to show the selected image link's page / landing page in browser. You need to create browser element in Xaml/front_end.
    i.e (<phone:WebBrowser Name="webBrowser1" .....) in name of webBrowser1.
  6. Testing
    After installing the application contact us at support@zestadz.com and we will help you to test the application.