google ads,google GAQL ,google analytics

47 views
Skip to first unread message

ai chen

unread,
Jul 18, 2023, 7:30:55 AM7/18/23
to Google Ads API and AdWords API Forum
Hi,
I have two questions that I need help with,
Question 1:
Since Google Analytics migrated from UA to GA4, the Google report API does not get the values of these parameters:
metrics.average_time_on_site,
metrics.bounce_rate,
metrics.percent_new_visitors
But the Google background page can see the value of this data (see my screenshot),

We have linked Google Analytics 4 in Google Ads,
Also opened and confirmed on the Google Analytics page that the data collection and Google Ads account are linked (Please see the screen recording in my attachment)

But I can't query these parameters bounce_rate through GAQL, why is that? How should it be solved?

Question 2:
Due to the blocking of problem one, I tried reporting directly through Google Analytics API (link below) to get bounceRate, engagementRate, eventsPerSession, averageSessionDuration These parameters, but the request parameters need to determine the view accessed property ID field, please ask,
1. If you are on Google Analytics, how to get it directly through the API?
2. Since the Google Analytics account has been bound to Google Ads, how does the Google Ads API query the bound Google Analytics account information to obtain the value of the property field.

微信截图_20230718172417.png

微信截图_20230718172528.png

---
Chenai,
Cheers

20230718-173235.mp4

Google Ads API Forum Advisor

unread,
Jul 18, 2023, 12:03:45 PM7/18/23
to jiaobozibi...@gmail.com, adwor...@googlegroups.com

Hi Chenai,

Thank you for reaching out to Google Ads API Forum.

Please see responses to your questions below.

Question 1:

Since Google Analytics migrated from UA to GA4, the Google report API does not get the values of these parameters

-Kindly note that this channel and our team provide support for Google Ads API (https://developers.google.com/google-ads/api/docs/start)-related concerns and technical implementations only. However, it appears that this concern is more related to the migration of Google Analytics. With this, I would recommend raising your concern to their dedicated forum channel that you may find here: https://developers.google.com/analytics/devguides/reporting/core/v4/help

Question 2

1. If you are on Google Analytics, how to get it directly through the API?

-In Google Ads API perspective, you may refer to this reporting documentation (https://developers.google.com/google-ads/api/docs/reporting/overview). This guide describes the steps necessary to create and submit a query to the Google Ads API to get back data.

2. Since the Google Analytics account has been bound to Google Ads, how does the Google Ads API query the bound Google Analytics account information to obtain the value of the property field.

-You may check this reference (https://developers.google.com/google-ads/api/fields/v14/metrics) for the available metrics you can query using Google Ads API. However, with regards to the metrics you mentioned below, based on our observation of these metrics, if these metrics are in “UA” as seen in UI, we can retrieve data in API while if it is in “GA4'' seen in UI, we can’t retrieve data. Our team already raised a feature request for this to become available in the API and is subject for review. What we can do is to advise you to keep an eye on our blog post and release notes for the updates and new releases.

Additionally, you may refer to this guide (https://developers.google.com/google-ads/api/docs/query/overview) for more information about the GAQL in Google Ads API.

Reference links:

This message is in relation to case "ref:_00D1U1174p._5004Q2n8tMN:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages