Audience Manager in Google Ads API V1

48 views
Skip to first unread message

Ramanajee Kandregula

unread,
Jul 8, 2019, 10:36:45 AM7/8/19
to AdWords API and Google Ads API Forum
Hi, 
How we can create audiences and mapping to campaign adgroups using Google Ads V1 API ?

Google Ads API Forum Advisor Prod

unread,
Jul 8, 2019, 7:39:53 PM7/8/19
to adwor...@googlegroups.com
Hello Ramanajee, 

You may use the UserListService which is equivalent to the AdWordsUserListService in AdWords API. Please find the code snippet below as a reference: 

CrmBasedUserListInfo userList = CrmBasedUserListInfo.newBuilder()
  .setUploadKeyType(CustomerMatchUploadKeyType.CONTACT_INFO)
  .build();
  UserList newUserList = UserList.newBuilder()
    .setName(StringValue.of("Oler user list test 1"))
    .setCrmBasedUserList(userList)
    .build();  
  UserListOperation userListOperation = UserListOperation.newBuilder()
  .setCreate(newUserList)
  .build();

You may use the ad_group resource which can be used to map the ad groups to the campaigns. Let me know if you have any questions.

Thanks,
Bharani, Google Ads API Team

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