我对使用Google搜索有疑问。 我可以在我的原生iOS应用中使用自定义谷歌搜索,而不是使用他们的api工具,这是谷歌的问题吗?Google搜索政策
我写html页面(http://barzyczak.vot.pl/search.html?q=test):
<!DOCTYPE html>
<html>
<head>
<title>Element V2: Results Only Layout Demo</title>
<!-- Put the following javascript before the closing </head> tag. -->
<script>
(function() {
var cx = 'xyz';
var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
})();
</script>
</head>
<body>
<!-- Place this tag where you want the search results to render -->
<gcse:searchresults-only enableOrderBy="false"></gcse:searchresults-only>
</body>
我请求网站上面的内容在我的iOS应用,并接收结果。我给这导致的UIWebView:
所以我用
- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationTyp
并重定向用户到我的UIViewController?这对Google政策适用吗?
我可以拦截/捕获用户点击链接并打开原生应用程序视图而不是webview,或者我应该在webview中打开所需页面,然后用iOS模式URL重定向(使用301代码)所以真的模拟点击谷歌)?
诗篇。 我知道Google API,但这对我来说并不合适。
我不认为谷歌的政策与您的应用程序导航的地方有任何关系! – nsgulliver 2013-03-11 13:17:33
但我也可以在搜索结果中导航Google广告吗? :) – 2013-03-11 13:27:37
广告通常是前两个链接,虽然谷歌可能不喜欢它,如果你跳过广告 – GangstaGraham 2013-03-12 22:52:07