<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="http://schemas.microsoft.com/appex/2012/configuration.xsd">
  <Manifest>
    <DataSources>
      <DataSource ID="MarketBedrockArticles2" Type="GET" DefaultExpiry="300">
        <URLTemplate>http://{Market}.appex-rf.msn.com/article/v3/{Market}/news/{PageId}/{ContentId}.js</URLTemplate>
        <PayloadTemplate/>
      </DataSource>
     <DataSource
        ID="SqlConfigurationDataSource"
        CacheControl="PermanentHeadersOnly"
        DefaultExpiry="3600"
        IgnorableErrorCodesForInstrumentation="404"
        Type="GET">
        <!-- rtm/v1 indicates Windows 8. rtm/v2 indicates Windows 8 Blue. -->
        <URLTemplate><![CDATA[https://{TargetEnvironment}.blob.core.windows.net/configcontainer/full/{AppID}/{AppMajorMinorVersion}/{BuildNumber}/configuration.sqlite]]></URLTemplate>
      </DataSource>
      <!-- NOTE: This data source is overridden in each App
      <DataSource
        ID="FeaturesConfigurationDataSource"
        CacheID="ConfigurationCache"
        Type="GET">
        <URLTemplate><![CDATA[http://appexplatform.blob.core.windows.net/partnerpanos/{Market}/{AppID}/FeaturedPartners.json]]></URLTemplate>
      </DataSource>-->
      <DataSource
        ID="FeaturesConfigurationFullUrlDataSource"
        Type="GET">
        <URLTemplate>{url}</URLTemplate>
      </DataSource>
      <DataSource
        ID="FailSafeConfiguration"
        IgnorableErrorCodesForInstrumentation="404"
        HonorServerExpiry="false"
        DefaultExpiry="1"
        Type="GET">
        <!-- This config is cross-version -->
        <URLTemplate>https://appex{AppID}{Environment}.blob.core.windows.net/default/FailSafeConfiguration.json</URLTemplate>
      </DataSource>
      <DataSource
        ID="VersionCheckDataSource"
        IgnorableErrorCodesForInstrumentation="404"
        HonorServerExpiry="false"
        DefaultExpiry="1"
        Type="GET">
        <!-- rtm/v1 indicates Windows 8. rtm/v2 indicates Windows 8 Blue. -->
        <URLTemplate><![CDATA[https://appex{AppID}{Environment}.blob.core.windows.net/201402/rtm/v2/Version.xml]]></URLTemplate>
      </DataSource>
      <DataSource
        ID="StringResourceDataSource"
        DefaultExpiry="-1"
        IgnorableErrorCodesForInstrumentation="404"
        Type="GET">
        <URLTemplate><![CDATA[https://appex{AppID}{Environment}.blob.core.windows.net/201402/rtm/resources/{AppVersion}/{Language}/Resources.json]]></URLTemplate>
      </DataSource>
      <DataSource
        ID="PushNotificationRESTServiceDataSource"
        CacheControl="None"
        Type="GET">
        <URLTemplate><![CDATA[https://notification.services.msn.com/{operation}{version}{app}{market}{registrationid}{queryparams}]]></URLTemplate>
      </DataSource>
       <!--Data source to get masthead Article provider logo-->
      <DataSource ID="ProviderIconQuery" Type="GET" DefaultExpiry="300">
        <URLTemplate><![CDATA[http://cdn.query.prod.cms.msn.com/cms/api/amp/search/?$top=1&$filter=%27$type%27%20eq%20%27providerConfig%27and%27isDefaultProviderConfig%27%20eq%20%27true%27and%27logos.articleLogo.href%27%20eq%20%27cms/api/amp/image/{ProviderLogoId}%27&$select=logos.mainLogo,logos.articleLogo,logos.mastheadLogo]]></URLTemplate>
      </DataSource>
    </DataSources>
    <Networking>
      <EnableAutoRefresh>0</EnableAutoRefresh>
    </Networking>
    <!-- 
    This is an example of how to enable prefetching.  An app would place this in its AppConfiguration.xml.
    'Standard' means a standard-cost network (other types could be high-cost networks such as a metered 3g network).
    <Prefetching>
      <Enable>True</Enable>
      <RetryCount>3</RetryCount>
      <Standard>
        <PrefetchIntervalInMilliseconds>100</PrefetchIntervalInMilliseconds>
        <NumberOfConcurrentPrefetches>5</NumberOfConcurrentPrefetches>
        <NumberOfMaxConcurrentFetchesToAllowPrefetch>0</NumberOfMaxConcurrentFetchesToAllowPrefetch>
      </Standard>
    </Prefetching>
    -->
  </Manifest>

  <Custom>
    <!-- Should be added to each app's config
    <String Name="AppID">
      <Value>Platform</Value>
    </String>
    -->
    <String Name="HealthPingEndpoint">
      <Value><![CDATA[http://appex.bing.com/appex?a=Health&appname={0}&appver={1}&apparch={2}&mkt={3}&uniqueId={4}]]></Value>
    </String>
    <Bool Name="EnableImageThrottling">
      <True/>
    </Bool>
    <Bool Name="ImageThrottlingLIFO">
      <True/>
    </Bool>
    <Int32 Name="MaxImageThrottling">
      <Value>30</Value>
    </Int32>
    <Int32 Name="SuspendDurationForAppResetInSecs">
      <Value>25200</Value>
    </Int32>
      
    <Dictionary Name="Setting">
      <String Name="TermsOfUseLink">
        <Value>http://go.microsoft.com/fwlink/?LinkId=246338</Value>
      </String>
      <String Name="PrivacyStatementLink">
        <Value>http://go.microsoft.com/fwlink/?LinkId=248686</Value>
      </String>
      <String Name="MicrosoftAdvertisingPrivacyStatementLink">
        <Value>http://go.microsoft.com/fwlink/?LinkID=248689</Value>
      </String>
      <String Name="ImpressumLink">
        <Value></Value>
      </String>
      <String Name="ICPNumber">
        <Value></Value>
      </String>
      <String Name="CreditsLink">
        <Value>http://go.microsoft.com/fwlink/?LinkId=329773</Value>
      </String>
    </Dictionary>
 <Dictionary Name="Authentication">
      <String Name="Service">
        <Value>services.msn.com</Value>
      </String>
    </Dictionary>
    <Dictionary Name="Roaming">
      <String Name="UDPURL">
        <Value><![CDATA[http://api-dev.bing.com/appex]]></Value>
      </String>
    </Dictionary>
    <Dictionary Name="CacheSettings">
      <Int32 Name="SizeInBytesWindows">
        <Value>22020096</Value>
        <!-- 21 MB -->
      </Int32>
      <Int32 Name="SizeInBytesPhone">
        <Value>3145728</Value>
        <!-- 3 MB -->
      </Int32>
      <Int32 Name="InMemorySize"> <!-- Used by JS cache -->
        <Value>5</Value>
      </Int32>
      <Int32 Name="DefaultExpiry"> <!-- Overall default expiry used by the cache if the data source does not define one -->
        <Value>86400</Value> <!-- 24 hrs -->
      </Int32>
      <Int32 Name="DefaultMaxRetentionTimeInDays"> <!-- Any item in the cache that has not been accessed for 7 days will be purged -->
        <Value>7</Value>
      </Int32>
      <Int32 Name="DefaultRetentionCleanupPeriodInDays">  <!-- Executes the retention based clean up once a day -->
        <Value>1</Value>
      </Int32>
      <Int32 Name="DelayBeforeCacheResizeCheckInMilliseconds">
        <Value>2000</Value>
      </Int32>
      <Bool Name="EnableDynamicCacheResizing">
        <True/>
      </Bool>
      <Int32 Name="MaximumCacheSizePossibleWindows">
        <Value>27262976</Value>
        <!-- Maximum possible size for the cache, 26 MB-->
      </Int32>
      <Int32 Name="MaximumCacheSizePossiblePhone">
        <Value>4194304</Value>
        <!-- Maximum possible size for the cache, 4 MB-->
     </Int32>
      <String Name="CacheSizeIncrementPerGbInMBytes">
        <Value><![CDATA[1.0]]></Value>
      </String>
      <Int32 Name="SqliteCacheFlushTimerMinPeriodInMilliseconds">
          <Value>10000</Value> <!-- 10 seconds -->
      </Int32>
      <Int32 Name="SqliteCacheFlushTimerMaxPeriodInMilliseconds">
          <Value>60000</Value> <!-- 60 seconds -->
      </Int32>
    </Dictionary>
    <Dictionary Name="Instrumentation">
      <String Name="ReportURL">
        <Value><![CDATA[http://g.bing.net/8SE/201]]></Value>
      </String>
      <Int32 Name="DataSetFlushThreshold">
        <Value>5</Value>
      </Int32>
      <Int32 Name="DataPointArrayLengthThreshold">
        <Value>70</Value>
      </Int32>
      <Dictionary Name="PartnerPanoEntryPointDataSetIDs">
        <Int32 Name="navbar">
          <Value>200</Value>
        </Int32>
        <Int32 Name="featuredsourcescluster">
          <Value>201</Value>
        </Int32>
        <Int32 Name="secondarytile">
          <Value>202</Value>
        </Int32>
        <Int32 Name="endofarticleblock">
          <Value>203</Value>
        </Int32>
        <Int32 Name="searchcharm">
          <Value>204</Value>
        </Int32>
        <Int32 Name="sourcegallery">
          <Value>205</Value>
        </Int32>
        <Int32 Name="deeplink">
          <Value>206</Value>
        </Int32>
        <Int32 Name="bingdailycluster">
          <Value>207</Value>
        </Int32>
      </Dictionary>
      <Int32 Name="PartnerPanoDataSetID">
        <Value>9</Value>
      </Int32>
      <Int32 Name="PartnerPanoDataPointID">
        <Value>24929</Value>
      </Int32>
      <Int32 Name="PartnerPanoCategoryDataPointID">
        <Value>25185</Value>
      </Int32>
      <Int32 Name="PartnerPanoLeaveDataPointID">
        <Value>25441</Value>
      </Int32>
      <Int32 Name="BigFileSize">
        <Value>512000</Value>
        <!-- 500k -->
      </Int32>
    </Dictionary>
    <Dictionary Name="Feedback">
      <Bool Name="FeedbackEnabled">
        <!-- enable Send Feedback link in settings -->
        <True/>
      </Bool>
      <String Name="FeedbackURL">
        <Value><![CDATA[http://appexfeedbackservice.cloudapp.net/]]></Value>
      </String>
      <Int32 Name="MaxSizeOfScreenshotInKBs">
        <Value>2048</Value>
      </Int32>
    </Dictionary>

    <Dictionary Name="ExternalFeedbackCommonConfig">
      <String Name="ExternalFeedbackURL">
        <Value><![CDATA[http://otf.msn.com/c.gif]]></Value>
      </String>
      <String Name="PrivacyURL">
        <Value><![CDATA[http://go.microsoft.com/fwlink/?LinkID=248686]]></Value>
      </String>
      <String Name="AskCommunityURL">
        <Value><![CDATA[http://answers.microsoft.com/en-us/newmsn]]></Value>
      </String>
    </Dictionary>
    
    <Dictionary Name="InternalFeedbackSettings">
      <Bool Name="FeedbackEnabled">
        <False/>
      </Bool>
      <String Name="FeedbackUrlHost">
        <Value>http://ampdogfood.msn-int.com/DogFood2</Value>
      </String>
      <String Name="FeedbackID">
        <Value>09747544-AB04-4D5B-99F9-762AFF01814C</Value>
      </String>
      <String Name="AppType">
        <Value>Threshold</Value>
      </String>
    </Dictionary>
    <List Name="BadIdHeaderHosts">
      <String>
        <Value>services.msn.com</Value>
      </String>
      <String>
        <Value>bing-int.com</Value>
      </String>
    </List>

    <Dictionary Name="RandomNetwork">
      <Bool Name="IsRandom">
        <False/>
      </Bool>
      <Bool Name="IsTimeoutRandom">
        <False/>
      </Bool>
    </Dictionary>
   <Int32 Name="StringResourceDownloadIntervalSeconds">
      <Value>86400</Value>
    </Int32>
   
    
      
    <String Name="CMSPreviewParam">
      <Value>preview</Value>
    </String>
    
    
    

    <Dictionary Name="ANIDSettings">
      <Bool Name="EnableANIDRetrieval">
        <True/>
      </Bool>
      <String Name="AuthService">
        <Value><![CDATA[services.msn.com]]></Value>
      </String>
      <String Name="AuthPolicy">
        <Value><![CDATA[MBI_SSL]]></Value>
      </String>
      <String Name="RequestUrl">
        <Value><![CDATA[https://ssl.bing.com/fd/auth/signin?action=token&provider=windows_live_id&save_token=0&src=CONTACT-IDENTITY-TEAM-FOR-CORRECT-VALUE&token=]]></Value>
      </String>
      <String Name="CookieDomain">
        <Value><![CDATA[http://ssl.bing.com]]></Value>
      </String>
      <String Name="Cookie">
        <Value><![CDATA[ANON]]></Value>
      </String>
    </Dictionary>

    <Dictionary Name="ApplicationIdentityServiceSettings">
      <String Name="Service">
        <Value><![CDATA[http://platform.bing.com/dataaccessor/ais]]></Value>
      </String>
      <!-- AppID and SharedKey must be filled on a per-app basis -->
      <String Name="AppID">
        <Value><![CDATA[APP_GUID]]></Value>
      </String>
      <String Name="SharedKey">
        <Value><![CDATA[Shared_Key]]></Value>
      </String>
      <Int32 Name="RequestTimeOutInSeconds">
        <Value>30</Value>
      </Int32>
    </Dictionary>

    <Dictionary Name="BingIdentityManager">
      <String Name="AuthService">
        <Value><![CDATA[services.msn.com]]></Value>
      </String>
      <String Name="AuthPolicy">
        <Value><![CDATA[MBI_SSL]]></Value>
      </String>
      <String Name="AuthRequestUrl">
        <Value><![CDATA[https://ssl.bing.com/fd/auth/signin?action=token&provider=windows_live_id&save_token=0&src=APPEX&token=]]></Value>
      </String>
      <String Name="CookieDomain">
        <Value><![CDATA[http://personalization.services.msn.com]]></Value>
      </String>
      <String Name="AnonymousCookie">
        <Value><![CDATA[ANON]]></Value>
      </String>
      <String Name="UserCookie">
        <Value><![CDATA[_U]]></Value>
      </String>
      <String Name="SIDCookie">
        <Value><![CDATA[_SS]]></Value>
      </String>
      <Int32 Name="RequestTimeOutInSeconds">
        <Value>30</Value>
      </Int32>
    </Dictionary>

    <!-- New Threshold API settings which will eventually phase out BingIdentityManager-->
    <Dictionary Name="ThresholdAuthManager">
      <Bool Name="EnableSwitchAccount">
        <False />
      </Bool>
      <Bool Name="UseThresholdApi">
        <True />
      </Bool>
      <String Name="AuthRequestUrl">
        <Value><![CDATA[https://login.microsoft.com]]></Value>
      </String>
      <String Name="TokenScope">
        <Value><![CDATA[services.msn.com::mbi_ssl]]></Value>
      </String>
      <String Name="ConsumerAuthority">
        <Value><![CDATA[consumers]]></Value>
      </String>
      <String Name="AccountClientId">
        <Value><![CDATA[none]]></Value>
      </String>
      <!-- not sure what these settings are for. Copy pasted from legacy BIM -->
      <String Name="CookieDomain">
        <Value><![CDATA[http://personalization.services.msn.com]]></Value>
      </String>
      <String Name="AnonymousCookie">
        <Value><![CDATA[ANON]]></Value>
      </String>
      <String Name="UserCookie">
        <Value><![CDATA[_U]]></Value>
      </String>
      <String Name="SIDCookie">
        <Value><![CDATA[_SS]]></Value>
      </String>
      <Int32 Name="RequestTimeOutInSeconds">
        <Value>10</Value>
      </Int32>
    </Dictionary>
    
    <Dictionary Name="PersonalDataPlatform">
      <String Name="Service">
          <Value><![CDATA[https://platform.bing.com/pdp/v1/{0}]]></Value>
      </String>
      <String Name="DeltaEndpointGetUrlFormat">
        <Value><![CDATA[https://personalization.services.msn.com/{0}/{1}/api/pdp/readpdpdata]]></Value>
      </String>
      <String Name="DeltaEndpointPostUrlFormat">
        <Value><![CDATA[https://personalization.services.msn.com/{0}/{1}/api/pdp/updatepdpdata]]></Value>
      </String>
      <Bool Name="IsPersonalizationEnabled">
        <False />
      </Bool>
      <Bool Name="IsBackgroundRefreshEnabled">
        <False />
      </Bool>
      <Int32 Name="RefreshIntervalInMilliseconds">
        <Value>180000</Value>
      </Int32>
      <String Name="EnabledVerticalIds">
        <Value></Value>
      </String>
      <Int32 Name="RequestTimeOutInSeconds">
        <Value>30</Value>
      </Int32>
      <Int32 Name="RetryCount">
        <Value>3</Value>
      </Int32>
      <String Name="AppDomain">
          <Value>Platform</Value>
      </String>
      <Int32 Name="DefaultExpiry">
        <Value>180</Value>
      </Int32>
    </Dictionary>
    <Dictionary Name="PushNotificationSettings">
      <Bool Name="Enable">
        <False />
      </Bool>
      <!--To be overridden in AppConfiguration by vertical teams while enabling Push Notifications-->
      <String Name="SIAppName">
        <Value></Value>
      </String>
      <String Name="Version">
        <Value>v1</Value>
      </String>
      <Int32 Name="RefreshPeriodInDays">
        <Value>5</Value>
      </Int32>
      <Bool Name="DisableToastsWhileAppIsRunning">
        <True />
      </Bool>
      <Int32 Name="RestServiceRetryCount">
        <Value>3</Value>
      </Int32>
      <String Name="RestServiceUserAgent">
        <Value>Win10</Value>
      </String>
      <!--Comma-separated string of default tags-->
      <String Name="DefaultTagList">
        <Value></Value>
      </String>
    </Dictionary>
  <Dictionary Name="VersionUpdate">
      <Int32 Name="RunCountIntervals">
        <Value>5</Value>
      </Int32>
      <Int32 Name="DaysCountIntervals">
        <Value>5</Value>
      </Int32>
    </Dictionary>
    <String Name="ExtraLinksKey">
      <Value>moreFrom</Value>
    </String>   
   
    <Dictionary Name="Ads">
      <Dictionary Name="AdControlCacheSettings">
        <Int32 Name="MaxAdUnitIdsCached">
          <Value>0</Value>
        </Int32>
        <Int32 Name="MaxControlsCachedPerAdUnitId">
          <Value>0</Value>
        </Int32>
        <Int32 Name="NumberOfPrePopulatedControlsPerAdUnitId">
          <Value>0</Value>
        </Int32>
      </Dictionary>
    </Dictionary>
    <!--Deep Link Url Format-->
    <String Name="DeepLinkUrlFormat">
      <Value><![CDATA[//application/view?entitytype={entitytype}&contentId={contentId}&pageId={pageId}]]></Value>
    </String>
  </Custom>
</Configuration>
