I'm trying to change a campaign status using the Facebook Marketing API as documented here.

I managed to change the campaign status to PAUSED, but I can't change it back to ACTIVE, even though the API response indicates success.

Here is the API request I'm making:

https://graph.facebook.com/v19.0/{campaign_id}?access_token={token}&status=ACTIVE

The response I get is:

{   "success": true } 

However, the campaign status remains paused. Has anyone encountered this issue or know why the status isn't updating despite the success response?

Additional details:

  • I used the same approach to pause the campaign, and it worked perfectly.

  • The access token and campaign ID are correct.

Any help would be greatly appreciated!

Tag:facebook-graph-api, facebook-marketing-api

6 comments.

  1. Jeremy Fiel

    Looks like you need this url

    curl -X POST https://graph.facebook.com/v19.0/act_{acct-id}/campaigns/{campaign_id}?access_token={token}&status=ACTIVE
    1. Naufal Shabir

      Thanks for the suggestion, but I already tried that URL and it gives me the error Unknown path component

    2. Jeremy Fiel

      Did you input your account id like act-1234/?

    3. Naufal Shabir

      Yes, that is how I entered my account ID. In fact, I have already made a question about it here : stackoverflow.com/questions/78573355/…

    4. Jeremy Fiel

      Interestingly, this page says you can't update campaigns. developers.facebook.com/docs/marketing-api/reference/ad-account/…

    5. Jeremy Fiel

      I know you said you updated it to PAUSED, so that's kind of strange. Not sure what the solution is. Sorry

Add a new comment.