Hi,

I was trying to add placements as a Global Negative List.

I was doing by this.
$placements = ['https://www.youtube.com/channel/UCMwS4p5XhAY9Rhqq7EGGKQA', 
'https://www.youtube.com/channel/UCVHO-W63u8RrXa6BAHxfLtQ',
            'https://www.youtube.com/user/DisneyCollectorBR', 
'https://www.youtube.com/user/Yaronelh'];
        foreach ($placements as $placement_value) {
            $sharedCriterion = new SharedCriterion([
                'placement' => new PlacementInfo([
                    'url' => new StringValue(['value' => $placement_value])
                ]),
                'shared_set' => new StringValue(
                        ['value' => 'customers/XXXX/sharedSets/XXXX'])
            ]);

            $sharedCriterionOperation = new SharedCriterionOperation();
            $sharedCriterionOperation->setCreate($sharedCriterion);
            $sharedCriterionOperations[] = $sharedCriterionOperation;
        }


But this is not allowing me add the Placements.



Thanks,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3c7cbca5-1222-411d-9cfd-41f01d2b60a6%40googlegroups.com.

Reply via email to