Hello there,
could you tell me how can I send campaign language by API?

I'm able to create campaign by API but end date is incorrect. When I send 
end_date parameter as 20200810 in my Ad Manager I can see end date as 
2020-08-11 - could you tell me why?

$startDate = new StringValue(
['value' => $campaign->getStartDate()->format('Ymd')] // 20200809
);
$endDate = new StringValue(
['value' => $campaign->getEndDate()->format('Ymd')] // 20200810
);

$googleAdsCampaign = new GoogleCampaign([
'resource_name' => $campaign->getId()->getResourceName(),
'name' => new StringValue(['value' => $campaign->getCampaignName()]),
'status' => $campaign->getStatus(),
'manual_cpc' => new ManualCpc(),
'campaign_budget' => $campaign->getBudget()->getId()->getResourceName(),
'network_settings' => $networkSettings,
'start_date' => $startDate,
'end_date' => $endDate
]);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/caca3cea-5776-42ba-9dbe-508e08f2c230n%40googlegroups.com.

Reply via email to