Guides
Campaigns

Targeting and budget

Locations, audience, placements, campaign and ad group budgets, the UTC+0 schedule, dayparting, bid and pacing.

Targeting and money live on the ad group; the campaign only sets the budget when Campaign Budget Optimization (CBO) is on or when you want a cap.

Locations

location_ids uses TikTok's Location IDs list (GeoNames ids). Set location_ids, zipcode_ids or both, up to 3,000 in total.

Locationid
Brazil3469034
Minas Gerais3457153
São Paulo (state)3448433

A country together with one of its states is refused: ["3469034", "3448433"] answers 40002 Overlapping targeted locations are not supported. In Mimicr, any other numeric id of 6 to 8 digits is accepted as a city.

Audience

FieldValues
genderGENDER_FEMALE, GENDER_MALE, GENDER_UNLIMITED (default)
age_groupsAGE_13_17, AGE_18_24, AGE_25_34, AGE_35_44, AGE_45_54, AGE_55_100
languagesLanguage codes
operating_systemsA single value: ANDROID or IOS
device_price_rangesMultiples of 50
audience_ids, excluded_audience_ids, interest_category_ids, interest_keyword_ids, spending_power, household_income, network_types, actionsStored and echoed

In Mimicr, only gender and age_groups change delivery: a narrow audience reaches fewer people. AGE_13_17 with a United States location answers 40065. Campaigns with special_industries (HOUSING, EMPLOYMENT, CREDIT) cannot target by age, gender or zip code.

Placements

placement_type PLACEMENT_TYPE_NORMAL (default) requires placements: PLACEMENT_TIKTOK, PLACEMENT_PANGLE or PLACEMENT_GLOBAL_APP_BUNDLE. PLACEMENT_TYPE_AUTOMATIC uses all three. Neither can change after creation.

Budget

Budgets are numbers in the account currency, with a precision of 0.01 in BRL.

Wherebudget_modeMinimum in BRL
Campaign without CBOBUDGET_MODE_INFINITE (no cap), BUDGET_MODE_DAY or BUDGET_MODE_TOTAL50 per day
Campaign with CBO (budget_optimize_on: true)BUDGET_MODE_DAY, BUDGET_MODE_DYNAMIC_DAILY_BUDGET or BUDGET_MODE_TOTAL50 per day
Ad group (without CBO)BUDGET_MODE_DAY, BUDGET_MODE_DYNAMIC_DAILY_BUDGET or BUDGET_MODE_TOTAL20 per day
  • BUDGET_MODE_DAY on a REACH, VIDEO_VIEWS or ENGAGEMENT campaign without CBO is deprecated: 40002. Use BUDGET_MODE_INFINITE.
  • The dynamic daily budget with CBO on those objectives is allowlist-only: 40118.
  • BUDGET_MODE_TOTAL on an ad group requires schedule_type SCHEDULE_START_END.
  • With CBO, the ad group has no budget of its own and bid_type becomes required.
  • Above 10,000,000: 40002 Budget is too high.

In Mimicr delivery spends close to the daily budget (between 55% and 100%, deterministically), and a dynamic budget may go up to 25% over in a day. When the day's spend reaches the budget, delivery stops and the status becomes *_BUDGET_EXCEED.

Schedule

FieldRule
schedule_typeSCHEDULE_FROM_NOW (ends in 10 years) or SCHEDULE_START_END
schedule_start_time"YYYY-MM-DD HH:MM:SS" in UTC+0; at most 12 hours in the past and before 2028-01-01 00:00:00
schedule_end_timeRequired with SCHEDULE_START_END; after the start and before 2038-01-01 00:00:00

Times are UTC+0. Sending Brasília time without converting moves the ad group 3 hours earlier.

Before the start the ad group reads ADGROUP_STATUS_NOT_START; after the end, ADGROUP_STATUS_TIME_DONE.

Dayparting

dayparting is a string of 336 0 or 1 characters, one per half hour, from Monday 00:00 to Sunday 23:30. Empty, all 0 or all 1 means the whole day; any other length answers 40002 dayparting: Invalid format. In Mimicr the half hours follow the advertiser time zone, and an hour with only one half on delivers half.

Bid and pacing

FieldRule
bid_typeBID_TYPE_NO_BID (maximum delivery, default) or BID_TYPE_CUSTOM (Cost Cap)
bid_priceRequired with BID_TYPE_CUSTOM and CPC, CPM or CPV billing
conversion_bid_priceRequired with BID_TYPE_CUSTOM and OCPM billing; lower than the budget
pacingRequired without CBO: PACING_MODE_SMOOTH (spreads over the day) or PACING_MODE_FAST (spends early)
frequency, frequency_scheduleREACH only: at most frequency times every frequency_schedule days (1–1000 and 1–30)

In Mimicr the default CPC is around R$ 0.60 and the CPM around R$ 9.00; with BID_TYPE_CUSTOM, the CPC follows bid_price. The traffic.set_profile action pins a campaign's CTR, CPC, CPM or budget usage.

Changing the budget later

/adgroup/budget/update/ changes the budget of up to 20 ad groups: budget applies right away; scheduled_budget (daily) applies, in Mimicr, at the next midnight of the advertiser time zone. A new budget must be at least 105% of what was already spent. See Edit and pause.