Hi,

I'm trying to debug a process that involves setting campaign dates. Using 
the PHP Client library at this time 

$campaign = new Campaign([
'resource_name' => ResourceNames::forCampaign($customerId, $campaignId),
'end_date' => $campaignDates['endDate'] // value is set to 2022-10-31
]);

$campaignOperation = new CampaignOperation();
$campaignOperation->setUpdate($campaign);
$campaignOperation->setUpdateMask(FieldMasks::allSetFieldsOf($campaign));

$campaignServiceClient = $googleAdsClient->getCampaignServiceClient();
$response = $campaignServiceClient->mutateCampaigns(
$customerId,
[$campaignOperation]
);

When I run this it doesn't seem to report any issues, but the campaign in 
Google Ads proper isn't reflecting my changes - I found some code examples 
where the date is passed in as YYYYMMDD and that didn't seem to do it, 
either. 

Is there something else I should be trying? When I set budgets via an 
earlier step it seems okay.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/2a340acd-7bc0-40d2-8b73-0c1c1f672bfcn%40googlegroups.com.
  • V1... Ryan Semple
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to