Add targeting
x_ads_add_targetingAdd targeting criteria to an ad group: location, custom audience, interest, language, platform, device, gender, age, event, or keyword. Include or exclude values, with optional replacement of same-type targeting.
Instructions
Add targeting on an ad group. criteria: {targeting_type, targeting_value, operator_type?}. Types: LOCATION, CUSTOM_AUDIENCE, FOLLOWER_LOOK_ALIKE, INTEREST, LANGUAGE, PLATFORM, DEVICE, GENDER, AGE, EVENT, KEYWORD. GENDER=MALE/FEMALE, AGE like AGE_25_TO_34. operator EQ include (default) or NE exclude. replace=true removes existing criteria of the SAME types first. Only set targeting the user asked for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | ||
| criteria | Yes | ||
| account_id | Yes | Ads API account id from x_ads_list_accounts, e.g. 18ce55v2od2 | |
| line_item_id | Yes |