Google Ads จะสร้างคำแนะนำโดยอัตโนมัติและให้แนวคิดเกี่ยวกับวิธีเพิ่มประสิทธิภาพบัญชี เช่น ด้วยการเพิ่มงบประมาณแคมเปญในแคมเปญที่จำกัดหรือเพิ่มคีย์เวิร์ดที่เกี่ยวข้อง ดูรายการประเภทคําแนะนําทั้งหมดได้ในเอกสารประกอบของ Google Ads API
เรียกดูคำแนะนำ
หากต้องการดึงคำแนะนำ ให้ใช้ตัวเลือก AdsApp.recommendations()
ซึ่งทำงานคล้ายกับตัวเลือกอื่นๆ ในการให้คุณระบุเงื่อนไขเกี่ยวกับประเภทของคำแนะนำที่จะแสดง
const selector = AdsApp.recommendations()
.withCondition('recommendation.type IN (CAMPAIGN_BUDGET)');
const recommendations = selector.get();
ใช้คำแนะนำ
เมื่อคุณดึงคำแนะนำแล้ว ให้ใช้คำแนะนำดังนี้
for (const recommendation of recommendations) {
// Perform whatever check here that works for your use case.
// You can also potentially skip this step if you've sufficiently narrowed
// down what recommendations you're selecting initially with customized
// withCondition clauses in the previous step.
if (shouldApply(recommendation)) {
recommendation.apply();
}
}