Method: accounts.adclients.urlchannels.get
Stay organized with collections
Save and categorize content based on your preferences.
Gets information about the selected url channel.
HTTP request
GET https://adsense.googleapis.com/v2/{name=accounts/*/adclients/*/urlchannels/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. The name of the url channel to retrieve. Format: accounts/{account}/adclients/{adclient}/urlchannels/{urlchannel}
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of UrlChannel
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/adsense
https://www.googleapis.com/auth/adsense.readonly
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 2024-08-21 UTC.
[null,null,["Last updated 2024-08-21 UTC."],[[["\u003cp\u003eRetrieves detailed information about a specific URL channel within your AdSense account.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the URL channel's name using a structured format in the request path.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is necessary, and a successful response includes a comprehensive \u003ccode\u003eUrlChannel\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization necessitates using specific OAuth scopes related to AdSense data access.\u003c/p\u003e\n"]]],["This document outlines how to retrieve information about a specific URL channel via an API. The core action is a `GET` request to a URL following the defined format: `https://adsense.googleapis.com/v2/{name=accounts/*/adclients/*/urlchannels/*}`. The `name` parameter, following a specific format, is mandatory. The request body must be empty. A successful response will return a `UrlChannel` instance. The request requires OAuth scopes, specifically either `adsense` or `adsense.readonly`.\n"],null,["# Method: accounts.adclients.urlchannels.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\nGets information about the selected url channel.\n\n### HTTP request\n\n`GET https://adsense.googleapis.com/v2/{name=accounts/*/adclients/*/urlchannels/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the url channel to retrieve. Format: accounts/{account}/adclients/{adclient}/urlchannels/{urlchannel} |\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 [UrlChannel](/adsense/management/reference/rest/v2/accounts.adclients.urlchannels#UrlChannel).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/adsense`\n- `\n https://www.googleapis.com/auth/adsense.readonly`"]]