AdError.INVALID_AD_TYPE when mutating RESPONSIVE_SEARCH_AD

28 views
Skip to first unread message

Joey Robert

unread,
Mar 9, 2020, 1:08:22 PM3/9/20
to AdWords API and Google Ads API Forum
Hello!

I'm getting back a response from AdGroupAdService.get() like:

[{
   'adGroupId': 12345,
   'ad': {
       'id': 67890,
       'url': None,
       'displayUrl': None,
       'finalUrls': [],
       'finalMobileUrls': [],
       'finalAppUrls': [],
       'trackingUrlTemplate': None,
       'finalUrlSuffix': None,
       'urlCustomParameters': None,
       'urlData': [],
       'automated': None,
       'type': 'RESPONSIVE_SEARCH_AD',
       'devicePreference': None,
       'systemManagedEntitySource': None,
       'Ad.Type': 'ResponsiveSearchAd',
       'headlines': [],
       'descriptions': [],
       'path1': None,
       'path2': None
   },
   'status': 'ENABLED',
   'policySummary': None,
   'labels': [],
   'baseCampaignId': None,
   'baseAdGroupId': None,
   'forwardCompatibilityMap': [],
   'adStrengthInfo': None
}]


And running AdService.mutate() operations like:

[{
   'operator': 'SET',
   'operand': {'id': 67890, 'finalUrlSuffix': ''}
}]


Results in errors like:

Request made: Service: "AdService" Method: "mutate" URL: "https://adwords.google.com/api/adwords/cm/v201809/AdService"
WARNING  Error summary: {'faultMessage': '[AdError.INVALID_AD_TYPE @ operations[0].operand.id]', 'requestId': '0005a06eed20386e0a3f3d06510b370d', 'serviceName': 'AdService', 'methodName': 'mutate', 'operations': '1', 'responseTime': '302'}



I'm using the googleads Python library (https://github.com/googleads/googleads-python-lib), and I'm able to run mutate operations against other services (e.g. CampaignService) using a similar syntax.

What's the cause of the AdError.INVALID_AD_TYPE error? The ad is of type RESPONSIVE_SEARCH_AD which should be mutable according to https://developers.google.com/adwords/api/docs/guides/ad-features#ad_types_that_support_mutability

Appreciate any help :), thanks.

Joey Robert, Software Engineering Team Lead @ NextRoll

Google Ads API Forum Advisor Prod

unread,
Mar 9, 2020, 5:14:07 PM3/9/20
to adwor...@googlegroups.com

Hello,

Thank you for reaching out. Could I please ask you to share the complete request and response logs along with the client customer id for me to take a look into this further and assist you better?

P.S. Please use Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team



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