Issue retrieving Campaign Budget amount with CampaignService (v201406)

22 views
Skip to first unread message

Gaëtan Gautron

unread,
Sep 1, 2014, 4:23:51 AM9/1/14
to adwor...@googlegroups.com
Hi, I try to retrieve some parameters from published campaigns using PHP api v201406. In CampaignService documentation is written in Campaign > Budget section "Amount of budget in the local currency for the account. This field can be selected using the value "Amount"".  
When I add "Amount" in the selector then this key just disappear from the result. E.g:

...
[startDate] =>
            [endDate] =>
            [budget] => Array
                (
                    [budgetId] =>
                    [name] =>
                    [period] => DAILY
                    [deliveryMethod] => STANDARD
                    [referenceCount] =>
                    [isExplicitlyShared] =>
                    [status] =>
                )

            [conversionOptimizerEligibility] => Array...

If I don't add "Amount" in the selector this key appears but with empty content (normal behaviour when a parameter is not requested). E.g:

...
[startDate] =>
            [endDate] =>
            [budget] => Array
                (
                    [budgetId] =>
                    [name] =>
                    [period] => DAILY
                    [amount] =>
                    [deliveryMethod] => STANDARD
                    [referenceCount] =>
                    [isExplicitlyShared] =>
                    [status] =>
                )

            [conversionOptimizerEligibility] => Array...

Sounds like a bug ?

Thanks for your help,
Gaëtan

Ray Tsang (AdWords API Team)

unread,
Sep 2, 2014, 4:45:28 PM9/2/14
to adwor...@googlegroups.com
Gaetan,

Please send me the full request/response SOAP XML in private.

Thanks,

Ray

Gaëtan Gautron

unread,
Sep 3, 2014, 10:23:09 AM9/3/14
to adwor...@googlegroups.com
OK my bad: amount is in the SOAP response but in a format I did not expect. Sorry for the inconvenience.

Gaëtan
Reply all
Reply to author
Forward
0 new messages