如何使用 Adwords 脚本创建新的广告系列

San*_*mja 0 google-ads-api

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

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

小智 5

你不能以同样的方式创建它。

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

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();
}
Run Code Online (Sandbox Code Playgroud)