如何使用 Adwords 脚本创建新的广告系列
How to create new Campaign using Adwords Script
使用 Google Adwords 脚本,您可以创建一个广告组,如下所示 - https://developers.google.com/adwords/scripts/docs/examples/ad-groups。但是没有关于如何创建活动的参考。
如何使用 Google Adwords 脚本制作新的广告系列?
您不能以相同的方式创建它。
但您可以通过批量上传创建它:
function createOrUpdateCampaigns() {
// See https://developers.google.com/adwords/scripts/docs/features/bulk-upload
// for the list of supported bulk upload templates and their column names.
var columns = [
'Campaign', 'Budget', 'Bid Strategy type', 'Campaign type'
];
var upload = AdWordsApp.bulkUploads().newCsvUpload(
columns, {moneyInMicros: false});
// AdWords identify existing campaigns using its name. To create a new
// campaign, use a campaign name that doesn't exist in your account.
upload.append({
'Campaign': 'Test Campaign 1',
'Budget': 234,
'Bid Strategy type': 'cpc',
'Campaign type': 'Search Only'
});
// Use upload.apply() to make changes without previewing.
upload.preview();
}
使用 Google Adwords 脚本,您可以创建一个广告组,如下所示 - https://developers.google.com/adwords/scripts/docs/examples/ad-groups。但是没有关于如何创建活动的参考。
如何使用 Google Adwords 脚本制作新的广告系列?
您不能以相同的方式创建它。
但您可以通过批量上传创建它:
function createOrUpdateCampaigns() {
// See https://developers.google.com/adwords/scripts/docs/features/bulk-upload
// for the list of supported bulk upload templates and their column names.
var columns = [
'Campaign', 'Budget', 'Bid Strategy type', 'Campaign type'
];
var upload = AdWordsApp.bulkUploads().newCsvUpload(
columns, {moneyInMicros: false});
// AdWords identify existing campaigns using its name. To create a new
// campaign, use a campaign name that doesn't exist in your account.
upload.append({
'Campaign': 'Test Campaign 1',
'Budget': 234,
'Bid Strategy type': 'cpc',
'Campaign type': 'Search Only'
});
// Use upload.apply() to make changes without previewing.
upload.preview();
}