REST interface Grouped operations

55 views
Skip to first unread message

Turkmeks DEV

unread,
Dec 22, 2022, 2:30:17 AM12/22/22
to Google Ads API and AdWords API Forum
hello when ı used grouped opertions give me error like this how can ı solved this problem

"errorCode": {
"adGroupAdError": "CANNOT_CREATE_DEPRECATED_ADS"
},
"message": "An ad of this type is deprecated and cannot be created. Only deletions are permitted.",
"requestId": "fYG6PtjX27Gcyk-N3rqVYg"

 my code below like this

{
            'mutateOperations': [
              {
                'campaignBudgetOperation': {
                  'create': {
                    'resourceName': 'customers/${CUSTOMER_ID}/campaignBudgets/-1',
                    'name': 'My Campaign Budget #${RANDOM}',
                    'deliveryMethod': 'STANDARD',
                    'amountMicros': 500000,
                    'explicitlyShared': false
                  }
                }
              },
              {
                'campaignOperation': {
                  'create': {
                    'resourceName': 'customers/${CUSTOMER_ID}/campaigns/-2',
                    'status': 'PAUSED',
                    'advertisingChannelType': 'SEARCH',
                    'geoTargetTypeSetting': {
                      'positiveGeoTargetType': 'PRESENCE_OR_INTEREST',
                      'negativeGeoTargetType': 'PRESENCE_OR_INTEREST'
                    },
                    'name': 'My Search campaign #${RANDOM}',
                    'campaignBudget': 'customers/${CUSTOMER_ID}/campaignBudgets/-1',
                    'targetSpend': {}
                  }
                }
              },
              {
                'adGroupOperation': {
                  'create': {
                    'resourceName': 'customers/${CUSTOMER_ID}/adGroups/-3',
                    'campaign': 'customers/${CUSTOMER_ID}/campaigns/-2',
                    'name': 'My ad group #${RANDOM}',
                    'status': 'PAUSED',
                    'type': 'SEARCH_STANDARD'
                  }
                }
              },
              {
                'adGroupAdOperation': {
                  'create': {
                    'adGroup': 'customers/${CUSTOMER_ID}/adGroups/-3',
                    'status': 'PAUSED',
                    'ad': {
                      'expandedTextAd': {
                        'headlinePart1': 'An example headline1',
                        'headlinePart2': 'An example headline2',
                        'description': 'An example description'
                      },
                      'finalUrls': ['https://www.example.com']
                    }
                  }
                }
              }
            ]
            }

Google Ads API Forum Advisor

unread,
Dec 22, 2022, 4:21:33 AM12/22/22
to devtu...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching us out. I am Sherwin from Google Ads API support team. I hope that you are doing well today.

Moving forward to your concern, the reason why you got that error message is because, the expanded_text_ad is deprecated last June 30, 2022. You may check this blog post for more information. Furthermore, we encourage all the users to use Responsive Search Ads (RSA).
 
Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


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