I asked, and now I'll answer my own question. I went to admob.com, and you can set up an application on a specific platform, and they will give you code you can put in an HTML page to generate an ad. So you could make a small web view on your app and put the ad there. Don't select the iPhone app or they will give you objective-c code.
You can select an iPhone webapp. You can also select a mobile website, and they'll give you php code that generates ads anywhere, not just on an iphone browser. You can then use this for any app or website you make. But then, you need to host that page somewhere because it is php.
The iPhone site has all the code there that you can put in your web view. But it only works on an iphone browser or web view.
For example, on a web view or safari iphone browser you can go to here
It generates an iPhone-specific ad
or go to here
and it generates an ad that runs on any (mobile or otherwise) browser.
Hope this helps.
How much do they pay?
Awesome job, Shawn, and thanks for sharing! I'm sure that'll make lots of folks here happy. :)
From what I see, it's around 20-80 cents per 1000 ad views. More if someone clicks on the ad. You are allowed to refresh the ad no more than once per minute.
So if 1 million people play your app for 1 hour, you would get between 12,000 and 48,000. But then there's the fill rate - how many ads they have. That can go below 100%, so your amount goes down.
I don't have my app updated yet, so I don't have a good feeling for what this really means.
Thank you for sharing. I was wondering how we could do it?