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 [email protected] wrote:

I'm using PHP library for AdWords API
<https://github.com/googleads/googleads-php-lib> 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]

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/1ajp220000000001gfaq5c001nd4aiw6cmj2chl70o30c1g68qj8c9j%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Get max... arsel . muginov
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to