Method: networks.customTargetingKeys.get
Stay organized with collections
Save and categorize content based on your preferences.
API to retrieve a CustomTargetingKey
object.
HTTP request
GET https://admanager.googleapis.com/v1/{name}
Path parameters
Parameters |
name |
string
Required. The resource name of the CustomTargetingKey. Format: networks/{networkCode}/customTargetingKeys/{customTargetingKeyId}
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of CustomTargetingKey
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admanager
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eRetrieves a \u003ccode\u003eCustomTargetingKey\u003c/code\u003e object using a \u003ccode\u003eGET\u003c/code\u003e request to a specified resource name.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the \u003ccode\u003enetworkCode\u003c/code\u003e and \u003ccode\u003ecustomTargetingKeyId\u003c/code\u003e as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is necessary, and a successful response returns a \u003ccode\u003eCustomTargetingKey\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is essential using the \u003ccode\u003ehttps://www.googleapis.com/auth/admanager\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This API uses a `GET` request to retrieve a `CustomTargetingKey` object. The request URL, structured as `https://admanager.googleapis.com/v1/{name}`, requires a `name` parameter. The `name` parameter specifies the resource in the format: `networks/{networkCode}/customTargetingKeys/{customTargetingKeyId}`. No request body is required. A successful response returns a `CustomTargetingKey` object. The request requires the `https://www.googleapis.com/auth/admanager` OAuth scope.\n"],null,["# Method: networks.customTargetingKeys.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nAPI to retrieve a `CustomTargetingKey` object.\n\n### HTTP request\n\n`GET https://admanager.googleapis.com/v1/{name}`\n\n### Path parameters\n\n| Parameters ||\n|--------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The resource name of the CustomTargetingKey. Format: `networks/{networkCode}/customTargetingKeys/{customTargetingKeyId}` |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [CustomTargetingKey](/ad-manager/api/beta/reference/rest/v1/networks.customTargetingKeys#CustomTargetingKey).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admanager`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]