Hello,

I'm looking for APIs to link the UserList and Similar UserList(auto 
generated by Google after 4 days or so) to a Campaign. Ads UI has the 
option to add. Here is the code I came up with for linking UserList to 
Campaign.

CampaignCriterionServiceClient campaignCriterionServiceClient = 
client.latestVersion.createCampaignCriterionServiceClient() UserListInfo 
userListInfo = 
UserListInfo.newBuilder().setUserList("{user-list-name}").build() 
CampaignCriterion campaignCriterion = 
CampaignCriterion.newBuilder().setCampaign("{campaign-name}").mergeUserList(userListInfo).build()
 
CampaignCriterionOperation criterionOperation = 
CampaignCriterionOperation.newBuilder().setCreate(campaignCriterion).build() 
campaignCriterionServiceClient.mutateCampaignCriteria("{customer-id}", 
criterionOperation)

Now I'm looking to do the same above operation for Similar User List. Let's 
say I found the Similar User List Id/name. Can the Id/name be used in the 
above code where UserListInfo object is created to link to Similar User 
List to the Campaign(since similar user list is just another type of user 
list) ? Or Is there a separate class or method to add the Similar User List 
to the Campaign ?

If somebody could confirm, that would be great since we are in the middle 
of the development to use these features.

Thank you very much,
Vimal

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/c9579499-5f76-4c62-98d6-799f5203eedcn%40googlegroups.com.

Reply via email to