add_mrss_feed

Add an MRSS feed.

Explorer

Explore this method

Request URL

http://api.tubemogul.com/api/v3/

HTTP method

GET or POST

Arguments

url (string) - Required
campaign_id (integer) - Required
starting_pub_date (MM-DD-YYYY) - Required
profile_id (integer) - Required
This is the id of the upload profile you would like to use to launch videos to the sites.

Returned Status Codes

0 : Unknown Error.
1 : Successful

Example Response

<?xml version="1.0" encoding="utf-8" ?>
<response stat="ok">
  <status>Success</status>
</response>

Error Codes

Standard error codes plus:

120 : either the campaign is deleted or does not belong to the account
130 : either the upload profile is deleted or does not belong to the account

Example Code

<?
# Your user token
$user_token '';

# Your partner ID
$partner_id '';

# Your secret key
$secret_key '';

# Required url
$url '';

# Required campaign_id
$campaign_id '';

# Required starting_pub_date(YYYY-MM-DD)
$starting_pub_date '';

# Required profile_id
$profile_id '';

$method 'add_mrss_feed';

$now time();

$apihost 'http://www.tubemogul.com/api/v3/';

$poststring "date=".$now.
              
"&userToken=".urlencode($user_token).
              
"&partnerID=".urlencode($partner_id).
              
"&url=".urlencode($url).
              
"&campaign_id"=urlencode($campaign_id).
              
"&starting_pub_date"=urlencode($starting_pub_date).
              
"&profile_id"=$profile_id.
              
"&method=".$method;

$hash sha1($secret_key.$poststring);

$poststring .= "&hash=".$hash;

echo 
$poststring;
?>

<br /><br />
<form action='<? echo $apihost?>' method='post'>
<input type='hidden' name='date' value='<? echo $now?>' />
<input type='hidden' name='userToken' value='<? echo $user_token?>' />
<input type='hidden' name='partnerID' value='<? echo $partner_id?>' />
<input type='hidden' name='url' value='<? echo $url?>' />
<input type='hidden' name='campaignid' value='<? echo $campaign_id?>' />
<input type='hidden' name='startingpubdate' value='<? echo $startingpubdate?>' />
<input type='hidden' name='profileid' value='<? echo $profile_id?>' />
<input type='hidden' name='method' value='<? echo $method?>' />
<input type='hidden' name='hash' value='<? echo $hash?>' />
<input type='submit' value='submit!' />
</form>