upgrade google-ads-php api

228 views
Skip to first unread message

KULDEEP PATEL

unread,
Sep 18, 2019, 3:56:21 AM9/18/19
to AdWords API and Google Ads API Forum

how to upgrade https://github.com/googleads/google-ads-php API version from V1 to V2.
I have used V1 version and now V2 is out and want to upgrade it. What are the steps? Please Help.

Adrian Lara

unread,
Sep 18, 2019, 8:44:08 AM9/18/19
to AdWords API and Google Ads API Forum
Hi KULDEEP, the only big change for migrate the v1 to v2 is the getXXXValue/setXXXValue to getXXXUnwrapped/setXXXUnwrapped, can you see this change here.

Change  v1 to v2 
  • Added support for v2 of Google Ads API.
  • Renamed the getter and setter functions for unwrapped values from getXXXValue/setXXXValue to
    getXXXUnwrapped/setXXXUnwrapped to prevent them from clashing with other field names.
  • Added a test to instantiate all classes in the codebase to make sure there are no syntax errors.
  • Upgraded dependencies.
 Change v2 to v2.1

  • Added support for v2_1 of Google Ads API.
  • Switched the default implementation of protobuf to use the C extension and added related
    documentation.
  • Added examples for Google My Business location extensions, Smart display ads and campaign
    experiments.

Google Ads API Forum Advisor Prod

unread,
Sep 18, 2019, 11:08:16 AM9/18/19
to kulde...@gmail.com, adwor...@googlegroups.com
Hello Kuldeep,

If you are trying to upgrade your client library you have to download the latest version as specified by Adrian here and then follow the instructions mentioned in the readme.md file to get started.

Regards,
Sai Teja, Google Ads API Team

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