how to update TARGET_CPA AdDroup

22 views
Skip to first unread message

Gigel Chiazna

unread,
Aug 4, 2016, 10:26:16 AM8/4/16
to AdWords API Forum
It used to work some versions ago, but lately I have problem setting CPA for a TARGET_CPA bidding strategy adgroup. The code I am using has no effect.
Here it is:

    $adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION);
    $bid = new CpaBid();
    $bid->bid = new Money($cpa_new);

    $adGroup = new AdGroup();
    $adGroup->id = 1234567890;
    $biddingStrategyConfiguration = new BiddingStrategyConfiguration();
    $biddingStrategyConfiguration->bids[] = $bid;
    $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration;

    $operation = new AdGroupOperation();
    $operation->operand = new Money(2.75 * AdWordsConstants::MICROS_PER_DOLLAR);;
    $operation->operator = 'SET';
    $operations = array($operation);
    $adGroupService->mutate($operations);

Please advice,
Gigel

Anthony Madrigal

unread,
Aug 4, 2016, 2:21:24 PM8/4/16
to AdWords API Forum
Hi Gigel,

Could you please provide me with your SOAP request and response for this operation via reply privately to author?

You can enable SOAP logs by following these instructions.

Thanks,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages