guptahanu / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 1 forks source link

customSearchControl.enableAds is always necessary even with a link #459

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Simply trying the CustomSearchControl with an example as per the docs:
var customSearchControl = new google.search.CustomSearchControl('xxx');
customSearchControl.enableAds('yyy');  

However the enableAds call shouldn't be needed, as per the docs "Note: If
you supplied a Custom Search  ID in the constructor, you must enter your
AdSense Publisher ID into the CSE Control Panel, rather than using this
method."

But if I don't use the enableAds method (i.e. don't call it), no AdSense
adverts are displayed at the top of the results.  This is despite the fact
that my AdSense ID has been entered into my CSE control panel.

Original issue reported on code.google.com by antony.g...@gmail.com on 20 May 2010 at 12:35

GoogleCodeExporter commented 8 years ago
Hi Antony, the fact that ads are not showing is not tied to whether or not the 
pub-ID 
is in the CSE/enableAds call. There might be another reason that the ads do not 
show 
up. If you wouldn't mind sending me your CX ID or a page where I could see this 
issue 
in action, I'll look into it further.

Original comment by jscud.w...@gmail.com on 25 May 2010 at 5:09

GoogleCodeExporter commented 8 years ago

Original comment by jscud.w...@gmail.com on 29 Jul 2010 at 11:31