Yandex.Direct
Attention! The Google BigQuery integration has to be enabled to use this feature.
Importing data from Yandex.Direct
After enabling this data source, Yandex.Direct advertising costs information will be uploaded to BigQuery once every 24 hours.
This integration is available for both ordinary advertisers and advertising agencies.
Connecting and configuring
The process of connecting data sources is described in detail in the overview.
After authorization you need to set the data source parameters.
(1) The name of the data source. It is displayed in the interface in the list of sources.
(2) Import normalized costs report - enable normalized costs report import.
(3) Import campaign performance report - enable campaign performance report import, without normalizing the values in the table.
(4) Take into account the VAT. If you do not check the box, the prices in the report will be exclusive of VAT.
(5) The data source belongs to the agency. See Customization for advertising agencies.
(6) Value multiplier. Multiplied by the cost in the final report.
If you use smart banners for advertising, you must fill in the parameters (7) and (8).
(7) Smart banner advertising campaign identifier.
(8) Utm parameters of the url for the smart banner are copied from the settings of the Yandex.Direct advertising account: Editing active smart banners → URL parameters.
Example: utm_source=yandex&utm_medium=cpc&utm_campaign={campaign_id}&utm_term={ad_id}&utm_content={gbid}
Notes:
- You must fill the url params for all smart banners.
- Using any of the
keyword
,phrase_id
,retargeting_id
,adtarget_name
,adtarget_id
substitution params in smart banners will cause the loss ofImpressions
data for all smart banner campaigns.
(9) Media context banner advertising campaign identifier.
(10) Utm parameters of the url for the media context banner are copied from the settings of the Yandex.Direct advertising account: Editing active banners → Link to site.
Example: utm_source=yandex&utm_medium=cpc&utm_campaign={campaign_id}&utm_term={ad_id}&utm_content={gbid}
Notes:
- You must fill the url params for all media context banners.
Configuration for advertising agencies
When the “Agency” option is enabled, new options become available.
(1) Spend agency points. Agency points will be used to retrieve reports. Points are transformed into a certain number of requests to the Yandex.Direct API per unit of time. If this option is enabled, when requesting the Yandex.Direct API, the points of the agency will be used, and not the advertiser.
(2),(3) Yandex accounts of your advertisers. Account names are used for authorization and become part of the tables in the final reports.
To save and enable the data source, click “Save” (1)
Clicking “Remove” (2) will delete the data source with its options and authorization.
You can enable or disable the data source at any time (3).
The “Disconnect” button (4) is used to revoke the authorization data. The settings are saved.
Where to get data on advertising costs
- yandexDirectCampaignPerformance_{login}_{DATE} - data for full campaign performance report downloaded from Yandex.Direct
- yandexDirectCosts_{login}_{DATE} - data for report containing information on clicks, impressions and cost in the context of advertisements
For advertising agencies, the number of tables will be a multiple of the number of advertisers connected.
Substitution params
You can use Yandex.Direct’s dynamic parameters in ad urls and smart banners. List of supported substitutions:
ad_id
banner_id
addphrases
campaign_id
campaign_name
campaign_type
device_type
gbid
keyword
phrase_id
retargeting_id
coef_goal_context_id
position_type
source
region_name
region_id
source_type
adtarget_name
adtarget_id
Read more about dynamic parameters: https://yandex.ru/support/direct/statistics/url-tags.html
Tables structure
yandexDirectCosts
Field name | Type | Mode |
---|---|---|
cost | FLOAT | REQUIRED |
clicks | INTEGER | NULLABLE |
impressions | INTEGER | NULLABLE |
utmTerm | STRING | NULLABLE |
utmCampaign | STRING | NULLABLE |
utmContent | STRING | NULLABLE |
utmMedium | STRING | REQUIRED |
utmSource | STRING | REQUIRED |
yandexDirectCampaignPerformance
Field name | Type | Mode |
---|---|---|
CampaignType | STRING | NULLABLE |
MatchType | STRING | NULLABLE |
Criterion | STRING | NULLABLE |
Device | STRING | NULLABLE |
Clicks | INTEGER | NULLABLE |
Impressions | INTEGER | NULLABLE |
Cost | INTEGER | NULLABLE |
Placement | STRING | NULLABLE |
CriterionType | STRING | NULLABLE |
AdGroupId | INTEGER | NULLABLE |
Date | DATE | NULLABLE |
CampaignId | INTEGER | NULLABLE |
CampaignName | STRING | NULLABLE |
AdId | INTEGER | NULLABLE |
AdNetworkType | STRING | NULLABLE |
CriterionId | INTEGER | NULLABLE |
MobilePlatform | STRING | NULLABLE |
AdGroupName | STRING | NULLABLE |
Gender | STRING | NULLABLE |
LocationOfPresenceId | STRING | NULLABLE |
LocationOfPresenceName | STRING | NULLABLE |