Search Ads 360 Reporting API เวอร์ชันใหม่พร้อมให้ใช้งานแล้ว เข้าร่วมกลุ่ม Google
searchads-api-announcements เพื่อติดตามการปรับปรุงและรุ่นที่กำลังจะเปิดตัว
คำถามที่พบบ่อย
หน้านี้รวบรวมเคล็ดลับที่อาจเป็นประโยชน์เมื่อสร้างคำค้นหารายการแรก
ปัญหา: เมตริกไม่ปรากฏในผลลัพธ์
เมตริกที่เกี่ยวข้องกับสกุลเงิน (เช่น metrics.cost_micros) ต้องระบุ segments.date
ในคำสั่ง SELECT และในคำสั่ง WHERE
ปัญหา: โอเปอเรเตอร์ CONTAINS ใช้กับช่องสตริงไม่ได้
เมื่อต้องการตรวจสอบว่าฟิลด์สตริงมีสตริงย่อยหรือไม่ อย่าใช้โอเปอเรเตอร์ CONTAINS
(หรือ CONTAINS NOT
)
CONTAINS
มีไว้เพื่อใช้กับช่องที่จัดเก็บรายการค่าและคุณต้องการตรวจสอบว่ารายการดังกล่าวมีค่าที่เฉพาะเจาะจงอย่างน้อย 1 ค่าหรือไม่
หากต้องการตรวจสอบว่ามีสตริงย่อยหรือไม่ คุณสามารถใช้ REGEXP_MATCH
เช่น
SELECT
customer.descriptive_name,
... // other fields
FROM
campaign
WHERE customer.descriptive_name REGEXEP_MATCH 'Customer.*'
ดูข้อมูลเพิ่มเติม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-24 UTC
[null,null,["อัปเดตล่าสุด 2024-11-24 UTC"],[[["Currency metrics like `metrics.cost_micros` require including `segments.date` in both the SELECT and WHERE clauses to appear in results."],["Avoid using the `CONTAINS` operator for substring checks in string fields; utilize `REGEX_MATCH` instead for this purpose."],["The `CONTAINS` operator is designed for verifying if a list-type field contains specific values."]]],["Currency metrics like `metrics.cost_micros` require `segments.date` in both the SELECT and WHERE clauses. The `CONTAINS` operator is not for substring searches within string fields; it's for checking value lists. Use `REGEXP_MATCH` to find substrings in string fields, as demonstrated with the example of searching `customer.descriptive_name` for patterns like 'Customer.*'.\n"]]