หากต้องการสร้างแคมเปญ Performance Max ใหม่ตั้งแต่ต้น คุณต้องสร้างสิ่งต่อไปนี้อย่างน้อย
- แคมเปญเอง
- งบประมาณ
- ชิ้นงานระดับบัญชี
- กลุ่มชิ้นงาน
- ลิงก์ระหว่างชิ้นงานในบัญชีกับ กลุ่มชิ้นงานที่คุณจะใช้สําหรับแคมเปญนี้
แคมเปญและงบประมาณมีประโยชน์ในการสร้างแคมเปญทุกประเภท ในขณะที่การดำเนินการที่เกี่ยวข้องกับชิ้นงานจะมีประโยชน์อย่างยิ่งในการสร้าง แคมเปญ Performance Max ไปที่คู่มือชิ้นงาน Performance Max เพื่อดูวิธีสร้างชิ้นงานโดยใช้สคริปต์
โปรดทำความคุ้นเคยกับกลยุทธ์การเปลี่ยนแปลง เนื่องจากคำแนะนำนี้จะให้เฉพาะออบเจ็กต์ JavaScript ที่ใช้ในการเปลี่ยนแปลงเท่านั้น
งบประมาณ
งบประมาณต้องไม่ใช้ร่วมกัน และต้องมีชื่อที่ไม่ซ้ำกันในบัญชี ใช้
CampaignBudgetOperation
const budgetOperation = {
"campaignBudgetOperation": {
"create": {
"resourceName": `customers/${customerId}/campaignBudgets/${getNextTempId()}`,
"name": "Performance Max campaign budget",
"amountMicros": "50000000",
"deliveryMethod": "STANDARD",
"explicitlyShared": false
}
}
}
operations.push(budgetOperation);
แคมเปญ
แคมเปญต้องอ้างอิงงบประมาณ คุณจึงต้องใช้ชื่อทรัพยากรงบประมาณที่แน่นอน
ซึ่งคุณสร้างขึ้นในขั้นตอนก่อนหน้าเพื่อระบุและใช้วัตถุ
งบประมาณที่เฉพาะเจาะจงนั้น ใช้ CampaignOperation
const campaignOperation = {
"campaignOperation": {
"create": {
"resourceName": `customers/${customerId}/campaigns/${getNextTempId()}`,
"name": "Performance Max campaign",
"status": "PAUSED",
"advertisingChannelType": "PERFORMANCE_MAX",
"campaignBudget": budgetOperation.campaignBudgetOperation.create.resourceName,
"biddingStrategyType": "MAXIMIZE_CONVERSION_VALUE",
"startDate": "20240314",
"endDate": "20250313",
"urlExpansionOptOut": false,
"maximizeConversionValue": {
"targetRoas": 3.5
},
"containsEuPoliticalAdvertising": false
}
}
}
operations.push(campaignOperation);
กลุ่มชิ้นงาน
กลุ่มชิ้นงานสําหรับแคมเปญนี้ต้องมีการอ้างอิงถึงแคมเปญ และ
จะต้องอ้างอิงในภายหลังเมื่อคุณลิงก์ชิ้นงานกับกลุ่มชิ้นงาน ใช้
AssetGroupOperation
const assetGroupOperation = {
"assetGroupOperation": {
"create": {
"resourceName": `customers/${customerId}/assetGroups/${getNextTempId()}`,
"campaign": campaignOperation.campaignOperation.create.resourceName,
"name": "Performance Max asset group",
"finalUrls": [
"http://www.example.com"
],
"finalMobileUrls": [
"http://www.example.com"
],
"status": "PAUSED"
}
}
}
operations.push(assetGroupOperation);
ลิงก์กลุ่มชิ้นงาน
เมื่อมีกลุ่มชิ้นงานและชิ้นงาน (จากขั้นตอนก่อนหน้า) แล้ว คุณจะต้องลิงก์กลุ่มชิ้นงานและชิ้นงานเข้าด้วยกันเพื่อให้แคมเปญ Performance Max ทราบว่าคุณต้องการใช้ชิ้นงานใด คุณต้องดำเนินการนี้ในคำขอเดียวกันกับที่สร้าง
กลุ่มชิ้นงานในตอนแรก หากต้องการทำเช่นนี้ ให้ใช้ AssetGroupAssetOperation
คุณจะต้องระบุชื่อทรัพยากรของชิ้นงานที่ถูกต้อง รวมถึงแก้ไข
fieldType เป็นค่าที่เหมาะสมสำหรับชิ้นงานที่คุณลิงก์ ดูรายการประเภทฟิลด์ที่ถูกต้องทั้งหมด
คุณจะต้องดำเนินการเหล่านี้หลายครั้งเพื่อให้เป็นไปตามข้อกำหนดขั้นต่ำสำหรับแคมเปญ Performance Max
operations.push({
"assetGroupAssetOperation": {
"create": {
"assetGroup": assetGroupOperation.assetGroupOperation.create.resourceName,
// assetResourceName here is a placeholder; you will need to determine
// the correct resource name to use depending on which asset you want
// to add to the asset group.
"asset": assetResourceName,
"fieldType": "HEADLINE"
}
}
});