无法创建Facebook广告API广告组

时间:2015-05-11 03:59:14

标签: facebook facebook-graph-api

因此,我尝试使用facebook ads api创建广告组,但以下代码为我提供了错误'无效参数'

$adgroup = new AdGroup(null,$account_id);
$adgroup->setData(array(
  AdGroupFields::CREATIVE => 
    array('creative_id' => $creative->id),
    AdGroupFields::ADGROUP_STATUS => AdGroup::STATUS_PAUSED,
  AdGroupFields::NAME => 'My First AdGroup',
  AdGroupFields::CAMPAIGN_ID => $adset_id,
));

$adgroup->create();
echo 'AdGroup ID:' . $adgroup->id . "-";

0 个答案:

没有答案