Usage examples for the Yandex.Direct API version 5

Send a requestFormatCode examples
cURL utilityJSON

Configure time targeting

Change the strategy

Add tags to an ad URL

Stop and start ads

Setting bids

Getting statistics with automatic time period selection

Getting statistics for specified Yandex.Metrica goals

PHP version 5Get a token
JSON
file_get_contents function

Get campaigns

Creating ads

Handle error 152 "Insufficient points"

cURL library

Get campaigns

Creating ads

Get statistics for any dates

Get statistics for a selection of rows

SOAP

Get campaigns

Creating ads

Python version 2 or 3Get a token
JSON

Get campaigns

Creating ads

Handle error 152 "Insufficient points"

Get statistics for any dates

Get statistics for a selection of rows

SOAP

Get campaigns

Creating ads

XML

Get statistics for any dates

Get statistics for a selection of rows