Audience link with remarketing list

16 views
Skip to first unread message

develop...@gmail.com

unread,
Dec 7, 2017, 7:04:39 AM12/7/17
to AdWords API Forum
Hi,
I have cretated addaudience by using this API...after i have added below in separate file to link remarketing list but the list is not adding to this campign(campaignid: "1011547415").plz help me get rid off this.



        $campaignCriterionService =
        $adWordsServices->get($session, CampaignCriterionService::class);

        $adGroupCriterionService = $adWordsServices->get($session, AdGroupCriterionService::class);

        $criterionUserList = new CriterionUserList();
        $CriterionUserList->setUserListId(523433934);
       
        $campaignCriterion = new CampaignCriterion();
        $campaignCriterion->setCampaignId(1011547415);
        $campaignCriterion->setCriterion($criterionUserList);

        $operation = new CampaignCriterionOperation();
        $operation->setOperand($campaignCriterion);
        $operation->setOperator(Operator::ADD);
        $operations[] = $operation;
        $campaign_cri = $campaignCriterionService->mutate($operations);


        $adGroupCriterion = new BiddableAdGroupCriterion();
        $adGroupCriterion->setAdGroupId('56660457264');
        $adGroupCriterion->setCriterion($criterionUserList);

        $operation = new AdGroupCriterionOperation();
        $operation->setOperand($adGroupCriterion);
        $operation->setOperator(Operator::ADD);
        $operations[] = $operation;

        $adgroup_cri = $adGroupCriterionService->mutate($operations);

Thanks,
Priya K

Milind Sankeshware (AdWords API Team)

unread,
Dec 7, 2017, 2:57:20 PM12/7/17
to AdWords API Forum
Hi Priya,

The code snippet which you shared looks goods to me. Could you please enable logging and share the SOAP request and response for this operation? For enabling the SOAP logging, please follow the steps mentioned in this guide

Thanks,
Milind, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages