Approve Ads
Publisher > Publisher API > Approve Ads
ZestADZ provides publishers way to approve or reject ads using the Ad id acquired by the List of Available Ads.
Request URL
http://api.zestadz.com/approve_ads
Required Parameters
key: Valid key to access the API
cid: Valid client ID that has been approved
ad_id: Valid encrypted ad id that is got as a response to List of Available Ads.
operation: Valid values are approve or reject.
Sample Request URL
http://api.zestadz.com/approve_ads?key=14131C047A504144435F4A5240504502D5D370941665BBE95AB1
A861
A1374AE214F6FA&cid=14131C047A504144435F4A524055435E8C&ad_id=14131C047
A504144435F4A524055435E8C&operation=approve
Sample Response
| <zestadz> |
| |
<operation name="approve"> |
| |
|
<ad_id>14131C047A504144435F4A524055435E8C</ad_id>
<result>failure</result>
<reason>Please make sure that the ad id is valid.</reason> |
| |
</operation> |
| </zestadz> |
Valid Values
Valid results values are: success / failure
An additional response XML element reason provides the reason for the failure if such a reason is available. |