क्या आपको Google Ads API के बारे में सुझाव, शिकायत या राय देनी है? उपयोगकर्ताओं पर की जाने वाली रिसर्च में हिस्सा लेने का न्योता पाने के लिए, साइन अप करें!
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
नतीजों का क्रम
ORDER BY क्लॉज़ का इस्तेमाल करके, अपने रिस्पॉन्स में लाइनों का क्रम तय किया जा सकता है. इसमें एक या उससे ज़्यादा कॉमा से अलग किए गए क्रम होते हैं:
FieldName('ASC'|'DESC')?
अगर आपने फ़ील्ड के नाम के बाद ASC या DESC नहीं बताया है, तो Google Ads API डिफ़ॉल्ट रूप से ASC पर सेट हो जाता है.
यहां दिया गया ORDER BY क्लॉज़, कैंपेन-लेवल की रिपोर्ट को इंप्रेशन के घटते क्रम और कैंपेन के नाम के बढ़ते क्रम के हिसाब से क्रम में लगाता है:
ORDERBYmetrics.impressionsDESC,campaign.nameASC
इनके लिए ऑर्डर करने की अनुमति नहीं है:
चुने गए संसाधनों के एट्रिब्यूट के हिसाब से
चुनी गई मेट्रिक के हिसाब से
चुने गए सेगमेंट के हिसाब से
इन टाइप के फ़ील्ड के लिए:
MESSAGE
दोहराए गए फ़ील्ड
दोहराए गए फ़ील्ड के एट्रिब्यूट
नतीजों की संख्या सीमित करना
LIMIT क्लॉज़ का इस्तेमाल करके, दिखाए जाने वाले नतीजों की कुल संख्या को सीमित किया जा सकता है.
नतीजों को क्रम से लगाने की सुविधा के साथ इस विकल्प का इस्तेमाल करके, "सबसे ज़्यादा N" रिपोर्ट बनाई जा सकती हैं. जैसे, ऐसी रिपोर्ट जिसमें पिछले 30 दिनों में सबसे ज़्यादा इंप्रेशन वाले पांच कैंपेन शामिल हों:
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-06-04 (UTC) को अपडेट किया गया."],[[["You can control the order of results using the `ORDER BY` clause, specifying fields and sort direction (ASC or DESC)."],["The `LIMIT` clause lets you restrict the number of returned results, enabling \"top N\" reports when combined with `ORDER BY`."],["Ordering is disallowed by attributes of non-selected resources, by non-selected metrics or segments, and for fields of type `MESSAGE`, repeated fields, or attributes of repeated fields."],["Filtering is restricted for segments without selection (excluding core date segments), fields of non-primitive message types, and attributes of repeated fields with non-primitive message types."]]],[]]