Hello, Ads are designed to only be shown when your site's visitors actually perform searches of their own. You can do default searches with the .execute method, but users will only see an ad if they do a subsequent search that they've entered themselves.
Please don't attempt to circumvent this behavior - doing so could be considered a violation of the ads policy and be cause for suspension of access to the API. Thanks! Adam On Jun 20, 2:18 am, MrSulo <[email protected]> wrote: > Hi all, > when i start the Google search with this code .. > > function test_start() > { > google.load( > "search", "1", > { "language" : "de", > "callback" : "apiLoaded" > });} > > function apiLoaded() > { > var customSearchControl = new > google.search.CustomSearchControl('0038726555587615084:qeryjmqhn2e'); > > customSearchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET); > customSearchControl.draw('g_results'); > customSearchControl.addSearcher(new google.search.ImageSearch()); > customSearchControl.addSearcher(new google.search.NewsSearch()); > customSearchControl.addSearcher(new google.search.BlogSearch()); > customSearchControl.addSearcher(new google.search.BookSearch()); > customSearchControl.execute('test'); > > } > > i didnt get the Adsense Ads... only when i press the search button. > But why? > > Greetz from Germany > MrSulo -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
