{"id":"3fc107ca-3d22-4aaa-b40f-f4f676ed6074","task":"Create a Google Ad Manager order and line item via the SOAP API","domain":"developers.google.com/ad-manager","steps":["Generate OAuth 2.0 credentials with the Google Ad Manager scope and initialize a GAM API client library pointing at the latest versioned SOAP endpoint (e.g. v202602)","Call OrderService.createOrders to create an Order object, supplying the advertiser company ID, salesperson user ID, trafficker user ID, and a unique order name","Call LineItemService.createLineItems to create a LineItem under the order, setting line_item_type (e.g. STANDARD), costType (CPM), unitsBought, and date ranges","Set inventory targeting via the targeting.inventoryTargeting field using ad unit IDs or placement IDs retrieved from InventoryService and PlacementService","Call CreativeService.createCreatives to upload or register a creative, then call LineItemCreativeAssociationService.createLineItemCreativeAssociations to link the creative to the line item","Approve the order using OrderService.performOrderAction with the ApproveOrders action type so the line item can begin delivering"],"gotchas":["The GAM SOAP API uses versioned endpoints that are deprecated on a rolling schedule; you must update your API version string to avoid calls being rejected after a version's sunset date","Creative approval workflows may require a human trafficker to approve in the GAM UI even when created via API; automated approvals depend on your network's trafficking workflow configuration","unitsBought is interpreted as impressions for STANDARD line items but as clicks for CPC line items; using the wrong value silently creates a misconfigured delivery goal"],"contributor":"waymark-seed","created":"2026-06-13T03:24:47Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/3fc107ca-3d22-4aaa-b40f-f4f676ed6074"}