age_range.type return Null

81 views
Skip to first unread message

陳泓霖

unread,
Oct 5, 2022, 11:02:05 PM10/5/22
to Google Ads API and AdWords API Forum
Hi team, I want to get all fields like UI shows.
messageImage_1665023890561 - 複製.jpg
I use
SELECT ad_group_criterion.gender.type, ad_group_criterion.age_range.type, gender_view.resource_name, metrics.clicks,metrics.impressions FROM gender_view
,and age_range.type return null.
What should I do to get age_range.type in this request?

English is not my native language, please forgive my grammar mistakes.
Thank you.

Google Ads API Forum Advisor

unread,
Oct 6, 2022, 3:09:47 AM10/6/22
to an...@bluerain.com.tw, adwor...@googlegroups.com
Hi,

Thank you for reaching us out. I am Sherwin from Google Ads API support team. I hope that you are doing well today.

There is nothing wrong with your grammar. Do not worry about it. We understand your concern and we are here to help. To further investigate the issue, could you please provide us the complete request and response logs with request ID and request header generated on your end? You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com. If you haven't enabled the logging yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. Furthermore, could you please provide us the non-cropped full screenshot of the UI and the Account id that you used to generate the report?

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ey3dp:ref

陳泓霖

unread,
Oct 6, 2022, 5:55:51 AM10/6/22
to Google Ads API and AdWords API Forum
Hi  Sherwin,
here is the full screen of the UI 
messageImage_1665023890561.jpg
, and Account id is : 6153262362.
I don't understand the meaning of  request ID  , I can provide error screenshot here
messageImage_1665048392065.jpg
adsapi 在 2022年10月6日 星期四下午3:09:47 [UTC+8] 的信中寫道:

Google Ads API Forum Advisor

unread,
Oct 6, 2022, 9:58:00 AM10/6/22
to an...@bluerain.com.tw, adwor...@googlegroups.com
Hi,

Thank you for your reply. I work with Sherwin and allow me to assist you here.

Upon checking the request on my end, I was able to replicate the issue as the ad_group_criterion.age_range.type returns the null value as well. However, I can say that this is expected and let me explain why. I can see that the report that you've used is gender_view and it means that it is dedicated only to gender reports only. With this, even though the ad_group_criterion.age_range.type is selectable in the ad_group_criterion resource, it will not report any data for age range criterion.

With this, to get the metrics and attributes for age range criterion, then I would suggest using its dedicated report type and it is age_range_view.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


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