getCode
Get an action point tag. An action point tag is usually placed on the advertiser's site to track user behavior after their exposure to an ad.
Request format
https://adfox.yandex.com/api/v1
? object=tracingPoint
& action=getCode
& objectID=<integer>
|
|
ID of the object the action applies to. |
Response format
<response>
<status>
<code>{integer}</code>
</status>
<result>
<name1>{string}</name1>
<code1>{string}</code1>
<name2>{string}</name2>
<code2>{string}</code2>
<name3>{string}</name3>
<code3>{string}</code3>
</result>
</response>
Response parameters
|
|
Request processing status. A value of |
|
|
Ad loader code: Parameter name. |
|
|
The loader code is embedded in the |
|
|
Action point tag (https): Parameter name. |
|
|
Action tracking point tag. |
|
|
Link to an action tracking point: Parameter name. |
|
|
Link to an action tracking point. |
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=tracingPoint&action=getCode&objectID=3Response:
<response> <status> <code>0</code> </status> <result> <name1>Ad loader code</name1> <code1><!--Add the loader code to the site's <head> once --> <script>window.yaContextCb = window.yaContextCb || []</script> <script src="https://yandex.com/ads/system/context.js" async></script></code1> <name2>Action tracking point tag (https):</name2> <code2><!--AdFox START--> <!--yandex_example--> <!--Advertiser: advertiser_example--> <!--Action tracking point: ATP_Ex--> <div id="adfox_123456789987654321"></div> <script> window.yaContextCb.push(()=>{ window.Ya.adfoxCode.tracePoint({ ownerId: 123456, containerId: 'adfox_123456789987654321', params:{ p7: 'wtvn', p8: 'b' } }) }) </script> <!--AdFox END--></code2> <name3>Link to an action tracking point</name3> <code3>https://yandex.com/ads/adfox/123456/tracePoint?p7=wtvn&p8=b</code3> </result> </response>
Other actions with the object
Read about other actions with the tracingPoint object:
- Add an action tracing point.
- Delete an action tracing point.
- Edit an action tracing point.
- Get a list of action tracing points.
- Get statistics on action tracing points.
ID of the object the action applies to.
Required parameter.
Was the article helpful?
Previous
Next