1. Nokia Boy's Avatar
    This is my first app,Nokia RSS Feed,this app will directly show you most news about nokia lumias!!!
    I still wait for my Student Report so i can post in the windows phone store as developer,so i cant share it,for now,here are some pics:
    EDIT: i need help with something,if any dev is willing to help me,PM me please...
    Last edited by Nokia Boy; 01-13-2014 at 12:06 PM.
    Nogitsune Micah and Guytronic like this.
    01-13-2014 11:38 AM
  2. Nogitsune Micah's Avatar
    Looks very nice :)
    Nokia Boy likes this.
    01-13-2014 11:51 AM
  3. hopmedic's Avatar
    What do you need help with - if you post your question here, more of us will see it.
    01-13-2014 01:16 PM
  4. Nokia Boy's Avatar
    Well in App Studio to enable ads i need to downloadi ts source code and find the xaml and add my unitId and application id-done,where do i have to insert the source code so my app can actually show ads,i want to do this just to learn(and maybe in future published apps :P )
    01-13-2014 01:18 PM
  5. hopmedic's Avatar
    You'll do that in MainPage.xaml, and the only thing needed is the right markup. No code behind necessary.

    Use pubCenter | Build your business | Ads in Apps for Windows 8
    Nokia Boy likes this.
    01-13-2014 07:07 PM
  6. hacer619's Avatar
    The source code downloaded from app studio has the ads code.
    You will find it as a comment (green text). All you need is to uncomment the code and insert your pubcenter ad ID. And as hopmedic said you'll do it in mainpage.xaml (or it could have different name e.g. Navigate.xaml) depending on what appstudio saves it.
    If you find it difficult and don't mind sharing bits of your code, we would be happy to help you. :D
    hopmedic and Nokia Boy like this.
    01-13-2014 07:21 PM
  7. Nokia Boy's Avatar
    Alright i did that,now what im supposed to do with the source code to work?do i need to export as xap or something?
    01-13-2014 10:48 PM
  8. hacer619's Avatar
    Alright i did that,now what im supposed to do with the source code to work?do i need to export as xap or something?
    Now you need to rebuild the code (I assume you are working via WP SDK) to package it as .xap
    01-13-2014 11:57 PM
  9. Nokia Boy's Avatar
    How i will do that? And yes i use VS express from wp8 sdk
    01-14-2014 12:19 AM
  10. Nokia Boy's Avatar
    Alright i rebuilded code but the app when i start it,it force close after 1 second....
    Here is my code:
    [CODE]<!--PLACE BELOW YOUR AdUnitId AND ApplicationId TO ENABLE ADS IN YOUR APPLICATION-->
    <!--Image480_80 and test_client ARE DEMO VALUES-->
    !--<ads:AdControl Grid.Row="1" Height="80" Width="480"
    IsAutoCollapseEnabled="True"
    IsAutoRefreshEnabled="True"
    AdUnitId="10635296"
    ApplicationId="6ba5e6c2-6076-434a-8e13-d7f438974ec9"/>-->[/CODE]
    01-14-2014 06:42 AM
  11. hacer619's Avatar
    The code you posted is commented
    This is how the ads code should be:
    Code:
             <ads:AdControl Grid.Row="1" Height="80" Width="480"
                          IsAutoCollapseEnabled="True"
                          IsAutoRefreshEnabled="True"
                          AdUnitId="XXXXXXX"
                          ApplicationId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx"/>
    replace the xs with your id
    1 more thing that I remembered
    to make the ads actually work you need to enable medialib_audio, photo & playback capabilities. You will find this in WMappmanifest.xaml under capabilities tab. :D

    after that build the solution and deploy the xap from the bin/release-or-debug folder to your phone

    Hope everything works with you great
    01-14-2014 08:13 AM
  12. Nokia Boy's Avatar
    The app crashes again,please tell me your skype to help me :)
    01-14-2014 10:22 AM
  13. hopmedic's Avatar
    http://forums.windowscentral.com/win...media-etc.html
    Here's one for you - Microsoft's own ad control requires:
    ID_CAP_IDENTITY_USER
    ID_CAP_MEDIALIB_PHOTO
    ID_CAP_PHONEDIALER
    01-14-2014 02:34 PM
  14. hacer619's Avatar
    That's what makes me wonder. As I remember I used the capabilities as you mentioned and MS ad control and didn't get the ad to work correctly. This was solved by adding the rest of capabilities. Not sure if updates from the server end fixed it. Again, that would be technical issues from my side. Damn I hate ads.
    01-14-2014 04:36 PM
  15. hopmedic's Avatar
    In WP7, Microsoft would add necessary permissions, but no longer. I'm not sure if there are more required than that for MS ads, because I use AdRotator, which requires more. The info that I put up came from Microsoft's documentation.
    01-14-2014 07:52 PM
  16. Nokia Boy's Avatar
    i already added those capabilities...
    01-14-2014 11:18 PM
  17. hacer619's Avatar
    i already added those capabilities...
    That's good

    As for Skype sorry bro I can't, I'm on a broadband plan and my quota is almost limited.

    Any errors while building the project, and what phone do you have.
    01-15-2014 05:44 AM
  18. Nokia Boy's Avatar
    while building solution i dont get any errors and my phone is 520,app worked great before i mess my hands with the ads code
    01-15-2014 06:14 AM
  19. hacer619's Avatar
    That could be related to ram. try testing it on the emulator. try the 512MB and 720p. If it crashes on the 512mb then it is related to low ram and your app should be further optimized.
    01-15-2014 11:02 AM
  20. Nokia Boy's Avatar
    my app is really simple,just an rss feed,i dont find any reason to not work with my phone-and my emulator is dead D:
    01-15-2014 11:20 AM
  21. hopmedic's Avatar
    Why do you say the emulator is dead? I agree with you that such a simple app should work on a 512 MB device, however, you're the only one who has looked at the code. I haven't looked at any App Studio code, so there's no telling how efficient it is. I would hope that it isn't all bloated up, but you never really know until you look into the code.
    01-15-2014 01:04 PM
  22. Nokia Boy's Avatar
    after a long waiting to get verified,i finally got my account code but now it requires a credit card,and hey since im a student i dont have a credit card,what im gonna do to get a dev account?
    02-03-2014 06:12 AM
  23. hopmedic's Avatar
    Surely someone has encountered this before and knows what to do. Try posting in the developer forums (scroll down farther), and have you looked for help at the dev center?
    02-03-2014 03:09 PM

Similar Threads

  1. App Store apps
    By wp_rt in forum Microsoft Surface 2
    Replies: 2
    Last Post: 01-14-2014, 04:34 PM
  2. messaging app issue
    By zeronoise in forum Windows Phone 8
    Replies: 2
    Last Post: 01-14-2014, 11:29 AM
  3. Questions on Unlocking my AT&T HTC 8x
    By channing0214 in forum HTC 8X
    Replies: 2
    Last Post: 01-13-2014, 01:43 PM
  4. Official St John Wales app brings first aid and more to the Windows Phone Store
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 1
    Last Post: 01-13-2014, 10:57 AM
  5. Nokia retires Place Tag postcard app, looks to incorporate tech into Nokia Camera
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 1
    Last Post: 01-13-2014, 10:56 AM
LINK TO POST COPIED TO CLIPBOARD