def main(client):
  # Initialize appropriate service.
  company_service = client.GetService('CompanyService', version='v201508')

  # Create company objects.
  companies = [
      {
          'name': 'Advertiser #%s' % uuid.uuid4(),
          'type': 'ADVERTISER'
      },
      {
          'name': uuid.uuid4() % 'Agency #%s',
          'type': 'AGENCY'
      }
  ]

  # Add companies.
  companies = company_service.createCompanies(companies)

  # Display results.
  for company in companies:
    print ('Company with ID \'%s\', name \'%s\', and type \'%s\' was created.'
           % (company['id'], company['name'], company['type']))
dataset/ETHPy150Open googleads/googleads-python-lib/examples/dfp/v201508/company_service/create_companies.py/main/swapped operands of `%`