trying to repeat the example from github 
https://github.com/googleads/google-ads-php/blob/master/examples/CampaignManagement/AddCampaignBidModifier.php
 
$campaignBidModifier = new CampaignBidModifier([
'campaign' => ResourceNames::forCampaign($customer_id, $campaign_id) ,
'bid_modifier' => '0.2',
'interaction_type' => new InteractionTypeInfo(
['type' => InteractionTypeEnum\InteractionType::CALLS]
)
/]);
/$campaignBidModifierOperation = new CampaignBidModifierOperation();
$campaignBidModifierOperation->setCreate($campaignBidModifier);

$campaignBidModifierService = 
$this->googleAdsClient->getCampaignBidModifierServiceClient();
$response = $campaignBidModifierService->mutateCampaignBidModifiers(
$customer_id,
[$campaignBidModifierOperation]
);

  Gives an error message: 
*Fatal error*: Uncaught Google\ApiCore\ApiException: { "message": "Request 
contains an invalid argument.", "code": 3, "status": "INVALID_ARGUMENT", 
"details": [ { "@type": 
"google.ads.googleads.v6.errors.googleadsfailure-bin", "data": "<Unknown 
Binary Data>" }, { "@type": "grpc-status-details-bin", "data": "<Unknown 
Binary Data>" }, { "@type": "request-id", "data": "AERI1ncjWWMKFKxUqRA2YQ" 
} ] }  

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/15dd5412-b549-4ad9-b333-713e0c5e9805n%40googlegroups.com.

Reply via email to