Where to find the Google CSE ID?

Last Updated: 20 June 2015

Hits: 7141

If you want to use the GoogleSearch (CSE) component in your Joomla site, you need the Google CSE ID. So where do you find this Google CSE ID?

The Google CSE ID is the unique CSE ID generated by Google for it's Custom Search Engine (CSE). It looks something like partner-pub-1234567812345678:1smy9a-qdjr. It shows up as a "cx" value in the search box code provided by Google.

What do the different free editions mean? "Free" and "Free - (partner CSE)

If you create the Search Engine using Google's Custom Search, you will see it listed as "Free" in the column "Edition". The Google CSE ID will appear in the following format:

123456789012345678901:abcdef12345

However, if you create the Search Engine from within Google Adsense, then it will be listed as Free - (partner CSE) in the column "Edition". The Google CSE ID will appear in the following format:

partner-pub-1234567890123456:abcde12345

As advised by Google in this article, "If you already have an existing AdSense account, we recommend that you create all your search engines in AdSense for search."

For my case, I also find that only the custom search engine created from within Google AdSense works with this component, i.e. use the Google CSE ID that starts with "partner-pub-".

Once you have created the Custom Search Engine in Google AdSense, you can then edit the search engine using Google Custom Search, which has some additional features for customization, refinements, etc.