Method: listPlannableLocations

แสดงรายการสถานที่ตั้งที่วางแผนได้ (เช่น ประเทศ)

รายการข้อผิดพลาดที่เกิดขึ้น: AuthenticationError AuthorizationError HeaderError InternalError QuotaError RequestError

คำขอ HTTP

POST https://googleads.googleapis.com/v15:listPlannableLocations

URL ใช้ไวยากรณ์การแปลง gRPC

เนื้อหาของคำขอ

เนื้อหาของคำขอต้องว่างเปล่า

เนื้อหาการตอบกลับ

รายการสถานที่ที่วางแผนได้

หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้

การแสดง JSON
{
  "plannableLocations": [
    {
      object (PlannableLocation)
    }
  ]
}
ช่อง
plannableLocations[]

object (PlannableLocation)

รายการสถานที่ที่สามารถวางแผนได้ ดูตัวอย่างสถานที่ตั้งได้ที่ https://developers.google.com/google-ads/api/reference/data/geotargets

ขอบเขตการให้สิทธิ์

ต้องใช้ขอบเขต OAuth ต่อไปนี้

  • https://www.googleapis.com/auth/adwords

ดูข้อมูลเพิ่มเติมได้ที่ภาพรวมของ OAuth 2.0

PlannableLocation

สถานที่ที่วางแผนได้: ประเทศ เขตเมืองใหญ่ จังหวัด ฯลฯ

การแสดง JSON
{
  "id": string,
  "name": string,
  "parentCountryId": string,
  "countryCode": string,
  "locationType": string
}
ช่อง
id

string

ตัวระบุสถานที่ตั้ง

name

string

ชื่อสถานที่ตั้งที่ไม่ซ้ำกันเป็นภาษาอังกฤษ

parentCountryId

string (int64 format)

ประเทศหลัก (ไม่แสดงหากสถานที่ตั้งเป็นประเทศ) หากมี จะเป็นรหัส GeoTargetConstant เสมอ ข้อมูลเพิ่มเติม เช่น ชื่อประเทศ มาจาก ReachPlanService.ListPlannableLocations หรือ GoogleAdsService.Search/SearchStream

countryCode

string

รหัสประเทศ ISO-3166-1 alpha-2 ที่เชื่อมโยงกับสถานที่ตั้ง

locationType

string

ประเภทของสถานที่ ประเภทสถานที่ตั้งจะสอดคล้องกับ targetType ที่แสดงผลโดยการค้นหาประเภทสถานที่ตั้งใน GoogleAdsService.Search/SearchStream