หากต้องการสร้างแคมเปญ Performance Max ใหม่ตั้งแต่ต้น คุณต้องสร้างสิ่งต่อไปนี้อย่างน้อย
- แคมเปญ
- งบประมาณ
- ชิ้นงานระดับบัญชี assets
- กลุ่มชิ้นงาน
- ลิงก์ระหว่างชิ้นงานในบัญชีกับ กลุ่มชิ้นงานที่คุณจะใช้สำหรับแคมเปญนี้
แคมเปญและงบประมาณมีประโยชน์สำหรับการสร้างแคมเปญทุกประเภท ขณะที่การดำเนินการที่เกี่ยวข้องกับชิ้นงานจะมีประโยชน์อย่างยิ่งสำหรับการสร้างแคมเปญ Performance Max โปรดดูวิธีสร้างชิ้นงานโดยใช้สคริปต์ได้ที่คู่มือชิ้นงาน Performance Max เพื่อดู
โปรดทำความคุ้นเคยกับกลยุทธ์การเปลี่ยนแปลง mutate strategy เนื่องจากคู่มือนี้จะระบุเฉพาะ ออบเจ็กต์ JavaScript ที่จะใช้ในการเปลี่ยนแปลง
งบประมาณ
งบประมาณต้องไม่ใช้ร่วมกันและต้องมีชื่อที่ไม่ซ้ำกันในบัญชี ใช้
a 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": "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING"
}
}
}
operations.push(campaignOperation);
กลุ่มชิ้นงาน
กลุ่มชิ้นงานสำหรับแคมเปญนี้ต้องมีการอ้างอิงแคมเปญ และจะต้องอ้างอิงในภายหลังเมื่อคุณลิงก์ชิ้นงานกับกลุ่มชิ้นงาน ใช้ an
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"
}
}
});