def get_field_list(stream_schema, stream, stream_metadata):
#NB> add synthetic keys
field_list = get_fields_to_sync(stream_schema, stream_metadata)
LOGGER.info("Request fields: %s", field_list)
field_list = filter_fields_by_stream_name(stream, field_list)
LOGGER.info("Filtered fields: %s", field_list)
# These are munged because of the nature of the API. When you pass
# the field to the API you need to change its first letter to
# upper case.
#
# See:
# https://developers.google.com/adwords/api/docs/reference/v201708/AdGroupAdService.AdGroupAd
# for instance
field_list = [f[0].upper()+f[1:] for f in field_list]
LOGGER.info("Munged fields: %s", field_list)
return field_list
评论列表
文章目录