Loading...

Description

Attaches a keyword to a campaign.


Request URL

POST   https://api.3seventy.com/api/v2.1/account/{accountId}/channel/{channel}/keyword/{keyword}/campaign

Request Properties

Parameter Description Mandatory
accountId The account that owns the keyword. Yes
channel The channel the keyword is on. Yes
keyword The ID of the keyword to update. Yes
campaignId The ID of the campaign to attach. Yes

Response Properties

Property Description
AccountId Account Id
CallbackRequired Boolean to specify if the client requires a callback when this keyword is texted in.
CampaignId Campaign Id
ChannelCode The short or long code this keyword is reserved on.
ChannelId Channel Id
Name Name of the keyword
Status Convenience mapping to ResourceStatusValue enumeration.
StatusId Status Id

C#
PHP


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

const string channel = "XXX";

const string keyword = "XXXX";

const int campaignId = XXXX;

var context = new T70Context();

var keywordDetails = context.AttachkeywordCampaign(accountId, channel, keyword, campaignId);

}

}

 

Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet