Unable to segment campaign report by segments.search_engine_results_page_type

25 views
Skip to first unread message

jing chen

unread,
Aug 18, 2021, 9:25:18 PM8/18/21
to AdWords API and Google Ads API Forum
Hello,

I am trying to pull a campaign performance by seach_engine_result_type from Google Ads API v8:

query = """
        SELECT
          campaign.name,
          metrics.clicks,
          metrics.impressions,
          segments.month,
          segments.search_engine_results_page_type     
        FROM campaign
        WHERE segments.date BETWEEN '2021-04-01' AND '2021-04-30'"""

Get the error 
 message: "Cannot select or filter on the following segments: \'segments.search_engine_results_page_type\'(could not support requested resources: \'CAMPAIGN\'), since segment is incompatible with the resource in the FROM clause or other selected segmenting resources."

This is pretty basic report for lots of marketers. Wondering can we have this segment on?

Google Ads API Forum Advisor

unread,
Aug 20, 2021, 2:37:15 AM8/20/21
to jingch...@gmail.com, adwor...@googlegroups.com

Hello,

Thank you for reaching out to us.

Since you're using the campaign view, please note that when you specify campaign in the FROM clause, some metrics and segments cannot be used. You can check on the campaign documentation and select (Yes, it is) from this filter (Is campaign specified in the FROM clause of your query?), you'll see that some metrics/segments are removed from the list. This is the reason why adding segments.search_engine_results_page_type is not working on your end. With that, we suggest that you use the Google Ads Query Builder when creating/validating your GAQL query.

As an aside, I can create a feature request to include the segments.search_engine_results_page_type; however, before doing so, can you share to us your use case as to how this segment impacts your business?

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


ref:_00D1U1174p._5004Q2LoTZ2:ref
Reply all
Reply to author
Forward
0 new messages