Getting Local Service Ads data with API

697 views
Skip to first unread message

Siqi Zhang

unread,
May 27, 2022, 12:14:47 AM5/27/22
to Google Ads API and AdWords API Forum
Hi team,

I'd like to get local service ads data with Local Services Ads API. I followed the online document (https://googleapis.dev/ruby/google-api-client/latest/Google/Apis/LocalservicesV1/LocalservicesService.html) and tried to pull data with search_account_reports, but it keeps returning invalid request error (attached screenshot of error message below). 
2022-05-26_21-06-58.png

The code to pull LSA data is:
service.search_detailed_lead_reports(end_date_day: 2, end_date_month: 4, end_date_year: 2022, page_size: 10, page_token: nil,
query: 'manager_customer_id:XXXXXXX', start_date_day: 1, start_date_month: 4, start_date_year: 2022, fields: nil,
quota_user: nil, options: nil)


Is this the correct way to get LSA data or is there anything wrong with the puller?

Thank you!

Google Ads API Forum Advisor

unread,
May 30, 2022, 12:22:30 AM5/30/22
to si...@vogliomarketing.com, adwor...@googlegroups.com
Hi Siqi,

Thank you for reaching out to our API support team.

You may note that our team and this channel specializes in Google Ads API related concerns only. The supported services can then be found in this link, for example by going to the v10 > services dropdowns. The supported reports can then be found here.

That being said, the LocalService and the search_account_reports that you indicated do not appear to be supported and is outside of our scope. 

Upon checking, I was able to locate this documentation for the Local Services API. A support channel can also be found here.

If the above is not the API you are using, could you provide our team with any API documentation you are currently using so that our team may help in identifying the appropriate support team to further assist you on your issue?

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


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