Re: Move adgroup to another campaign

2016-02-03 Thread Anthony Madrigal
Hi Jan,

As far as I know, it is not possible to move an adgroup to a different 
campaign via AdWords API. As a workaround, you can copy the adgroup to a 
new campaign then delete the old adgroup in the UI.

Regards,
Anthony
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/9c31a0d1-f4cf-43e9-b5d1-0a9ba946c37b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Move AdGroup to another Campaign

2016-02-03 Thread Jan Šrámek
Hello i'm trying to change campaign id by using mutate request 
on AdGroupService. But i recieve unchanged adgroup object.
My method:
public function changeAdgroupCampaign($adGroupId, $campaignId)
{
// Get the service, which loads the required classes.
$adGroupService = $this->_getService('AdGroupService');

// Create ad group with new status.
$adGroup = new \AdGroup();
$adGroup->id = $adGroupId;
$adGroup->CampaignId = $campaignId;

// Create operations.
$operation = new \AdGroupOperation();
$operation->operand = $adGroup;
$operation->operator = 'SET';
$operations = array($operation);

// Make the mutate request.
$result = $adGroupService->mutate($operations);

return $result;
}

Thank you for any advices

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/ad04ac3a-010f-4966-8b5a-5286ec801941%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Move adgroup to another campaign

2016-02-03 Thread Jan Šrámek
Hello, I'm trying to change campaign id in adgroup object by using mutate 
request (operator 'SET'). But I recieve only the same object with no 
changes.

$adGroup = new \AdGroup();
$adGroup->id = # ID of existing group
$adGroup->CampaignId = #new camp. ID

Thank you for any advices.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/d631cc25-3535-4e89-b9f3-31ef6b415401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.