I have a feed with AdCustomizers that was created using the AdCustomizerFeedService and was populated using the FeedItemService.
I am now downloading the feed items of the customizers and then I am trying to download the related AdGroupId using the AdGroupFeedService and the related CampaignId using the CampaignFeedService..
To get the AdGroupIds my selector looks like this
$selector = new Selector();
$selector
->setFields(['FeedId', 'AdGroupId', 'MatchingFunction', 'Status'])
->setPredicates([
new Predicate('FeedId', PredicateOperator::IN, [51940371]),
new Predicate('PlaceholderTypes', PredicateOperator::EQUALS, [10]),
])
->setPaging(new Paging(0, 5000));
The result is always empty. Is there some other service I should be using to download the related AdGroupId or there's something wrong with my selector?
Similar with when trying to retrieve the CampaignId of feed items (my selector for CampaignIds is very similar, just replace AdGroupId field with CampaignId) I again get not results.
(however, very similar code works perfectly fine with Sitelinks feeds, just by changing placeholder type to 1)