Set new placement in Group Criterion via API

12 views
Skip to first unread message

inBYTES GmbH

unread,
Dec 3, 2015, 9:09:11 AM12/3/15
to AdWords API Forum

How can I add new placement (website, for example www.example.com) in AdGroup using AdWords API?

I have found

    AdGroupCriterionService->mutate, 

but I need to know ID of website

    $adGroupCriterion->criterion = new Criterion($criterionId);

So my question:

How I can found ID for any website or exist another way to add new Placement in AdGroup?

Umesh Dengale

unread,
Dec 3, 2015, 5:06:50 PM12/3/15
to AdWords API Forum
Hello,

While adding the Placement criteria you don't need to set the Id for Add operator of the mutate operation. The Id will be generated by the system and required set for SET and REMOVE operator.

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