Parameters
subId1 optional
subId1 optionalAppends the submitted parameter value as subId1= to the tracking link. Must be URL encoded.
subId2 optional
subId2 optionalAppends the submitted parameter value as subId2= to the tracking link. Must be URL encoded.
subId3 optional
subId3 optionalAppends the submitted parameter value as subId3= to the tracking link. Must be URL encoded.
sharedId optional
sharedId optionalAppends the submitted parameter value as sharedId= to the tracking link. Must be URL encoded.
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). Must be URL encoded.
Returns
Returns an ad's inline frame (iframe) code if a valid request was provided.
Example request
curl 'https://api.impact.com/Mediapartners/<AccountSID>/Ads/<AdId>/IFrameCode' \
-X GET \
-u '<AccountSID>:<AuthToken>' \
-H 'Accept: application/json' \
-d 'subId1=blog' \
-d 'landingPage=https://www.example.com' \
-GExample response
{
"IFrameCode": "<iframe id=\"$iradid\" src=\"//a.impactradius-go.com/gen-ad-code/123456/515236/8800/?subId1=blog&u=https%3A%2F%2Fwww.example.com\" width=\"442\" height=\"114\" scrolling=\"no\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\"></iframe>",
"Uri": "/Mediapartners/<AccountSID>/Ads/123456/IFrameCode"
}