def google_adwords_sale(context):
    """
    Output our receipt in the format that Google Adwords needs.
    """
    order = context['order']
    try:
        request = context['request']
    except KeyError:
        print >> sys.stderr, "Template satchmo.show.templatetags.google.google_adwords_sale couldn't get the request from the context.  Are you missing the request context_processor?"
        return ""

    secure = request.is_secure()
    try:
        language_code = request.LANGUAGE_CODE
    except __HOLE__:
        language_code = settings.LANGUAGE_CODE

    return({"GOOGLE_ADWORDS_ID": config_value('GOOGLE', 'ADWORDS_ID'),
            'Store': settings.SITE_NAME,
            'value': order.total,
            'label': 'purchase',
            'secure' : secure,
            'language_code' : language_code})
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_store/shop/templatetags/satchmo_google.py/google_adwords_sale