Skip to content

Enable or disable an advertiser

GET
/api.cgi?action=advertiser_status
curl --request GET \
--url 'https://one.optizmo.net/api.cgi?ref=pqmpg&onid=662b824d577c74b57bf1c4fc647b79c7&advertiser_id=C12412&status_change=enable&check_hash=7583f2e660997b8d1c224a8d74260c51&return_format=csv&action=advertiser_status%3Fref%3Dpqmpg'

Disables or re-enables an advertiser in a network account. While disabled, the access keys of every campaign under the advertiser stop working. Not available on Enterprise accounts, which are a single advertiser.

Values in the check_hash

action, ref, onid, advertiser_id, status_change.

Failures

In addition to the common failures listed under Sync an advertiser, list, campaign and affiliate:

Response Meaning
failed,You cannot use this function on an Enterprise client. The account is an Enterprise account.
failed,Can not find Advertiser using advertiser_id No advertiser in the account has this id.
failed,Invalid status_change value status_change is not enable or disable.
ref
required
string
<= 5 characters

Your tracking platform’s Reference Code (PRC), issued by Optizmo when the integration was set up.

Example
pqmpg
onid
required
string

The ONID of the SUPPRESS account the request is for. The account holder finds it on the Account Settings page in SUPPRESS under Affiliate Tracking System, and copies it into your platform.

Example
662b824d577c74b57bf1c4fc647b79c7
advertiser_id
required
string
<= 40 characters

Your platform’s id for the advertiser. The advertiser is matched on this id within the account. On an Enterprise account (a single advertiser) the account itself is the advertiser and this id is not used for matching, but it is still required and hashed.

Example
C12412
status_change
required
string
Allowed values: enable disable

The status to set.

check_hash
required
string
/^[0-9a-f]{32}$/

MD5 hex digest of the request’s hashed values, in the order they are listed for this action, followed by your Access Key (PAK). See Authentication for the rules.

Example
7583f2e660997b8d1c224a8d74260c51
return_format
string
default: csv
Allowed values: csv xml json

Sets the format of the success or failed answer on the synchronisation and status actions, and of the failure answer on every action. It does not change the success answer of the report and list actions, which is always their own XML document, or of the actions that answer with a page or a redirect. csv, xml and json are the only recognised values; anything else is answered in the csv format, the default. Not included in the check_hash.

The request was processed. The body says whether it succeeded; failures are also returned with HTTP 200.

string
Examples
success

The system is in maintenance mode. Retry later. The answer follows return_format: csv (also the answer to a return_format that is neither xml nor json) as text/plain, xml as text/xml, json as application/json.

string
Example
failed,System currently under maintenance