Skip to content
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

CampaignFields::SPEND_CAP return null for all campaigns, help-me!! #487

Closed
carlosbuzato opened this issue Sep 27, 2018 · 2 comments
Closed

Comments

@carlosbuzato
Copy link

Hi, i'm trying return SPEND_CAP value for my campaigns, but all of then are returning null. Take a look on the following code:

`$fields = array(
CampaignFields::NAME,
CampaignFields::OBJECTIVE,
CampaignFields::SPEND_CAP,
);

$AdAccount = new AdAccount(<ACT_ID>);
$cursor = $AdAccount->getCampaigns($fields);

foreach ($cursor as $campaigns) {
dump($campaigns->{CampaignFields::NAME}.PHP_EOL);
dump($campaigns->{CampaignFields::OBJECTIVE}.PHP_EOL);
dump($campaigns->{CampaignFields::SPEND_CAP}.PHP_EOL);
}

$cursor->fetchAfter();`

What is the possible solution for this problem?

@jingping2015
Copy link
Contributor

Did you try with curl API call? If the curl API call have same result, it means this is a API bug, please report the issue on Devsite Bug Report channel: https://developers.facebook.com/support/bugs/ Thanks!

@carlosbuzato
Copy link
Author

Did you try with curl API call? If the curl API call have same result, it means this is a API bug, please report the issue on Devsite Bug Report channel: https://developers.facebook.com/support/bugs/ Thanks!

Thanks man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants