RE: Send campaign language by API

2020-08-06 Thread Google Ads API Forum Advisor Prod
Hi Radek,

Thank you for reaching out to us. I see that you're encountering an issue with 
the end date of your created campaign. Could you provide us with the full 
request and response log for where you can see this discrepancy, and provide us 
with your customer ID for where this campaign exists so that I may further 
investigate this issue? You can reply using "reply privately to the author".

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5004Q23I6cU:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/hgfx40QENR3700ipR88bCuTJmMmf8AhhOcRg%40sfdc.net.


Send campaign language by API

2020-08-06 Thread Radek Karkut
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.