An ad group belongs to a campaign. While you use a campaign to define high-level goals like the objective, you use an ad group to define more detailed information like budget, placement, bidding details, and targeting details. The campaign specifies why you’re advertising and the ad group specifies how you’re advertising.
Ad groups are created on automatically on the backend when you create a campaign. This is true for both Ads API and the Ads Manager UI. Currently, each campaign contains only one ad group. In the future you’ll be able to create many ad groups for a single campaign.
Update an ad group
To update an ad group, make a PATCH Update ad groups call and use your body parameters to specify the targeting metadata. Include the unique identifier (uid) of the ad groups you want to update, along with their specific targeting metadata.
| Targeting metadata type | Description |
|---|---|
| ad group attributes |
|
dayparts | Use dayparts to control the days and hours during which your ads are eligible to serve, based on the local viewer’s timezone. Define a schedule array of time windows each specifying a day_of_week (MONDAY-SUNDAY), start_hour (0-23), and end_hour (1-24). An empty daypart schedule means ads are eligible to serve at all times. Use the optional timezone_source field to choose which time zone the schedule hours follow: user (default) follows each viewer’s local time zone, and account follows the account time zone associated with the campaign. If you omit timezone_source on create, it defaults to user. If you omit it on update, the existing selection is preserved. |
location_targeting | Use location targeting to include or exclude where your ads are served based on specific geographical regions. Each entry in the include or exclude arrays must include a type and a name. Supported types are:
|
audience_targeting | Use audience targeting to reach viewers based on demographic attributes and custom audiences. Targeting conditions are evaluated across categories (
custom_audiences can be excluded. All other targeting types are inclusion-only.Standard audiences must be assigned to their corresponding targeting category. For example, age segments belong under age, gender segments under gender, etc. You can identify a segment's category using the audience_category_uid field returned by the audiences/standard endpoint:
audiences/standard endpoint. Not all ad accounts have access to the same audiences.Note: |
placement | Use placement to specify where your ads are served. The apps array accepts two values:
auto_placement is set to true, Roku automatically determines the optimal mix across both placements. |
impression_frequency_caps | Use impression frequency caps to limit how often a unique household sees your ads within a rolling time window. Three fields are required:
frequency_value of 7 and max_impressions of 3 means no household will see your ad more than 3 times in a 7-day period. |
content_targeting | Use content targeting to control the content environment your ads appear in. Two options are available:
|
optimization_goal | Use an optimization goal to tell Roku what outcome to optimize for. Optimization goal options are: App installs, Leads, PageViews, Purchases, Reach, Sign-ups, and Subscriptions. Note: All optimization goals work for the Conversion campaign objective except Reach which only applies to the Awareness campaign objective. |
event_group_uid | The unique identifier of an event group. Specify this to associate an ad group with a set of conversion events for attribution and optimization. |
is_published | Set to true to enable the ad group to begin delivering impressions. An ad group can only be published if required conditions are met, including an active payment method and an attached creative. |
Gambling restrictions
The following business categories fall under Gambling and have different default targeting specifications than other categories:
- Online Gambling
- Brick-and-Mortar-Casino
- Fantasy Sports
- Lotteries and Scratchcards
The different default targeting specifications for these business categories are as follows:
Brick-and-Mortar-Casino: has a special gambling ad category applied to all campaigns that can't be removed.
Online Gambling, Fantasy Sports, and Lotteries and Scratchcards:
- have a special gambling ad category applied to all campaigns that can't be removed.
- have the 18-20 age audience segment automatically excluded.
- have their audience libraries restricted to a 21-24 age audience segment instead of the standard 18-24.