When I try to add new campaigns, I get the error saying:
"The following venues already have 2 active specials"
Here is a piece of my code:
var add_campaign_url = 'https://api.foursquare.com/v2/campaigns/add';
var params = 'campaignId='+ bomonti_campaign_id+
'&venueId='+venue1+','+venue2+
'&endAt=1339621140' +
'&startAt=1339603140'+
'&oauth_token=' + ACCESS_TOKEN;
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if(xmlhttp.readyState == 4){
var response = jQuery.parseJSON(xmlhttp.responseText);
console.log(response);
}
};
xmlhttp.open("POST",add_campaign_url,true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send(params);
Actually there is no active campaigns for the venues now, but there are some pending actives. Is there a limit when using Merchant API? Or am I doing something wrong?