Why I'm not seeing ads? - c#

I've made a UWP app, test values are working great but when I download from the store, ads are not showing up (and I've replaced test values with ad unit from dashboard).
<Advt:AdControl ApplicationId="*********"
AdUnitId="******"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
Height="120"
Grid.Row="2"/>

There are two reasons could cause the issue that you have mentioned.
The real ID(values with ad unit from dashboard) starts serving in 24h
after your app has been published successfully.
Another reason can be that you have not set the right size for the ad
control, for more please refer to Supported banner ad sizes.

Related

Is there a way to get current Google Authenticator 2FA key for a specific account (client-side)

I am searching for a way to obtain the current code in my Google Authenticator app. for a specific account.
Please note that I'm not looking for embedding Google 2FA to any of server-side application - I guess it has been already well-documented.
I am trying to get the same current code shown in my own Google 2FA app. (by providing my Google credientials ofcourse) so I can make my app fully automated even when logging in (to a specific system/website) without asking for the code each time I start the app.
Thanks by now.
UPDATE:
Even if I can't find any answer or simply "there is no way", there is still a way even if it's too ugly.
Running an ios/android simulator (and configure it once by installing the Google Auth app) and simulate the mouse clicks over it and then capturing a screenshot and decoding the code from the image would be much of a work but also can actually work. I'm just trying to find a better way, if there is any.
You could solve this by generating the OTP code locally using a library such as OTP.Net. Simply save the secret locally, and add it to .gitignore if using git.
Then you can make a code on demand like so:
using OtpNet;
var totp = new Totp(secretKey);
var totpCode = totp.ComputeTotp();

App pop Up saying "... Would like to access your (Camera, location, photos, etc)"

Using Xamarin Ios. in Apps theres usually a pop up on launch that says "(app name) Would like to access your location" or photos, or things along these lines. i couldnt find any information on how to implement this, or even what this confirmation/permission process is called. can someone point me in the right direction? it would be much appreciated
When your application needs to invoke some function that involves user privacy,suah as Camera,Contacts andLocation Services. You will be prompted for authorization by the system.
You should add items in Info.plist As shown in the following image.For example if you want to use Location Services. Otherwise it will be rejected when you want to upload your application to APP Store.
There also some other privacies.Here is a document link for you to referring to:Apple Document

How to open mobile view of website in Windows Phone application?

I am trying to open a web page in my Windows Phone application. But, I am unable to open desired web page in its mobile form.
I am adding web browser in my XAML:
</Grid>
<phone:WebBrowser x:Name="wb" HorizontalAlignment="Left" Margin="0,10,0,0" Grid.Row="1" VerticalAlignment="Top" Height="686" Width="480" Loaded="wb_Loaded"/>
</Grid>
And this is my backend code in C#:
private void wb_Loaded(object sender, RoutedEventArgs e)
{
wb.Navigate(new Uri("http://facebook.com/mobile", UriKind.Absolute));
}
But I am unable to view the actual mobile web page of Facebook. This code makes Facebook to look very much ugly.
I tried with http://m.facebook.com also, but this is also not helping.
Please suggest me, how can I correct this error to have actual mobile web page of Facebook in my application.
Wrong mobile url, mobile sites are usually differentiated by the prefix m such as facebooks' actual mobile page https://m.facebook.com which is the subdomain usage for the mobile apps. The mobile page you linked to is to install a mobile app; which is a standard html viewing type page and not mobile.

How to add Microsoft Advertising on WP7 App

I'm trying to insert a Microsoft Advertising on my WP7 app but without success.
Of course i'm registered at pubCenter.
I've put in MainPage.xaml this code:
<UI:AdControl Grid.Row="1" ApplicationId="MY APP ID" AdUnitId="MY UNIT AD" HorizontalAlignment="Left" Height="80" VerticalAlignment="Top" Width="480"/>
Of course i've replaced MY APP ID and MY UNIT AD with my personal codes.
In the top of MainPage.xaml i've added this code:
xmlns:UI="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
In MainPage.xaml.cs i've add this code:
using Microsoft.Advertising.Mobile.UI;
What's missing? What's wrong? App is on the Store but it doesn't show any ads...
You can try this app (it's free) at this link: http://www.windowsphone.com/it-it/store/app/myvodafone/c6a86290-4f69-4fdf-9312-401f93ccb35d
I've just tested the app and the ads are displayed. I guess what happened is your first contact with the concept of fill rate. Basically, putting an ad control in your application doesn't guarantee that ads will be displayed 100% of the time. Depending on the category of the ad unit, the localization of the user, and the period of the year, there may be more apps trying to display ads than actual ads available. In those cases, the ad control won't display anything. The fill rate is the common name for the percentage of times your control has displayed ads. Unfortunately, the administration console of Microsoft PubCenter doesn't display the fill rate yet.
There's a few ways to get a better fill rate: changing the category of your ad unit, or using a special ad control like AdRotator which will automatically switch to another ad provider when there's nothing to display.

AjaxControlToolkit's AsyncFileUpload misbehaving when deployed online

In case it matters, the following is inside a toolkit popup, which has an update panel in it.
<p>
<asp:Label Text="Picture" runat="server" Width="75"></asp:Label>
<ajaxToolkit:AsyncFileUpload ID="MediaPicture" runat="server" Width="200"
OnClientUploadStarted="BlockSubmits" ClientIDMode="AutoID"
OnClientUploadError="UnblockSubmits" PersistFile="true"
OnClientUploadComplete="UnblockSubmits"
/>
</p>
The javascript functions just block / release a submit button, to prevent problems during uploads.
This works fine on localhost, but when deployed online on a GoDaddy server, I can't seem to upload files over a few KB, even when locally I could upload bigger files (~2MB)...
I can't seem to find the reason for this behavior, could it be on the IIS? I read something about the app pool clearing before the upload could complete, could this be happening?
Btw, just in case, server-side I just take the picture out of this control
byte[] picture = MediaPicture.FileBytes ?? (string.IsNullOrEmpty(mediaID) ? null : Media.SelectByID(int.Parse(mediaID)).GetPicture());
There's some extra logic in there about whether I'm in edit mode or not, and if the current record has a picture, I'll take that over no picture,
And then I store it on the database.
any thoughts as to why this might be happening?
thanks!
If I understand your situation correctly, the problem is caused by the AsyncFileUpload being located inside the updatepanel, thereby having the file upload happen during a postback...
This blog post has a decent explanation of why.
As for why it works locally, if it is the problem as explained above, it's because of the way the browser handles "local" from "internet" domains.
The Assync upload of the ajax toolkit still has to have a post with the maximum request size of ASP.NET.
This max size is setted in the web.config of your application AND inside IIS. Since you are using a third party provider... try to fiddle with the web.config in the section
<httpRuntime maxRequestLength="40960"/>
If this won't help you out, check out the SWFUpload control... saved my skin a couple of times.
Regards,
I guess you use different IIS versions in your development environment and in the the production server (in this case Go Daddy).Can you verify and let me know the exact IIS versions so that I can provide you a better solution? Cause IIS 7.0 has a slightly different configuration than IIS 6.0.
I was experiencing the exact same problem, but including the website in the "Local Intranet" zone in IE the security setting was a workaround.
However, I updated the Ajax Control Toolkit and the problem was completely solved. There is no more need to mess with the security setting.

Categories

Resources