ETLMCPData Conveyance Works
Log in Start free
Glossary

extra.ad_type and extra.channel_type (Google Ads)

What the Google Ads columns extra.ad_type and extra.channel_type hold, which rows carry each, and how to use them in your reports.

Coming This connector is coming.

extra.ad_type and extra.channel_type are two text columns on Google Ads rows. extra.ad_type names the format of one ad, such as RESPONSIVE_SEARCH_AD. extra.channel_type names where a campaign is built to serve, such as SEARCH or PERFORMANCE_MAX. They never sit on the same row. When the Google Ads connector is available, an ad row (extra.row_level = ad) carries the ad type and no channel type, and a campaign-level row (extra.row_level = campaign) carries the channel type and no ad type.

What Google puts in each field

Ad type comes from the type field of Google's Ad resource. Google's reference marks the field as output only: Google sets it from the kind of ad you built, and you cannot write it. The value is one of the names in Google's AdType list. Examples from that list:

Value What it is
RESPONSIVE_SEARCH_AD a responsive search ad
RESPONSIVE_DISPLAY_AD a responsive display ad
VIDEO_RESPONSIVE_AD a responsive video ad
DEMAND_GEN_MULTI_ASSET_AD a Demand Gen ad built from several assets
SHOPPING_PRODUCT_AD a standard Shopping ad
EXPANDED_TEXT_AD an expanded text ad, which Google lists as deprecated

Channel type comes from the campaign field advertising_channel_type, the campaign's main serving target. Google's field reference says the value is fixed once the campaign exists, so a given campaign ID keeps one channel type for its whole life. The values come from Google's AdvertisingChannelType list, among them SEARCH, DISPLAY, SHOPPING, VIDEO, PERFORMANCE_MAX, DEMAND_GEN, HOTEL, SMART and MULTI_CHANNEL, which Google uses for app campaigns that run across several channels.

Both lists can also return UNKNOWN, Google's answer when a value is newer than the API version that was asked.

How etlmcp fills them

etlmcp reads each stretch of days twice: once at campaign level and once at ad level. The ad-level read asks for the ad's type, and each ad row keeps it. The campaign-level read asks for the channel type, and a campaign-level row exists only for what a campaign reported beyond the sum of its ads on a day, such as a Performance Max campaign, which has no ads at all.

etlmcp writes both values exactly as Google sends them: uppercase, with underscores, with no relabelling. When Google sends no value, etlmcp leaves the key out of the row's extras, and the cell is empty in a file or NULL in a table. Both columns are delivered as text, never as numbers.

Two other places use the ad type:

  • An ad without a name, which covers most ad types, gets a name made from its type and ID, such as Responsive search ad 333, in ad_name. Google's Ad reference says the name field applies only to a few formats, such as image ads and video ads.
  • etlmcp uses the channel type itself: when a sync finds a campaign-level row whose channel type is not PERFORMANCE_MAX, it reads the campaign level a second time to check that the gap was not a change Google made between the two reads.

Using the columns

  • Spend by format: group ad rows by extra.ad_type. Campaign-level rows have no ad type, so they fall into an empty group; leave them out or label them as campaign remainders.
  • Spend by channel: the ad rows lack a channel type. Build a lookup of campaign_id to extra.channel_type from the campaign-level rows and join it onto the ad rows. Because a campaign's channel type never changes, a value from any date holds for every date. A campaign whose ads always account for all of its figures has no campaign-level row, so it will be missing from that lookup; map those campaigns by hand or from their names.
  • Performance Max alone: filter on extra.channel_type equal to PERFORMANCE_MAX.

In PostgreSQL the column names keep their dot, so put them in double quotes: "extra.ad_type". Through MCP, query_data accepts extra.ad_type and extra.channel_type as field names.

Related

Sources

  1. AdTypeEnum.AdType — developers.google.com, checked
  2. AdvertisingChannelTypeEnum.AdvertisingChannelType — developers.google.com, checked
  3. Ad — developers.google.com, checked
  4. Campaign fields — developers.google.com, checked