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']
}
}
}
}
]
}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4b94a4c3-1e5d-4786-a7b3-115cb6a05a09n%40googlegroups.com.