Create New Campaigns with Target CPA Bidding?

374 views
Skip to first unread message

Nellle Rickchards

unread,
Sep 6, 2018, 4:31:55 PM9/6/18
to AdWords API and Google Ads API Forum

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




Nellle Rickchards

unread,
Sep 6, 2018, 4:36:31 PM9/6/18
to AdWords API and Google Ads API Forum
Edit: Is it possible that I can't use CPA Bidding because I'm currently using an Adwords Test Account?

Peter Oliquino (AdWords API Team)

unread,
Sep 7, 2018, 2:01:27 AM9/7/18
to AdWords API and Google Ads API Forum
Hi Nellie,

You should be able to setup bidding on your test account campaigns. For Target CPA, you will first need to meet its eligibility requirements and setup a conversion tracking on your test account. Let me know if this helps.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages