Hi,

It looks like you are setting the *id* attribute of your 
*BiddingStrategyConfiguration*, but the field name for the ID is actually 
biddingStrategyId 
<https://developers.google.com/adwords/api/docs/reference/v201607/CampaignService.BiddingStrategyConfiguration.html#biddingStrategyId>.
 
Please try changing the field name and let me know if you still run into 
errors.

Thanks,
Josh, AdWords API Team

On Friday, August 19, 2016 at 9:06:21 AM UTC-4, Sylvain Beauregard wrote:
>
> Hi Josh!
>
> I basically have the same problem.  I use v201607 of the PHP library.
>
> I begin by defining a SharedBiddingStrategy, and based on the returned 
> object, it's successful:
>
> BiddingStrategyReturnValue Object
> (
>     [value] => Array
>         (
>             [0] => SharedBiddingStrategy Object
>                 (
>                     [biddingScheme] => PageOnePromotedBiddingScheme Object
>                         (
>                             [strategyGoal] => PAGE_ONE_PROMOTED
>                             [bidCeiling] => Money Object
>                                 (
>                                     [microAmount] => 4000000
>                                     [ComparableValueType] => Money
>                                     [_parameterMap:ComparableValue:private] 
> => Array
>                                         (
>                                             [ComparableValue.Type] => 
> ComparableValueType
>                                         )
>
>                                 )
>
>                             [bidModifier] => 
>                             [bidChangesForRaisesOnly] => 
>                             [raiseBidWhenBudgetConstrained] => 
>                             [raiseBidWhenLowQualityScore] => 
>                             [BiddingSchemeType] => 
> PageOnePromotedBiddingScheme
>                             [_parameterMap:BiddingScheme:private] => Array
>                                 (
>                                     [BiddingScheme.Type] => BiddingSchemeType
>                                 )
>
>                         )
>
>                     [id] => 1419094668
>                     [name] => _PO_Used_1298089587
>                     [status] => ENABLED
>                     [type] => PAGE_ONE_PROMOTED
>                     [systemStatus] => 
>                 )
>
>         )
>
>     [ListReturnValueType] => BiddingStrategyReturnValue
>     [_parameterMap:ListReturnValue:private] => Array
>         (
>             [ListReturnValue.Type] => ListReturnValueType
>         )
>
> )
>
> Then I use it in the parameters for my campaign, here's my Campaign object:
>
> Campaign Object
> (
>     [id] => 
>     [name] => ___POP_GMC Sierra 2500HD 2013| XM351 - EN
>     [status] => ENABLED
>     [servingStatus] => SERVING
>     [startDate] => 20160819
>     [endDate] => 
>     [budget] => Budget Object
>         (
>             [budgetId] => 246661707
>             [name] => 
>             [amount] => 
>             [deliveryMethod] => 
>             [referenceCount] => 
>             [isExplicitlyShared] => 
>             [status] => 
>         )
>
>     [conversionOptimizerEligibility] => 
>     [adServingOptimizationStatus] => 
>     [frequencyCap] => 
>     [settings] => 
>     [advertisingChannelType] => SEARCH
>     [advertisingChannelSubType] => 
>     [networkSetting] => NetworkSetting Object
>         (
>             [targetGoogleSearch] => 1
>             [targetSearchNetwork] => 1
>             [targetContentNetwork] => 
>             [targetPartnerSearchNetwork] => 
>         )
>
>     [labels] => 
>     [biddingStrategyConfiguration] => SharedBiddingStrategy Object
>         (
>             [biddingScheme] => 
>             [id] => 1419094668
>             [name] => 
>             [status] => 
>             [type] => 
>             [systemStatus] => 
>             [biddingStrategyType] => PAGE_ONE_PROMOTED
>         )
>
>     [campaignTrialType] => 
>     [baseCampaignId] => 
>     [forwardCompatibilityMap] => 
>     [trackingUrlTemplate] => 
>     [urlCustomParameters] => 
>     [vanityPharma] => 
> )
> And I get the errors:
>
> [RequiredError.REQUIRED @ operations[0].operand.advertisingChannelType, 
> BiddingErrors.INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE @ 
> operations[1].operand.biddingStrategyConfiguration.biddingStrategyType; 
> trigger:'PAGE_ONE_PROMOTED']
>
> The advertisngChannelType error just popped up, didn't have it in my previous 
> tests.  I'll try to fix that, but that's a different issue.
>
> As you can see, it generates the same INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE 
> error.  It seems to say the trigger is the fact I re-assign the 
> biddingStrategyType to 'PAGE_ONE_PROMOTED', but if I don't, I get another 
> error saying that parameter is required.
>
> It's not anonymous, the bidding strategy exists, it's a SHARED one, 
>
> What do I miss?
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/e9b28221-669b-4502-9cd8-bc97fd13f7bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to