Invalid campaign name error when using mutate operation on campaigns with foreign language characters

44 views
Skip to first unread message

Max H

unread,
Dec 12, 2019, 5:27:08 PM12/12/19
to AdWords API and Google Ads API Forum
Hi there!

I have a python script that reads all campaign names within an account and then performs a "find, replace" function to follow a new naming convention. I'm getting the CampaignError.INVALID_CAMPAIGN_NAME @ operations[4406].operand.name] when the original campaign name contains character in a foreign language (for instance, it happened with Chinese characters and Thai characters). I'm guessing the problem is with the encoding and decoding of these characters. When I download the report using .DownloadReportWithAwql, I save it in a dataframe using encoding "utf-8". Later this dataframe containing all campaign names is modified using a dictionary with the "find, replace" rules. 

Is there a way to encode/decode campaign names in foreign language characters so that I don't get the invalid name error? 

Thanks for the help!

Google Ads API Forum Advisor Prod

unread,
Dec 12, 2019, 8:21:40 PM12/12/19
to max.ro...@deliveryhero.com, adwor...@googlegroups.com

Hi Max,

 

Thanks for reaching out to us. Because this is an issue that is specific to our client libraries, could you post your issue here?

Regards,
Anthony
Google Ads API Team


ref:_00D1U1174p._5001UOEQs8:ref

Max H

unread,
Dec 13, 2019, 10:53:05 AM12/13/19
to AdWords API and Google Ads API Forum
Hi Anthony, 

Thanks for the reply. I will post it there, but it looks like support is not very fast there. Do you have any recommendation in the meantime? 

Google Ads API Forum Advisor Prod

unread,
Dec 13, 2019, 7:31:27 PM12/13/19
to max.ro...@deliveryhero.com, adwor...@googlegroups.com
Hi Max,

Unfortunately, because your issue involves a problem with the encoding and decoding of foreign language characters, our client library support team might be better equipped to handle your issue.
Reply all
Reply to author
Forward
0 new messages