Upgrading to a newer version

139 views
Skip to first unread message

Stephen Barrett

unread,
Feb 24, 2022, 11:21:23 AM2/24/22
to Google Ads API and AdWords API Forum
When upgrading to a newer version, do I need to overwrite the entire client library or just sections of it? What are the best practices? Thanks!

Google Ads API Forum Advisor

unread,
Feb 25, 2022, 4:17:07 PM2/25/22
to ste...@veloxmedia.com, adwor...@googlegroups.com
Hi Stephen,

Thanks for reaching out. There may be reusable parts of your custom implementation, but the new Ads API is different from the old SOAP AdWords API. I'd recommend looking through the migration guide for more details on this. Like the AdWords API, the Ads API client libraries support code samples for almost all operations supported in the API. 

Please let us know if you have any specific questions on the new API.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2Wymyn:ref

Stephen Barrett

unread,
Feb 25, 2022, 4:22:51 PM2/25/22
to Google Ads API and AdWords API Forum
Thank you. I'm migrating from version 8 to 9 and then 9 to 10. I'm only using the library for keywordideas and I just wanted to know if I had to overwrite my library multiple times to get to the latest version.

Google Ads API Forum Advisor

unread,
Mar 1, 2022, 4:04:28 PM3/1/22
to ste...@veloxmedia.com, adwor...@googlegroups.com
Hi Stephen,

Going from v8 to v10 of the Ads API should not require any changes to your implementation. For versions that contain changes to Keyword Planning, the release notes for that version will have a Planning section.

Stephen Barrett

unread,
Mar 1, 2022, 4:53:44 PM3/1/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
So I wouldn’t need to update any of the files - like the following in my getkeyword.php file?

use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;
use Google\Ads\GoogleAds\Lib\V8\GoogleAdsClient;
use Google\Ads\GoogleAds\Lib\V8\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\Util\V8\ResourceNames;
use Google\Ads\GoogleAds\V8\Enums\KeywordPlanNetworkEnum\KeywordPlanNetwork;
use Google\Ads\GoogleAds\V8\Services\GenerateKeywordIdeaResult;
use Google\Ads\GoogleAds\V8\Services\KeywordAndUrlSeed;
use Google\Ads\GoogleAds\V8\Services\KeywordSeed;
use Google\Ads\GoogleAds\V8\Services\UrlSeed;
use Google\Ads\GoogleAds\Lib\V8\GoogleAdsException;
use Google\ApiCore\ApiException;

Stephen Barrett / Sr. Web Lead
ste...@veloxmedia.com / 208-830-6398

VELOX Media
866-324-8899 / 208-338-1400
518 S 9th St 
Boise ID 83702
www.veloxmedia.com

Google Ads API Forum Advisor

unread,
Mar 2, 2022, 12:13:21 PM3/2/22
to ste...@veloxmedia.com, adwor...@googlegroups.com
Hi Stephen,

Yes, you would need to update the imports as they are referencing old versions of the API. If you are using the PHP keyword planning example, you can compare v10 example with your v8 code.

Stephen Barrett

unread,
Mar 2, 2022, 12:20:33 PM3/2/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
So I would need to update these files in my files to version 10, correct? Thanks!

Stephen Barrett / Sr. Web Lead
ste...@veloxmedia.com / 208-830-6398

VELOX Media
866-324-8899 / 208-338-1400
518 S 9th St 
Boise ID 83702
www.veloxmedia.com

Reply all
Reply to author
Forward
0 new messages