: 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.
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?
More posts by @Heady270
2 Comments
Sorted by latest first Latest Oldest Best
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!
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.