चेतावनी: आप एपीआई के REST इंटरफ़ेस के बारे में दस्तावेज़ देख रहे हैं. हमारी ज़्यादातर आधिकारिक क्लाइंट लाइब्रेरी, gRPC का इस्तेमाल करती हैं. ज़्यादा जानकारी के लिए, REST के बारे में जानकारी देखें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Ads API का डिज़ाइन, सामान्य REST आर्किटेक्चर से अलग है, क्योंकि यह मुख्य रूप से list, get, create, update, और delete जैसे सामान्य तरीकों के बजाय, search और mutate, जैसे कस्टम तरीकों का इस्तेमाल करता है.
इन ऐक्शन को REST यूआरएल में दिखाया जाता है. इसके लिए, : के एचटीटीपी मैपिंग प्रोटोकॉल का इस्तेमाल किया जाता है, ताकि कस्टम वर्ब को बाकी यूआरएल से अलग किया जा सके.
उदाहरण के लिए, कैंपेन में बदलाव करने वाले एपीआई कॉल में इस यूआरएल का इस्तेमाल किया जाता है:
एपीआई, कस्टम तरीकों का इस्तेमाल इसलिए करता है, ताकि एक ही एपीआई अनुरोध में कई ऑपरेशन को एक साथ किया जा सके. सख्त REST सेमेटिक्स की मदद से, एक बार में सिर्फ़ एक कैंपेन को अपडेट किया जा सकता है. उदाहरण के लिए, किसी कैंपेन के लिए, सामान्य REST update का इस्तेमाल करने पर, हर कैंपेन रिसॉर्स के लिए एक एचटीटीपी पैच अनुरोध भेजना होगा.
एक अनुरोध बॉडी में कई ऑपरेशन को एक साथ बंडल करने की अनुमति देने के लिए, Google Ads API, ज़्यादातर संसाधनों के लिए कस्टम mutate तरीका तय करता है.
इसी तरह, एपीआई से एक साथ कई ऑब्जेक्ट फ़ेच करने (बैच रीड) की सुविधा चालू करने के लिए, एपीआई, SQL जैसी Google Ads क्वेरी लैंग्वेज के साथ कस्टम search तरीके का इस्तेमाल करता है.
सामान्य तरीके पेज पर, Google Ads API में सबसे ज़्यादा इस्तेमाल किए जाने वाले तरीकों के बारे में पूरी जानकारी दी गई है.
[[["समझने में आसान है","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\u003eThe Google Ads API utilizes custom methods like \u003ccode\u003esearch\u003c/code\u003e and \u003ccode\u003emutate\u003c/code\u003e instead of standard REST methods for efficiency and batch operations.\u003c/p\u003e\n"],["\u003cp\u003eThis approach allows for updating multiple campaigns or fetching numerous objects within a single request, unlike traditional REST.\u003c/p\u003e\n"],["\u003cp\u003eCustom methods are expressed in REST URLs using a colon to separate the verb from the rest of the URL, for example, \u003ccode\u003ehttps://googleads.googleapis.com/v18/customers/1234567890/campaigns:mutate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBatching operations, like updating many campaigns simultaneously, are enabled through the custom \u003ccode\u003emutate\u003c/code\u003e method, improving efficiency over individual requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esearch\u003c/code\u003e method uses a SQL-like query language for batch reads, enabling retrieval of multiple objects in one API call.\u003c/p\u003e\n"]]],["The Google Ads API uses custom methods like `search` and `mutate` instead of standard REST methods (e.g., `list`, `get`). This is indicated in URLs by a `:` separator. `Mutate` enables batching multiple operations into one request, unlike standard `update`, which handles one campaign at a time. Similarly, `search` allows fetching multiple objects in a single request, utilizing a SQL-like query language. This deviates from REST conventions to facilitate efficient batch processing and querying.\n"],null,["# Service Methods\n\nThe design of the Google Ads API differs from a traditional REST architecture\nbecause it primarily uses custom methods, such as `search` and `mutate,` instead\nof the more traditional `list`, `get`, `create`, `update`, and `delete` methods.\nThese actions are expressed in REST URLs by using the [HTTP mapping](https://cloud.google.com/apis/design/custom_methods#http_mapping)\nconvention of a `:` to separate the custom verb from the rest of the URL.\n\nFor example, a campaign mutate API call uses the following URL: \n\n https://googleads.googleapis.com/v21/customers/1234567890/campaigns:mutate\n\nOne reason that the API uses custom methods is to enable batching of multiple\noperations into a single API request. Strict REST semantics would only allow\nupdating one campaign at a time. A traditional REST\n[`update`](https://cloud.google.com/apis/design/standard_methods#update) to a\ncampaign, for example, would require sending one HTTP PATCH request per campaign\nresource.\n\nTo allow many operations to be bundled together within a single request body,\nthe Google Ads API instead defines a custom `mutate` method for most resources.\nSimilarly, to enable batch reads (fetching many objects at once) from the API,\nthe API uses a custom `search` method with a SQL-like [Google Ads Query\nLanguage](/google-ads/api/docs/query/overview).\n\nThe [Common methods](/google-ads/api/rest/common/overview) page goes into detail on\nthe most frequently used methods in the Google Ads API."]]