$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)
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d9b9199d-9ffa-49fe-9b77-083f7fe6a301n%40googlegroups.com.