Hello Luis,Email: xxxxxxx@xxxxxxxthis is the one that i am using to generate oauth2. and this is the code that im using :session_start();$oauth2 = new OAuth2(['authorizationUri' => 'https://accounts.google.com/o/oauth2/v2/auth','tokenCredentialUri' => 'https://www.googleapis.com/oauth2/v4/token','redirectUri' => route('user.mcc'),'clientId' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx','clientSecret' => 'xxxxxxxxxxxxxxxxx','scope' => 'https://www.googleapis.com/auth/plus.login',]);if (!isset($_GET['code'])) {$oauth2->setState(sha1(openssl_random_pseudo_bytes(1024)));$_SESSION['oauth2state'] = $oauth2->getState();$config = ['access_type' => 'offline'];header('Location: ' . $oauth2->buildFullAuthorizationUri($config));exit;}elseif (empty($_GET['state'])|| ($_GET['state'] !== $_SESSION['oauth2state'])){unset($_SESSION['oauth2state']);exit('Invalid state.');} else {$oauth2->setCode($_GET['code']);$authToken = $oauth2->fetchAuthToken();$refreshToken = $authToken['refresh_token'];}in the email above, i have 4 adwords manager account linked to it. for my application, I want to authenticate multiple users that has multiple adwords manager account linked to. can you help me to start with it? need some instructions coz im having a hard time in adwords api please. Java or php client will do.
Hello Luis,Email: xxxxxxx@xxxxxxx
this is the one that i am using to generate oauth2. and this is the code that im using :session_start();$oauth2 = new OAuth2(['authorizationUri' => 'https://accounts.google.com/o/oauth2/v2/auth','tokenCredentialUri' => 'https://www.googleapis.com/oauth2/v4/token','redirectUri' => route('user.mcc'),'clientId' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx','clientSecret' => 'xxxxxxxxxxxxxxxxxxxxx','scope' => 'https://www.googleapis.com/auth/plus.login',]);if (!isset($_GET['code'])) {$oauth2->setState(sha1(openssl_random_pseudo_bytes(1024)));$_SESSION['oauth2state'] = $oauth2->getState();$config = ['access_type' => 'offline'];header('Location: ' . $oauth2->buildFullAuthorizationUri($config));exit;}elseif (empty($_GET['state'])|| ($_GET['state'] !== $_SESSION['oauth2state'])){unset($_SESSION['oauth2state']);exit('Invalid state.');} else {$oauth2->setCode($_GET['code']);$authToken = $oauth2->fetchAuthToken();$refreshToken = $authToken['refresh_token'];}in the email above, i have 4 adwords manager account linked to it. for my application, I want to authenticate multiple users that has multiple adwords manager account linked to. can you help me to start with it? need some instructions coz im having a hard time in adwords api please. Java or php client will do.