Retrieves the HTML code of an existing ad. You need to pass the unique impact.com AdId value assigned to the ad.
Parameters
subId1 optional
subId1 optionalAppends the submitted parameter value as subId1= to the tracking link.
subId2 optional
subId2 optionalAppends the submitted parameter value as subId2= to the tracking link.
subId3 optional
subId3 optionalAppends the submitted parameter value as subId3= to the tracking link.
sharedId optional
sharedId optionalAppends the submitted parameter value as sharedId= to the tracking link.
landingPage optional
landingPage optionalIf the ad allows deep linking, uses the submitted parameter value as the custom landing page. Include the full URL, including the protocol (http or https).
Returns
Returns an ad's HTML code if a valid request was provided.
Example request
CURL
curl 'https://api.impact.com/Mediapartners/<AccountSID>/Ads/<AdId>/Code' \
-X GET \
-u '<AccountSID>:<AuthToken>' \
-H 'Accept: application/json'Example response
JSON
{
"Code": "<h3 id=\"123456\"><a href=\"https://example.com/c/1299679/123456/8882\">this is a test</a></h3>\n<img height=\"0\" width=\"0\" src=\"https://example.com/i/1299679/123456/8882\" style=\"position:absolute;visibility:hidden;\" border=\"0\" />",
"Uri": "/Mediapartners/<AccountSID>/Ads/123456/Code"
}