Audience type = 41

139 views
Skip to first unread message

Oksana Sulyma

unread,
May 28, 2024, 5:30:03 AM5/28/24
to Google Ads API and AdWords API Forum
Hi Google Ads API team!
I'm using the lates version of API and official google-ads-php library. 

[2024-05-28T09:18:45.222525+00:00] google-ads.INFO: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v16.services.GoogleAdsService/SearchStream", CustomerId: <hidden>, RequestId: "Nd0yeo4wqK54WlUmL4YndA", IsFault: 0, FaultMessage: "None"  
[2024-05-28T09:18:45.238379+00:00] google-ads.DEBUG: Request
-------
Method Name: /google.ads.googleads.v16.services.GoogleAdsService/SearchStream
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/8.2.19 gccl\/22.1.0 gapic\/22.1.0 gax\/1.19.1 grpc\/1.62.0 rest\/1.19.1 pb\/4.26.0+c",
    "x-goog-request-params": "customer_id=5389751590",
    "developer-token": "REDACTED",
    "login-customer-id": "<hidden>"
}
Request:
{"customerId":"<hidden>","query":"SELECT campaign.id, ad_group.id, segments.ad_network_type, ad_group_criterion.display_name, ad_group_criterion.criterion_id, ad_group_criterion.type, segments.date, metrics.clicks, metrics.cost_micros, metrics.impressions FROM ad_group_audience_view WHERE segments.date>='2024-04-01' AND segments.date<='2024-04-30'  ORDER BY segments.date DESC "}

And in response I get values like :
"adGroupCriterion":{"resourceName":<hidden>,"criterionId":"358609499706","displayName":"95004","type":41}

My question is about ,"type":41 value. Per documentation https://developers.google.com/google-ads/api/fields/v16/ad_group_criterion#ad_group_criterion.type is enum 
and there is no value = 41 listed. 
I can confirm that I get other values like CUSTOM_INTENT or UNKNOWN in the same API response. 

Upon checking in UI I see that "type":41 is correspondent to 'Life Event' Audience type. 

Is it expected behaviour to get "type":41 instead of type:LIFE_EVENT as ad_group_criterion.type? 
If so, could you please provide a documentation link on ID=> Type references, like 41 => LIFE_EVENT?

Thanks team!
Oksana

Google Ads API and AdWords API Forum

unread,
May 30, 2024, 5:18:11 AM5/30/24
to Google Ads API and AdWords API Forum
Hi Oksana,

Thank you for reaching out to the Google Ads API support team.

In order to debug the issue, share the complete response. The reason I'm asking is because I tried on my end. I didn't get the "type":41 in the response, so for further investigation, we need a complete response.

You can send the details via Reply privately to the author option, or direct private reply to this email.

 
This message is in relation to case "{{{Case.Thread_Id}}}" (ADR-{{{Case.CaseNumber}}})

Thanks,


Google Logo

{{{Case.RecordType}}} Team
​​​​​​​

Oksana Sulyma

unread,
May 30, 2024, 5:40:59 AM5/30/24
to Google Ads API and AdWords API Forum
Hi team, this is very interesting! Potentially related to google-ads-php library usage. 

Attaching my complete request / response log + response in better readable format.

Thanks so much for looking at this question!

Oksana

google-ads-logBhYInf
adwords_query_resultR7rnSc

Oksana Sulyma

unread,
May 31, 2024, 9:37:14 AM5/31/24
to Google Ads API and AdWords API Forum, Eugenia Mankova
Looping in my colleague Eugenia. 

Thanks again for looking at this issue!

Oksana
google-ads-logBhYInf
adwords_query_resultR7rnSc

Google Ads API Forum Advisor

unread,
May 31, 2024, 3:34:29 PM5/31/24
to adwor...@googlegroups.com, eugenia...@tapclicks.com
Hi,

The 'type':41 corresponds to LIFE_EVENT. There was an issue for the same scenario which has been raised. You can refer to this link for more information.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJ9Us:ref" (ADR-00237356)

Thanks,
Google Logo Google Ads API Team


Oksana Sulyma

unread,
Jun 3, 2024, 7:49:20 AM6/3/24
to Google Ads API Forum Advisor, adwor...@googlegroups.com, eugenia...@tapclicks.com
Hi team, thanks for the link.

I can confirm that with update to latest google-ads-php lib version the issue is resolved.

Thanks,
Oksana


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
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 a topic in the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/D_UWK71_w8w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/CEVr2000000000000000000000000000000000000000000000SED7OK00Q-3hBPArQYme_2IFv9mrtQ%40sfdc.net.

Reply all
Reply to author
Forward
0 new messages