Batch processing: TEMP_ID_ENTITY_HAD_ERRORS and INVALID_ID errors

48 visningar
Hoppa till det första olästa meddelandet

angie...@simplisafe.com

oläst,
22 feb. 2018 17:26:092018-02-22
till AdWords API Forum
Hi,

I tried to update new adgroups in keywords using batch processing, but I got these error:

Operation 531 - FAILURE:
errorType=NewEntityCreationError
trigger=TempAdGroupId: 227
errorString=NewEntityCreationError.TEMP_ID_ENTITY_HAD_ERRORS
fieldPath=operations[531].operand.adGroupId
reason=TEMP_ID_ENTITY_HAD_ERRORS

Operation 611 - FAILURE:
errorType=EntityNotFound
trigger=AdGroupId: 0
errorString=EntityNotFound.INVALID_ID
fieldPath=operations[611].operand.adGroupId
reason=INVALID_ID

I'm wondering what the issues are? I used to do this sequentially (not using batch processing) and I didn't need to specify and adgroup ID when adding new ad group. I think you need to do so for batch processing (to be able to put the right keyword in the right adgroup ID) so here's my code for updating ad group: 

def BuildAdGroupOperations(client, batch_job_helper, adgroup_spreadsheet):
micro_multiplier=1000000
ad_group_service = client.GetService('AdGroupService', version='v201705')
id=0

# Construct operations and add ad groups.
adgroup_operations = [{
'operator': 'ADD',
'xsi_type': 'AdGroupOperation',
'operand': {
'campaignId': adgroup_spreadsheet.loc[i,'Campaign ID'],
'id': batch_job_helper.GetId(),
'name': adgroup_spreadsheet.loc[i, 'Ad group'],
'status': 'ENABLED',
'biddingStrategyConfiguration': {
'bids': [
{
'xsi_type': 'CpcBid',
'bid': {
'microAmount': int(adgroup_spreadsheet.loc[i, 'Max CPC']*micro_multiplier),
},
}
]
},

'urlCustomParameters': {
'parameters': [
# Since your tracking URL has two custom parameters, provide
# their values too. This can be provided at campaign, ad group,
# ad, criterion, or feed item levels.
{
'key': 'term',
'value': adgroup_spreadsheet.loc[i, 'Custom Parameter']
}
]
}
}
}
for i in range (1, adgroup_spreadsheet.shape[0])]
return adgroup_operations

Is there a better way to assign adgroup ID (or to let it automatically assign and get the ID to load keywords in)? 

One more question is how to print out which ad group/keyword is having an error? Thanks!

Peter Oliquino

oläst,
23 feb. 2018 01:26:332018-02-23
till AdWords API Forum
Hi Angie,

The NewEntityCreationError.TEMP_ID_ENTITY_HAD_ERRORS that you encountered indicates that a validation has failed for the parent entity and so validation for the child entity would no longer be done. As for the EntityNotFound.INVALID_ID error, it would appear that you might be referencing an AdGroupId which does not belong to your account or that the said AdGoupId has already been REMOVED.

This being said, you may review if the said AdGroupId is still existing within your account by using the GetAdGroups example. Additionally, you may also review the steps when processing batch jobs using this guide to avoid further errors. Let me know if this helps or if the issue persists so I can further investigate.

As for checking/retrieving the errors, you can retrieve its information using the processingErrors field. I hope this helps.

Best regards,
Peter
AdWords API Team

straight55b

oläst,
24 feb. 2018 19:02:272018-02-24
till AdWords API Forum
they will hacking into many gmail account 3474438471
Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden