因此,我尝试使用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 . "-";