Creating User List in Adwords

21 views
Skip to first unread message

Hardik Pahuja

unread,
Mar 23, 2023, 5:16:35 AM3/23/23
to Google Ads API and AdWords API Forum
I'm using the UserListServiceClient to create  and update User Lists, but I keep getting the error "Request contains an invalid argument."
I've looked up various documentation, still not able to fix it, pleasetell me to make it work.
Thanks.

Here's my API Request for the same.

const userListService = new UserListServiceClient()

userListService.mutateUserLists({
      customer_id: customerId,
      operations: [{
  create: {
    name: 'My New User List',
    description: 'This is a test user list created through the Google Ads API.',
    membership_status: 'OPEN',
    membership_life_span: 10000,
    crm_based_user_list: {
      upload_key_type: 'CONTACT_INFO',
    },
  },
}],
    }).then((response) => {
      console.log('Successfully mutated user lists:', response);
    })
      .catch((error) => {
        console.log('Failed to mutate user lists:', error);
      });

Google Ads API Forum Advisor

unread,
Mar 23, 2023, 8:38:08 AM3/23/23
to har...@bakeri.ai, adwor...@googlegroups.com
Hi,

Thank you for raising this concern to the Google Ads API Forum. We hope you're having a good day!

To take a closer look at your encountered error, you may please share to us the complete API logs within the format of (request and response logs with requestID) that generated on your end.  If you haven't yet, logging can be enabled by referring to this guide and by using the DEBUG log setting. This information will help our team to better investigate this and to provide guidance accordingly.

For security purposes, you can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Best regards,
Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2k2CqU:ref
Reply all
Reply to author
Forward
0 new messages