How do I place adsense ads on a search results page?

I want to show adsense ads on the search results page.

Using Google Custom Search is easy .

However, I have my own search engine for my site, and I want to show adsense ads on the results page. It doesn't seem like it's possible.

My thought is to show my own search results and at the same time trigger a Google search with the same query in the iframe so that I can get the ads and place them on my page. Either in your own iframe, or using JavaScript.

Has anyone done something like this? Do you see any problems with this?

+3
source share
2 answers

What you need is the Google AdSense API . The only caveat is that you should have at least 100,000 daily page views. My company uses this API, and it's pretty easy to do what you're talking about.

If your site has less than the minimum number of page views, well, it looks like you're stuck in the settings available in standard AdSense.

+4
source

I think that’s what you’re looking for "AdSense for search ads" http://code.google.com/apis/afs-ads-only/

0
source

Source: https://habr.com/ru/post/1709864/


All Articles