A few questions about ad/trial experience

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello guys. I have a few questions to you about trial/ads experience.
<br/>

1. I am using vb.net (yea I know,it sucks, I swear it is my last app made in vb). I base my knowledge on a tutorial for c# users. In the step 5 (i cant paste link here...) I should open app properties and go to "Build" tab. I made a new app with c#, and
voila! there is that tab, but in vb. there are completely other tabs. c#- application,build,build events,reference paths, code analysis. vb.net-application, compile,debug ,references.
<p style="margin-bottom:12.0pt; line-height:13.5pt <span lang="EN-US" style="font-size:9pt; font-family:Verdana,sans-serif How can I get to this tab then? Thats the order from that site: <span lang="EN-US" style="font-size:10.5pt; font-family:Arial,sans-serif; color:#606060 Step5: <span lang="EN-US" style="font-size:9.0pt; font-family:Arial,sans-serif; color:#606060 Go
to Build tab. In the Configurations combo select the newly created configuration "DebugTrial" from Step3. Next add an additional "TRIAL" symbol in the Conditional compilation symbols TextBox:
<p style="margin-bottom:12.0pt; line-height:13.5pt <span lang="EN-US" style="font-size:9pt; font-family:Verdana,sans-serif 2. My app is paid currently. I would like to make trial for this and add ads. I registered my app in pubcenter, got adunitid. Do I have
to add only one adcontrol to my site.xaml page? Or something else is necessary in my app?
<p style="margin-bottom:12.0pt; line-height:13.5pt <span lang="EN-US" style="font-size:9pt; font-family:Verdana,sans-serif 3. Basing on the link from question 1. I would like my ads be visible only when my app is in trial mode. What code should I use then?
I made sth like that but Im not sure if it will work. I cant check it without response for q1.
<p style="margin-bottom:0cm; margin-bottom:.0001pt; line-height:normal <span lang="EN-US" style="font-size:9pt; font-family:Verdana,sans-serif; background-color:white Private Sub AdControl1_Loaded(sender As System.Object, e As System.Windows.RoutedEventArgs)<span lang="EN-US" style="font-size:9pt; font-family:Verdana,sans-serif
<span style="background:white If App.IsTrial Then
<span style="background:white AdControl1.Visibility = True
<span style="background:white Else <span style="background:white
AdControl1.Visibility = False <span style="background:white
End If <span style="background:white End Sub
<p style="margin-bottom:12.0pt; line-height:13.5pt <span lang="EN-US" style="font-size:9pt; font-family:Verdana,sans-serif
<p style="margin-bottom:12.0pt; line-height:13.5pt <span lang="EN-US" style="font-size:9pt; font-family:Verdana,sans-serif I hope you will help me. Thats my first touch with ad/trial topic .
<span lang="EN-US
<br/>
// edit
Ok , I solved the 1st problem with build tab. Now everything is ok. Im just wondering why, when I use
If ap is trial
then go to page 1.xaml
else
go to page 2.xaml
In both ways it works good (if app is trial it goes to 1.xaml and if its not it goes to 2.xaml) but after being on page 1 or 2 for longer than 5 sec it gives me an error with marketplace. Is that normal because I use emulator?
---
According to q2. My ad doesnt show up even when my app is trial and when its not. I think adcontrol is not everything I should add to my page.xaml

View the full article
 
Back
Top