I encountered a strange situation when using the API. In the following
call,
```
client = mccid_client[mcc_id]
ga_service = client.get_service("AudienceInsightsService")
affinity_user_interest_enum = (
client.enums.AudienceInsightsDimensionEnum.AFFINITY_USER_INTEREST
)
in_market_user_interest_enum = (
client.enums.AudienceInsightsDimensionEnum.IN_MARKET_USER_INTEREST
)
response = ga_service.list_audience_insights_attributes(
customer_id=str(cid),
dimensions=[affinity_user_interest_enum, in_market_user_interest_enum],
query_text="credit",
customer_insights_group="credit",
)
when I did not include 'customer_insights_group', the call threw an error:
```
google.ads.googleads.errors.GoogleAdsException: (<_InactiveRpcError of RPC
that terminated with: status = StatusCode.INVALID_ARGUMENT details =
"Request contains an invalid argument." debug_error_string = "UNKNOWN:Error
received from peer xxxx {created_time:"2024-06-13T10:51:57.7495433+00:00",
grpc_status:3, grpc_message:"Request contains an invalid argument."}" >,
<_InactiveRpcError of RPC that terminated with: status =
StatusCode.INVALID_ARGUMENT details = "Request contains an invalid
argument." debug_error_string = "UNKNOWN:Error received from peer xxxx
{created_time:"2024-06-13T10:51:57.7495433+00:00", grpc_status:3,
grpc_message:"Request contains an invalid argument."}" >, errors {
error_code { field_error: REQUIRED } message: "The required field was not
present." location { field_path_elements { field_name:
"customer_insights_group" } } } request_id: "Xc2lPi5MjkfH7xR-sGm4IA" ,
'Xc2lPi5MjkfH7xR-sGm4IA')
```
But when I include this parameter, I encounter:
```
TypeError:
AudienceInsightsServiceClient.list_audience_insights_attributes() got an
unexpected keyword argument 'customer_insights_group'.
What should I do...
```
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9637c09e-b05f-4553-85c3-85c988e07814n%40googlegroups.com.