---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/direct/doc/en/campaigns/add-text-campaign.md
  - https://yandex.com/dev/direct/doc/ru/campaigns/add-text-campaign.md
  - href: en/campaigns/add-text-campaign.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
sourcePath: en/ref-v5/campaigns/add-text-campaign.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/direct/doc/en/llms.txt

# add: TextCampaign parameters

Request structure in JSON format:

```javascript translate=no
{
  "method": "add",
  "params": {
    "Campaigns": [{  /* CampaignAddItem */
      ...
      "TextCampaign": {  /* TextCampaignAddItem */
        "BiddingStrategy": {  /* TextCampaignStrategyAdd */
          "Search": {  /* TextCampaignSearchStrategyAdd */
            "BiddingStrategyType": ( "AVERAGE_CPA" | ... | "WEEKLY_CLICK_PACKAGE" ), /* required */
            "PlacementTypes" : {
              "SearchResults" : ( "YES" | "NO" ),
              "ProductGallery" : ( "YES" | "NO" ),
              "DynamicPlaces" : ( "YES" | "NO" )
            },
            "WbMaximumClicks": {  /* StrategyMaximumClicksAdd */
              "WeeklySpendLimit": (long), /* required */
              "BidCeiling": (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              }
            },
            "WbMaximumConversionRate": {  /* StrategyMaximumConversionRateAdd */
              "WeeklySpendLimit": (long), /* required */
              "BidCeiling": (long),
              "GoalId": (long), /* required */
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              }
            },
            "AverageCpc": {  /* StrategyAverageCpcAdd */
              "AverageCpc": (long), /* required */
              "WeeklySpendLimit": (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              }
            },
            "AverageCpa": {  /* StrategyAverageCpaAdd */
              "AverageCpa": (long), /* required */
              "GoalId": (long), /* required */
              "WeeklySpendLimit": (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              },
              "BidCeiling": (long),
              "ExplorationBudget" : {
                "MinimumExplorationBudget" : (long) /* required */,
                "IsMinimumExplorationBudgetCustom" : ("YES") /* required */
              }
            },
            "AverageCpaMultipleGoals": {  /* StrategyAverageCpaMultipleGoalsAdd */
              "WeeklySpendLimit": (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              },
              "BidCeiling": (long),
              "ExplorationBudget" : {
                "MinimumExplorationBudget" : (long) /* required */,
                "IsMinimumExplorationBudgetCustom" : ("YES") /* required */
              }
            },
            "WeeklyClickPackage": {  /* StrategyWeeklyClickPackageAdd */
              "ClicksPerWeek": (long), /* required */
              "AverageCpc": (long),
              "BidCeiling": (long)
            },
            "AverageCrr": {  /* StrategyAverageCrrAdd */
              "Crr": (int), /* required */
              "GoalId": (long), /* required */
              "WeeklySpendLimit": (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              },
              "ExplorationBudget" : {
                "MinimumExplorationBudget" : (long) /* required */,
                "IsMinimumExplorationBudgetCustom" : ("YES") /* required */
              }
            },
            "PayForConversionCrr" : {  /* StrategyPayForConversionCrrAdd */
              "Crr": (int), /* required */
              "GoalId": (long), /* required */
              "WeeklySpendLimit" : (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              }
            },
            "PayForConversion" : { /* StrategyPayForConversionAdd */
              "Cpa" : (long) /* required */,
              "GoalId" : (long) /* required */,
              "WeeklySpendLimit" : (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              }
            },
            "PayForConversionMultipleGoals" : { /* StrategyPayForConversionMultipleGoalsAdd */
              "WeeklySpendLimit" : (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              }
            },
            "MaxProfit" : { /* StrategyMaxProfitAdd */
              "WeeklySpendLimit" : (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              },
              "ExplorationBudget" : {
                "MinimumExplorationBudget" : (long) /* required */,
                "IsMinimumExplorationBudgetCustom" : ("YES") /* required */
              }
            }
          }, /* required */
          "Network": {  /* TextCampaignNetworkStrategyAdd */
            "BiddingStrategyType": ( "AVERAGE_CPA" | ... | "WEEKLY_CLICK_PACKAGE" ), /* required */
            "NetworkDefault": {  /* StrategyNetworkDefaultAdd */
              "LimitPercent": (int)
            },
            "WbMaximumClicks": {  /* StrategyMaximumClicksAdd */
              "WeeklySpendLimit": (long), /* required */
              "BidCeiling": (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              },
            },
            "WbMaximumConversionRate": {  /* StrategyMaximumConversionRateAdd */
              "WeeklySpendLimit": (long), /* required */
              "BidCeiling": (long),
              "GoalId": (long), /* required */
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              },
            },
            "AverageCpc": {  /* StrategyAverageCpcAdd */
              "AverageCpc": (long), /* required */
              "WeeklySpendLimit": (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              }
            },
            "AverageCpa": {  /* StrategyAverageCpaAdd */
              "AverageCpa": (long), /* required */
              "GoalId": (long), /* required */
              "WeeklySpendLimit": (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              },
              "BidCeiling": (long),
              "ExplorationBudget" : {
                "MinimumExplorationBudget" : (long) /* required */,
                "IsMinimumExplorationBudgetCustom" : ("YES") /* required */
              }
            },
            "AverageCpaMultipleGoals": {  /* StrategyAverageCpaMultipleGoalsAdd */
              "WeeklySpendLimit": (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              },
              "BidCeiling": (long),
              "ExplorationBudget" : {
                "MinimumExplorationBudget" : (long) /* required */,
                "IsMinimumExplorationBudgetCustom" : ("YES") /* required */
              }
            },
            "WeeklyClickPackage": {  /* StrategyWeeklyClickPackageAdd */
              "ClicksPerWeek": (long), /* required */
              "AverageCpc": (long),
              "BidCeiling": (long)
            },
            "AverageCrr": {  /* StrategyAverageCrrAdd */
              "Crr": (int), /* required */
              "GoalId": (long), /* required */
              "WeeklySpendLimit": (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              },
              "ExplorationBudget" : {
                "MinimumExplorationBudget" : (long) /* required */,
                "IsMinimumExplorationBudgetCustom" : ("YES") /* required */
              }
            },
            "PayForConversionCrr" : {  /* StrategyPayForConversionCrrAdd */
              "Crr": (int), /* required */
              "GoalId": (long), /* required */
              "WeeklySpendLimit" : (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              }
            },
            "PayForConversion" : { /* StrategyPayForConversionAdd */
              "Cpa" : (long) /* required */,
              "GoalId" : (long) /* required */,
              "WeeklySpendLimit" : (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              }
            },
            "PayForConversionMultipleGoals" : { /* StrategyPayForConversionMultipleGoalsAdd */
              "WeeklySpendLimit" : (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              }
            },
            "MaxProfit" : { /* StrategyMaxProfitAdd */
              "WeeklySpendLimit" : (long),
              "CustomPeriodBudget": {
                "SpendLimit": (long),
                "StartDate": (string),
                "EndDate": (string),
                "AutoContinue": ("YES" | "NO")
              },
              "ExplorationBudget" : {
                "MinimumExplorationBudget" : (long) /* required */,
                "IsMinimumExplorationBudgetCustom" : ("YES") /* required */
              }
            }
          } /* required */
        }, /* required */
        "Settings": [{  /* TextCampaignSetting */
          "Option": ( "ADD_METRICA_TAG" | ... | "REQUIRE_SERVICING" ), /* required */
          "Value": ( "YES" | "NO" ) /* required */
        }, ... ],
        "CounterIds": {  /* ArrayOfInteger */
          "Items": [(int), ... ] /* required */
        },
        "RelevantKeywords": {  /* RelevantKeywordsSettingAdd */
          "BudgetPercent": (int), /* required */
          "OptimizeGoalId": (long) /* nillable */
        },
        "PriorityGoals": { /* PriorityGoalsArray */
          "Items": [{ /* PriorityGoalsItem */
            "GoalId": (long), /* required */
            "Value": (long), /* required */
            "IsMetrikaSourceOfValue": ( "YES" | "NO" )
          }, ... ] /* required */
        },
        "TrackingParams": (string),
        "AttributionModel": ( "FCCD" | "LC" | "LSCCD" | "AUTO" ),
        "PackageBiddingStrategy": { /* TextCampaignPackageBiddingStrategyAdd */
          "StrategyId": (long),
          "StrategyFromCampaignId": (long),
          "Platforms" : { /* required */
            "SearchResult" : ( "YES" | "NO" ) /* required */,
            "ProductGallery" : ( "YES" | "NO" ) /* required */,
            "Network" : ( "YES" | "NO" ) /* required */,
            "DynamicPlaces" : ( "YES" | "NO" )
          }
        },
        "NegativeKeywordSharedSetIds" : { /* nillable */
          "Items" : [ (long) ] /* required */
        }
      }, ... ] /* required */
    }
  }
}
```


