so i got a work around that requires changing the google javascript. I don't if everyone gets the same link, but if you look at js that google provides, the last line is 'document.write(T.join(""))' . I added a variable to the the top and captured the T.join to the variable, I've attached my file.
I added this to my custom js file:
- $('[data-role=page]').live('pageshow', function (event, ui) {
- if ( $(this).find('[data-role=footer]').find('div').length == 0 ){
- $(this).find('[data-role=footer]').append(GoogleAd);
- }
- });
I call this google_ads.js at the end of layout and this will populate the GoogleAd variable. you will need a blank footer div.