हमारे प्रॉडक्ट के बारे में चर्चा करने और सुझाव देने के लिए, Google विज्ञापन और मेज़रमेंट कम्यूनिटी सर्वर में Google Ads के आधिकारिक Discord चैनल से जुड़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Ads API में, हर शर्त की रिपोर्ट को एक अलग संसाधन से दिखाया जाता है.
जब तक ज़रूरी न हो, तब तक *_view रिसॉर्स में सिर्फ़ resource_name
फ़ील्ड होता है.
अगर किसी खास शर्त के हिसाब से डेटा फ़ेच करना है, तो Google Ads API क्लाइंट को उससे जुड़े ad_group_criterion या
campaign_criterion फ़ील्ड की जानकारी देनी होगी.
इसकी मदद से, Google Ads API क्लाइंट एक ही अनुरोध में GoogleAdsService.SearchStream के लिए, ad_group_criterion या campaign_criterion फ़ील्ड और *_view संसाधन का अनुरोध कर सकते हैं.
किसी खास तरह की शर्त के लिए परफ़ॉर्मेंस डेटा (मेट्रिक) पाने के लिए, FROM क्लॉज़ में उससे जुड़ा व्यू रिसॉर्स बताएं. उदाहरण के लिए, कीवर्ड मेट्रिक पाने के लिए, FROM क्लॉज़ में keyword_view और SELECT क्लॉज़ में कुछ metrics फ़ील्ड का इस्तेमाल करें.
शर्तों वाले व्यू से, पैरंट रिसॉर्स से लेकर customer तक के फ़ील्ड चुने जा सकते हैं. उदाहरण के लिए, FROMkeyword_view चुनने पर, इन सभी संसाधनों से फ़ील्ड का अनुरोध किया जा सकता है:
ad_group_criterion
ad_group
campaign
customer
किसी संसाधन के लिए, इस तरीके से अनुरोध किए जा सकने वाले संसाधनों के बारे में जानने के लिए, उसके रेफ़रंस पेज की एट्रिब्यूट संसाधन लाइन देखें. उदाहरण के लिए, keyword_view के लिए संसाधन, उसके रेफ़रंस पेज पर मिल सकते हैं.
[[["समझने में आसान है","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-09-05 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eEach criteria report in the Google Ads API is a separate resource, and clients need to specify \u003ccode\u003ead_group_criterion\u003c/code\u003e or \u003ccode\u003ecampaign_criterion\u003c/code\u003e fields to fetch specific criteria data.\u003c/p\u003e\n"],["\u003cp\u003eTo get performance data for a criteria type, use its corresponding view resource (e.g., \u003ccode\u003ekeyword_view\u003c/code\u003e) in the \u003ccode\u003eFROM\u003c/code\u003e clause of your query.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve data from parent resources, like \u003ccode\u003ead_group\u003c/code\u003e, \u003ccode\u003ecampaign\u003c/code\u003e, and \u003ccode\u003ecustomer\u003c/code\u003e, when querying a criteria view.\u003c/p\u003e\n"],["\u003cp\u003eThe "Attribute Resources" section on a resource's reference page shows which related resources can be included in your queries.\u003c/p\u003e\n"]]],[],null,["# Criteria Metrics\n\nIn the Google Ads API, each criteria report is represented by a separate resource.\nUnless otherwise necessary, `*_view` resources contain only a `resource_name`\nfield.\n\nGoogle Ads API clients must specify corresponding `ad_group_criterion` or\n`campaign_criterion` fields if any criteria specific data needs to be fetched.\nThis lets Google Ads API clients request `ad_group_criterion` or `campaign_criterion`\nfields and the `*_view` resource in the same request to the\n[`GoogleAdsService.SearchStream`](/google-ads/api/reference/rpc/v21/GoogleAdsService/SearchStream)\nmethod.\n\nSample query request\n--------------------\n\n SELECT\n ad_group_criterion.keyword.text,\n ad_group.name,\n campaign.name,\n metrics.impressions,\n metrics.clicks,\n metrics.ctr,\n metrics.average_cpc\n FROM keyword_view\n WHERE segments.date DURING LAST_30_DAYS\n\nTo retrieve performance data (metrics) for a specific criteria type, specify its\ncorresponding view resource in the `FROM` clause. For example, use\n`keyword_view` in the `FROM` clause and some `metrics` fields in the `SELECT`\nclause to retrieve keyword metrics.\n\nYou can select fields from parent resources all the way up to `customer` from a\ncriteria view. For example, when selecting `FROM` the `keyword_view`, you can\nrequest fields from all of the following resources:\n\n- `ad_group_criterion`\n- `ad_group`\n- `campaign`\n- `customer`\n\nTo discover the resources that can be requested in this way for a given\nresource, check the **Attribute Resources** row of its reference page. For\nexample, for `keyword_view`, you can find its resources on its [reference\npage](/google-ads/api/fields/v21/keyword_view)."]]