I'm getting the following error when batch uploading new campaigns:
errorType=BiddingErrors
trigger=TARGET_CPA
errorString=BiddingErrors.CONVERSION_TRACKING_NOT_ENABLED
fieldPath=operations[128].operand.biddingStrategyConfiguration.biddingStrategyType
reason=CONVERSION_TRACKING_NOT_ENABLED
I'de like to set a CPA bid when I upload the scripts instead of adding
logic to change our bidding strategy later.
How do I enable conversion tracking on new campaigns uploaded through the
API?
Here is my code:
def BuildCampaignOperations(batch_job_helper, budget_operations, campaigns):
budget_id = budget_operations[0]['operand']['budgetId']
campaign_operations = [
{
'xsi_type': 'CampaignOperation',
'operand': {
'name': i[0],
'status': i[2],
'id': batch_job_helper.GetId(),
'advertisingChannelType': 'SEARCH',
'budget': {
'budgetId': budget_id
},
'networkSetting': {
'targetGoogleSearch': True,
'targetSearchNetwork': True,
'targetContentNetwork': False,
'targetPartnerSearchNetwork': False,
},
'biddingStrategyConfiguration': {
'biddingStrategyType': 'MANUAL_CPC'
}
#'biddingStrategyConfiguration': {
# 'biddingStrategyType': 'TARGET_CPA',
# 'biddingScheme': {
# 'xsi_type': 'TargetCpaBiddingScheme',
# 'targetCpa': {
# 'microAmount': 1000000,
# }
# }
#}
},
'operator': 'ADD'
}
for i in campaigns]
return campaign_operations
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/ae4e59ba-0df4-467f-8e7f-d34d6765ee02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.