Configure time targeting

Uses the cURL utility

This example shows how to configure time targeting and hourly bid adjustments using the Campaigns.update method.

To use this example, change the input data to include the OAuth token, the campaign ID, and the bid adjustments for each day of the week and each hour. For a request on behalf of an agency, also specify the client login.

curl \
 -H 'Authorization: Bearer TOKEN' \
  -H 'Client-Login: CLIENT_LOGIN' \
  -d '{ "method": "update",
  "params": {
 "Campaigns": [{
     "Id": CAMPAIGN_ID,
     "TimeTargeting": {
        "Schedule": {
          "Items": [
        "ConsiderWorkingWeekends": "YES",
        "HolidaysSchedule": {
          "StartHour": 14,
          "EndHour": 24,
          "SuspendOnHolidays": "NO",
          "BidPercent": 100
Note. For cURL in Windows, replace all single quotes with double quotes, and escape double quotes in JSON code. For example: -d "{\"method\"...