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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/df56eda8-9b21-4198-b289-569a92d6099c%40googlegroups.com.
  • AdError.INVALID_AD_... 'Joey Robert' via AdWords API and Google Ads API Forum

Reply via email to