Hello Yin. The php examples have this include for the drive service:
require_once 'Google/Service/Drive.php'; So I searched the Google/Service/ folder list for somethig like Adwords but didn't found it. This is the file list of services: AdExchangeBuyer.php AdExchangeSeller.php Admin.php AdSenseHost.php AdSense.php Analytics.php AndroidPublisher.php Appsactivity.php AppState.php Audit.php Autoscaler.php Bigquery.php Blogger.php Books.php Calendar.php CivicInfo.php CloudMonitoring.php Compute.php Coordinate.php Customsearch.php Datastore.php Dfareporting.php Directory.php Dns.php DoubleClickBidManager.php Doubleclicksearch.php Drive.php Exception.php Freebase.php Fusiontables.php GamesManagement.php Games.php Genomics.php Gmail.php GroupsMigration.php Groupssettings.php IdentityToolkit.php Licensing.php Manager.php MapsEngine.php Mirror.php Oauth2.php Orkut.php Pagespeedonline.php PlusDomains.php Plus.php Prediction.php Pubsub.php QPXExpress.php Replicapool.php Reports.php Reseller.php Resource.php Resourceviews.php ShoppingContent.php SiteVerification.php Spectrum.php SQLAdmin.php Storage.php Taskqueue.php Tasks.php Translate.php Urlshortener.php Webfonts.php Webmasters.php YouTubeAnalytics.php YouTube.php Please tell me if I'm doing something wrong. Best regards El miércoles, 20 de enero de 2016, 16:22:09 (UTC-3), robert...@convierta.cl escribió: > > Hi. > > I want to create a Web application in php to manage the Adwords account in > my digital agency. > I downloaded "The Google Ads API PHP Client Library" from > https://github.com/googleads/googleads-php-lib. > I created a Web application and configured the application except the > "refresh_token" parameter. According to the instructions, to get it, I have > to run the GetRefreshToken.php script from the command line. I Run the > script and the link that I got back is only good for "Installed > application", but not for "Web Applications" (the same issue has been > mentioned in Making first request problem - can not get refresh token. > <https://groups.google.com/forum/?hl=es#!searchin/adwords-api/adwords$20api$20web$20application%7Csort:date/adwords-api/URhiFw9CHbg/WzFQL4NCEgAJ> > ) > > "The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob can only be > used by a Client ID for native application. It is not allowed for the > 'WEB' client type. You can create a Client ID for native > application in the Credentials section of the Google Developers Console." > > I also tried installing "Google APIs Client Library for PHP" ( > https://github.com/google/google-api-php-client/tree/v1-master), and it > worked for services like Youtube or Drive: > > $client-> addScope ("https://www.googleapis.com/auth/drive"); > $client-> addScope ("https://www.googleapis.com/auth/youtube"); > $dr_service = new Google_Service_Drive($client); > $dt_service = new Google_Service_Youtube($client); > > But there is no "Google_Service_Adwords". > > Moreover, in the "Google Developers Console" page, in the part where the > available API for applications are selected, "Adwords" does not appear. > > Using the "APIs Discovery Service v1" ( > https://developers.google.com/apis-explorer/#p/discovery/v1/discovery.apis.list), > > when I asked for Adwords, did not show any results. > > After these tests, I concluded that perhaps there is no PHP AdWords API > for web applications and would like to confirm with you whether it is > possible or not and, if possible, what is the right way to do it. > > Thanks for your assistance on this. > > Roberto > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. 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/d8048101-4141-43aa-9c09-0c69018425eb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.