I am having problems when trying to set a FEEDMAPPING_PLACEHOLDER_TYPE as ID of 7 for a location extension.

47 views
Skip to first unread message

Nick Petzold

unread,
Apr 30, 2019, 2:01:36 PM4/30/19
to AdWords API and Google Ads API Forum
Hi,

I am getting this error when trying to run the code block below to create a CustomerFeedService for location extensions on the AdwordsAPI:

googleads.errors.GoogleAdsServerFault: [CustomerFeedError.MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE @ operations[0].operand.placeholderTypes; trigger:'Invalid ids: 7']


adwords_client = get_adwords_client(third_party_advertiser_manager, third_party_model)
customer_feed_service
= adwords_client.GetService(
   
"CustomerFeedService", version=API_VERSION
)

request
= [
   
{
       
"operator": "ADD",
       
"operand": {
           
'feedId': feed_id,
           
'placeholderTypes': [ADWORDS_PLACEHOLDER_TYPE_ID_LOCATION],
           
"matchingFunction": {  # all adwords filtering is done in feed
               
'lhsOperand': [
                   
{
                       
'xsi_type': "ConstantOperand",
                       
'type': "BOOLEAN",
                       
'booleanValue': True,
                   
}
               
],
               
'operator': "IDENTITY",
               
'rhsOperand': [],
           
}
       
},
   
}
]


mutation_result
= customer_feed_service.mutate(request)

I have tried calling CustomerFeedService.get() and it only returns one entry with no PlaceholderTypes:

{
   
'totalNumEntries': 1,
   
'Page.Type': 'CustomerFeedPage',
   
'entries': [
       
{
           
'feedId': 75713058,
           
'matchingFunction': None,
           
'placeholderTypes': [],
           
'status': 'ENABLED'
       
}
   
]
}

Any help would be much appreciated!

googleadsapi...@google.com

unread,
Apr 30, 2019, 3:42:40 PM4/30/19
to nickp...@gmail.com, AdWords API and Google Ads API Forum
Hi Nick,

Can you please provide the SOAP request and response for this API call via reply privately to author so I can take a closer look?

Thanks,
Anthony
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/b8972642-7f4f-4f89-b980-9fe0a67f494a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Walker

unread,
May 3, 2019, 4:45:06 PM5/3/19
to AdWords API and Google Ads API Forum
Hi Anthony,

Any chance you could post the results from your private issue help with Nick please?
I have the same error, but in the new python google-ads-api v1.

Thanks,
John

googleadsapi...@google.com

unread,
May 6, 2019, 3:00:47 PM5/6/19
to jo...@chaosdevs.com, AdWords API and Google Ads API Forum
Hi John,

Nick never replied back to me. You can reply privately to author your API request and response so that I can have a look.

Regards,
Anthony
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Reply all
Reply to author
Forward
0 new messages