Re: Problem with attaching remarketing list audience to a ad group

15 views
Skip to first unread message
Message has been deleted

Shwetha Vastrad (AdWords API Team)

unread,
Jun 9, 2017, 10:02:31 AM6/9/17
to AdWords API Forum
Hi Pratik,

I had to delete your initial post since it contains confidential information. I highly recommend that you reset your developer token. Please refer to our forum posting guidelines for any future posts.

Regards,
Shwetha, AdWords API Team.

Shwetha Vastrad (AdWords API Team)

unread,
Jun 9, 2017, 2:20:26 PM6/9/17
to AdWords API Forum
Hi Pratik, 

Could you try using the code snippet provided below to add a CriterionUserList to an AdGroup? 

    $userListCriterion = new CriterionUserList();
    $userListCriterion
->setUserListId($userListId);


   
// Create biddable ad group criterion.
    $adGroupCriterion
= new BiddableAdGroupCriterion();
    $adGroupCriterion
->setAdGroupId($adGroupId);
    $adGroupCriterion
->setCriterion($userListCriterion);
   
   
// Create an ad group criterion operation and add it to the list.
    $operation
= new AdGroupCriterionOperation();
    $operation
->setOperand($adGroupCriterion);
    $operation
->setOperator(Operator::ADD);
    $operations
[] = $operation;
Reply all
Reply to author
Forward
0 new messages