How to initialize a Google Ads Client Service to only validate the API call?

503 views
Skip to first unread message

Gustavo Maia

unread,
Jun 2, 2021, 2:49:35 PM6/2/21
to AdWords API and Google Ads API Forum
I tried using this:

# Initialize appropriate service with validate only flag enabled.
client
.validate_only = True

However when I execute the mutate calls they do change the information within Google Ads.
Message has been deleted

AdWords API and Google Ads API Forum

unread,
Jun 3, 2021, 2:42:55 PM6/3/21
to AdWords API and Google Ads API Forum

Reposting the inquiry from the forum as it wasn't routed to our support queue.


Cheers,

Aryeh Baker

Google Ads API Team

Google Ads API Forum Advisor Prod

unread,
Jun 4, 2021, 3:16:27 AM6/4/21
to adwor...@googlegroups.com
Hi Gustavo,

I appreciate your patience to this concern.

Could you clarify if the issue has been encountered in Google Ads API or AdWords API? I asked because I could not access the link that you provided.

It will be helpful also in our investigation if you can provide the complete SOAP request and response logs if the issue has been encountered in AdWords API while complete request and response logs with request ID in Google Ads API.

Please provide the requested details via Reply privately to author option.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I02QG:ref

Gustavo Maia

unread,
Jun 7, 2021, 8:40:45 AM6/7/21
to AdWords API and Google Ads API Forum
I am using Google Ads API and the link I was referring to is for the AdWords API. What would be the correct way to do this in the Google Ads API?

Google Ads API Forum Advisor

unread,
Jun 8, 2021, 10:22:23 AM6/8/21
to gustav...@cinnecta.com, adwor...@googlegroups.com
Hello,

For the GoogleAdsService mutate method, you can use the validate_only field for this purpose. If you are having an issue where changes are still being made despite this field being set to 'true', please send us the complete request and response logs so that we can investigate any issues.

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I02QG:ref
Message has been deleted

Gustavo Maia

unread,
Jun 9, 2021, 10:32:09 AM6/9/21
to AdWords API and Google Ads API Forum
I do not understand how to use the information from the given link in my case. Could you please explain where should I modify this example code (https://github.com/googleads/google-ads-python/blob/master/examples/advanced_operations/add_ad_group_bid_modifier.py) to force a validate only behavior?

Google Ads API Forum Advisor

unread,
Jun 10, 2021, 12:37:04 PM6/10/21
to gustav...@cinnecta.com, adwor...@googlegroups.com
Hi Gustavo,

Our team does not provide custom code for the client libraries. I would recommend reaching out to the Python client library owners for assistance on how to implement this field.

Regards,
Reply all
Reply to author
Forward
0 new messages