$accessToken = $user->token;
$oauth2Token = (new OAuth2TokenBuilder())
->withAccessToken($user->token)
->build();
// Load the OAuth2 credentials from a file (google_ads_php.ini).
$credentialsLoader = CredentialsLoader::fromFile(public_path('google_ads_php.ini'));
// Build the Google Ads client with the OAuth2Token.
$googleAdsClient = (new GoogleAdsClientBuilder())
->withOAuth2Credential($oauth2Token)
->fromFile(public_path('google_ads_php.ini'))
// ->usingGapicV2Source(true)
->build();
but i am getting error of methods and i want to know a way to do it(i am using php laravel)