FinaUrls Readonly for some reason

46 views
Skip to first unread message

Joshua Newman

unread,
Jan 24, 2022, 3:58:53 PM1/24/22
to Google Ads API and AdWords API Forum
Hello,

I'm integrating the latest version of the new Google Ads Api, but when I attempt to code the CreateAdGroupAd request in VB I noticed the property FinalUrls  is Readonly. However, in C# the property is not. I've attached a screenshot of the Metadata from a C# project & VB project.

Any assistance regarding this issue is greatly appreciated. Thanks

Josh Newman
image (3).png
image (2).png

Google Ads API Forum Advisor

unread,
Jan 25, 2022, 3:10:55 PM1/25/22
to joshua...@sitewit.com, adwor...@googlegroups.com
Hi Josh,

Thanks for reaching out. The final_urls field should not be read only. If you are receiving an error when an attempting to set a final URL to an ad, can you please provide us with the complete request and response logs?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2VP6B8:ref

Google Ads API Forum Advisor

unread,
Jan 25, 2022, 3:11:45 PM1/25/22
to joshua...@sitewit.com, adwor...@googlegroups.com
Hi Josh,

Please make sure to send the logs privately by using the reply privately to author option, as the logs may contain sensitive data. 

Joshua Newman

unread,
Jan 26, 2022, 12:21:39 PM1/26/22
to Google Ads API and AdWords API Forum
Not sure if you got my last message as I tried to replay to author privately. What we are seeing is that in a .Net VB project, when utilizing the Google Ads Api .Net nuget package is that the compiler is seeing a syntax error when trying to assign the FinaUrls field of the Ad object meaning we are unable to build the project. I've attached a screenshot of the error. Because we are unable to build it means there is no Request or Response to supply to you. It seems like either the Nuget package is not compatible with .Net VB or there is a bug in the library for VB and not C#.
FinalUrls_ReadOnly_VB.png

Google Ads API Forum Advisor

unread,
Jan 26, 2022, 9:57:07 PM1/26/22
to joshua...@sitewit.com, adwor...@googlegroups.com
Hi Joshua,

Thank you for sharing a screenshot containing your code.

An ad group ad's finalUrls attribute as mentioned earlier by Matt, should not be read only especially when you are using the AdGroupAdService to create the said ad. As an aside, for updating ads, you can use the AdService instead.

That being said, since you mentioned you are just only creating the ad and the issue is at the code level as seen in your screenshot, I would recommend that you reach out instead to the client library owners, via this link (.NET / C#), as they should be more equipped to provide guidance on this issue.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2VP6B8:ref
Reply all
Reply to author
Forward
0 new messages