RE: Get maximum CPC for campaign with target spend bidding scheme

20 views
Skip to first unread message

googleadsapi...@google.com

unread,
Mar 1, 2019, 1:10:40 PM3/1/19
to AdWords API and Google Ads API Forum
Hi,

It seems your query is correct. However, to further investigate this, could you provide the complete SOAP request and response logs when you run this operation? Please reply via Reply privately to author.

Thanks and regards,
Luis
AdWords API Team


On 02/28/19 21:55:12 arsel....@gmail.com wrote:
I'm using PHP library for AdWords API v201809 and trying to get max CPC for a campaign with target spend bidding scheme, but only biddingStrategyType is returned, although I didn't ask for that field.

The code:

$query = (new ServiceQueryBuilder())
   ->select(['BudgetId', 'BiddingStrategyId', 'BiddingStrategyName', 'TargetSpendBidCeiling', 'TargetSpendSpendTarget'])
   ->where('Id')
   ->equalTo($campaign_id)
   ->build();

$page = $campaign_service->query((string) $query);
echo '<pre>' . print_r($page->getEntries()[0], true) . '</pre>';

The result is (ids are manually changed):

Google\AdsApi\AdWords\v201809\cm\Campaign Object
(
   
[id:protected] => XXXXXXXXX
   
[campaignGroupId:protected] =>
   
[name:protected] =>
   
[status:protected] =>
   
[servingStatus:protected] =>
   
[startDate:protected] =>
   
[endDate:protected] =>
   
[budget:protected] => Google\AdsApi\AdWords\v201809\cm\Budget Object
       
(
           
[budgetId:protected] => XXXXXXXXX
           
[name:protected] =>
           
[amount:protected] =>
           
[deliveryMethod:protected] =>
           
[referenceCount:protected] =>
           
[isExplicitlyShared:protected] =>
           
[status:protected] =>
       
)

   
[conversionOptimizerEligibility:protected] =>
   
[adServingOptimizationStatus:protected] =>
   
[frequencyCap:protected] =>
   
[settings:protected] =>
   
[advertisingChannelType:protected] =>
   
[advertisingChannelSubType:protected] =>
   
[networkSetting:protected] =>
   
[labels:protected] =>
   
[biddingStrategyConfiguration:protected] => Google\AdsApi\AdWords\v201809\cm\BiddingStrategyConfiguration Object
       
(
           
[biddingStrategyId:protected] =>
           
[biddingStrategyName:protected] =>
           
[biddingStrategyType:protected] => TARGET_SPEND
           
[biddingStrategySource:protected] =>
           
[biddingScheme:protected] =>
           
[bids:protected] =>
           
[targetRoasOverride:protected] =>
       
)

   
[campaignTrialType:protected] =>
   
[baseCampaignId:protected] =>
   
[forwardCompatibilityMap:protected]
Reply all
Reply to author
Forward
0 new messages