Mobile app version of vmapp.org
Login or Join
Heady270

: AdSense Custom Search Ads - custom query I'm trying to set up a custom search ad, but I am nost sure about the query. On the site it says: 'query' should be dynamic based on your page.

@Heady270

Posted in: #GoogleAdsense

I'm trying to set up a custom search ad, but I am nost sure about the query.

On the site it says:


'query' should be dynamic based on your page. This variable targets the ads and therefore should always match what the user on your site has just performed a search for.


Now, what I understand is: I have to program my page so that the query variable contains some custom words. Am I right?

If a user gets to my site through clicking on an AdSense, there is no way to "know" what the user looked for and display my query accordingly, right?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

2 Comments

Sorted by latest first Latest Oldest Best

 

@Jennifer507

I found out the answer, and it it yes, you have to program your javascript to grab the search parameters and put them into the "query" variable inside the adsense code!

10% popularity Vote Up Vote Down


 

@Cody1181609

Can you post a link to your site so I can answer better?

Custom search ads are intended for search engines. Is your site a search engine? If so, it should have a query box, which you should integrate into the code.

If your site is not a search engine, then you should use regular adsense.

Have you applied and been approved for Adsense custom search ads? Using it requires special approval per site.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme