You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to create an AdSet that redirects to WhatsApp using the Marketing API, I encounter the following error:
{
"error": {
"message": "Invalid parameter",
"type": "OAuthException",
"code": 100,
"error_subcode": 1487246,
"is_transient": false,
"error_user_title": "Campaign Creation Failed",
"error_user_msg": "Campaign Creation Failed: This WhatsApp phone number is not linked to your account",
"fbtrace_id": "Ax6DXy6ZeHArDiB5HZhK-Tt"
}
}
The same configuration works perfectly fine when created via Meta Ads Manager. However, it fails when trying to create it programmatically through the API. Below are the details of the request being sent and other relevant context.
Steps to Reproduce
Retrieve WhatsApp numbers using the following endpoint:
GET /me/businesses?fields=name,owned_whatsapp_business_accounts{phone_numbers{verified_name,display_phone_number,status,name_status}}
Use the retrieved whatsapp_phone_number and other necessary information to create an AdSet with the following payload:
The phone number is correctly retrieved using the owned_whatsapp_business_accounts field of the me/businesses endpoint and is linked to the same business account used for the ad campaign.
When I check the AdSet created through Meta Ads Manager in the Graph API Explorer, the structure matches the payload sent through the API.
Steps Tried to Resolve
Confirmed that the phone number is linked to the correct business account.
Verified that the access token has all necessary permissions.
Successfully created an AdSet using the same phone number via Meta Ads Manager.
Compared the structure of the AdSet created via Ads Manager and the payload sent via the API.
Request
Please confirm if there are additional steps required to link the WhatsApp phone number to the ad account when using the API.
Verify if this is a known bug or limitation in the API.
Provide guidance on resolving this issue programmatically.
The text was updated successfully, but these errors were encountered:
Description
When attempting to create an AdSet that redirects to WhatsApp using the Marketing API, I encounter the following error:
The same configuration works perfectly fine when created via Meta Ads Manager. However, it fails when trying to create it programmatically through the API. Below are the details of the request being sent and other relevant context.
Steps to Reproduce
whatsapp_phone_number
and other necessary information to create an AdSet with the following payload:Expected Behavior
The AdSet should be successfully created using the API with the same configuration that works when created through Meta Ads Manager.
Actual Behavior
The API returns an error stating:
"Campaign Creation Failed: This WhatsApp phone number is not linked to your account"
.Additional Context
owned_whatsapp_business_accounts
field of theme/businesses
endpoint and is linked to the same business account used for the ad campaign.Steps Tried to Resolve
Request
The text was updated successfully, but these errors were encountered: