Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6005489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:24:16+00:00 2026-05-23T01:24:16+00:00

When using the AdControl: Is it possible to have a background image display when

  • 0

When using the AdControl:

  • Is it possible to have a background image display when the phone does not have connectivity to the Ad Server? Maybe set the background to an ImageBrush?
  • In the documentation it says there is an AdControl.TestMode property but I haven’t found it (I’m using version 2.1.11120.1).
  • Is there a limit or a recommendation for the max number of keywords for the AdControl.AdSelectionKeyWords proprety ? I saw in the documentation that the limit for a single keyword is 255 chars, but it doesn’t say anything about the length of the entire keywords string.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:24:16+00:00Added an answer on May 23, 2026 at 1:24 am

    AdControl.TestMode is a static property that you can probably set from anywhere in your app, at least in theory. You don’t need a reference to the control.

    In practice, you need to set AdControl.TestMode early in your application’s lifecycle. I usually do it in the application’s contstructor:

    public App()
    {
        ...
        InitializeComponent();
    
        AdControl.TestMode = false;
    
        ...
    }
    

    I have a blog post detailing how to do this.

    I’m not sure about setting a background image. The behavior I’ve seen is that the control will load briefly, showing the border, then disappear. It seems like it might be collapsing, but it’s hard to tell at runtime.

    EDIT: OK, I did some playing around with a sample project and confirmed that the AdControl collapses when the ads are unavailable. I tried setting a background image in code but it wasn’t displayed, since the control disappears if it doesn’t have any ads to display.

    If you want to avoid having a big hole in your application, a simple solution would be to put an Image control behind your AdControl. When the AdControl collapses, it will reveal the Image. Not as elegant as what you were hoping for, but it would work.

    EDIT 2: Found the answer on the keywords question. The AppHub submission guidelines state:

    Keywords – Keywords that can be used to assist users in finding your application in the Windows Phone Marketplace. A maximum of five keywords can be used, separated by commas.

    So that’s five terms, comma delimited, up to 255 characters.

    EDIT 3: Found a post dating back to January of 2011 that indicates that pubCenter is ignoring the keywords property on the AdControl. And this one indicating that it didn’t seem to work as of February. I’m guessing they still don’t work. If you’re looking to target ads more appropriately to your audience, make sure your ad channel selections in pubCenter are relevant. You can also build a form into your app to allow your users to give you some demographic data. I’m planning to incorporate this into my apps at some point, and in exchange I’ll unlock an extra feature or two. Win win. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the following code to set background image to a panel. But
Using Browserlab, it appears that the background image is not centred in Firefox7 for
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using online interfaces to a version control system is a nice way to have
Using JDeveloper , I started developing a set of web pages for a project
I'm using the Google maps API (v2) to display a country overlay over a
I have a WindowsForm with a panel control which I use to display my
I'm not too great with javascript. Does anyone know how I can increase the
I have a map that is not displaying. The page loads all the controls
Using report builder 3.0, I have a report that queries a cube. How do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.