We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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'm trying to get the total amount that has been spent for a specific campaign. How can I do that?
const insightsPromise = new Campaign(campaignId).getInsights([AdsInsights.Fields.ad_name, AdsInsights.Fields.spend]);
When I access the spend field, it only returns a value if the campaign is still active. If the campaign is inactive, I do not get a value.
spend
My approach:
const adSetsPromise = new Campaign(campaignId).getAdSets([AdSet.Fields.id, AdSet.Fields.daily_budget, AdSet.Fields.lifetime_budget]);
Get the total amount spent.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to get the total amount that has been spent for a specific campaign. How can I do that?
Which SDK version are you using?
const insightsPromise = new Campaign(campaignId).getInsights([AdsInsights.Fields.ad_name, AdsInsights.Fields.spend]);
What's the issue?
When I access the
spend
field, it only returns a value if the campaign is still active. If the campaign is inactive, I do not get a value.My approach:
Expected Results:
Get the total amount spent.
The text was updated successfully, but these errors were encountered: