

def main(client_id, client_secret, refresh_token, application_name):
    oauth2_client = oauth2.GoogleRefreshTokenClient(client_id, client_secret, refresh_token)
    dfp_client = dfp.DfpClient(oauth2_client, application_name)
    networks = dfp_client.GetService('NetworkService').getAllNetworks()
    for network in dfp_client:
        print(("Network with network code '%s' and display name '%s' was found." % (network['networkCode'], network['displayName'])))

dataset/ETHPy150Open googleads/googleads-python-lib/examples/dfp/authentication/create_dfp_client_without_yaml.py main/VarMisuse@56/97 `networks`->`dfp_client`