I am trying to change the status of a Facebook campaign using the their Marketing API as documented here. However, I keep encountering the following error:
{
"error": {
"message": "Unknown path components: /<campaignId>",
"type": "OAuthException",
"code": 2500,
"fbtrace_id": "AZruauHBbtO4IzLuRmF90c-"
}
}
Here is the full API request I’m making:
https://graph.facebook.com/v19.0/act_<accountId>/campaigns/<campaignId>?access_token=<token>&status=PAUSED
I’ve tried double-checking my IDs and access token, and they are correct.
Can anyone help me understand what might be going wrong and how to fix this error?
What I’ve tried:
-
Verifying that the campaign ID and access token are correct.
-
Checking if the endpoint and parameters are correctly formatted.