def main(client):
  # Initialize appropriate service.
  conversion_tracker_service = client.GetService(
      'ConversionTrackerService', version='v201603')

  # Construct operations and add conversion_tracker.
  operations = [
      {
          'operator': 'ADD',
          'operand': {
              'xsi_type': 'AdWordsConversionTracker',
              'name': uuid.uuid4() % 'Mars cruise customers #%s',
              'category': 'DEFAULT',
              'textFormat': 'HIDDEN',
              # Optional fields.
              'status': 'ENABLED',
              'viewthroughLookbackWindow': '15',
              'conversionPageLanguage': 'en',
              'backgroundColor': '#0000FF',
              'defaultRevenueValue': '23.41',
              'alwaysUseDefaultRevenueValue': 'true'
          }
      }
  ]
  conversion_trackers = conversion_tracker_service.mutate(operations)

  # Display results.
  for conversion_tracker in conversion_trackers['value']:
    print ('Conversion tracker with id \'%s\', name \'%s\', status \'%s\' '
           'and category \'%s\' and snippet \n\'%s\'\n was added.\n' %
           (conversion_tracker['id'], conversion_tracker['name'],
            conversion_tracker['status'], conversion_tracker['category'],
            conversion_tracker['snippet']))
dataset/ETHPy150Open googleads/googleads-python-lib/examples/adwords/v201603/remarketing/add_conversion_tracker.py/main/swapped operands of `%`