pubcenter ads in windows phone 8 [duplicate] - windows-phone-8

This question already has answers here:
Microsoft pubCenter ads not showing in my WP8 app
(2 answers)
Closed 8 years ago.
I have added this code for showing the ads on windows phone 8,
Tests Ads is coming correctly but when I replaced the ads settings with real AppId and UnitID then ads are not showing on phone. I am running the app in debug mode on device.
code :-
<!--<ui:AdControl
ApplicationId="actual id"
AdUnitId="unit id"
HorizontalAlignment="Left"
Height="80"
VerticalAlignment="Top"
Width="480"
IsBackgroundTransparent="True"
/>-->

Add erroroccured event in your ad control and put a break point. I think you don't have ad for this category at this moment. If you want promote your app, add Aduplex for an additional ad. When pubcenter got no advertissement, display Aduplex.
Like this => http://blog.adduplex.com/2011/03/using-adduplex-as-fallback-for.html

Related

Is there a way for a Windows tablet— when uploading an image on a website— to prompt to use the camera instead of using the File Explorer?

Problem
I'm currently working on a web application that needs to be able to upload images a lot. It is an <input type="file" name="picture" accept="image/*"> tag. Just like most other tablet or phone, I assumed that users on a Windows tablet— A Dell Venue 10 pro 5055, running on Windows 10 Enterprise in this case— would also be prompted to use the on-device camera or to choose from files. This is unfortunately not the case and makes the application a lot less user-friendly.
Tries
I checked this post: Can you launch the native Camera App from an Html 5 Web App?, the answer stated that using the following tag solved the problem for Android: <input type="file" accept="image/*;capture=camera">. This did not work for Windows.
The following post did provide an answer but that answer only works on Windows 8.1 unfortunately: Capturing images in web application on Windows 8.1 tablets
So is there a way to configure the tablet or to change the <input> tag in such a way that the user will be prompted to take a picture instead of choosing from an existing file?
Thank you in advance!

AdControl not exist in namespace "using: Microsoft.Advertising.WinRT.UI"

I'm trying to insert ad in a Windows Phone 8 app using Visual Studio 2013 Ultimate.
I inserted this code in MainPage.xaml :
xmlns:UI="using:Microsoft.Advertising.WinRT.UI"
And my Grid tag:
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<UI:AdControl
ApplicationId="----------------------"
AdUnitId="------"
HorizontalAlignment="Left"
Height="500"
Margin="0,0,0,0"
VerticalAlignment="Top"
Width="200"/>
</Grid>
Why do I get this error?
AdControl not exist in namespace "using: Microsoft.Advertising.WinRT.UI"
Errore2 type 'UI: AdControl' not found. Check for missing a reference to an assembly and all assembly to which you refer have been compiled
Right click on Reference in your Solution Explorer window and select Add Reference.
WINDOWS RT (UNIVERSAL APPS)
Then move on Windows Phone 8.1 Tab and select 'Extensions'. You should find Microsoft Advertising SDK for Windows Phone 8.1 XAML. Select it and click ok, then rebuild (F6)
WINDOWS PHONE SILVERLIGHT
Move on Assemblies tab, then click on Extensions and add these 2 references:
Microsoft.Advertising.Mobile
Microsoft.Advertising.Mobile.UI
Then you have to add in the XAML page this namespace:
xmlns:adv="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
and finally add the advertising control to your page:
<adv:AdControl ApplicationId="YOUR_APPLICATION_ID" AdUnitId="YOUR_AD_UNIT_ID"
Width="480" Height="80"/>
If you're not able to find references, it's beacuse you didn't install the SDK on your computer. Go here, download the right version according to your needs and install it, then repeat the steps.
Let me know if it works!

iOS app not prompting to open pictures on iPad Air

I used Phonegap to create an iOS app. In the app, I want users to be able to take or select pictures and videos from the Photos app that are later submitted into a database (code for this functionality is included below).
<input type="file" name="video"/><br>
<input type="file" name="image"/>
This functionality works when I run the app on an iPad 4 and iPad 3 (both are on iOS 8). However, when users click "Choose file" on an iPad Air try to take a new photo or video or select a current photo and video, the app crashes. The app also doesn't show up under
Settings->Privacy->Photos as one of the apps that requested access to photos. Any guidance on this issue would be greatly appreciated.

Windows Phone 8 AdControl not showing on my Device

I am building windows phone 8 Html 5 application, since my computer does not have capability to show emulator I am testing on real device.
My code is like below, when I launch my application, I do not see anything about banner, however I cannot tap on the place where ad is coming (For example I cannot click top header of browser because I know banner is there but totally transparent - not visible)
Is there any idea why it is happening?
<Grid x:Name="LayoutRoot" Background="Transparent">
<phone:WebBrowser x:Name="Browser"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Loaded="Browser_Loaded"
NavigationFailed="Browser_NavigationFailed" />
<UI:AdControl ApplicationId="test_client"
AdUnitId="Image480_80" Margin="0,0,10,600" />
</Grid>
It could be that it's working but there wasn't an ad available when you ran it. Add an event handler to the ErrorOccurred event and see if it gets hit. If ErrorOccurred get's hit, you should be able to look at what the error was. Most likely it will just be that there isn't an ad to show.
It's happened to me a few times, but it was just the fact that there's more ad's being requested to be shown than there are ad's to fill the spaces.

Kendo UI Mobile - Camera feature with HTML5 input tag responsiveness very slow

Implemented camera feature using HTML5 input tag.
Requires atleast 5 to 6 clicks before opening camera. Tried on iOS 6 Safari browser and Goggle chrome browser on Android.
Refered below js files :
1. jquery-1.8.3.js
2. kendo.mobile.min.js
Do we need to include any js file
Code :
<div data-role="view" id="tabstrip-camera" data-title="camera" data-layout="mobile-tabstrip" id="Camera">
<!--Camera Code-->
<input data-click="alert('clciked');" type="file" name="image" accept="image/*" capture>
</div>
Even when tried with simple HTML5 button tag the response is slow and same observation is used.
Please can any one help ? Do we need to include any js file.
Is your intent to deploy an actual mobile app to a phone or tablet device, or just to use Kendo Mobile widgets in a desktop web browser?
If you are going to deploy to a device, then you should be building on top of PhoneGap / Cordova, and could use PhoneGap's image capture function:
http://docs.phonegap.com/en/1.2.0/phonegap_camera_camera.md.html
Try upgrading to the Kendo UI Q3 service pack that was released this week and see if this fixes it.
The original Kendo UI Q3 release had some issues with the touch/mouse events due to the major change we did in event handling in order to support systems with both mouse and touch (Chrome/FF on Windows 8).