#|
||
**Parameter**
|
**Type**
|
**Description**
|
**Required**
||

||
**TextCampaignAddItem structure**
||
||
`BiddingStrategy`
|
TextCampaignStrategyAdd
|
Display strategy.
|
No if PackageBiddingStrategy is specified
||
||
`Settings`
|
array of TextCampaignSetting
|
Array of settings that only accept the values YES or NO.
|
No
||
||
`CounterIds`
|
ArrayOfInteger
|
The IDs of Yandex Metrica tags installed on the user's website (see [Yandex Metrica: evaluate your promotion performance](https://yandex.ru/support/direct/en/statistics/metrika) in Yandex Direct Help).
|
No
||
||
`RelevantKeywords`
|
RelevantKeywordsSettingAdd
|
Settings for impressions for related keywords (see [Impressions for related keywords](https://yandex.ru/support/direct/en/impression-criteria/autotargeting) in the Yandex Direct Help). If this structure is omitted, displays for related keywords are disabled.


|
No
||
||
`PriorityGoals`
|
PriorityGoalsArray
|
Priority goals for automatic bid adjustments.

If the array is omitted, automatic bid adjustments are used for obtaining the maximum number of engaged sessions (see [Engaged session figures](https://yandex.ru/support/direct/en/statistics/report-wizard-engagement-rating) in the Yandex Direct Help).

You can't add more than 30 priority goals.
|
When passing the `AverageCpaMultipleGoals`, `PayForConversionMultipleGoals`, or `MaxProfit` parameter.
||
||
`TrackingParams`
|
string
|
URL parameters for templates.
|
No
||
||
`AttributionModel`
|
AttributionModelEnum
|
The attribution model used for optimizing conversions (see [Attribution model](https://yandex.ru/support/direct/en/statistics/attribution-model) in Yandex Direct Help).


<!-- source: en/_includes/attribution-note.md -->
{% note alert "Updates to attribution models in Yandex Direct and Yandex Metrica" %}

Active campaigns using legacy models LSC, FC, LYDC, LYDCCD have automatically switched to their closest available cross-device versions or automatic attribution. This model update won't trigger strategy retraining.

Methods using deprecated models will automatically upgrade to supported models (LSC to LSCCD, FC to FCCD, LYDC/LYDCCD to AUTO) and return a warning that a different model is in use.

{% endnote %}
<!-- endsource: en/_includes/attribution-note.md -->

Possible values:

<!-- source: en/_includes/attribution-models.md -->
- FCCD — First click (cross-device).
- LC — Last click.
- LSCCD — Last non-direct click (cross-device).
- AUTO — Automatic attribution.
<!-- endsource: en/_includes/attribution-models.md -->

The default value is AUTO.

|
No
||
||
`PackageBiddingStrategy`
|
TextCampaignPackageBiddingStrategyAdd
|
Links a campaign to the specified strategy.

You can't pass the following parameters in this field:

- `BiddingStrategy`.
- `PriorityGoals`.
- `CounterIds`.
- `AttributionModel`.

To pass these parameters, unlink the campaign from the portfolio strategy: specify a new value for `BiddingStrategy` and reset the `PackageBiddingStrategy: null` parameter value.
|
No if BiddingStrategy is specified
||
||
`NegativeKeywordSharedSetIds`
|
ArrayOfLong
|
IDs of sets of negative keywords. Maximum of 3 items in the array.

To get the IDs of sets, use the [NegativeKeywordSharedSets](https://yandex.com/dev/direct/doc/en/negativekeywordsharedsets/negativekeywordsharedsets.md).[get](https://yandex.com/dev/direct/doc/en/negativekeywordsharedsets/get.md) method.
|
No
||

||
**TextCampaignSetting structure**
||
||
`Option`
|
TextCampaignSettingsEnum
|
Setting name:

- ADD_METRICA_TAG
- ADD_OPENSTAT_TAG
- ADD_TO_FAVORITES
- ENABLE_AREA_OF_INTEREST_TARGETING
- ENABLE_COMPANY_INFO
- ENABLE_EXTENDED_AD_TITLE
    

- ENABLE_SITE_MONITORING
- EXCLUDE_PAUSED_COMPETING_ADS
- MAINTAIN_NETWORK_CPC
    

- REQUIRE_SERVICING
|
Yes
||
||
- CAMPAIGN_EXACT_PHRASE_MATCHING_ENABLED
|
No
||
||
`Value`
|
YesNoEnum
|
Setting value.
|
Yes
||

||
**RelevantKeywordsSettingAdd structure**
||
||
`BudgetPercent`
|
int
|
Maximum percent of the budget to be spent on clicks on related keywords (from 1 to 100).
|
Yes
||
||
`OptimizeGoalId`
|
long, nillable
|
The ID of a Yandex Metrica goal for optimizing related keywords.

You can't set a specific goal during campaign creation. The following values are allowed:

- 0 — Related keywords are optimized for all the goals available for the campaign.

- null (nil) — No optimization.


If the parameter is omitted, the default value is 0.
|
No
||

||
**TextCampaignPackageBiddingStrategyAdd structure**
||
||
`StrategyId`
|
long
|
Portfolio strategy ID.
|
No
||
||
`StrategyFromCampaignId`
|
long
|
ID of the campaign the portfolio strategy was created from.
|
No
||
||
`Platforms`
|
TextCampaignPlatforms
|
Ad placement platform.
|
Yes
||

||
**PriorityGoalsArray structure**
||
||
`Items`
|
array of PriorityGoalsItem
|
A set of priority goals and corresponding conversion values.
|
Yes
||

||
**PriorityGoalsItem structure**
||
||
`GoalId`
|
long
|
ID of a Yandex Metrica goal to prioritize when automatically adjusting bids. For more information about goals, see [Goals and conversions](https://yandex.ru/support/metrica/en/general/goals.html) in the Yandex Metrica Help.

To get the list of goals, use the [GetStatGoals](https://yandex.ru/dev/direct/doc/dg-v4/en/live/GetStatGoals) method in version 4 or Live 4 of the API.

A value of 12 corresponds to the "Engaged sessions" goal.
|
Yes
||
||
`Value`
|
long
|
Depending on the strategy, it can represent:
* For `MaxProfit`, profit per conversion. This is the average profit from a single conversion after variable costs (product cost, contractor fees, payment processing fees, and other costs), but excluding promotion expenses. Specified in the advertiser's currency, multiplied by 1,000,000.
* For other strategies, conversion value. This is a monetary estimation of the advertiser's profit from a completed conversion. Specified in the advertiser's currency, multiplied by 1,000,000. The higher the conversion value, the higher the priority to achieve conversions for this goal.

|
Yes
||
||
`IsMetrikaSourceOfValue`
|
YesNoEnum
|
Priority goal value source: Yandex Metrica goal. The `YES` value can only be used for strategies with cost revenue ratio.
|
If the BiddingStrategyType parameter is set to AVERAGE_CRR or PAY_FOR_CONVERSION_CRR
||

||
**TextCampaignPlatforms structure**
||
||
`SearchResult`
|
YesNoEnum
|
Search results.
|
Yes
||
||
`ProductGallery`
|
YesNoEnum
|
Product gallery.
|
Yes
||
||
`Network`
|
YesNoEnum
|
Yandex Advertising Network.
|
Yes
||
||
`DynamicPlaces`
|
YesNoEnum
|
Dynamic placements in search results.
|
No
||

||
**TextCampaignStrategyAdd structure**
||
||
`Search`
|
TextCampaignSearchStrategyAdd
|
Display strategy in search results.
|
Yes
||
||
`Network`
|
TextCampaignNetworkStrategyAdd
|
Display strategy in ad networks.
|
Yes
||

||
**TextCampaignSearchStrategyAdd structure**
||
||
`BiddingStrategyType`
|
TextCampaignSearchStrategyTypeEnum
|
The type of display strategy in search results:

- HIGHEST_POSITION
- WB_MAXIMUM_CLICKS
- WB_MAXIMUM_CONVERSION_RATE
- AVERAGE_CPC
- AVERAGE_CPA
- AVERAGE_ROI
- AVERAGE_CRR
- PAY_FOR_CONVERSION
- PAY_FOR_CONVERSION_CRR
- WEEKLY_CLICK_PACKAGE
    

- SERVING_OFF

For information about the compatibility of strategies in search results and ad networks, see the section [Display strategies](https://yandex.ru/dev/direct/doc/en/objects/campaign-strategies).
|
Yes
||
||
`PlacementTypes`
|
TextCampaignSearchStrategyPlacementTypes
|
Placements in search results.

{% note info %}

When creating a campaign, the "Dynamic placements in search results" placement type takes the same value as the "Search results" type (`SearchResults` field). In the future, we'll add the ability to manage the "Dynamic placements in search results" type through the API.

{% endnote %}

|
No
||
||
`WbMaximumClicks`
|
StrategyMaximumClicksAdd
|
Parameters of the [Optimize clicks](https://yandex.ru/support/direct/en/strategies/average-cpc) strategy. Limited by weekly budget.
|
When the `BiddingStrategyType` parameter is set to WB_MAXIMUM_CLICKS
||
||
`WbMaximumConversionRate`
|
StrategyMaximumConversionRateAdd
|
Parameters of the [Optimize conversions](https://yandex.ru/support/direct/en/strategies/average-cpa) strategy without specifying the average CPA.
|
When the `BiddingStrategyType` parameter is set to WB_MAXIMUM_CONVERSION_RATE
||
||
`AverageCpc`
|
StrategyAverageCpcAdd
|
Parameters of the [Optimize clicks](https://yandex.ru/support/direct/en/strategies/average-cpc) strategy. Limited by average CPC.
|
When the `BiddingStrategyType` parameter is set to AVERAGE_CPC
||
||
`AverageCpa`
|
StrategyAverageCpaAdd
|
Parameters of the [Optimize conversions](https://yandex.ru/support/direct/en/strategies/average-cpa) strategy. Maintain the average CPA.
|
When the `BiddingStrategyType` parameter is set to AVERAGE_CPA
||
||
`AverageCpaMultipleGoals`
|
StrategyAverageCpaMultipleGoalsAdd
|
Parameters of the [Maximize conversions](https://yandex.ru/support/direct/en/strategies/average-cpa) pay-per-click strategy. Maintain the average CPA for multiple goals.
Be sure to simultaneously pass the `PriorityGoals` array with at least two priority goals and specify the target CPA for each goal as the `Value`.
|
When the `BiddingStrategyType` parameter is set to AVERAGE_CPA_MULTIPLE_GOALS
||
||
`AverageCrr`
|
StrategyAverageCrrAdd
|
Parameters of the strategy [Optimize cost revenue ratio](https://yandex.ru/support/direct/en/strategies/average-cpa). Maintain the average cost revenue ratio.
|
When the `BiddingStrategyType` parameter is set to AVERAGE_CRR
||
||
`PayForConversionCrr`
|
StrategyPayForConversionCrrAdd
|
Parameters of the strategy [Optimize cost revenue ratio](https://yandex.ru/support/direct/en/strategies/average-cpa). Pay per conversion.
|
When the `BiddingStrategyType` parameter is set to PAY_FOR_CONVERSION_CRR
||
||
`WeeklyClickPackage`
|
StrategyWeeklyClickPackageAdd
|
Parameters of the [Optimize clicks](https://yandex.ru/support/direct/en/strategies/average-cpc.html) strategy. Limited by click package.


|
When the `BiddingStrategyType` parameter is set to WEEKLY_CLICK_PACKAGE
||
||
`PayForConversion`
|
StrategyPayForConversionAdd
|
Parameters of the [Optimize conversions](https://yandex.ru/support/direct/en/strategies/average-cpa) strategy. Pay per conversion.
|
When the `BiddingStrategyType` parameter is set to PAY_FOR_CONVERSION
||
||
`PayForConversionMultipleGoals`
|
StrategyPayForConversionMultipleGoalsAdd
|
Parameters of the [Maximize conversions](https://yandex.ru/support/direct/en/strategies/average-cpa) pay-per-conversion strategy for each of the specified goals.
Be sure to simultaneously pass the `PriorityGoals` array with at least two priority goals and specify the target CPA for each goal as the `Value`.
|
When the `BiddingStrategyType` parameter is set to PAY_FOR_CONVERSION
||
||
`MaxProfit`
|
StrategyMaxProfitAdd
|
Parameters of the "Maximize profit" strategy. The optimal CPA is selected and continuously updated based on the profit per conversion metric, allowing your business to maximize its actual profit.
Be sure to simultaneously pass the `PriorityGoals` array and specify the target profit per conversion as the `Value`.
|
When the `BiddingStrategyType` parameter is set to MAX_PROFIT
||

||
**TextCampaignNetworkStrategyAdd structure**
||
||
`BiddingStrategyType`
|
TextCampaignNetworkStrategyTypeEnum
|
The type of display strategy in ad networks:

- NETWORK_DEFAULT
    

- MAXIMUM_COVERAGE
- WB_MAXIMUM_CLICKS
- WB_MAXIMUM_CONVERSION_RATE
- AVERAGE_CPC
- AVERAGE_CPA
- AVERAGE_ROI
- AVERAGE_CRR
- PAY_FOR_CONVERSION
- PAY_FOR_CONVERSION_CRR
- WEEKLY_CLICK_PACKAGE
    

- SERVING_OFF

For information about the compatibility of strategies in search results and ad networks, see the section [Display strategies](https://yandex.ru/dev/direct/doc/en/objects/campaign-strategies).
|
Yes
||
||
`NetworkDefault`

|
StrategyNetworkDefaultAdd
|
Settings for impressions in ad networks based on the settings for search.

If a search strategy other than HIGHEST_POSITION is selected, pass an empty structure.
|
When the `BiddingStrategyType` parameter is set to NETWORK_DEFAULT
||
||
`WbMaximumClicks`
|
StrategyMaximumClicksAdd
|
Parameters of the [Optimize clicks](https://yandex.ru/support/direct/en/strategies/average-cpc) strategy. Limited by weekly budget.
|
When the `BiddingStrategyType` parameter is set to WB_MAXIMUM_CLICKS
||
||
`WbMaximumConversionRate`
|
StrategyMaximumConversionRateAdd
|
Parameters of the [Optimize conversions](https://yandex.ru/support/direct/en/strategies/average-cpa) strategy without specifying the average CPA.
|
When the `BiddingStrategyType` parameter is set to WB_MAXIMUM_CONVERSION_RATE
||
||
`AverageCpc`
|
StrategyAverageCpcAdd
|
Parameters of the [Optimize clicks](https://yandex.ru/support/direct/en/strategies/average-cpc) strategy. Limited by average CPC.
|
When the `BiddingStrategyType` parameter is set to AVERAGE_CPC
||
||
`AverageCpa`
|
StrategyAverageCpaAdd
|
Parameters of the [Optimize conversions](https://yandex.ru/support/direct/en/strategies/average-cpa) strategy. Maintain the average CPA.
|
When the `BiddingStrategyType` parameter is set to AVERAGE_CPA
||
||
`AverageCpaMultipleGoals`
|
StrategyAverageCpaMultipleGoalsAdd
|
Parameters of the [Maximize conversions](https://yandex.ru/support/direct/en/strategies/average-cpa) pay-per-click strategy. Maintain the average CPA for multiple goals.
Be sure to simultaneously pass the `PriorityGoals` array with at least two priority goals and specify the target CPA for each goal as the `Value`.
|
When the `BiddingStrategyType` parameter is set to AVERAGE_CPA_MULTIPLE_GOALS
||
||
`AverageCrr`
|
StrategyAverageCrrAdd
|
Parameters of the strategy [Optimize cost revenue ratio](https://yandex.ru/support/direct/en/strategies/average-cpa). Maintain the average cost revenue ratio.
|
When the `BiddingStrategyType` parameter is set to AVERAGE_CRR
||
||
`PayForConversion`
|
StrategyPayForConversionAdd
|
Parameters of the [Optimize conversions](https://yandex.ru/support/direct/en/strategies/average-cpa) strategy. Pay per conversion.
|
When the `BiddingStrategyType` parameter is set to PAY_FOR_CONVERSION
||
||
`PayForConversionMultipleGoals`
|
StrategyPayForConversionMultipleGoalsAdd
|
Parameters of the [Maximize conversions](https://yandex.ru/support/direct/en/strategies/average-cpa) pay-per-conversion strategy for each of the specified goals.
Be sure to simultaneously pass the `PriorityGoals` array with at least two priority goals and specify the target CPA for each goal as the `Value`.
|
When the `BiddingStrategyType` parameter is set to PAY_FOR_CONVERSION
||
||
`MaxProfit`
|
StrategyMaxProfitAdd
|
Parameters of the "Maximize profit" strategy. The optimal CPA is selected and continuously updated based on the profit per conversion metric, allowing your business to maximize its actual profit.
Be sure to simultaneously pass the `PriorityGoals` array and specify the target profit per conversion as the `Value`.
|
When the `BiddingStrategyType` parameter is set to MAX_PROFIT
||
||
`PayForConversionCrr`
|
StrategyPayForConversionCrrAdd
|
Parameters of the strategy [Optimize cost revenue ratio](https://yandex.ru/support/direct/en/strategies/average-cpa). Pay per conversion.
|
When the `BiddingStrategyType` parameter is set to PAY_FOR_CONVERSION_CRR
||
||
`WeeklyClickPackage`

|
StrategyWeeklyClickPackageAdd
|
Parameters of the [Optimize clicks](https://yandex.ru/support/direct/en/strategies/average-cpc.html) strategy. Limited by click package.


|
When the `BiddingStrategyType` parameter is set to WEEKLY_CLICK_PACKAGE
||

||
**StrategyMaximumClicksAdd structure**
||
||
`WeeklySpendLimit`
|
long
|
The weekly budget in the user's currency, multiplied by 1,000,000.

The minimum weekly budget for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
Yes
||
||
`BidCeiling`
|
long
|
The maximum bid in the user's currency, multiplied by 1,000,000.

The minimum and maximum bid for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.


{% note info %}

We don't recommend setting the maximum bid, as this may reduce the effectiveness of the strategy.

{% endnote %}
|
No
||
||
`CustomPeriodBudget`
|
CustomPeriodBudget
|
Budget for a custom period. For more information, see [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/budgets-in-strategies).

When creating a campaign, you can't specify both this parameter and `WeeklySpendLimit`.
|
No
||

||
**TextCampaignSearchStrategyPlacementTypes structure**
||
||
`SearchResults`
|
YesNoEnum
|
Search results.
|
No
||
||
`ProductGallery`
|
YesNoEnum
|
Product gallery.
|
No
||
||
`DynamicPlaces`
|
YesNoEnum
|
Dynamic placements in search results.
|
No
||

||
**StrategyMaximumConversionRateAdd structure**
||
||
`WeeklySpendLimit`
|
long
|
The weekly budget in the user's currency, multiplied by 1,000,000.

The minimum weekly budget for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
Yes
||
||
`BidCeiling`
|
long
|
The maximum bid in the user's currency, multiplied by 1,000,000.

The minimum and maximum bid for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.


{% note info %}

We don't recommend setting the maximum bid, as this may reduce the effectiveness of the strategy.

{% endnote %}
|
No
||
||
`GoalId`
|
long
|
ID of a Yandex Metrica goal. For more information about goals, see [Goals and conversions](https://yandex.ru/support/metrica/en/general/goals.html) in the Yandex Metrica Help.

The value 13 indicates priority goals. Allowed if the PriorityGoals array specifies at least one goal that is different from engaged sessions.

To get the list of goals, use the [GetStatGoals](https://yandex.ru/dev/direct/doc/dg-v4/en/live/GetStatGoals) method in version 4 or Live 4 of the API.
|
Yes
||
||
`CustomPeriodBudget`
|
CustomPeriodBudget
|
Budget for a custom period. For more information, see [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/budgets-in-strategies).

When creating a campaign, you can't specify both this parameter and `WeeklySpendLimit`.
|
No
||

||
**StrategyAverageCpcAdd structure**
||
||
`AverageCpc`
|
long
|
The average CPC in the user's currency, multiplied by 1,000,000.

The minimum value for the average cost is listed by currency in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
Yes
||
||
`WeeklySpendLimit`
|
long
|
The weekly budget in the user's currency, multiplied by 1,000,000.

The minimum weekly budget for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
No
||
||
`CustomPeriodBudget`
|
CustomPeriodBudget
|
Budget for a custom period. For more information, see [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/budgets-in-strategies).

When creating a campaign, you can't specify both this parameter and `WeeklySpendLimit`.
|
No
||

||
**StrategyAverageCpaAdd structure**
||
||
`AverageCpa`
|
long
|
The average cost per conversion (CPA) in the user's currency, multiplied by 1,000,000.

The minimum value for the average cost is listed by currency in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
Yes
||
||
`WeeklySpendLimit`
|
long
|
The weekly budget in the user's currency, multiplied by 1,000,000.

The minimum weekly budget for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
No
||
||
`CustomPeriodBudget`
|
CustomPeriodBudget
|
Budget for a custom period. For more information, see [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/budgets-in-strategies).

When creating a campaign, you can't specify both this parameter and `WeeklySpendLimit`.
|
No
||
||
`GoalId`
|
long
|
ID of a Yandex Metrica goal. For more information about goals, see [Goals and conversions](https://yandex.ru/support/metrica/en/general/goals.html) in the Yandex Metrica Help.

To get the list of goals, use the [GetStatGoals](https://yandex.ru/dev/direct/doc/dg-v4/en/live/GetStatGoals) method in version 4 or Live 4 of the API.
|
Yes
||
||
`BidCeiling`
|
long
|
The maximum bid in the user's currency, multiplied by 1,000,000.

The minimum and maximum bid for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.


{% note info %}

We don't recommend setting the maximum bid, as this may reduce the effectiveness of the strategy.

{% endnote %}
|
No
||
||
`ExplorationBudget`
|
ExplorationBudget
|
Minimum budget. Read more in [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/minimal-budget).

If the field is omitted, a default value is set for the strategy (it's calculated based on the strategy settings).

To set a custom minimum budget, use the `MinimumExplorationBudget` parameter and set `IsMinimumExplorationBudgetCustom="YES"`.

If `IsMinimumExplorationBudgetCustom` is `NO`, the operation raises an error.
|
No
||
||
**StrategyAverageCpaMultipleGoalsAdd structure**
||
||
`WeeklySpendLimit`
|
long
|
The weekly budget in the user's currency, multiplied by 1,000,000.

The minimum weekly budget for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
No
||
||
`CustomPeriodBudget`
|
CustomPeriodBudget
|
Budget for a custom period. For more information, see [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/budgets-in-strategies).

When creating a campaign, you can't specify both this parameter and `WeeklySpendLimit`.
|
No
||
||
`BidCeiling`
|
long
|
The maximum bid in the user's currency, multiplied by 1,000,000.

The minimum and maximum bid for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.


{% note info %}

We don't recommend setting the maximum bid, as this may reduce the effectiveness of the strategy.

{% endnote %}
|
No
||
||
`ExplorationBudget`
|
ExplorationBudget
|
Minimum budget. Read more in [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/minimal-budget).

If the field is omitted, a default value is set for the strategy (it's calculated based on the strategy settings).

To set a custom minimum budget, use the `MinimumExplorationBudget` parameter and set `IsMinimumExplorationBudgetCustom="YES"`.

If `IsMinimumExplorationBudgetCustom` is `NO`, the operation raises an error.
|
No
||

||
**StrategyAverageCrrAdd structure**
||
||
`Crr`
|
int
|
Average cost revenue ratio.
|
Yes
||
||
`GoalId`
|
long
|
ID of a Yandex Metrica goal. For more information about goals, see [Goals and conversions](https://yandex.ru/support/metrica/en/general/goals.html) in the Yandex Metrica Help.

To get the list of goals, use the [GetStatGoals](https://yandex.ru/dev/direct/doc/dg-v4/en/live/GetStatGoals) method in version 4 or Live 4 of the API.
|
Yes
||
||
`WeeklySpendLimit`
|
long
|
The weekly budget in the user's currency, multiplied by 1,000,000.

The minimum weekly budget for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
No
||
||
`CustomPeriodBudget`
|
CustomPeriodBudget
|
Budget for a custom period. For more information, see [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/budgets-in-strategies).

When creating a campaign, you can't specify both this parameter and `WeeklySpendLimit`.
|
No
||
||
`ExplorationBudget`
|
ExplorationBudget
|
Minimum budget. Read more in [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/minimal-budget).

If the field is omitted, a default value is set for the strategy (it's calculated based on the strategy settings).

To set a custom minimum budget, use the `MinimumExplorationBudget` parameter and set `IsMinimumExplorationBudgetCustom="YES"`.

If `IsMinimumExplorationBudgetCustom` is `NO`, the operation raises an error.
|
No
||

||
**StrategyPayForConversionAdd structure**
||
||
`Cpa`
|
long
|
Cost per conversion (CPA) in the user's currency, multiplied by 1,000,000.

The minimum and maximum CPA values are listed by currency in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
Yes
||
||
`GoalId`
|
long
|
ID of a Yandex Metrica goal. For more information about goals, see [Goals and conversions](https://yandex.ru/support/metrica/en/general/goals.html) in the Yandex Metrica Help.

To get the list of goals, use the [GetStatGoals](https://yandex.ru/dev/direct/doc/dg-v4/en/live/GetStatGoals) method in version 4 or Live 4 of the API.
|
Yes
||
||
`WeeklySpendLimit`
|
long
|
The weekly budget in the user's currency, multiplied by 1,000,000.

The minimum weekly budget for each currency must be at least the value of the `Cpa` parameter multiplied by 20. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
No
||
||
`CustomPeriodBudget`
|
CustomPeriodBudget
|
Budget for a custom period. For more information, see [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/budgets-in-strategies).

When creating a campaign, you can't specify both this parameter and `WeeklySpendLimit`.
|
No
||

||
**PayForConversionMultipleGoals structure**
||
||
`WeeklySpendLimit`
|
long
|
The weekly budget in the user's currency, multiplied by 1,000,000.

The minimum weekly budget for each currency must be at least the value of the `Cpa` parameter multiplied by 20. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
No
||
||
`CustomPeriodBudget`
|
CustomPeriodBudget
|
Budget for a custom period. For more information, see [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/budgets-in-strategies).

When creating a campaign, you can't specify both this parameter and `WeeklySpendLimit`.
|
No
||

||
**MaxProfit structure**
||
||
`WeeklySpendLimit`
|
long
|
The weekly budget in the advertiser's currency, multiplied by 1,000,000.

The minimum weekly budget for each currency must be at least the value of the `Cpa` parameter multiplied by 20. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
No
||
||
`CustomPeriodBudget`
|
CustomPeriodBudget
|
Budget for a custom period. For more information, see [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/budgets-in-strategies).

When creating a campaign, you can't specify both this parameter and `WeeklySpendLimit`.
|
No
||
||
`ExplorationBudget`
|
ExplorationBudget
|
Minimum budget. Read more in [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/minimal-budget).

If the field is omitted, a default value is set for the strategy (it's calculated based on the strategy settings).

To set a custom minimum budget, use the `MinimumExplorationBudget` parameter and set `IsMinimumExplorationBudgetCustom="YES"`.

If `IsMinimumExplorationBudgetCustom` is `NO`, the operation raises an error.
|
No
||

||
**StrategyPayForConversionCrrAdd structure**
||
||
`Crr`
|
int
|
Average cost revenue ratio.
|
Yes
||
||
`GoalId`
|
long
|
ID of a Yandex Metrica goal. For more information about goals, see [Goals and conversions](https://yandex.ru/support/metrica/en/general/goals.html) in the Yandex Metrica Help.

To get the list of goals, use the [GetStatGoals](https://yandex.ru/dev/direct/doc/dg-v4/en/live/GetStatGoals) method in version 4 or Live 4 of the API.
|
Yes
||
||
`WeeklySpendLimit`
|
long
|
The weekly budget in the user's currency, multiplied by 1,000,000.

The minimum weekly budget for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.
|
No
||
||
`CustomPeriodBudget`
|
CustomPeriodBudget
|
Budget for a custom period. For more information, see [Yandex Direct Help](https://yandex.ru/support/direct/en/strategies/budgets-in-strategies).

When creating a campaign, you can't specify both this parameter and `WeeklySpendLimit`.
|
No
||

||
**StrategyWeeklyClickPackageAdd structure**
||
||
`ClicksPerWeek`
|
long
|
Desired number of clicks per week.
|
Yes
||
||
`AverageCpc`
|
long
|
The average CPC in the user's currency, multiplied by 1,000,000.

The minimum value for the average cost is listed by currency in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.


{% note info %}

The `AverageCpc` and `BidCeiling` parameters are mutually exclusive. You can't specify both of them.

{% endnote %}
|
No
||
||
`BidCeiling`
|
long
|
The maximum bid in the user's currency, multiplied by 1,000,000.

The minimum and maximum bid for each currency is listed in the currency reference. To get the list of currencies, use the [Dictionaries](https://yandex.com/dev/direct/doc/en/dictionaries/dictionaries.md).[get](https://yandex.com/dev/direct/doc/en/dictionaries/get.md) method.


{% note info %}

The `AverageCpc` and `BidCeiling` parameters are mutually exclusive. You can't specify both of them.

{% endnote %}
|
No
||

||
**StrategyNetworkDefaultAdd structure**
||
||
`LimitPercent`
|
int
|
The maximum percentage of the budget to spend on displays in ad networks. The value is a multiple of ten: 10, 20, ..., 100. The default value is 100.

If a search strategy other than HIGHEST_POSITION is selected, the parameter is not used and the passed value is ignored.
|
No
||

||
**ExplorationBudget structure**
||
||
`MinimumExplorationBudget`
|
long
|
Minimum budget value.

Acceptable value: between 0 and the weekly budget (if set).
|
Yes, if the request includes the `ExplorationBudget` structure.
||
||
`IsMinimumExplorationBudgetCustom`
|
YesNoEnum
|
A flag indicating a custom minimum budget.
|
Yes, if the request includes the `ExplorationBudget` structure.
||

||
**CustomPeriodBudget structure**
||
||
`SpendLimit`
|
long
|
Budget size for a custom period.
|
Yes
||
||
`StartDate`
|
string
|
Start of the budget period.
|
Yes
||
||
`EndDate`
|
string
|
End of the budget period.
|
Yes
||
||
`AutoContinue`
|
YesNoEnum
|
Flag to autocontinue the budget period.
|
Yes
||
|#

