Delete Audience

767 views
Skip to first unread message

Ye Haily

unread,
Mar 7, 2023, 6:33:10 AM3/7/23
to Google Ads API and AdWords API Forum
Hello,

I'm trying to delete an audience. I didn't find the remove button in UI: Audience Manager-> Audiences 
I tried calling  google ads API v11 MutateAudiences to udpate status as Removed, but still can get this Audience with status Enabled.

So, could we delete Audience? Is my code wrong?

Code:
AudienceServiceClient audienceServiceClient =
                this.GoogleAdsClient.GetService(Services.V11.AudienceService);
           
            Audience userList = new Audience()
            {
                ResourceName = ResourceNames.Audience(this.CustomerId, "Id"),
                Id =  "Id"  ,
                Status = AudienceStatusEnum.Types.AudienceStatus.Removed
            };

            AudienceOperation operation = new AudienceOperation()
            {
                Update = userList,
                UpdateMask = FieldMasks.AllSetFieldsOf(userList)
            };

            MutateAudiencesResponse response = audienceServiceClient.MutateAudiences
                    (this.CustomerId.ToString(), new[] { operation });

Google Ads API Forum Advisor

unread,
Mar 7, 2023, 12:03:35 PM3/7/23
to yxj...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for posting your concern to the Google Ads API support team.

Regarding your concern, you may use the AudienceService as this is used to manage audiences. Also, this Method: customers.audiences.mutate which is for Rest API. Can you confirm what is the issue you are encountering on your end? Also, can you provide the complete request and response logs with request ID and request header generated on your end so our team can have a better view and provide guidance accordingly? 

You may then send the requested logs via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

On the other hand, as for "I didn't find the remove button in UI: Audience Manager-> Audiences", if you want assistance for this, then I would recommend reaching out to the Google Ads Product support team as they are best equipped as they are the ones who provide support to data accumulation, UI-related and product specific concerns.

Furthermore, you may also refer to our Audience management guide for more details about audiences in the Google Ads API.

Regards,
Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2jWpUp:ref

Ye Haily

unread,
Mar 8, 2023, 1:31:02 AM3/8/23
to Google Ads API and AdWords API Forum
Thanks for reply. I want to confirm: does Audience support deletion?

Google Ads API Forum Advisor

unread,
Mar 8, 2023, 5:53:32 AM3/8/23
to yxj...@gmail.com, adwor...@googlegroups.com
Hi,

If you are talking about the user list, then my answer is yes. You can remove the user lists using the OfflineUserDataJobOperation. For more details, you may check this document.

I hope this helps.

Kind regards,

Ye Haily

unread,
Mar 9, 2023, 11:53:54 PM3/9/23
to Google Ads API and AdWords API Forum
Hi,

I wasn't talking about user list, I mean Audience that can be used in AssetGroupSignal in performance max campaign: 
Does this Audience support Deletion?

Google Ads API Forum Advisor

unread,
Mar 10, 2023, 4:26:08 AM3/10/23
to yxj...@gmail.com, adwor...@googlegroups.com
Hi Ye,

Thank you for getting back to us.

As mentioned here in this document, An AssetGroupSignal can only be added to or removed from an AssetGroup. Any modifications of the related Audience should be performed using the AudienceService. Note that in Audience service, there is no remove operation in this service.

I hope this clears out your confusion.
Reply all
Reply to author
Forward
0 new messages