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.comHeaders: {
"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}
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