CustomSearchId Parameter (Connect-GoogleSearch Cmdlet)
The Id of the Custom Search engine.
Syntax
Connect-GoogleSearch -CustomSearchId string
Data Type
cstr
Default Value
""
Remarks
The Id of the Custom Search engine. You can obtain an Id by logging into your Google account and creating a Custom Search engine. An APIKey is also required to connect.
Creating a Custom Search Engine
Follow the steps below to create a custom search engine and obtain the CustomSearchId value:
- Sign into the Google Custom Search Engine site.
- Click New Search Engine and add a site to focus the search on.
- Click Edit Seach Engine, select your search engine in the menu, and then click Setup.
- In the Details section, click Search Engine Id to retrieve the search engine Id used as the CustomSearchId in the connection string.
- In the Sites to Search section, you can additionally select the Search the Entire Web but Emphasize Included Sites option in the menu.