getCode
Get an action tracing point tag. An action tracing point tag is usually put on the advertiser's website to track user behavior after contact with an ad.
Request format
https://adfox.yandex.com/api/v1
? object=tracingPoint
& action=getCode
& objectID=<integer>
|
The ID of the object that the action is performed on. |
* Required
Response format
<response>
<status>
<code>{integer}</code>
</status>
<result>
<name1>{string}</name1>
<code1>{string}</code1>
<name2>{string}</name2>
<code2>{string}</code2>
</result>
</response>
Response parameters
|
Ad code loader: Parameter name. |
|
Code loader: Added to the |
|
Tracing point ad tag (https): Parameter name. |
|
Action tracing point ad tag. |
|
Link to action tracing point: Parameter name. |
|
Link to action tracing point. |
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=tracingPoint&action=getCode&objectID=3
Response:
<response> <status> <code>0</code> </status> <result> <name1>Ad code loader</name1> <code1><!--Add code loader to the <head> of the website once--> <script>window.yaContextCb = window.yaContextCb || []</script> <script src="https://yandex.com/ads/system/context.js" async></script></code1> <name2>Tracing point ad tag (https):</name2> <code2><!--AdFox START--> <!--yandex_example--> <!--Advertiser: advertiser_example--> <!--Action tracing 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 action tracing point</name3> <code3>https://yandex.com/ads/adfox/123456/tracePoint?p7=wtvn&p8=b</code3> </result> </response>
Other actions with the object
See also 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.
The ID of the object that the action is performed on.
Required