Hello everybody,
We are trying to pause/enable our AdWords campaigns with regards to the
weather conditions.
In order to achieve that we retrieve our campaigns using the
SelectorBuilder:
// Create selector.
SelectorBuilder builder = new SelectorBuilder();
Selector selector = builder
.fields(CampaignField.Id, CampaignField.Name)
.orderAscBy(CampaignField.Name)
//.offset(offset)
//.limit(PAGE_SIZE)
.build();
and then look in all of our campaigns for the one we want to pause/enable:
CampaignPage page = null;
do {
// Get all campaigns.
page = campaignService.get(selector);
// Display campaigns.
if (page.getEntries() != null) {
for (com.google.api.ads.adwords.axis.v201702.cm.Campaign campaign :
page.getEntries())
{
if ( campaign.getId().longValue() ==
Long.parseLong(campaign_.getID_2()))
{
if ( activate ) {
campaign.setStatus(CampaignStatus.ENABLED);
}
It works but the problem is: the retrieved campaigns do NOT include the
Youtube ones.
Can someone help us with that?
Truthfully yours,
Philippe
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/36733c7c-12b9-4cd1-96b5-00832fae7f28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.