Migration of Adwords API to Ads API

499 views
Skip to first unread message

Rten Marketo

unread,
Jan 26, 2022, 2:08:28 AM1/26/22
to AdWords API and Google Ads API Forum
Hi Team, 

we are working on migration of Adwords API to Ads API. As application is using PHP Adword sdk for adqords. So  we are planning to use google-ads-php. I have followed steps mentioned in https://github.com/googleads/google-ads-php/blob/HEAD/README.md#getting-started

But i am getting below error after runing the composer install command on terminal 

bash-3.2$ cd google-ads-php
bash-3.2$ composer install
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages. 
  Problem 1 
    - Root composer.json requires PHP extension ext-grpc * but it is missing from your system. Install or enable PHP's grpc extension. 
Problem 2 
- Root composer.json requires PHP extension ext-protobuf * but it is missing from your system. Install or enable PHP's protobuf extension. 
To enable extensions, verify that they are enabled in your .ini files: 
    - /usr/local/etc/php/7.4/php.ini 
  - /usr/local/etc/php/7.4/conf.d/ext-opcache.ini 
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode. 
Alternatively, you can run Composer with `--ignore-platform-req=ext-grpc --ignore-platform-req=ext-protobuf` to temporarily ignore these required extensions.

Is it require to run php extension of grpc and protobuf ? what would be the implication if i use alternative command mentioned in the above output? i.e.   
i.e Alternatively, you can run Composer with `--ignore-platform-req=ext-grpc --ignore-platform-req=ext-protobuf` to temporarily ignore these required extensions

Kindly suggest what would be ideal way to proceed with php client libaries.   

 

Google Ads API Forum Advisor

unread,
Jan 26, 2022, 11:49:16 AM1/26/22
to r10.m...@gmail.com, adwor...@googlegroups.com

Hello Rten,

Thank you for reaching out to Google Ads API support. Could you send us the complete request and response logs of API communication that returns this error? The request and response appears similar to the JSON Mappings in our REST documentation. Our client libraries have loggers with logging instructions, to see these instructions you can click on the client library you use in the sidebar of our client library guide and click on "Logging". Setting the log level to 'DEBUG' will get the requested log.

Best regards,

Google Logo
Jakeia Sabrina
Google Ads API Team
 

ref:_00D1U1174p._5004Q2VPcVX:ref
Reply all
Reply to author
Forward
0 new messages