NAME
Twilio::Rest::Messaging::V1::ExternalCampaign - The ExternalCampaign resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $external_campaign = $client->messaging->v1->external_campaign->create($campaign_id, $messaging_service_sid, \%options);
DESCRIPTION
Resource to associate preregistered campaign with Messaging Service.
This file holds ExternalCampaignList and ExternalCampaignInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ExternalCampaignList
Returned by $client->messaging->v1->external_campaign. See also Twilio::ListResource.
create
my $external_campaign = $client->messaging->v1->external_campaign->create($campaign_id, $messaging_service_sid, \%options);
Returns a ExternalCampaignInstance.
The required values are:
$campaign_id-
ID of the preregistered campaign.
$messaging_service_sid-
The SID of the Messaging Service that the resource is associated with.
The options are:
cnp_migration-
Customers should use this flag during the ERC registration process to indicate to Twilio that the campaign being registered is undergoing CNP migration. It is important for the user to first trigger the CNP migration process for said campaign in their CSP portal and have Twilio accept the sharing request, before making this api call.
ExternalCampaignInstance
See also Twilio::InstanceResource.
Its fields are:
- account_sid
-
The SID of the Account that the Campaign belongs to.
- campaign_id
-
ID of the preregistered campaign.
- date_created
-
The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- messaging_service_sid
-
The SID of the Messaging Service that the resource is associated with.
- sid
-
The unique string that identifies a US A2P Compliance resource
QE2c6890da8086d771620e9b13fadeba0b.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.