In my UWP app I use an AdControl that can be either 320x50 or 640x100 depending on the windows size. The problem is that I can't get it to display ads if I'm using my AppID and UnitID even though it displays them if I use the test IDs provided by Microsoft. The app has the Internet Client capability, is privately available in the store since last week and I'm debugging it on an italian IP. TheErrorOccured event gives me a NoAdAvailable error. How could I solve this?
EDIT 1:
I installed the Microsoft Ads SDK using the link of the answer but I now get on this line of code global::Windows.UI.Xaml.Application.LoadComponent(this, resourceLocator, global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
in the MainPage.g.i.cs file this error: Windows.UI.Xaml.Markup.XamlParseException.
Is there a way I can solve it?
You May miss something Follow these steps-
1) Download this SDK
2) Add a reference to the Microsoft Advertising SDK in your project:
From the Solution Explorer window, right click References, and select Add Reference…
In Reference Manager, expand Universal Windows, click Extensions, and then select the check box next to Microsoft Advertising SDK for XAML (Version 10.0).
In Reference Manager, click OK.
3) Modify the XAML for the page where you are embedding advertising to include the Microsoft.Advertising.WinRT.UI namespace
Add this line of code in xaml references -
xmlns:UI="using:Microsoft.Advertising.WinRT.UI"
4) Then add your ad control with Ad Unit and ID from store
<UI:AdControl ApplicationId="Your Ad ID"
AdUnitId="Your AdUnit"
HorizontalAlignment="Left"
Height="250"
VerticalAlignment="Top"
Width="300"/>
this is example for Banner ads so go to your dev dashboard Monetize > In App Ad then Create new ad unit.
*Select Your App,
*Add ad unit name,
*Select ad unit type to banner,
*and device family Windows 10 UWP.
and click on create after that copy your ad unit id and app id and pase in you ad control in xaml
Then Debug your app in x86,x64x,ARM then wait few seconds (according to your internet connection) ad will appear soon.
Further after submission of app package to the store you need to configure ad mediation.. read this article for this it will show you everthing step by step
Related
We tested a application on a test account, and now we want to release it on a production account.
Problem is, we reserved and used the actual name with the test account and we now want to use the same on production account, but it is blocked via our test account.
The application is un-deletable (Microsoft itself wrote article which states that) it can only be hidden.
Therefore I was thinking about reserving a new name in Manage App Names, use it, and then delete the old one. However, I can't figure out how to do this using Visual Studio 2013).
Lets say I have name X. I reserved name Y in the store (for the same app).
In Visual Studio:
Right click on Project -> Properties -> Assembly, name changed to Y
Display name in Package.appxmanifest changed to Y
Submitted to store - nothing changed, it still says that app name X is in use.
I did not find App Name property, but I supposed the assembly is it now?
Because in some older tutorial I saw "app name" at the same position as the Assembly now.
What you are looking for can't be solved in Visual Studio.
My understanding is your have name X reserved on a test account, and you want name X to be on a production account.
This is transferring an app to a different publisher (Test account and Production account are different, hince different publishers even though you own both)
Open a support ticket in the Windows Dev Center, and they should be able to sort this out for you: https://dev.windows.com/en-us
For achieving this you need to remove the reserved name from test account and then reserve this name in production account.
For reserving app name in Windows Store first login with the Microsoft account and go to Windows apps dashboard for your account and click on app name to go to app details and on left side click on App Management and then click on Manage app names here you can reserve a new name and also delete the unused app name. For further information Check this microsoft link. Hope it helps.
I actually fixed it.
I opened file "Package.StoreAssociation.xml" and I changed ReservedName value in bottom of this file to Y
I also changed the Package.appxmanifest->Packaging->Packade display name to Y
Also if you expand Properties, there is AssemblyInfo, I changed the AssemblyTitle and AssemblyProduct to Y
With the thing I already did :
Right click on Project -> Properties -> Assembly, name changed to Y
Display name in Package.appxmanifest changed to Y
I created bundle and uploaded it as new submission to Windows Store and then publish it. After this, the used reserved name changed from X to Y and I was able to delete X and then reuse him at production account.
I have an error with the IAP, where I try to load the product list.
var listing = await CurrentApp.LoadListingInformationByProductIdsAsync(
new string[] { "Guld_pose_1" });
I get the error HRESULT: 0x805A0194 which I have read around should be misalignment between comitted version PhoneProductId and Publisher ID, according to this link and this link.
How do I find these numbers on the new dev store, I can only find the guides to the old?
I have found two publisher IDs on the dev center but no phoneproductID, or is this the SID?
A bit confused hope for some help.
And as always when you start the bounty the solution appears.
The issue is that I am developing a Wp8.1 silverlight app. When looking on the dev page you will not see the productId immediately shown. I found from a link that for wp8.1 the productId is part of the url for the app.
Go to the app on the devcenter. Choose the app -> app management -> app identity.
At the bottom of the page you can find the different links: http://windowsphone.com/s?appid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Copy the part after = and insert it on package.appxmanifest and WMAppManifest.xml as the ProductId, and the error dissapears.
I have been making an UWP app with the using a MapControl but when I run the app I get an error in the bottom corner saying "Warning: MapServiceToken not specified". The XAML I am using is as follows:
<Maps:MapControl x:Name="MapControl1" Loaded="mapLoaded" ZoomLevelChanged="mapZoomChanged" MapServiceToken="AqK9nK0h_LngGSC8pHPzBJvl62yf617zRytgimB3fyYqdJPljcB-EGm3llmUUrlI"/>
As you can see I have specified the MapServiceToken and I have also tried specifying it using C# with no luck.
MapService.ServiceToken = "AqK9nK0h_LngGSC8pHPzBJvl62yf617zRytgimB3fyYqdJPljcB-EGm3llmUU...";
MapControl1.MapServiceToken = "AqK9nK0h_LngGSC8pHPzBJvl62yf617zRytgimB3fyYqdJPljcB-EGm3llmU...";
I have used www.bingmapsportal.com to get my token but I have also tried using the Application ID and Authentication Token from the Windows Dev Center. Any Ideas?
NOTE: For those who may be using older keys from Windows 8 platform
There seems to be an issue updating old keys to the Universal Windows Platform type. I had a key that was created in 2014, but even after I updated the key to Universal Windows it still would not authorize when I placed the key in the MapServiceToken value of the XAML. (it seems as though the value of the key itself never changes when you change the type on the key, even though it should update with a new value)
In order to solve this you have to create a brand new application key and use that value instead, and then the Warning message will go away.
I got the same issue but here is my solution.
First navigate to https://www.bingmapsportal.com/Application. Find the link to create a new key.
On the form, fill in the Application type field. The available options are:
Dev/Test
Mobile Application
Website
Windows Application
Even though you are developing a Xamarin.Forms project (that is intuitively a kind of mobile app), you must choose Windows Application rather than Mobile Application. Why? The reason might be "UWP is an Windows Application". Period.
Failure doing so will trigger the warning.
Sign into the Microsoft Dev account and navigate to this URI
https://www.bingmapsportal.com/Application#
Here the Key can be obtained for Universal.
It can be set in the XAML MapServiceToken, works fine!
Also, you can sign in directly on Bing Maps to generate a key.
https://www.bingmapsportal.com/
My Account -> My keys
For UWP, this key is quite long.
FYI, when I added the key on XAML for MapControl using MapServiceToken property, the app crashed my computer. Then when I restarted it, the App run well. Oh dear me...
Read Microsoft documentation
https://learn.microsoft.com/en-us/windows/uwp/maps-and-location/authentication-key
Generate new key and add it in MapControl MapServiceToken. Its work for me.
I have created several windows phone apps and I would like to link to my publisher's page to show all of the apps that I publish. Note that I am developing my app for Windows Phone 7.x and up using C# and XAML.
UPDATE
What I would like to do is show the following publisher page: From within Windows Phone, navigate to the Windows Phone store, then select any app, then select the "more from <Publisher>" link. This displays a nice mobile view of all of that publisher's apps. But I can't figure out how to bring up that publisher page directly from within my app. Any help would be appreciated!
Option 1) Link directly to the URL for my publishers page (using a WebBrowserTask)
Issue) All links to the store seem to require the en-US language embedded in the URL. I'm concerned about what will happen to users in other countries/languages.
Example: http:/www.windowsphone.com/en-US/store/publishers?publisherId=Microsoft%2BCorporation
Is there a language independent way to link to a publisher in the store?
Option 2) Use the MarketplaceDetailTask to link to the publisher
Issue) From what I've seen, this can only be used to link to an app. I tried using my publisher GUID and got: Marketplace Error - We're sorry, but we can't complete your request right now.
MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
marketplaceDetailTask.ContentIdentifier = <My Publisher GUID>;
marketplaceDetailTask.Show();
Option 3) Use the MarketplaceSearchTask to link to the publisher
Issue) This allows searching the store with any string. The problem is, when I put my publisher name in the search string, other apps are shown in addition to mine. My publisher name includes a common word and any app with that word shows up.
MarketplaceSearchTask searchTask = new MarketplaceSearchTask();
searchTask.ContentType = MarketplaceContentType.Applications;
searchTask.SearchTerms = "<My Publisher Name>";
searchTask.Show();
Any thoughts or suggestions would be appreciated!
Thanks.
As you're targeting WP7+, unfortunately using the zune:search URI only works on WP8 as it relies on URI Schemes, which was not backported to WP7. Based on these two posts, I tried the following on your behalf:
zune://search/?publisher=Henry%20Chong;
And a bunch of other things, but it seems that only zune://navigate is available on Windows Phone 7 and that only allows you to load a specific app. (Perhaps someone who feels like opening reflector or on the Phone teams could comment here...)
Two other things I've come across that you can look into:
1) There used to be an undocumented Zune api that you could query the marketplace against; it looks like this has been replaced by the Marketplace Edge Service, which you could try and dig around for:
http://social.msdn.microsoft.com/forums/windowsapps/en-US/f5294fcb-f4b3-4b19-9bda-f49c6a38b327/marketplace-edge-service-query
2) You could add a specific unique keyword to all your apps and use the MarketplaceSearchTask, as suggested here by Matt.
Personally, I'd go with #2 because:
you never know when the Marketplace Edge Service will change
1 is not technically supported by Microsoft
you won't have to replicate the page you're trying to display
Of course, there's also nothing stopping you from creating your own "Apps by X" page for your app and maintain it yourself manually.
Best of luck!
When I test my app on my device, by deploying it with Visual Studio directly from my pc to my phone, ad is showing. Then I published my app, and there the ad is not showing.
After some research, I found that my to show my ad correctly my app should have ID_CAP_WEBBROWSERCOMPONENT in WMAppManifest file. I noticed, by watching my app's details inside my developer dashboard, that that id_cap is being removed after publishing the app!
I'm not the only, one but I didn't find an answer.
Some posts:
http://social.msdn.microsoft.com/Forums/wpapps/en-US/a172dcb6-7e31-45a1-82f1-44bcd8aeac73/my-app-needs-idcapwebbrowsercomponent-but-marketplace-says-not?forum=wpsubmit
http://social.msdn.microsoft.com/Forums/wpapps/en-US/6e5c635d-fcb4-4156-97fe-c5153088bb91/ads-are-not-showing-im-my-published-app-they-worked-during-development-whats-up-with-that?forum=wpdevelop
Note that I'm working with XNA-Silverlight and using the DrawableAd associated with AdComponent.
I really don't know how to handle this problem. Maybe can I add the capability programmatically?
** EDIT **
I aknowledged that the manifest file is just used while debugging, when you submit an app, it's capababilities are recognized automatically. Here is the problem. I run the StoreKitTeste in Visual Studio as shown here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/gg180730(v=vs.105).aspx#BKMK_UsingtheMarketplaceTestKittoDetermineApplicationCapabilitiesforWindowsPhoneOS71Applications
and in fact it doesn't recognize ID_CAP_WEBBROWSERCOMPONENT. How can I make him see that I need it?
** EDIT 2 *
I found here the same problem http://www.geekchamp.com/tips/be-careful-when-submitting-for-windows-phone-marketplace-an-app-that-uses-capturesource-class
It is related to microphone capability, how can I do the same with Webbrowsercomponent?
I just added: WebBrowser w = new WebBrowser(); somewhere and it recognized its capability.