ADD AdvertiserCredit API
Updated on 2014-05-02
Current Version: Version 1
Deprecated Version: NA
Requests Allowed: GET&SOAP
Summary:
Returns "Advertiser Credit Transaction Added"
Resource/WSDL Page:
http://<your_domain_here>/api/1/add.asmx?op=AdvertiserCredit
Parameters
api_key | Must be a valid API key (existing and NOT expired) Example Values: Fo35NRAqvFLXoZxqB4aVMhh |
advertiser_id | Advertiser ID Example Values: 12345 |
currency_id | Received Currency ID. 0 to skip, only used if currency is enabled Example Values: 0 |
amount | The amount of credit allotted for digital spend Example Values: 12.2 |
invoice_number | Invoice number. No way to skip Example Values: 1234 |
verification_code | Verification Code. No way to skip Example Values: 1234 |
notes | Freeform Notes Example Values: These are notes |
**Note all optional parameters still need to be passed through in the actual call. These parameters do not need a value (therefore you can use a null value).
Example Request
Sample XML Response:
<advertisercredit_add_response>
<success>true</success>
<message>Advertiser Credit Transaction Added</message>
</advertisercredit_add_response>
Example Error Messages:
Error Message | Likely Cause |
Invalid API Key | API key does not exist or is expired |
Invalid Advertiser ID | advertiser_id does not match an advertiser in the system |
Invalid Currency | Currency is enabled and currency_id does not match a currency in the system |