Version 3 Support

40 views
Skip to first unread message

muhammad....@daraz.pk

unread,
Feb 18, 2021, 3:34:12 AM2/18/21
to AdWords API and Google Ads API Forum
Hi,

I am using version 3 of google Ads API to get campaign performance report, now I am getting this following error can you please help me in this ?

error message: " Version v3 is deprecated. Requests to this version will be blocked."

Code: ga_service = client.get_service("GoogleAdsService", version="v3")
            #to get only yesterday data
            query = ('SELECT ad_group.campaign, ad_group.idad_group.namecampaign.idcampaign.namead_group_ad.ad.id, ad_group_ad.status,ad_group_ad.ad.name,segments.date,segments.day_of_week, metrics.cost_micros,metrics.impressions,metrics.clicks,metrics.interactions,metrics.engagements,metrics.conversions FROM ad_group_ad where segments.date DURING YESTERDAY '
                             ' ORDER BY ad_group.id')
           
            response = ga_service.search_stream(customer_id[ids], query=query)

Thanks

Google Ads API Forum Advisor Prod

unread,
Feb 18, 2021, 11:24:09 AM2/18/21
to muhammad....@daraz.pk, adwor...@googlegroups.com
Hello,

Google Ads API v3 was sunset recently. You will need to upgrade to a newer version by following this guide.

Regards,
Anthony

Google Logo
Anthony
Google Ads API Team
 
 

ref:_00D1U1174p._5004Q2CSNif:ref

Muhammad Umar Iqbal

unread,
Feb 18, 2021, 11:41:25 AM2/18/21
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Hello,

I have check the code of all version and I didn't find any change so can you please tell me where I have to make the changes to upgrade my API version is it in credentials or in query or do I have to use some other lib in my code ?

Google Ads API Forum Advisor Prod

unread,
Feb 18, 2021, 4:24:47 PM2/18/21
to muhammad....@daraz.pk, adwor...@googlegroups.com
Hi,

You will need to update your endpoints. If you are having trouble, you can re-download the client libraries .
Reply all
Reply to author
Forward
0 new messages