Hi there,
I've created a script that fetches the status of a listing group from our
PMax campaign, and the API response is saying that
the asset_group_listing_group_filter, type_ is "UNIT_INCLUDED". However, in
the browser, I can see that the listing group is not included, and it's
actually excluded.
The campaign IDs match, but it seems like the asset group IDs are different
that what's showing in the browser versus what the asset group resource
name is that is being pulled in from the API.
Here's the query I'm using to gather the listing group status, or "type_" :
query = f"""
SELECT
asset_group.name,
asset_group.resource_name,
asset_group_listing_group_filter.resource_name,
asset_group_listing_group_filter.type
FROM asset_group_product_group_view
WHERE campaign.id = {campaign_id}
AND
asset_group_listing_group_filter.case_value.product_item_id.value =
'{product_id}'
AND asset_group.resource_name NOT IN ('{resource_name}')
LIMIT 1
"""
The response from this query is the following:
SearchPager<results {
asset_group_listing_group_filter {
resource_name:
"customers/9084369246/assetGroupListingGroupFilters/6476690481~11178916796"
type_: UNIT_INCLUDED
}
asset_group_product_group_view {
resource_name:
"customers/9084369246/assetGroupProductGroupViews/6476690481~11178916796"
}
asset_group {
resource_name: "customers/9084369246/assetGroups/6476690481"
name: "MDR"
}
}
field_mask {
paths: "asset_group.name"
paths: "asset_group.resource_name"
paths: "asset_group_listing_group_filter.resource_name"
paths: "asset_group_listing_group_filter.type"
}
>
As you can see in the type_ field, the status says "UNIT_INCLUDED".
However, when I check the browser, this listing group, within this
particular campaign and asset group, shows that it is actually *excluded*.
I understand my query is excluding an asset group, but that's on
purpose. I'm pulling metrics for this listing group via the API, and the
metrics match the browser *exactly*, but for some reason *the status does
not match. *
One weird finding is that the asset group resource name listed above in the
response, shows that the asset group ID should be "6476690481", and the
entire asset group resource name is
"customers/9084369246/assetGroups/6476690481". Within the browser, the
asset group ID does not match what was provided in the response (see photo
for the MDR asset group). In fact, we have no asset group ID that is
"6476690481" within our entire account.
Any ideas why this might be happening? Why do the metrics match exactly,
but the status does not match what is showing in the browser? I understand
the data can lag a bit, but no changes have been made in the browser, and
I've checked again over a period of several days.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/050aff83-66a6-4db1-83e8-8e81acdb1d4an%40googlegroups.com.