New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't create ad group! #72
Comments
Can you tell me the error message? Have you enter a valid credit card in facebook billing form? |
Hi @airdomain, as mentioned by @minhsepteni, the details of the error you are facing are necessary to understand the issue. Few notes:
|
Ok, Thanks for your attention and wonderful answers. I show you error codes as following, Caught Exception : Invalid parameter |
@airdomain, as mentioned above, you need to setup a payment method for your ad account. |
With Facebook Ad Api, I can't create ad(group) although I have created the Campaign, AdSet, and AdCreative. I have followed instruction of facbook guide(with the all required parameters). I can't find the answer by any googling.... What's wrong? (I just found the change that ADGROUP_STATUS is required now.)
------------ PHP Codes ------------------
use FacebookAds\Object\AdGroup;
use FacebookAds\Object\Fields\AdGroupFields;
$adgroup = new AdGroup(null, $account->id);
$adgroup->setData(array(
AdGroupFields::CREATIVE => array('creative_id' => $creative->id),
AdGroupFields::NAME => 'My First AdGroup',
AdGroupFields::CAMPAIGN_ID => $adset->id,
AdGroupFields::ADGROUP_STATUS => 'ACTIVE',
));
$adgroup->create();
The text was updated successfully, but these errors were encountered: