Max Stolbinsky
Posts: 0
Joined: Fri Aug 23, 2013 9:09 pm

How we can embed text or banner ads to the appllication?

Hi Everyone!
We would like to place ads space inside of our app, but we have got some issues. I did following: added to the page HTML control element and placed there JS embed code. But in this case JS uses document.write function and breaks everything.

Finally I have solved issue with using REST service to receive banner code and then $('adID').html() to place banner code. But I had to customize server side output. It works for direct ads sales, but we still can't use global AD markets.

Do you have any suggestions or advice what is best practice to embed ADs to the appery app.

Thanks!

Anton Artyukh5836028
Posts: 0
Joined: Wed May 08, 2013 12:57 pm

How we can embed text or banner ads to the appllication?

Hi Max,

For the integration of external (third party) code you always have to perform additional manipulation. So here, for the implementation of external scripts you need to make an effort to adapt the code. In particular, you should probably wrap banner JavaScript code in a function and call it, for example, from the Load event or Page Show. Carefully test these events, there are a number of features worth considering. For example, the Load event for the start Screen triggered only once at runtime, whereas for the other screenshots, the event is called as many times as the user clicks on it. Page Show may not work on WindowsPhone.

Unfortunately, we don't have a specific solution but the task isn't difficult and can be solved.

Return to “Issues”