Hello!
I'm trying to create a PMax campaign with Asset Group Signals.
I've found how we can build Audience Signals for User Interests:
Retrieve User Interests via API
Use the resource name of the User Interest to create an Audience with dimension like:
But when I try to add detailed demographics to the dimension when creating an Audience:
audience_dimension_user_interests=google_ads_client.init_resource( AudienceDimension, ) audience_dimension_user_interests.audience_segments.segments = [ {"user_interest": {"user_interest_category": "customers/5244804050/userInterests/92901"}}, # shoppers {"user_interest": {"user_interest_category": "customers/5244804050/userInterests/80001"}}, # Autos & Vehicles {"detailed_demographic": {"detailed_demographic": "customers/5244804050/detailedDemographics/30015"}}, # Homeownership Status ] audience_proto.dimensions.append(audience_dimension_user_interests)I receive such an error:
“Message: A dimension within the audience definition is not valid. || Location: mutate_operations [41] -> audience_operation [0] -> create [0] -> dimensions [0] -> audience_segments [0] -> segments [2] -> detailed_demographic [0] -> detailed_demographic [0]”
I’ve tried to create 2 dimensions - one for User Interests and one for Detailed Demographics and use them both within one Audience, but in this case, I received an error:
“Message: Audience can't have multiple dimensions of same type. || Location: mutate_operations [41] -> audience_operation [0] -> create [0] -> dimensions [1]”
Then, I’ve tried to create an Audience with the Detailed Demographics only (without User Interests) and received the same error as with mix of Detailed Demographics and User Interests:
Message: A dimension within the audience definition is not valid. || Location: mutate_operations [41] -> audience_operation [0] -> create [0] -> dimensions [0] -> audience_segments [0] -> segments [0] -> detailed_demographic [0] -> detailed_demographic [0]
Could you please suggest how we can create an Audience with Detailed Demographics specified so we can use this Audience with our PMax Asset Group Signal?
If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
You can send the details via Reply privately to the author option, or direct private reply to this email.
![]() |
Google Ads API Team |
[2025-07-01 17:57:25Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rgpQt:ref" (ADR-00316643)