send_whats_app_conversion_event
async
¶
send_whats_app_conversion_event(
id: LinkedWhatsAppBusinessAccountId,
dataset_id: WhatsAppDatasetId,
event_data: WhatsAppConversionEventBlob,
*,
config_overrides: Optional[AsyncSocialMessagingClientConfig] = None,
) -> SendWhatsAppConversionEventOutput
Sends a conversion event to Meta's Conversions API for the specified WhatsApp Business Account dataset.
Parameters:
-
id(LinkedWhatsAppBusinessAccountId) –The ID of the WhatsApp Business Account associated with the dataset, formatted as
waba-01234567890123456789012345678901. -
dataset_id(WhatsAppDatasetId) –The Meta-generated dataset ID to send the event to.
-
event_data(WhatsAppConversionEventBlob) –The raw Meta Conversions API event payload as a JSON blob. See Meta's server event parameters for the supported format.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ValidationException–The request contains an invalid parameter value.
-
AccessDeniedByMetaException–You do not have sufficient access to perform this action.
-
DependencyException–Thrown when performing an action because a dependency would be broken.
-
InternalServiceException–The request processing has failed because of an unknown error, exception, or failure.
-
InvalidParametersException–One or more parameters provided to the action are not valid.
-
ResourceNotFoundException–The resource was not found.
-
ThrottledRequestException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_socialmessaging/_services/async_social_messaging.py
1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 | |