Hi guys,
any ideas how to get cost for Local Services Ads campaigns only?

I'm running this query: 
        'SELECT '+
        
          'campaign.id, '+
          'campaign.status, '+
          'campaign_budget.id, '+
          'campaign_budget.period, '+
          'campaign_budget.amount_micros, '+
          'campaign_budget.type, '+
          'metrics.cost_micros' +
        
        'FROM campaign '+
        'WHERE campaign.advertising_channel_type = "LOCAL_SERVICES"'

However, when I add *metrics.cost_micros*, the query starts to fail 
immediately wit this error:
Exception: Call to GoogleAdsService.Search failed: Error in query: 
unexpected input campaign. at adsapp_compiled:18880:138 at 
adsapp_compiled:18891:9 at sa (adsapp_compiled:236:15) at Object.search 
(adsapp_compiled:244:20) at aJ.search (adsapp_compiled:19011:36) at 
JI.search (adsapp_compiled:18576:19) at KI.search 
(adsapp_compiled:18671:20) at RI.search (adsapp_compiled:18763:19) at md 
(adsapp_compiled:1077:15) at md.next (<anonymous>)


I took the original query without the cost metric from 
here: 
https://developers.google.com/google-ads/api/docs/campaigns/local-service-campaigns?hl=en
    
DZ

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/55ec44dd-97d0-4719-8953-a93167a97037n%40googlegroups.com.

Reply via email to