Skip to content

v0.49.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 20:06
· 1 commit to main since this release

AdLoop can now build Demand Gen campaigns: the campaign, its image ads and its audiences. All of it was contributed by @palermomarco in four pull requests (#145, #146, #147, #148), each checked with validate-only requests against a real account. Thank you, Marco.

Demand Gen campaigns

Demand Gen serves image ads on YouTube, Discover, Gmail and the Display Network to audiences. There are no keywords. A campaign is built in a few steps, and every step has its own preview and approval:

  1. draft_campaign with channel_type="DEMAND_GEN" creates the budget, the campaign (paused) and one ad group in one request. Locations and languages go on the ad group, where Demand Gen targets. channels limits where it serves (youtube_in_stream, youtube_in_feed, youtube_shorts, discover, gmail, display, maps); without it the ad group serves on all of them, and the preview says so. Bidding is Maximize clicks (TARGET_SPEND), MAXIMIZE_CONVERSIONS or TARGET_CPA. start_date and end_date are optional.
  2. draft_library_image_assets uploads images and logos to the asset library without linking them to anything and returns their asset IDs. The preview shows each image's size and ratio class and warns about sizes Demand Gen does not accept.
  3. draft_demand_gen_ad creates a multi-asset image ad (paused) from those IDs: headlines, descriptions, business name, a logo, and landscape (1.91:1), square (1:1), portrait (4:5) or tall portrait (9:16) images. The draft checks every text length and reads each image from the account to check its ratio for its slot.
  4. Audiences: draft_custom_segment (people who browse given sites or search for given terms), draft_lookalike_list (people similar to your own lists) and draft_demand_gen_audience, which combines segments and lists into one audience and can attach it to the ad group in the same request.

Two defaults differ from Google's, on purpose:

  • Optimized targeting is off. Google switches it on for new Demand Gen ad groups, which lets ads reach people outside the chosen audience. Pass optimized_targeting=true if you want it.
  • Generated videos and animated images are off. Google builds extra ads from the images and texts of a multi-asset ad unless told otherwise. Pass generated_videos or animated_images to allow it.

Attach an audience before you enable the campaign. Without one, expect the ad group to reach everyone in its locations and languages.

Attaching an audience to an ad group that is already running narrows its reach at once, so that plan asks for a second confirmation.

Campaign start and end dates

update_campaign takes start_date and end_date (YYYY-MM-DD), for campaigns that should stop by themselves after a sale or an event.

  • "Today" and "in the past" are judged on the account's calendar, not on UTC.
  • A start after the stored end date, or an end before the stored start date, is refused with both dates in the message.
  • end_date="" removes the end date. The campaign then runs indefinitely, so this asks for a second confirmation.
  • Google does not allow changing the start date of a campaign that has started; the draft says so before a request is sent.

When you create a Search campaign, draft_campaign does not take dates: create it (it starts paused) and set them with update_campaign.

Arguments are refused, not dropped

draft_campaign now refuses an argument that does not apply to the channel instead of ignoring it: dates and channels on a Search campaign, and keywords, geo_exclude_ids, ad_schedule, target_roas and the network, location and URL options on a Demand Gen campaign. A dropped end date or exclusion would have created a campaign that differs from what was asked for without any sign of it.

Good to know

  • New operations for blocked_operations in the config: create_demand_gen_campaign, create_demand_gen_ad, create_library_image_assets, create_custom_segment, create_lookalike_list, create_demand_gen_audience. Blocking create_campaign also stops Demand Gen campaigns.
  • A Demand Gen ad group takes one audience. The draft refuses a second one and says how to remove the first.
  • Lookalike lists only work in Demand Gen, take one to two days to fill, and cannot be edited later.
  • Video ads for Demand Gen are not part of this release.

No setup step is needed after updating.