Google Ads Api - Remove Final URLs From Keyword

275 views
Skip to first unread message

Evaldas Gudavičius

unread,
Jan 9, 2022, 3:14:08 PM1/9/22
to AdWords API and Google Ads API Forum
Hello,

I need to remove the Final URL from a keyword, but it doesn't work.

My Code is Attached.

From this code, I get a successful response, but the URL did not remove.

If I set for example:

$adGroupCriterion->setFinalUrls(['https://somedomain.com']);

This works, but If I want to remove the URL at all, it doesn't give me an error but actually, it doesn't work.


Screenshot_3.png

Google Ads API Forum Advisor

unread,
Jan 10, 2022, 2:32:14 AM1/10/22
to evaldas.g...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Forum.

Have you tried to set the value setFinalUrls(['']) and see if it works? You may be able to check finalUrl using the ad_group_criterion resource. If don’t work, you may provide us with the complete request and response logs with request ID generated via Reply privately to author option, so that our team can better check. 

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2UiCb7:ref

Evaldas Gudavičius

unread,
Jan 10, 2022, 3:20:03 AM1/10/22
to AdWords API and Google Ads API Forum
Hello,

Thank you for your reply.

I've tried many variants like:

- ['']
- ''
-['-']
etc. But none of these did the job.

Could you please share with me a little more information on how can I get the Request ID of my operation? And also how can I get request and response Logs?

And how can I send you a private?


Thanks!

Google Ads API Forum Advisor

unread,
Jan 10, 2022, 10:47:09 AM1/10/22
to evaldas.g...@gmail.com, adwor...@googlegroups.com
Hello Evaldas,

Thanks for getting back to us. When you see full logs, you are able to see request ID on that log. For us to investigate, we will need a full log of request and response of API communications of the report pull. The request and response appears similar to the JSON Mappings in our REST documentation. Our client libraries have loggers with logging instructions, to see these instructions you can click on the client library you use in the sidebar of our client library guide and click on "Logging". Setting the logger to 'DEBUG' will get the desired log.
Please use the  Reply privately to the author option while sharing the details.

Best regards,
Google Logo
Jakeia Sabrina
Google Ads API Team
 


ref:_00D1U1174p._5004Q2UiCb7:ref

Evaldas Gudavičius

unread,
Jan 10, 2022, 12:59:22 PM1/10/22
to AdWords API and Google Ads API Forum
Unfortunately, I don't have enough experience to enable logging in to my app.

I attack the code, maybe you can help with sharing the information what should I do next?

I don't understand what should I enter to withLogger(....).

---------

Anyway I believe, that $adGroupCriterion->setFinalUrls([]); is not working from google side.

Maybe you can simply test it on your side, with your test accounts?

Screenshot_4.png

Google Ads API Forum Advisor

unread,
Jan 11, 2022, 3:50:29 AM1/11/22
to evaldas.g...@gmail.com, adwor...@googlegroups.com

Hi Evaldas,



Thanks for getting back to us.

You may check this code example to see how the new UrlList(['’]) is used to set the final_URL. However, this concern is related to setting an empty url in the PHP client library, then I would recommend you to reach out to the client library owner by filing an issue on issue tracker since they're the appropriate team to provide guidance on how you can completely remove URL.

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2UiCb7:ref

Evaldas Gudavičius

unread,
Jan 11, 2022, 3:59:40 AM1/11/22
to Google Ads API and AdWords API Forum
Hello,

Thank you for the answer.

new UrlList(['’]) is used in the Adwords API library, we're talking about google ads API.

Ok, so I will try to reach client library owners.

Thanks

Reply all
Reply to author
Forward
0 new messages