बुनियादी सिद्धांत
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस पेज पर, Google Ad Manager एपीआई के आर्किटेक्चर के बारे में खास जानकारी दी गई है. साथ ही, Ad Manager के सामान्य सिद्धांतों और शर्तों के बारे में भी बताया गया है.
एपीआई आर्किटेक्चर
यहां Ad Manager API की मुख्य क्लास का एक आसान डायग्राम दिया गया है और बताया गया है कि वे एक-दूसरे से कैसे जुड़े हुए हैं:

क्रम
Order
ऑब्जेक्ट में ऑर्डर के बारे में सामान्य जानकारी होती है. जैसे, मुद्रा या विक्रेता. साथ ही, इसमें एक या एक से ज़्यादा LineItem
इंस्टेंस होते हैं. कोड में, हर LineItem
में शामिल Order
का आईडी होता है, न कि Order
में LineItem
ऑब्जेक्ट की सूची.
LineItem
LineItem
ऑब्जेक्ट, किसी विज्ञापन को दिखाने की ज़रूरी शर्तों के बारे में बताता है. इसमें,
विज्ञापन कैसे और कब दिखाए जाने चाहिए, क्रिएटिव के साइज़,
उन्हें दिखाने का क्रम,
इन विज्ञापनों की प्राथमिकता,
इन विज्ञापनों की प्राथमिकता, और कीमत के स्ट्रक्चर जैसी कई प्रॉपर्टी शामिल हैं. LineItem
में एक InventoryTargeting
ऑब्जेक्ट होता है, जिससे पता चलता है कि वह किस AdUnit
और Placement
ऑब्जेक्ट को टारगेट कर सकता है. साथ ही, इसमें दूसरे Targeting
सब-क्लास ऑब्जेक्ट भी होते हैं, जो भौगोलिक, कस्टम या अन्य शर्तों के बारे में बताते हैं.
LineItemCreativeAssociation
LineItemCreativeAssociation
, एक LineItem
को एक Creative
से जोड़ता है. इसे अक्सर एलआईसीए कहा जाता है. लाइन आइटम एक से ज़्यादा क्रिएटिव से लिंक किए जा सकते हैं और आपके खाता टाइप के आधार पर, आप किसी क्रिएटिव को एक से ज़्यादा लाइन आइटम से जोड़ सकते हैं. LineItemCreativeAssociation
बनाने पर,
Ad Manager सबसे पहले यह देखता है कि क्रिएटिव और लाइन आइटम, दोनों एक-दूसरे के साथ काम करते हैं या नहीं.
अगर साइज़ अलग-अलग हैं, तो असोसिएशन बनाने या अपडेट करने पर
आपको गड़बड़ी दिखेगी. यह ऑब्जेक्ट आपको संबंधित LineItem
में कुछ वैल्यू, जैसे कि शुरू/खत्म होने की तारीख या साइज़ (अगर आपके पास कोई क्रिएटिव है जो लाइन आइटम में तय किए गए साइज़ में फ़िट नहीं होता है, लेकिन Ad Manager को क्रिएटिव के साइज़ में तुरंत बदलाव करने की अनुमति दे सकता है) को बदलने की सुविधा भी देता है. एलआईसीए, Ad Manager के यूज़र इंटरफ़ेस में नहीं दिखते. ये एपीआई कंवेंशन हैं.
क्रिएटिव
Creative
असल विज्ञापन को दिखाता है. अगर विज्ञापन को Ad Manager होस्ट करता है, तो
इस ऑब्जेक्ट में Ad Manager के सर्वर पर स्टोर की गई
असल इमेज बाइट, फ़्लैश फ़ाइलें या कस्टम एचटीएमएल टैग होते हैं. अगर क्रिएटिव को
किसी तीसरे पक्ष की साइट पर होस्ट किया गया है, तो क्रिएटिव एक यूआरएल या एचटीएमएल स्निपेट होता है, जो तीसरे पक्ष के सर्वर से अनुरोध करता है.
इन्वेंट्रीटारगेटिंग और टारगेटिंग की सब-क्लास
InventoryTargeting
ऑब्जेक्ट की यह सूची होती है कि कौनसी विज्ञापन यूनिट किसी खास LineItem
से जुड़ी हैं. आपके पास Targeting
की सही सब-क्लास के अतिरिक्त इंस्टेंस का इस्तेमाल करके, टारगेटिंग से जुड़ी अतिरिक्त शर्तों को तय करने का विकल्प होता है. हालांकि, ऐसा करना ज़रूरी नहीं है.
प्लेसमेंट
Placement
ऑब्जेक्ट, एक या उससे ज़्यादा AdUnit
ऑब्जेक्ट का संग्रह होता है.
AdUnit
AdUnit
एक या ज़्यादा पेजों पर विज्ञापन की जगह को दिखाता है. AdUnit
, LineItem
के InventoryTargeting
ऑब्जेक्ट या Placement
ऑब्जेक्ट का टारगेट हो सकता है. AdUnit
ऑब्जेक्ट में साइज़, आईडी, और यूनीक नाम होता है. आईडी का इस्तेमाल एपीआई में अन्य AdUnit
ऑब्जेक्ट की पहचान करने के लिए किया जाता है. किसी खास AdUnit
ऑब्जेक्ट की पहचान करने के लिए, एचटीएमएल टैग में इस नाम को यूनीक आइडेंटिफ़ायर के तौर पर इस्तेमाल किया जाता है. साथ ही, पेज के अनुरोध के तहत इसे Ad Manager को वापस भेज दिया जाता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Google Ad Manager API uses objects like Orders, Line Items, and Creatives to structure and manage ad campaigns.\u003c/p\u003e\n"],["\u003cp\u003eLine Items define ad requirements, targeting criteria, and cost structures, and are linked to Creatives via LineItemCreativeAssociations.\u003c/p\u003e\n"],["\u003cp\u003eCreatives represent the actual ads, which can be hosted by Ad Manager or a third-party server.\u003c/p\u003e\n"],["\u003cp\u003eAd Units represent ad locations on web pages and are targeted by Line Items or Placements, which are collections of Ad Units.\u003c/p\u003e\n"],["\u003cp\u003eInventory Targeting specifies which Ad Units are associated with a Line Item, while Targeting subclasses allow for additional criteria like geography or custom attributes.\u003c/p\u003e\n"]]],["The Google Ad Manager API's core components include `Order`, `LineItem`, `LineItemCreativeAssociation` (LICA), `Creative`, `InventoryTargeting`, `Placement`, and `AdUnit`. An `Order` contains `LineItem` instances, which define ad display requirements. A LICA links a `LineItem` to a `Creative`. `InventoryTargeting` links ad units to `LineItem`. `Placement` is a collection of `AdUnit`, representing ad locations. `Creative` is the actual ad content. AdUnits can be used to identify other adUnits.\n"],null,["# Basic Concepts\n\nThis page provides an overview\nof the architecture of the Google Ad Manager API and describes general concepts and terms in Ad Manager.\n\nAPI Architecture\n----------------\n\nHere is a simplified diagram of the main classes in the Ad Manager API, and how they relate to each other:\n\nOrder\n-----\n\n: An [Order](/ad-manager/api/reference/latest/OrderService.Order) object holds general information about the order such as the currency or salesperson, and contains one or more `LineItem` instances. In code, each `LineItem` holds the ID of its containing `Order`, rather than the `Order` holding a list of `LineItem` objects.\n\nLineItem\n--------\n\n: A [LineItem](/ad-manager/api/reference/latest/LineItemService.LineItem) object describes a set of requirements for an ad to show, including how\n and when the ads should be shown, the sizes of the creatives it should show and\n the order in which to show them (in order, weighted, or according to their performance),\n the priority of these ads, and many properties describing the cost structure. A\n `LineItem` has one `InventoryTargeting` object that describes which `AdUnit` and `Placement` objects it can target, and optional additional `Targeting` subclass objects that represent geographical, custom, or other criteria.\n\nLineItemCreativeAssociation\n---------------------------\n\n: A [LineItemCreativeAssociation](/ad-manager/api/reference/latest/LineItemCreativeAssociationService.LineItemCreativeAssociation) (often called a LICA) links one `LineItem` to\n one `Creative`. Line items can be linked to more than one creative, and depending on your account type, you might be able to link a creative to more than one line item. When you create a `LineItemCreativeAssociation`,\n Ad Manager first checks whether both the creative and the line item are compatible;\n if the sizes differ, for instance, you'll get an error when you try to create\n or update the association. This object also lets you override some values in the associated `LineItem`,\n such as start/end dates, or size (if you have a creative that doesn't\n quite fit the size specified by the line item, but you are willing to let Ad Manager\n adjust the size of the creative to fit the ad unit on the fly). LICAs are not exposed in the Ad Manager user interface; they are an API convention.\n\nCreative\n--------\n\n: A [Creative](/ad-manager/api/reference/latest/CreativeService.Creative) represents the actual ad. If the ad is hosted by Ad Manager,\n this object holds the actual image bytes, flash files, or custom HTML tags stored\n on Ad Manager's servers; if the creative is hosted on a\n third-party site, the creative is a URL or HTML snippet that makes the\n request from the third-party server.\n\nInventoryTargeting and Targeting subclasses\n-------------------------------------------\n\n: The [InventoryTargeting](/ad-manager/api/reference/latest/LineItemService.InventoryTargeting) object lists which ad units are associated with a specific `LineItem`. You can specify additional, optional targeting criteria using additional instances of an appropriate subclass of [`Targeting`](/ad-manager/api/reference/latest/LineItemService.Targeting).\n\nPlacement\n---------\n\n: A [Placement](/ad-manager/api/reference/latest/PlacementService.Placement) object is a collection of one or more `AdUnit` objects.\n\nAdUnit\n------\n\n: An [AdUnit](/ad-manager/api/reference/latest/InventoryService.AdUnit) represents an ad location on one or more pages. An `AdUnit` can be a target of either a `LineItem`'s `InventoryTargeting` object or a `Placement` object. An `AdUnit` object includes a size, an ID, and a unique name. The ID is used to identify other `AdUnit` objects within the API; the name is used as a unique identifier in the HTML tags to identify a specific `AdUnit` object, and is sent back to Ad Manager as part of the page request."]]