examples/AdWords/v201809/Migration/MigrateToExtensionSettings.php
private static function getCampaignFeeds(
        AdWordsServices $adWordsServices,
        AdWordsSession $session,
        $feedId,
        $placeholderId
    ) {
        $campaignFeedService = $adWordsServices->get($session, CampaignFeedService::class);
        $page = $campaignFeedService->query(
            sprintf(
                'SELECT CampaignId, MatchingFunction, PlaceholderTypes WHERE '
                . 'Status="ENABLED" AND FeedId = %d AND PlaceholderTypes ' . 'CONTAINS_ANY[%d]',
                $feedId,
                $placeholderId
            )
        );

        return $page->getEntries();
    }
private static function getCampaignFeeds(
        AdWordsServices $adWordsServices,
        AdWordsSession $session,
        $feedId,
        $placeholderId
    ) {
        $campaignFeedService = $adWordsServices->get($session, CampaignFeedService::class);
        $page = $campaignFeedService->query(
            sprintf(
                'SELECT CampaignId, MatchingFunction, PlaceholderTypes WHERE '
                . 'Status="ENABLED" AND FeedId = %d AND PlaceholderTypes ' . 'CONTAINS_ANY[%d]',
                $feedId,
                $placeholderId
            )
        );

        return $page->getEntries();
    }
private static function getCampaignFeeds ( AdWordsServices $ adWordsServices , AdWordsSession $ session , $ feedId , $ placeholderId ) { $ campaignFeedService = $ adWordsServices -> get ( $ session , CampaignFeedService :: class ) ; $ page = $ campaignFeedService -> query ( sprintf ( 'SELECT CampaignId, MatchingFunction, PlaceholderTypes WHERE ' . 'Status="ENABLED" AND FeedId = %d AND PlaceholderTypes ' . 'CONTAINS_ANY[%d]' , $ feedId , $ placeholderId ) ) ; return $ page -> getEntries ( ) ; }
Gets all enabled campaign feeds for the specified feed and placeholder
type.
Gets all enabled campaign feeds for the specified feed and placeholder type .