मुझे Google खोज का उपयोग करने के बारे में प्रश्न है। क्या मैं अपने एपीआई उपकरण का उपयोग करने के बजाय अपने मूल आईओएस ऐप में कस्टम Google खोज का उपयोग कर सकता हूं, क्या यह Google के लिए एक समस्या है?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 नीति के लिए ठीक है?
क्या मैं लिंक पर उपयोगकर्ता के क्लिक को रोक/पकड़ सकता हूं और वेबव्यू के बजाय मूल एप्लिकेशन दृश्य खोल सकता हूं या फिर मुझे वेबव्यू में वांछित पृष्ठ खोलना चाहिए, और उसके बाद आईओएस स्कीमा यूआरएल के साथ रीडायरेक्ट (301 कोड के साथ), जो मूल ऐप व्यू खोलता है (तो वास्तव में Google में क्लिक अनुकरण अनुकरण)?
Ps। मुझे Google एपीआई के बारे में पता है, लेकिन यह मेरे लिए ठीक नहीं है।
मुझे नहीं लगता कि Google नीति के पास आपके आवेदन में नेविगेट करने के साथ कुछ भी करना है! – nsgulliver
लेकिन क्या मैं खोज परिणामों में Google विज्ञापन भी नेविगेट कर सकता हूं? :) –
विज्ञापन आम तौर पर पहले दो लिंक होते हैं, हालांकि यदि आप विज्ञापनों को छोड़ देते हैं तो Google इसे पसंद नहीं कर सकता – GangstaGraham