I am trying to change the status of a Facebook campaign using 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.

When I click 'Delete' button in my Facebook Business settings > WhatsApp accounts, I get an error kinda 'Cannot delete because there's a phone number', even though it's just a test number. Also, cannot delete the test number, because 'Phone numbers' menu is disabled in WhatsApp Manager. Because of all this, I cannot delete my Facebook Business company. So, Meta, what's going on? How to delete this? Why do you have a 'Support' page if there is no actual info 'how to' do things?!

I try to exclude a placement via code and I get this error (read bottom up):

DEFAULT 2024-06-03T13:34:05.278214Z index: 251 DEFAULT 2024-06-03T13:34:05.278211Z field_name: "operations" DEFAULT 2024-06-03T13:34:05.278208Z field_path_elements { DEFAULT 2024-06-03T13:34:05.278203Z location { DEFAULT 2024-06-03T13:34:05.278200Z } DEFAULT 2024-06-03T13:34:05.278197Z string_value: "mixnews.lv/news/2024/04/09/dich-na-pervom-svidanii-kakie-momenty-stali-navsegda-v-pamyati-devushek" DEFAULT 2024-06-03T13:34:05.278192Z trigger { DEFAULT 2024-06-03T13:34:05.278189Z message: "Placement URL has wrong format." DEFAULT 2024-06-03T13:34:05.278185Z } DEFAULT 2024-06-03T13:34:05.278181Z criterion_error: INVALID_FORMAT_FOR_PLACEMENT_URL DEFAULT 2024-06-03T13:34:05.278177Z error_code { 

How can I understand what's wrong in this format?