- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- AdSource
- Examples
- Try it!
List the ad sources.
HTTP request
GET https://admob.googleapis.com/v1beta/{parent=accounts/*}/adSources
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent which owns this collection of ad sources. Format: accounts/{publisherId} |
Query parameters
Parameters | |
---|---|
pageSize |
The maximum number of ad sources to return. If unspecified or 0, at most 10,000 ad sources will be returned. The maximum value is 20,000; values above 10,000 will be coerced to 20,000. |
pageToken |
A page token, received from a previous |
Request body
The request body must be empty.
Response body
Response for the ListAdSourcesRequest.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"adSources": [
{
object ( |
Fields | |
---|---|
adSources[] |
The ad sources. |
nextPageToken |
Used to set the |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/admob.readonly
https://www.googleapis.com/auth/admob.report
For more information, see the OAuth 2.0 Overview.
AdSource
Definition of a mediation ad source.
JSON representation |
---|
{ "name": string, "adSourceId": string, "title": string } |
Fields | |
---|---|
name |
Resource name of this ad source. Format is: accounts/{publisherId}/adSources/{adSourceId} |
adSourceId |
ID of this ad source. |
title |
Display name of this ad source. |