Method: accounts.get
รับข้อมูลเกี่ยวกับบัญชีผู้เผยแพร่โฆษณา AdMob ที่ระบุ
คำขอ HTTP
GET https://admob.googleapis.com/v1/{name=accounts/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ชื่อทรัพยากรของบัญชีผู้เผยแพร่เนื้อหาที่จะดึงข้อมูล ตัวอย่าง: accounts/pub-9876543210987654
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ PublisherAccount
ขอบเขตการให้สิทธิ์
ต้องมีขอบเขต 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 และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-05-14 UTC
[null,null,["อัปเดตล่าสุด 2024-05-14 UTC"],[[["Retrieves information about a specific AdMob publisher account using a GET request."],["Requires specifying the publisher account's resource name in the request URL path."],["Returns a PublisherAccount object containing the account information if successful."],["Needs authorization with either `admob.readonly` or `admob.report` OAuth scopes."]]],["This document outlines how to retrieve information about an AdMob publisher account. A `GET` request is sent to `https://admob.googleapis.com/v1/{name=accounts/*}`, with the account's resource name (e.g., `accounts/pub-9876543210987654`) specified as a path parameter. The request body must be empty. A successful response returns a `PublisherAccount` instance. Authorization requires either `admob.readonly` or `admob.report` OAuth scopes. The document includes examples and a \"Try it!\" feature.\n"]]