我對使用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