Re-posting the last inquiry ( https://groups.google.com/g/adwords-api/c/BSDirrUzUco) from the forum as it wasn't routed to our support queue.
Regards, Carmela Google Ads API Team On Friday, February 10, 2023 at 4:51:08 PM UTC+8 [email protected] wrote: > hello google team, > > we are following this documention > https://developers.google.com/google-ads/api/samples/add-keyword-plan, > > we are getting this error : > --------------------------------------------------------------------------- > TypeError Traceback (most recent call last) Cell In[49], line 2 * 1* > geo_target.geo_target_constant = "geoTargetConstants/5" ----> 2 > keyword_plan_campaign.geo_targets.append(geo_target) TypeError: Parameter > to MergeFrom() must be instance of same class: expected > google.ads.googleads.v12.resources.KeywordPlanGeoTarget got > KeywordPlanGeoTarget. > > python version : Python 3.10.6 > type(keyword_plan_campaign) : > > google.ads.googleads.v12.resources.types.keyword_plan_campaign.KeywordPlanCampaign > type(geo_target) > > google.ads.googleads.v12.resources.types.keyword_plan_campaign.KeywordPlanGeoTarget > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/60a13626-1738-484f-8d4f-1ea8f679f72dn%40googlegroups.com.
