advertising_marketing_small/other_browser_os_impressions.view.lookml 18 dims2 measures 4 warnings Repo files

LookML view · advertising-marketing-small

How this LookML view models browser, OS, publisher and impression traffic

At a glance

Does
Exposes raw ad impression rows with browser, OS, user agent, IP, geography, subid, campaign, creative and bid amount. It defines two measures: an impression count and sum_of_bids.Trust: Source-defined
Why
Built to examine traffic from unusual browsers and operating systems, and to see which publishers and user agents earn bid revenue from it. The view name and its dashboard title both point that way.Trust: Inferred
Grain
One row per ad impression. Nothing enforces this: there is no primary key and count is a plain row count.Trust: Inferred
Source
advertising_marketing_small/other_browser_os_impressions.view.lookml 63 lines
Source: other_browser_os_impressions.view.lookml L1-10
advertising_marketing_small/other_browser_os_impressions.view.lookmlL1-10
- view: other_browser_os_impressions  fields:  - dimension: advertiser_id    type: int    sql: ${TABLE}.advertiser_id  - dimension: bid_amount    type: number    sql: ${TABLE}.bid_amount    decimals: 4  - dimension: browser    sql: ${TABLE}.browser  - dimension: campaign_id    type: int

advertising-marketing-small, other_browser_os_impressions.view.lookml, lines 1-10

Shape

Trust: Source-defined

Every field as declared, with the dashboard tiles that read it. Computed from the source; nothing here is edited.

Table: defaults to other_browser_os_impressions (no sql_table_name).

Dimensions 18

NameTypeSQLUsed byTags
advertiser_idL3int${TABLE}.advertiser_id-
bid_amountL6number${TABLE}.bid_amount-
browserL10string${TABLE}.browserBrowser-OS Breakdown
campaign_idL12int${TABLE}.campaign_id-
cityL15string${TABLE}.city-
countryL17string${TABLE}.countryTop IPs That Send Unusual UAsTop 5 Countries by Impression Count
creative_idL19int${TABLE}.creative_id-
domainL22string${TABLE}.domainRevenue and Impressions for Top 10 PIDsTop 10 Most Profitable UAsTop 5 Countries by Impression Count
domain_idL24int${TABLE}.domain_id-
ipL27string${TABLE}.ipTop IPs That Send Unusual UAs
new_subidL29string${TABLE}.new_subid-
osL31string${TABLE}.osBrowser-OS Breakdown
referrer_urlL33string${TABLE}.referrer_urlTop 10 Referrer URLs by Impression Volume
subidL35string${TABLE}.subid-
timeL37string${TABLE}.time-
uaL39string${TABLE}.uaUnusual UAsTop 10 Most Profitable UAs
urlL41string${TABLE}.url-
pidL43stringsubstring_index(substring_index(${subid}, '-', 2), '-', -1)Revenue and Impressions for Top 10 PIDsTop 10 PIDs by Impression Volumederived

Measures 2

Relationships

Trust: Source-defined
Relationships of other_browser_os_impressions
Relationships of other_browser_os_impressions. Text version follows the diagram.This viewUsed by: explores, views, dashboardsbase view8 tiles other_browser_os_impressions explore in odd_browser_and_os_analysis default dashboard
  • This Block
Text version
  • other_browser_os_impressions is the base view of other_browser_os_impressions: base view
  • other_browser_os_impressions is read by default: 8 tiles

Filters and exclusions that change meaning

Dashboard default country = US reaches no tile

Trust: Source-defined

The dashboard declares a country filter with default US, but no tile listens to it. Every tile counts all countries.

Source: default.dashboard.lookml L6-10
advertising_marketing_small/default.dashboard.lookmlL6-10
  layout: tile  tile_size: 100  filters:  - name: country    type: suggest_filter    explore: other_browser_os_impressions    dimension: other_browser_os_impressions.country    default_value: US  elements:  - name: browser_os_breakdown    title: Browser-OS Breakdown

advertising-marketing-small, default.dashboard.lookml, lines 6-10

Tiles filter different populations

Trust: Source-defined

Three revenue tiles drop empty domain, the IP tile drops empty ip, and the Unusual UAs table drops UAs starting Mozilla/5.0. The same count means a different set of rows on each tile.

Source: default.dashboard.lookml L35-47
advertising_marketing_small/default.dashboard.lookmlL35-47
    width: 10    y_axis_labels:    - Count of Impressions  - name: unusual_uas_table    title: Unusual UAs    type: table    explore: other_browser_os_impressions    dimensions:    - other_browser_os_impressions.ua    measures:    - other_browser_os_impressions.count    sorts:    - other_browser_os_impressions.count    filters:      other_browser_os_impressions.ua: -Mozilla/5.0%    limit: 50  - name: revenue_and_impressions_top_10_pids    title: Revenue and Impressions for Top 10 PIDs    type: looker_column

advertising-marketing-small, default.dashboard.lookml, lines 35-47

Worth noticing

The publisher id is parsed from subid

Trust: Source-defined

pid takes the second dash-separated segment of subid with MySQL substring_index. It is the only derived field, and the grouping key for the top PID tiles.

Source: other_browser_os_impressions.view.lookml L43-44
advertising_marketing_small/other_browser_os_impressions.view.lookmlL43-44
    sql: ${TABLE}.ua  - dimension: url    sql: ${TABLE}.url  - dimension: pid    sql: substring_index(substring_index(${subid}, '-', 2), '-', -1)  - measure: count    label: count    type: count

advertising-marketing-small, other_browser_os_impressions.view.lookml, lines 43-44

Bid revenue sums the raw column

Trust: Source-defined

sum_of_bids sums ${TABLE}.bid_amount directly instead of referencing the bid_amount dimension. Its drill set shows pid, advertiser and bid per row.

Source: other_browser_os_impressions.view.lookml L49-54
advertising_marketing_small/other_browser_os_impressions.view.lookmlL49-54
    label: count    type: count    detail: detail*  - measure: sum_of_bids    label: bid sum    type: sum    sql: ${TABLE}.bid_amount    detail: drill_set_2*    decimals: 4  sets:    detail:    - pid

advertising-marketing-small, other_browser_os_impressions.view.lookml, lines 49-54

time is a plain string dimension

Trust: Source-defined

time is declared as a dimension, not a dimension_group, so there are no date, week or month timeframes to filter or trend on.

Source: other_browser_os_impressions.view.lookml L37-38
advertising_marketing_small/other_browser_os_impressions.view.lookmlL37-38
    sql: ${TABLE}.referrer_url  - dimension: subid    sql: ${TABLE}.subid  - dimension: time    sql: ${TABLE}.time  - dimension: ua    sql: ${TABLE}.ua  - dimension: url

advertising-marketing-small, other_browser_os_impressions.view.lookml, lines 37-38

What can change the answer 4

Caution: PID parsing assumes a fixed subid format

Trust: Inferred

With no dash, substring_index returns the whole subid. With one dash, it returns the last segment. Neither case becomes NULL.

What goes wrong: Bid revenue from malformed subids is credited to an invented PID, and the top PID tiles can rank that junk value.

Read the guide: Parsing ids from strings

Source: other_browser_os_impressions.view.lookml L43-44
advertising_marketing_small/other_browser_os_impressions.view.lookmlL43-44
    sql: ${TABLE}.ua  - dimension: url    sql: ${TABLE}.url  - dimension: pid    sql: substring_index(substring_index(${subid}, '-', 2), '-', -1)  - measure: count    label: count    type: count

advertising-marketing-small, other_browser_os_impressions.view.lookml, lines 43-44

Caution: The country filter looks applied but is not

Trust: Source-defined

The filter bar shows country = US by default, yet no tile has a listen binding.

What goes wrong: A screenshot labelled US is reporting global impressions and bids.

Read the guide: Filters that change metric meaning

Source: default.dashboard.lookml L6-10
advertising_marketing_small/default.dashboard.lookmlL6-10
  layout: tile  tile_size: 100  filters:  - name: country    type: suggest_filter    explore: other_browser_os_impressions    dimension: other_browser_os_impressions.country    default_value: US  elements:  - name: browser_os_breakdown    title: Browser-OS Breakdown

advertising-marketing-small, default.dashboard.lookml, lines 6-10

Caution: No click or conversion rate can be built here

Trust: Source-defined

Clicks and conversions live in separate views keyed only by IP, and the model declares no joins. There is no source-defined CTR.

What goes wrong: A CTR made by dividing counts from two explores divides different populations.

Read the guide: CTR from separate tables

Source: odd_browser_and_os_analysis.model.lookml L5-13
advertising_marketing_small/odd_browser_and_os_analysis.model.lookmlL5-13
- scoping: true- include: '*.view.lookml'- include: '*.dashboard.lookml'- explore: click_interactions_by_ip_for_useable_campaigns- explore: conversions_by_ip_for_useable_campaigns- explore: geo_pid_facts- explore: ip_2_cluster- explore: ip_3_cluster- explore: ip_model_2_clusters- explore: ip_model_3_clusters- explore: other_browser_os_impressions- explore: useable_campaign_ids

advertising-marketing-small, odd_browser_and_os_analysis.model.lookml, lines 5-13

Note: No primary key

Trust: Source-defined

The view declares no primary_key. That is harmless while the explore has no joins. Any future join makes count and sum_of_bids unsafe to aggregate.

Read the guide: Primary keys and counts

Source: other_browser_os_impressions.view.lookml L45-48
advertising_marketing_small/other_browser_os_impressions.view.lookmlL45-48
    sql: ${TABLE}.url  - dimension: pid    sql: substring_index(substring_index(${subid}, '-', 2), '-', -1)  - measure: count    label: count    type: count    detail: detail*  - measure: sum_of_bids    label: bid sum    type: sum

advertising-marketing-small, other_browser_os_impressions.view.lookml, lines 45-48

Parser checks 1

Trust: Source-defined

Mechanical findings from parsing the LookML. They are facts about the files. The cards above explain which ones matter.

Show all 1 check
  • no-primary-key 1
    • other_browser_os_impressions.view.lookml:1 other_browser_os_impressions declares no primary_key.

Related

Guides built on this file

Related source files

Source model