如何使用Adwords脚本创建新的Campaign

时间:2016-10-26 08:17:42

标签: google-adwords

使用Google Adwords脚本,您可以创建一个广告组,如此处所示 - https://developers.google.com/adwords/scripts/docs/examples/ad-groups。但是没有关于如何创建活动的参考。

如何使用Google Adwords脚本制作新广告系列?

1 个答案:

答案 0 :(得分:4)

你无法以同样的方式创建它。

但您可以通过批量上传来创建它:

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();
}