---
title: "GET /v2/{+name}/adcode"
method: GET
path: "/v2/{+name}/adcode"
tags: ["accounts"]
---

# GET /v2/{+name}/adcode

`GET /v2/{+name}/adcode`

Gets the ad unit code for a given ad unit. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634) and [Where to place the ad code in your HTML](https://support.google.com/adsense/answer/9190028).

## Path parameters

- `name` string, required

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/adsense.md) · [All operations](https://skmtc.net/google/apis/adsense/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/adsense/versions/89e10b361ad0/schema)
