Hello!
I need to turn on custom bids for placements.
I'm trying to mutate Adgroup. setting contentBidTypeCriterionGroup to 'PLACEMENT'
as it is recommended here
https://groups.google.com/forum/#!topic/adwords-api/W1Kl2fmKbqI
Here is my code
$adGroup = new AdGroup();
-- I need to turn on custom bids for placements.
I'm trying to mutate Adgroup. setting contentBidTypeCriterionGroup to 'PLACEMENT'
as it is recommended here
https://groups.google.com/forum/#!topic/adwords-api/W1Kl2fmKbqI
Here is my code
$adGroupId = '...adgroup code...';
$adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION);
$adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION);
$operations = array();
$adGroup = new AdGroup();
$adGroup->id = $adGroupId;
$adGroup->contentBidTypeCriterionGroup = 'PLACEMENT';
$operation = new AdGroupOperation();
$operation->operand = $adGroup;
$operation->operator = 'SET';
$operations[] = $operation;
$result = $adGroupService->mutate($operations);
And when i run this code, param doesn't change.
It simply doesn't send this change in SOAP request.
API v201603
What am I doing wrong?
$result = $adGroupService->mutate($operations);
And when i run this code, param doesn't change.
It simply doesn't send this change in SOAP request.
API v201603
What am I doing wrong?
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201603">
<requestId>....</requestId>
<serviceName>AdGroupService</serviceName>
<methodName>mutate</methodName>
<operations>1</operations>
<responseTime>70</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201603">
<rval>
<ListReturnValue.Type>AdGroupReturnValue</ListReturnValue.Type>
<value>
<id>30649754764</id>
<campaignId>603388708</campaignId>
<campaignName>Russia - CPM Test v1.10</campaignName>
<name>hotweb.bid 200x200</name>
<status>ENABLED</status>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TargetingSetting">
<Setting.Type>TargetingSetting</Setting.Type>
<details>
<criterionTypeGroup>PLACEMENT</criterionTypeGroup>
<targetAll>true</targetAll>
</details>
</settings>
<biddingStrategyConfiguration>
<biddingStrategyType>MANUAL_CPM</biddingStrategyType>
<biddingStrategySource>CAMPAIGN</biddingStrategySource>
<biddingScheme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ManualCpmBiddingScheme">
<BiddingScheme.Type>ManualCpmBiddingScheme</BiddingScheme.Type>
</biddingScheme>
<bids xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CpcBid">
<Bids.Type>CpcBid</Bids.Type>
<bid>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>10000</microAmount>
</bid>
<cpcBidSource>ADGROUP</cpcBidSource>
</bids>
<bids xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CpmBid">
<Bids.Type>CpmBid</Bids.Type>
<bid>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>15000000</microAmount>
</bid>
<cpmBidSource>ADGROUP</cpmBidSource>
</bids>
</biddingStrategyConfiguration>
</value>
</rval>
</mutateResponse>
</soap:Body>
</soap:Envelope>
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
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/36a9721c-91c0-49aa-8267-fa7e0d525d5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment