Hi folks, I want to ask the adwords api to request my campaigns.
I am using this simple example: $redirectUri = 'http://xxxxxxx/dashboard/accounts/oauth2callback'; $code = $_GET['code']; $oauth2 = new OAuth2([ 'authorizationUri' => 'https://accounts.google.com/o/oauth2/v2/auth', 'tokenCredentialUri' => 'https://www.googleapis.com/oauth2/v4/token', 'redirectUri' => $redirectUri, 'clientId' => $this->client_id, 'clientSecret' => $this->client_secret, 'scope' => '****' ]); $oauth2->setCode($code); $authToken = $oauth2->fetchAuthToken(); // Store the refresh token for your user in your local storage if you // requested offline access. $refreshToken = $authToken['refresh_token']; Now I have the access_token and the refresh_token. How can I use this to request google adwords now? When I am checking this example: https://developers.google.com/adwords/api/docs/samples/php/basic-operations The authentication data is coming from some local file, but I have the data in my array above and the tokens are coming from the DB. Thanks Nik -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/6e2b7b7e-bac1-4705-b624-be675533f431%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
