Search our Knowledge Base
Search

Delete Campaign API



The delete_campaign method allows you to delete a campaign from your account.

NOTE: this action will be allowed only if there are no keywords in the campaign.

Refer to Rank Ranger API Overview page for information on how to obtain API access, obtain an API Key, a full list of API methods and error codes.

 
 

Parameters

 
 
key string The unique API key assigned to your account
campaign_id int Campaign ID


Example

 
Construct & test API requests in the API Console or follow this example:

https://www.rankranger.com/api/v2/?delete_campaign&key=YOURAPIKEY&campaign_id=123

The default output format is XML, if you want JSON simply add "&output=json" to the end of the string.


Response

 
<?xml version="1.0" encoding="utf-8"?>
<tracking-data provider="rankranger" date="02/01/2016" time="17:24:28" status="ok" >
  
<status>success</status>  
</tracking-data>
 

How to Obtain API Access

More

How to Generate New API Keys

More

API Console: Construct & Test API Requests

More

API Query Limits

More

Developer API Methods

More

API Error Codes

More

Get the ultimate SEO tools with the Rank Ranger Software
Learn More About Rank Ranger