Method: accounts.list
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำขอ HTTP
GET https://admob.googleapis.com/v1beta/accounts
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์การค้นหา
พารามิเตอร์ |
pageSize |
integer
จำนวนบัญชีสูงสุดที่จะส่งคืน
|
pageToken |
string
ค่าที่แสดงผลโดย ListPublisherAccountsResponse ที่แล้ว ระบุว่านี่เป็นการเรียกที่ต่อเนื่องมาจากการเรียก accounts.list ก่อนหน้านี้ และระบบควรจะแสดงหน้าถัดไปของข้อมูล
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
การตอบกลับคำขอรายการบัญชีผู้เผยแพร่เนื้อหา
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"account": [
{
object (PublisherAccount )
}
],
"nextPageToken": string
} |
ช่อง |
account[] |
object (PublisherAccount )
ผู้เผยแพร่เนื้อหาที่ข้อมูลเข้าสู่ระบบไคลเอ็นต์เข้าถึงได้
|
nextPageToken |
string
หากไม่ว่างเปล่า แสดงว่าอาจมีบัญชีเพิ่มขึ้นสำหรับคำขอ คุณต้องส่งค่านี้ใน ListPublisherAccountsRequest ใหม่
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth รายการใดรายการหนึ่งต่อไปนี้
https://www.googleapis.com/auth/admob.readonly
https://www.googleapis.com/auth/admob.report
สำหรับข้อมูลเพิ่มเติม โปรดดูที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-21 UTC
[null,null,["อัปเดตล่าสุด 2025-08-21 UTC"],[[["\u003cp\u003eLists the most recently signed-in AdMob publisher account and provides pagination for accessing more accounts.\u003c/p\u003e\n"],["\u003cp\u003eRequires an empty request body and returns a list of publisher accounts along with a token for retrieving subsequent pages.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes gRPC Transcoding for the URL structure and offers parameters for controlling the response size and pagination.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with specific OAuth scopes for accessing AdMob data, either read-only or with reporting permissions.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListPublisherAccountsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nLists the AdMob publisher account that was most recently signed in to from the AdMob UI. For more information, see \u003chttps://support.google.com/admob/answer/10243672\u003e.\n\n### HTTP request\n\n`GET https://admob.googleapis.com/v1beta/accounts`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Maximum number of accounts to return. |\n| `pageToken` | `string` The value returned by the last `ListPublisherAccountsResponse`; indicates that this is a continuation of a prior `accounts.list` call, and that the system should return the next page of data. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse for the publisher account list request.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"account\": [ { object (/admob/api/reference/rest/v1beta/accounts#PublisherAccount) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `account[]` | `object (`[PublisherAccount](/admob/api/reference/rest/v1beta/accounts#PublisherAccount)`)` Publisher that the client credentials can access. |\n| `nextPageToken` | `string` If not empty, indicates that there might be more accounts for the request; you must pass this value in a new `ListPublisherAccountsRequest`. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/admob.readonly`\n- `\n https://www.googleapis.com/auth/admob.report`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]