I got an error when Im using a sample of Analytics source".
This file has been truncated.
# Copyright (C) 2015-2016 Twitter, Inc.
# note: the following is just a simple example. before making any stats calls, make
# sure to read our best practices for analytics which can be found here:
from twitter_ads.client import Client
from twitter_ads.campaign import LineItem
from twitter_ads.enum import METRIC_GROUP
CONSUMER_KEY = 'your consumer key'
CONSUMER_SECRET = 'your consumer secret'
ACCESS_TOKEN = 'access token'
ACCESS_TOKEN_SECRET = 'access token secret'
ACCOUNT_ID = 'account id'
TypeError: the JSON object must be str, not 'bytes'
I think a variable,
raw_response_body in Request class is returned by byte not string but Im not sure how to fix this.
If anyone know how to fix this please let me know!