Answer the question
In order to leave comments, you need to log in
Why does the Yandex Direct API (Sandbox) ignore filtering in statistics queries?
Requesting statistics in the Yandex Direct sandbox for an ad using a filter. In response, I receive a report on several ads. Thus, the API completely ignores filtering.
function custom_report( ) {
$service = "reports";
$data ='<?xml version="1.0" encoding="UTF-8"?>
<ReportDefinition xmlns="http://api.direct.yandex.com/v5/reports">
<SelectionCriteria>
<Filter>
<b><Field>AdId</Field>
<Operator>IN</Operator>
<Values>2195250</Values></b>
</Filter>
</SelectionCriteria>
<FieldNames>Date</FieldNames>
<FieldNames>AdId</FieldNames>
<FieldNames>AvgCpc</FieldNames>
<FieldNames>AvgPageviews</FieldNames>
<OrderBy>
<Field>Date</Field>
</OrderBy>
<ReportName>123123123adasdasd12</ReportName>
<ReportType>AD_PERFORMANCE_REPORT</ReportType>
<DateRangeType>LAST_5_DAYS</DateRangeType>
<Format>TSV</Format>
<IncludeVAT>NO</IncludeVAT>
<IncludeDiscount>NO</IncludeDiscount>
</ReportDefinition>';
return QueryToYandexReport( $service, $data );
}
Answer the question
In order to leave comments, you need to log in
Good afternoon!
Please write to the feedback form: https://tech.yandex.ru/direct/doc/support/troubles...
Responsible specialists will take your question to work and try to help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question