Assigns fixed bids and priorities for keyword phrases and auto-targeting.
yadirSetKeyWordsBids(
KeywordIds = NULL,
AdGroupIds = NULL,
CampaignIds = NULL,
StrategyPriority = c(NA,
"LOW",
"NORMAL",
"HIGH"),
SearchBid = NULL,
NetworkBid = NULL,
Login = getOption("ryandexdirect.user"),
Token = NULL,
AgencyAccount = getOption("ryandexdirect.agency_account"),
TokenPath = yadirTokenPath())
List with result data, object ids, warnings and errors.
Phrase ID. Specified if you want to update the bid for an individual phrase.
Ad Group ID. Specified if you need to update bids for all group phrases.
Campaign ID. Specified if you need to update bids for all campaign phrases.
The priority of the phrase: LOW, NORMAL or HIGH. Only for automatic strategy.
Bid on search.
Bid on network.
Your Yandex Login.
Your agency account login, if you get statistic from client account.
Your Yandex API Token.
Path to directory where you save credential data.
Alexey Seleznev
You can set a bet or priority:
for a separate keyword phrase or autotarget.
for all keyword phrases and autotargeting in an ad group.
for all keyword phrases and autotargets in the campaign.
You can set a bid or priority depending on which display strategy is selected in the campaign:
if the display strategy is selected on the HIGHEST_POSITION
search, you can specify the SearchBid parameter.
if you selected a display strategy on MAXIMUM_COVERAGE
or MANUAL_CPM
networks, you can specify the NetworkBid parameter.
if the automatic strategy is selected, you can specify the StrategyPriority parameter: phrases with a higher priority receive as much traffic as possible, and in case of a budget deficit, they are turned off last.
If the element of the input array contains parameters that do not correspond to the strategy, the values of these parameters will not be changed:
If the input array element contains both parameters corresponding to the strategy and parameters that do not correspond to the strategy (for example, both the bid and priority), then as a result of the operation, the values of only the parameters corresponding to the strategy will be changed and a warning will be issued.
If the input array element contains only parameters that do not correspond to the strategy (for example, only the priority for a manual strategy), the operation will fail and an error will be returned.
See for get and autoset keyword bids yadirGetKeyWordsBids()
and yadirSetAutoKeyWordsBids()
if (FALSE) {
# loading keywords list
kw <- yadirGetKeyWords()
# set bid on search
setbid <- yadirSetKeyWordsBids(KeywordIds = kw$Id,
SearchBid = 9)
}
Run the code above in your browser using DataLab