×

Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 33
  1. #1
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,222

    Cool Iam able to show ADS using Advertizing SDK from pub center and only with test values.

    Iam able to show ADS using Advertizing SDK from pub center and only with test values.


    why Iam not able to show ADS with my account's own values.





    Errors showing are:


    Error 1 'Microsoft.Advertising.Mobile.UI.AdControl' does not contain a definition for 'TestMode' E:\Windows projects\New Sample Windows projects\wprssreader_v1_2\RSSReader\Views\MainPano.xaml.cs 42 23 RSSReader



    Error 2 'Microsoft.Advertising.Mobile.UI.AdControl' does not contain a definition for 'TestMode' E:\Windows projects\New Sample Windows projects\wprssreader_v1_2\RSSReader\Views\ItemPage.xaml.cs 57 23 RSSReader




    My code is like this :



    MainPage.xaml.cs


    public partial class ItemPage : PhoneApplicationPage
    {

    /// <summary>
    /// True when this object instance has been just created, otherwise false
    /// </summary>
    private bool isNewInstance = true;

    private AdControl adControl;
    private const string APPLICATION_ID = "67a3fbf2-8b45-4432-bece-56c81bff903b";
    private const string AD_UNIT_ID = "149034";


    /// <summary>
    /// Item whose details to show
    /// </summary>
    RSSItem item;

    /// <summary>
    /// Constructor
    /// </summary>
    public ItemPage()
    {
    InitializeComponent();
    AdControl.TestMode = false;
    Loaded += ItemPage_Loaded;
    }


    void ItemPage_Loaded(object sender, RoutedEventArgs e)
    {
    if (!string.IsNullOrEmpty(APPLICATION_ID) && !string.IsNullOrEmpty(AD_UNIT_ID))
    {
    adControl = new AdControl(
    APPLICATION_ID,
    AD_UNIT_ID,
    true);

    // Make the AdControl size large enough that it can contain the image


    adControl.Width = 480;
    adControl.Height = 80;
    adControl.Keywords = "Windows Phone 7, Hotels, Travels, Gold";
    ContentPanel.Children.Add(adControl);
    }
    else
    {
    MessageBox.Show("To show ads in this application, insert the application ID and an ad unit ID into your code as explained.");
    }

    browser.Navigated += ArticleWebBrowser_Navigated;
    if (item.Text != null)
    {
    browser.NavigateToString(RSSService.CreateArticleHTML(item));
    }




    MainPage.xaml


    <Grid x:Name="ContentPanel"

    Grid.Row="1"

    Margin="12,0,12,0">

    <my:AdControl

    Height="80"

    Grid.Row="0"

    HorizontalAlignment="Left"

    Margin="0"

    Name="DemoADS"

    VerticalAlignment="Top"

    Width="480"

    ApplicationId="67a3fbf2-8b45-4432-bece-56c81bff903b"

    AdUnitId="149034"

    />

    </Grid>
    </Grid>

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    510

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    Do you see the errors on an actual device or only on the Emulator?

  3. #3
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,222

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    As of now only on emulator

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    510

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    Microsoft's SDK detects when the App is running inside the Emulator and due to that does not show actual Ads. You should test it on an actual device to see if it works there.

  5. #5
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,222

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    Today got the reply from pub center support that ADS will show Outside India

    and restricted to some countries only.


    Is there any alternate option?

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    510

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    AdMob has a new WP8 SDK, although that is currently in Beta.

    Inneractive is also offering an Ad SDK for WP.

    Both should have global reach.

  7. #7
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,222

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    Does AdMob has a WP7 SDK because iam working on wp 7 only

  8. #8
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    510

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    They had one previously but to my knowledge it has been deprecated. Haven't worked with it yet so there is not much I can tell you about the details.

  9. #9
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,222

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    Ok Then I iwl use Inner active ADS SDK what do you say ?

  10. #10
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    510

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    Given the reply you got from Microsoft's support team and the problems with AdMob and WP7 I guess that's the best option for you, given that you care mainly about your App generating revenue in India.

  11. #11
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,222

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    Yes Somebody please help me Here Any body used Inner active for integration of ADS in WP7 Apps ?


    Please help


    I contacted support poeple also


    I have some queries regarding integration Iam not finding Inneractive Ad.Sample.XAML anywhere in the SDK

  12. #12
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,535

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    Quote Originally Posted by GTO_India View Post
    Yes Somebody please help me Here Any body used Inner active for integration of ADS in WP7 Apps ?


    Please help


    I contacted support poeple also


    I have some queries regarding integration Iam not finding Inneractive Ad.Sample.XAML anywhere in the SDK
    Have you already checked http://developer.nokia.com/Community...AX_with_CSharp

  13. #13
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,222

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    My PC OS is Windows 7 and Iam working on WP 7 and 7.1 Apps only.


    Can you help me

    The link which you have is related to windows 8 only I guess.


    Even If I have a WP7 app Can I change it to WP 8 App ?

  14. #14
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    510

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    While the article was only tested for WP8 it should work the same on WP7.

  15. #15
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,222

    Re: Iam able to show ADS using Advertizing SDK from pub center and only with test val

    Ok let me try then if that is the case.


    I will update you after integration soon.



    Thanks

Similar Threads

  1. Replies: 2
    Last Post: 2013-02-21, 19:38
  2. Replies: 16
    Last Post: 2012-05-31, 10:28
  3. Become a test center of symbian
    By xhsoldier in forum Symbian
    Replies: 1
    Last Post: 2007-08-29, 06:22
  4. Replies: 4
    Last Post: 2006-12-27, 16:09
  5. MMS Center to test ?
    By zolive in forum General Messaging
    Replies: 1
    Last Post: 2002-05-17, 04:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×