Hi,

This can be achieved by only setting the BiddingStrategryType to MANUAL_CPM 
since doing this would make ViewableCpmEnabled's value true. This said, 
kindly try the code you've provided in your first post but excluding this 
part - $biddingScheme->setViewableCpmEnabled(true); (you may refer to the 
attached soap logs which worked on my end for reference). If this did not 
work, kindly provide your clientCustomerId and the complete SOAP request 
and response logs generated after API call. Kindly reply via the *Reply 
privately to author*. 

Also, since you are using the 201802 version of the AdWords API, I would 
recommend that you use the v201809 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogleads-php-lib%2Ftree%2Fmaster%2Fexamples%2FAdWords%2Fv201809&sa=D&sntz=1&usg=AFQjCNGv5HUqvx7Tm4fFYUbJyOEUdq60lQ>
 version 
instead.

Best regards,
Peter
AdWords API Team

On Tuesday, December 18, 2018 at 10:59:16 PM UTC+8, 饒義忠 wrote:
>
> Thank Peter, The php code is try to solve my problem. But it doesn't 
> solved.
>
> [image: 螢幕快照 2018-12-18 上午10.04.29.png]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> I have no idea to set "What do you want to focus on?" column to Viewable 
> impressions via php adwords api.
> Default is clicks.
> Can this field be set via php adwords api?
>
> Peter Oliquino (AdWords API Team)於 2018年12月18日星期二 UTC+8上午5時31分01秒寫道:
>>
>> Hi,
>>
>> You can not set the value for viewableCpmEnabled 
>> <https://developers.google.com/adwords/api/docs/reference/v201802/AdGroupCriterionService.ManualCpmBiddingScheme#viewablecpmenabled>
>>  field 
>> since this field is read-only as indicated in the link. Its value should 
>> default to true after setting a campaign's BiddingStrategyType to 
>> MANUAL_CPM. Could you confirm if it didn't default to true after setting 
>> its BiddingStrategyType to MANUAL_CPM during CampaignService add operation?
>>
>> If so, kindly provide the complete SOAP request and response logs 
>> generated after making the API request. In case you don't know how to 
>> enable logging in PHP client library, you may refer to this guide 
>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogleads-php-lib%23logging&sa=D&sntz=1&usg=AFQjCNHbvvNyz9DRDsQKZgVDM-015bzsYw>.
>>  
>> Kindly reply via the *Reply privately to author*.
>>
>> Best regards,
>> Peter
>> AdWords API Team
>>
>> On Tuesday, December 18, 2018 at 2:27:33 AM UTC+8, 饒義忠 wrote:
>>>
>>> [image: default pay for.png]
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Adwords api version v201802
>>>
>>> I want to set Viewable CPM pay for to Viewable Impressions
>>> I don't know why I post to google api always set pay for to clicks.
>>> I have tried many ways.
>>>
>>>  
>>>
>>>> // Set bidding strategy (required).
>>> $biddingStrategyConfiguration = new BiddingStrategyConfiguration();
>>> $biddingStrategyConfiguration->setBiddingStrategyType(MANUAL_CPM);
>>>
>>> // You can optionally provide a bidding scheme in place of the type.
>>> $biddingScheme = new ManualCpmBiddingScheme();
>>> $biddingScheme->setViewableCpmEnabled(true);
>>> $biddingStrategyConfiguration->setBiddingScheme($biddingScheme);
>>>
>>> // Set bidding strategy (required).
>>>
>>> $campaign->setBiddingStrategyConfiguration($biddingStrategyConfiguration);
>>>
>>> Above code not working.
>>> Any idea? thanks 大大
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/ff2c8359-42c6-4930-9c63-e29311784b08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <soapenv:Header>
        <ns1:RequestHeader 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"; 
soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>XXXXXX</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>unknown (AwApi-Java, AdWords-Axis/4.1.0, 
Common-Java/4.1.0, Axis/1.4, Java/1.8.0_161-google-v7, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <name>Interplanetary Cruise #1545159118705</name>
                    <amount>
                        <microAmount>50000000</microAmount>
                    </amount>
                    <deliveryMethod>STANDARD</deliveryMethod>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

[19 Dec 2018 02:52:00,931-soapXmlLogger:DEBUG:main] SOAP response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
    <soap:Header>
        <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
            <requestId>00057d50647e55900a625d5a0d00cd94</requestId>
            <serviceName>BudgetService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>277</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <mutateResponse 
xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
            <rval>
                <ListReturnValue.Type>BudgetReturnValue</ListReturnValue.Type>
                <value>
                    <budgetId>XXXXXX</budgetId>
                    <name>Interplanetary Cruise #1545159118705</name>
                    <amount>
                        <ComparableValue.Type>Money</ComparableValue.Type>
                        <microAmount>50000000</microAmount>
                    </amount>
                    <deliveryMethod>STANDARD</deliveryMethod>
                    <isExplicitlyShared>true</isExplicitlyShared>
                    <status>ENABLED</status>
                </value>
            </rval>
        </mutateResponse>
    </soap:Body>
</soap:Envelope>

[19 Dec 2018 02:52:02,932-requestInfoLogger:INFO:main] Request made: Service: 
CampaignService Method: mutate clientCustomerId: 822-494-5121 URL: 
https://adwords.google.com/api/adwords/cm/v201809/CampaignService Request ID: 
00057d50649d47700a620a04610b181d ResponseTime(ms): 279 OperationsCount: 1 
IsFault: false FaultMessage: null
[19 Dec 2018 02:52:02,945-soapXmlLogger:DEBUG:main] SOAP request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <soapenv:Header>
        <ns1:RequestHeader 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"; 
soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>822-494-5121</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>unknown (AwApi-Java, AdWords-Axis/4.1.0, 
Common-Java/4.1.0, Axis/1.4, Java/1.8.0_161-google-v7, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <name>Interplanetary Cruise #1545159120963</name>
                    <status>PAUSED</status>
                    <budget>
                        <budgetId>1711681411</budgetId>
                    </budget>
                    <advertisingChannelType>DISPLAY</advertisingChannelType>
                    <biddingStrategyConfiguration>
                        <biddingStrategyType>MANUAL_CPM</biddingStrategyType>
                        <biddingScheme 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809"; 
xsi:type="ns2:ManualCpmBiddingScheme"/>
                    </biddingStrategyConfiguration>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

[19 Dec 2018 02:52:02,945-soapXmlLogger:DEBUG:main] SOAP response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
    <soap:Header>
        <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
            <requestId>00057d50649d47700a620a04610b181d</requestId>
            <serviceName>CampaignService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>279</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <mutateResponse 
xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
            <rval>
                <ListReturnValue.Type>CampaignReturnValue</ListReturnValue.Type>
                <value>
                    <id>XXXXXX</id>
                    <name>Interplanetary Cruise #1545159120963</name>
                    <status>PAUSED</status>
                    <servingStatus>SUSPENDED</servingStatus>
                    <startDate>20181219</startDate>
                    <endDate>20371230</endDate>
                    <budget>
                        <budgetId>XXXXXX</budgetId>
                        <name>Interplanetary Cruise #1545159118705</name>
                        <amount>
                            <ComparableValue.Type>Money</ComparableValue.Type>
                            <microAmount>50000000</microAmount>
                        </amount>
                        <deliveryMethod>STANDARD</deliveryMethod>
                        <isExplicitlyShared>true</isExplicitlyShared>
                        <status>ENABLED</status>
                    </budget>
                    <conversionOptimizerEligibility>
                        <eligible>false</eligible>
                        
<rejectionReasons>CONVERSION_TRACKING_NOT_ENABLED</rejectionReasons>
                    </conversionOptimizerEligibility>
                    
<adServingOptimizationStatus>OPTIMIZE</adServingOptimizationStatus>
                    <settings 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="GeoTargetTypeSetting">
                        <Setting.Type>GeoTargetTypeSetting</Setting.Type>
                        <positiveGeoTargetType>DONT_CARE</positiveGeoTargetType>
                        <negativeGeoTargetType>DONT_CARE</negativeGeoTargetType>
                    </settings>
                    <advertisingChannelType>DISPLAY</advertisingChannelType>
                    <networkSetting>
                        <targetGoogleSearch>false</targetGoogleSearch>
                        <targetSearchNetwork>false</targetSearchNetwork>
                        <targetContentNetwork>true</targetContentNetwork>
                        
<targetPartnerSearchNetwork>false</targetPartnerSearchNetwork>
                    </networkSetting>
                    <biddingStrategyConfiguration>
                        <biddingStrategyType>MANUAL_CPM</biddingStrategyType>
                        <biddingScheme 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="ManualCpmBiddingScheme">
                            
<BiddingScheme.Type>ManualCpmBiddingScheme</BiddingScheme.Type>
                        </biddingScheme>
                    </biddingStrategyConfiguration>
                    <campaignTrialType>BASE</campaignTrialType>
                    <baseCampaignId>XXXXXX</baseCampaignId>
                </value>
            </rval>
        </mutateResponse>
    </soap:Body>
</soap:Envelope>

  • ... 饒義忠
    • ... 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... 饒義忠
        • ... 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
          • ... 饒義忠

Reply via email to