question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(5.0.2) Properties in Query are missing

See original GitHub issue

Query:

SELECT 
      ad_group.id,
      metrics.engagement_rate,
      metrics.engagements,
      metrics.gmail_forwards,
      metrics.gmail_saves,
      metrics.gmail_secondary_clicks,
      metrics.impressions, 
      metrics.interaction_rate,
      metrics.interactions,
      metrics.interaction_event_types,
      metrics.value_per_all_conversions,
      metrics.value_per_conversion,
      metrics.value_per_current_model_attributed_conversion,
      metrics.video_quartile_p100_rate,
      metrics.video_quartile_p25_rate,
      metrics.video_quartile_p50_rate,
      metrics.video_quartile_p75_rate,
      metrics.video_view_rate,
      metrics.video_views,
      metrics.view_through_conversions,
      metrics.bounce_rate,
      metrics.clicks,
      metrics.conversions_from_interactions_rate,
      metrics.conversions,
      metrics.cost_micros,
      metrics.cost_per_all_conversions,
      metrics.cost_per_conversion,
      metrics.cost_per_current_model_attributed_conversion,
      metrics.cross_device_conversions,
      metrics.ctr,
      metrics.current_model_attributed_conversions,
      metrics.current_model_attributed_conversions_value,
      metrics.average_cost,
      metrics.average_cpc,
      metrics.average_cpe,
      metrics.average_cpm,
      metrics.average_cpv,
      metrics.average_page_views,
      metrics.average_time_on_site,
      metrics.active_view_measurable_impressions,
      metrics.active_view_viewability,
      metrics.all_conversions_from_interactions_rate,
      metrics.all_conversions_value,
      metrics.all_conversions,
      metrics.active_view_measurable_cost_micros,
      metrics.active_view_measurable_impressions,
      metrics.active_view_impressions,
      metrics.active_view_ctr,
      metrics.active_view_cpm,
      metrics.absolute_top_impression_percentage,
      campaign.id,
      campaign.name, 
      ad_group.id, 
      ad_group.name
FROM ad_group

Problem: Properties like metrics.average_cost, metrics.average_cpc, metrics.average_cpe, campaign.id, campaign.name, etc are missing. It’s not undefined but missing.

Also, Property conversions’s key is defined as conversions_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wcootscommented, Mar 12, 2021

Hi again @leopragi, I’ve had a look at the query and the reason some of the keys are not shown on the response is because they are unique to a certain ad type. Each row of the response will be a single ad, so if a row is a gmail ad then only the gmail ad fields will be defined, the rest will be null.

If you don’t include constraints to limit the query to the 5 ad types in your fields, then you will also get ads where all of the fields above will be null.

I hope this makes sense. For more information you can consult the ad group ad section of our docs or google’s own docs.

0reactions
leopragicommented, Mar 9, 2021

@WillCooter

This issue is fixed. But still I m not seeing few keys on the response, while try to fetch Ads Performance Reports. The query contains all these fields on select clause.

ad_group_ad.ad.legacy_responsive_display_ad.long_headline,
ad_group_ad.ad.legacy_responsive_display_ad.main_color,
ad_group_ad.ad.gmail_ad.marketing_image_display_call_to_action.text,
ad_group_ad.ad.gmail_ad.marketing_image_display_call_to_action.text_color,
ad_group_ad.ad.gmail_ad.marketing_image_description,
ad_group_ad.ad.gmail_ad.marketing_image_headline,
ad_group_ad.ad.responsive_display_ad.accent_color,
ad_group_ad.ad.responsive_display_ad.allow_flexible_color,
ad_group_ad.ad.responsive_display_ad.business_name,
ad_group_ad.ad.responsive_display_ad.call_to_action_text,
ad_group_ad.ad.responsive_display_ad.descriptions,
ad_group_ad.ad.responsive_display_ad.price_prefix,
ad_group_ad.ad.responsive_display_ad.promo_text,
ad_group_ad.ad.responsive_display_ad.format_setting,
ad_group_ad.ad.responsive_display_ad.headlines,
ad_group_ad.ad.responsive_display_ad.logo_images,
ad_group_ad.ad.responsive_display_ad.square_logo_images,
ad_group_ad.ad.responsive_display_ad.long_headline,
ad_group_ad.ad.responsive_display_ad.main_color,
ad_group_ad.ad.responsive_display_ad.marketing_images,
ad_group_ad.ad.responsive_display_ad.square_marketing_images,
ad_group_ad.ad.responsive_display_ad.youtube_videos,
ad_group_ad.ad.expanded_text_ad.path1,
ad_group_ad.ad.expanded_text_ad.path2,
metrics.percent_new_visitors,
ad_group_ad.ad.legacy_responsive_display_ad.price_prefix,
ad_group_ad.ad.legacy_responsive_display_ad.promo_text,
ad_group_ad.ad.responsive_search_ad.descriptions,
ad_group_ad.ad.responsive_search_ad.headlines,
ad_group_ad.ad.responsive_search_ad.path1,
ad_group_ad.ad.responsive_search_ad.path2,
ad_group_ad.ad.legacy_responsive_display_ad.short_headline,

Not sure, If i need to put it here or to re-open. Since its the same kind I m putting here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Breaking changes in EF Core 5.0 - Microsoft Learn
Complete list of breaking changes introduced in Entity Framework Core 5.0.
Read more >
Modules missing from node_modules but listed in lock file
My build scripts started failing after a recent yarn install and I noticed that certain packages were completely missing from the ...
Read more >
Rational Team Concert Interim Fix 4 for 5.0.2 - IBM
For step 4, click Archive and select the p2 repository .zip file and install the Rational Team Concert feature. This step will remove...
Read more >
AEM Query builder search where property 'does not' exist
Am I missing something here ? The search is done by a 3rd party and cannot process the list of tags it receive....
Read more >
Entity Framework Core 5 – Pitfalls To Avoid and Ideas to Try
EF Core has gone through several iterations to deliver a repeatable ... Characters and Ratings navigation properties in the following query.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found