Upload Advertising ID to customer list

43 views
Skip to first unread message

Shubham Kolhe

unread,
Jul 30, 2020, 8:25:24 AM7/30/20
to AdWords API and Google Ads API Forum
Hi Any idea how to upload Advertising ID to customer list in google audiences. Any Sample Code will help a lot

Google Ads API Forum Advisor Prod

unread,
Jul 30, 2020, 10:02:07 AM7/30/20
to shubha...@unacademy.com, adwor...@googlegroups.com
Hi Shubham,

Thank you for reaching out. Please see here for more information on creating a customer match list with an Advertising ID. As it says, you need to set the uploadKeyType to MOBILE_ADVERTISING_ID and also set the appId to the ID of your app. Please see this example (also available in other languages) for creating a CrmBasedUserList. You just need to change the uploadKeyType and appId as explained above. When you upload members, make sure that the mobileId field is set to the advertising ID.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q22aHbP:ref

Shubham Kolhe

unread,
Jul 30, 2020, 10:36:25 AM7/30/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Hi Mitchell,

Thanks for your help It Worked , I was missing the mobileId Field Assignment.

I had couple more doubts:

1)Can i make memebershipLifespan "Lifetime" if yes what should be the value of this field
2)Can i delete ad ids from audience list
3)to add ids to an existing list i just need to run mutate operation everytime

Google Ads API Forum Advisor Prod

unread,
Jul 30, 2020, 3:22:27 PM7/30/20
to shubha...@unacademy.com, adwor...@googlegroups.com
Hi Shubham,

I'm glad you fixed the issue. Please see my answers to your questions below:
  1. As explained here, you can set it to 10000 which will mean no expiration.
  2. To delete a member from a user list, you have to run the MutateMembersOperation with the REMOVE operator. You have to add the members you want to remove to the MutateMembersOperand membersList.
  3. Similar to #2, you run the MutateMembersOperation but with the ADD operator. You specify the members you want to add in the membersList this time. You can see an example of adding members this way in the example here.
Reply all
Reply to author
Forward
0 new messages