I have created a CSE and need to programatically update the promotions. This is done in a backend system and user interaction in the authentication process is therefore not an option.
Updating the promotions can be done with their Custom Search API via HTTP. This process needs an authentication token.
Their documentation says that Custom Search only supports "ClientLogin" authentication. This has been deprecated by Google and it also involves CAPTCHAs so this is not an option. They also state that all authentication should be done through OAuth2 now.
I have already implemented OAuth2 without user interaction with Google Analytics API.
My problem is: I cannot find the scope value for Custom Search API to use with OAuth2. Any ideas?
I believe you can use the API Key function (which is not an OAuth 2 key) to access CSE apis.
here's the documentation. https://developers.google.com/custom-search/v1/using_rest?hl=en
Is there some reason the API key doesn't work and you need OAuth2?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With