About Viewable CPM Pay for

55 views
Skip to first unread message

饒義忠

unread,
Dec 17, 2018, 1:27:33 PM12/17/18
to AdWords API and Google Ads API Forum
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 大大

Peter Oliquino (AdWords API Team)

unread,
Dec 17, 2018, 4:31:01 PM12/17/18
to AdWords API and Google Ads API Forum
Hi,

You can not set the value for 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. Kindly reply via the Reply privately to author.

Best regards,
Peter
AdWords API Team

饒義忠

unread,
Dec 18, 2018, 9:59:16 AM12/18/18
to AdWords API and Google Ads API Forum
Thank Peter, The php code is try to solve my problem. But it doesn't solved.

螢幕快照 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秒寫道:

Peter Oliquino (AdWords API Team)

unread,
Dec 18, 2018, 2:10:15 PM12/18/18
to AdWords API and Google Ads API Forum
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 version instead.


Best regards,
Peter
AdWords API Team

soap+logs.txt

饒義忠

unread,
Dec 19, 2018, 8:11:36 PM12/19/18
to AdWords API and Google Ads API Forum
I think I know the issue.
Thank for your answer Peter.


Peter Oliquino (AdWords API Team)於 2018年12月19日星期三 UTC+8上午3時10分15秒寫道:
Reply all
Reply to author
Forward
0 new messages