def get_advertisers(self):
        service = self.native_dfp_client.GetService(
            'CompanyService',
            version=self.version,
        )

        # Create statement object to only select companies that are advertisers
        values = [{
            'key': 'type',
            'value': {
                'xsi_type': 'TextValue',
                'value': 'ADVERTISER'

            }
        }]
        query = 'WHERE type = :type'
        statement = FilterStatement(query, values)
        results = self._run_service_query(statement, service.getCompaniesByStatement)
        advertisers = [
            {'id': advertiser['id'],
             'name': advertiser['name']
             }
            for advertiser in results
        ]
        return advertisers
Queries dfp for all advertisers within their account
dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/adapters/dfp/client.py/DFPClient.get_advertisers