Loading...

Description

Creates new attach action.


Request URL

POST   https://api.3seventy.com/api/v2.1/account/{accountId}/action-attachKeyword

Request Properties

Parameter Description Mandatory
ChannelId ChannelID on which Action has to be Executed. Yes
KeywordId KeywordID to which campaign is attached Yes
CampaignId The ID of the campaign to attach ot the keyword Yes
Schedules The list of schedules associated with the action No
Execute Set true if the action should be executed on creation No
accountId The account Id which owns the action. Yes

Response Properties

Property Description
Id The Unique Id of the Action.
AccountId The account ID that the action reports under.
Schedules The list of schedules associated with the action
ChannelId Channel ID on which the action should be triggered
KeywordId Keyword ID to which campaign is attached
CampaignId The ID of the campaign to attach ot the keyword.
Created DateTime when this action was first created.
Modified DateTime when this action was last modified.
CreatedBy Who initially created this action.
ModifiedBy Who last modified this action

C#
PHP


using System;
using System.Collections.Generic;
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 = XXX;

var context = new T70Context();

var actionKeywordRepo = context.Repository<ActionAttachKeyword>(new { AccountId = accountId });

var item = actionKeywordRepo.Add(new ActionAttachKeyword()
{

AccountId = accountId,
CampaignId = XXXX,
ChannelId = XXXX,
KeywordId = XXXX

});

}

}

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