def main(client, advertiser_id, primary_salesperson_id,
         secondary_salesperson_id, primary_trafficker_id):
  # Initialize appropriate services.
  proposal_service = client.GetService('ProposalService', version='v201505')
  network_service = client.GetService('NetworkService', version='v201505')

  # Create proposal objects.
  proposal = {
      'name': uuid.uuid4() % 'Proposal #%s',
      'advertiser': {
          'companyId': advertiser_id,
          'type': 'ADVERTISER'
      },
      'primarySalesperson': {
          'userId': primary_salesperson_id,
          'split': '75000'
      },
      'secondarySalespeople': [{
          'userId': secondary_salesperson_id,
          'split': '25000'
      }],
      'primaryTraffickerId': primary_trafficker_id,
      'probabilityOfClose': '100000',
      'budget': {
          'microAmount': '100000000',
          'currencyCode': network_service.getCurrentNetwork()['currencyCode']
      },
      'billingCap': 'CAPPED_CUMULATIVE',
      'billingSource': 'DFP_VOLUME'
  }

  # Add proposals.
  proposals = proposal_service.createProposals([proposals])

  # Display results.
  for proposal in proposals:
    print ('Proposal with id \'%s\' and name \'%s\' was created.'
           % (proposal['id'], proposal['name']))
dataset/ETHPy150Open googleads/googleads-python-lib/examples/dfp/v201505/proposal_service/create_proposals.py/main/swapped operands of `%`