Skip to content

create query - httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header. #18

Description

@eduardoblucas

Hi,

I'm getting this error when I create a new query. Any ideas on how to fix this?

httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header.

query_test = {
    "kind": "doubleclickbidmanager#query",
    "metadata": {
        "dataRange": "LAST_30_DAYS",
        "format": "CSV",
        "googleCloudStoragePathForLatestReport": "",
        "googleDrivePathForLatestReport": "",

        "locale": "",
        "reportCount": 0,
        "running": False,
        "sendNotification": False,
        "shareEmailAddress": [
            ""
        ],
        "title": ""
    },
    "params": {
        "filters": [
            {}
        ],
        "groupBys": [
            "FILTER_ADVERTISER",
            "FILTER_ADVERTISER_CURRENCY",
            "FILTER_CREATIVE",
            "FILTER_CM_PLACEMENT_ID",
            "FILTER_DATE"

        ],
        "includeInviteData": False,
        "metrics": [
            "METRIC_BILLABLE_IMPRESSIONS",
            "METRIC_IMPRESSIONS",
            "METRIC_CLICKS",
            "METRIC_CLIENT_COST_ADVERTISER_CURRENCY",
            "METRIC_PLATFORM_FEE_ADVERTISER",
            "METRIC_PLATFORM_FEE_RATE",
            "METRIC_DATA_COST_ADVERTISER",
            "METRIC_CPM_FEE1_ADVERTISER",
            "METRIC_TOTAL_MEDIA_COST_ADVERTISER"
        ],
        "type": "TYPE_ACTIVE_GRP"
    },

    "schedule": {

        "frequency": "DAILY",
        "nextRunTimezoneCode": ""
    },
    "timezoneCode": "Europe/London"
}
createdQuery = service.queries().createquery(body=query_test).execute()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions