Regarding v10 version

95 views
Skip to first unread message

akhil Preetham

unread,
May 24, 2022, 1:47:36 PM5/24/22
to Google Ads API and AdWords API Forum
Hi,
As mentioned in the doc, In the v10 version they have removed all the get methods and said to use GoogleAdsService's search and searchStream methods. Those methods retrieve every records unlike getting only one specific record when we try Get method by ID for that resource. It can be handled using WHERE clause in the query of  GoogleAdsService's search and searchStream methods. But in the query we need to specify which field we want in the response. Tried to keep SELECT * but it didn't worked. Is there any way to get all the fields for that resource using query the same fields which we get when we do Get method by ID? Is there any replacement endpoints for those removed get endpoints where we can retrieve only one specific record? And in future releases like v11 and v12 will they put back those GET method for all resources or how will it be? 
The v7 version is still working, but according to API doc, it got deprecated long time ago. May I know the exact time when will they diminish them. If v7 is still working when will v9 gets actually diminished compared to its original sunset time
Thank you!

akhil Preetham

unread,
May 25, 2022, 1:55:33 AM5/25/22
to Google Ads API and AdWords API Forum
Hi Can I get the update on this?
Thanks!

Google Ads API Forum Advisor

unread,
May 25, 2022, 9:24:30 AM5/25/22
to akhilpre...@gmail.com, adwor...@googlegroups.com

Hi Akhil,

Thanks for reaching out to the Google Ads API Forum.

In the Google Ads API V10 version, GET methods have been removed from all services. Any service that exclusively had a get method has been removed as well. The primary way to retrieve objects continues to be using GoogleAdsService's search and searchStream methods. For a comprehensive overview of changes based from v9 to v10, you may refer to this page, and inspecting objects with get (Deprecated) is deprecated since the usage of "get" in this API was only intended for exploratory purposes and not actually retrieving data as mentioned here

Yes you are correct. You need to specify which field should be fetched, and GAQL does not support (SELECT * ) syntax to gell fields. There is no way to get all the fields for that resource using the same fields which you used to get using the GET method by ID. To help you construct queries along with the where clause filter, you can use our Query builder and Query validator in the documentation.

In addition, as of now, there are no replacement endpoints for those removed GET endpoints, and we do not have future plans to add it to next releases like v11 and v12. Although this is a great tool for learning the API or inspecting an individual object for debugging or education purposes, your app should not use get methods to retrieve objects for processing or reporting. Instead, you may need to use GoogleAdsService, since it supports retrieving performance metrics, and allows for streaming through large result sets. If your app submits a large number of get requests, you may encounter rate limits. For sunset dates on older versions, you may refer to this guide.

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bD5yq:ref

akhil Preetham

unread,
Jun 9, 2022, 5:08:14 AM6/9/22
to Google Ads API and AdWords API Forum
Hi,
Thanks for the update. I have another query that is it possible to create custom fields for Campaign, Campaign Budget & Custom Audience?
Thank you!

Google Ads API Forum Advisor

unread,
Jun 9, 2022, 9:59:45 AM6/9/22
to akhilpre...@gmail.com, adwor...@googlegroups.com

Hi Akhil,

Thanks for getting back to us.

For us to address your query, could you elaborate on your concern of creating custom fields for Campaign, Campaign Budget & Custom Audience? Can this be done via Ads UI? You may provide us any reference or screenshots privately if it has sensitive details, so that we can check better.

Regards,

Reply all
Reply to author
Forward
0 new messages