RE: "This operation is not permitted on this campaign type" when trying to set bidding strategy on a smart campaign

2022-12-22 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Bevan,

Thank you for raising this concern to the Google Ads API Forum.

It seems that your concerns are discussed in this document. However, to better 
check this in our end, could you please provide the complete API request and 
response logs with request ID and request header that generated on your end?

If you haven't yet, logging can be enabled by navigating to the Client 
libraries > Your client library (ex. Java) > Logging documentation, which you 
can access from this link.

For security purposes, you can provide it via the Reply privately to author 
option. If this option is not available, then send it instead on this email 
address googleadsapi-supp...@google.com.

Best regards,

Jinky
Google Ads API Team
ref:_00D1U1174p._5004Q2hMk6F: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 
"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/v0sid0RNAXTE00MdV04XEzTK-qpoCeKmviKQ%40sfdc.net.


"This operation is not permitted on this campaign type" when trying to set bidding strategy on a smart campaign

2022-12-22 Thread Bevan Wentzel
When I try to set the bidding strategy on a smart campaign:
```
campaign.bidding_strategy_type = (
client.enums.BiddingStrategyTypeEnum[MANUAL_CPC]
)
campaign.manual_cpc.enhanced_cpc_enabled = True
```
I get an error "This operation is not permitted on this campaign type... On 
field: campaign_bidding_strategy"

When I create the campaign without setting a bidding strategy on the smart 
campaign, the bid strategy type shows as "Invalid" and the status as "bid 
strategy misconfigured"

Any ideas?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/49fbda0d-a51d-4764-93cf-b78a965db2e0n%40googlegroups.com.


Re: Throw “This operation is not permitted on this campaign type” when I create an AdGroupAd

2019-08-14 Thread MCC智美
Hello,

Thank you for your guidance.This problem has been solved.



On Wednesday, August 14, 2019 at 4:01:59 AM UTC+8, adsapiforumadvisor wrote:
>
> Hello,
>
> Since you are using the APP campaigns it wont support the specific ad 
> status field. Since the Ads  for APP campaings shows using the asserts 
> uploaded and they cannot be paused. So you can pause at the AdGroup and 
> campaign levels only for APP campaigns. Please let me know if you have any 
> further questions.
>
> This part of code snippet causing the issue:  " 'status' => 
> *AdGroupAdStatus::PAUSED*,"
>
> Regards,
> Sai Teja, Google Ads API Team
>  
>
> ref:_00D1U1174p._5001UEIiNN: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/082ab63b-1942-464c-9799-2f8a18eaa2a2%40googlegroups.com.


RE: Throw “This operation is not permitted on this campaign type” when I create an AdGroupAd

2019-08-13 Thread Google Ads API Forum Advisor Prod
Hello,

Since you are using the APP campaigns it wont support the specific ad status 
field. Since the Ads  for APP campaings shows using the asserts uploaded and 
they cannot be paused. So you can pause at the AdGroup and campaign levels only 
for APP campaigns. Please let me know if you have any further questions.

This part of code snippet causing the issue:  " 'status' => 
AdGroupAdStatus::PAUSED,"

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UEIiNN: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/UdAbd0PW6YAN00L_IHUhu9SOu5NbAS1sdd3g%40sfdc.net.


Throw “This operation is not permitted on this campaign type” when I create an AdGroupAd

2019-08-12 Thread MCC智美
Hello,

When I call the Google Ads API(V2) to create an AdGroupAd, throw an error 
about “This operation is not permitted on this campaign type” .[image: 
1565602956447.jpg]

before this,I have set the Campaign 
advertising_channel_type=MULTI_CHANNEL,advertising_channel_sub_type=APP_CAMPAIGN,AdGroup
 
type=UNSPECIFIED.


and here is my code about create AdGroupAd:

public static function runExample(
GoogleAdsClient $googleAdsClient,
$customerId,
$adGroupId
) {
$adGroupResourceName = new StringValue(['value' => 
ResourceNames::forAdGroup($customerId, $adGroupId)]);

$asset_operations = [];
$ad_operations = [];

$asset = new Asset([
'youtube_video_asset' => new YoutubeVideoAsset([
'youtube_video_id' => new StringValue(['value' => 
'adZeOuXpqIQ'])
]),
'type' => AssetType::YOUTUBE_VIDEO,
]);
$assetOperation = new AssetOperation();
$assetOperation->setCreate($asset);
$asset_operations[] = $assetOperation;

$assetServiceClient = $googleAdsClient->getAssetServiceClient();
$response = 
$assetServiceClient->mutateAssets($customerId,$asset_operations);
foreach ($response->getResults() as $asset) {
$assetResourceName = $asset->getResourceName();
}

$appAdInfo = new AppAdInfo([
'youtube_videos'=>[
new AdVideoAsset([
'asset'=>new StringValue(['value' => 
$assetResourceName]),
])
],
]);

//Sets the expanded text ad info on an Ad.
$ad = new Ad([
'type'=>AdType::APP_AD,
'app_ad'=>$appAdInfo,
]);

// Creates an ad group ad to hold the above ad.
$adGroupAd = new AdGroupAd([
'ad_group' => $adGroupResourceName,
'status' => AdGroupAdStatus::PAUSED,
'ad'=>$ad,
]);

// Creates an ad group ad operation and add it to the operations 
array.
$adGroupAdOperation = new AdGroupAdOperation();
$adGroupAdOperation->setCreate($adGroupAd);
$ad_operations[] = $adGroupAdOperation;

// Issues a mutate request to add the ad group ads.
$adGroupAdServiceClient = 
$googleAdsClient->getAdGroupAdServiceClient();
$response = $adGroupAdServiceClient->mutateAdGroupAds($customerId, 
$ad_operations);
foreach ($response->getResults() as $addedAdGroupAd) {
/** @var AdGroupAd $addedAdGroupAd */
printf(
"Expanded text ad was created with resource name: '%s'%s",
$addedAdGroupAd->getResourceName(),
PHP_EOL
);
}
}

}



How to solve this problem? 

Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b7cf1599-b42f-472b-8f7d-c776f2a06547%40googlegroups.com.


Re: This operation is not permitted on this campaign type

2019-08-08 Thread MCC智美
Hello,
This problem has been solved. Thank you for your guidance.

On Thursday, August 8, 2019 at 10:31:10 PM UTC+8, adsapiforumadvisor wrote:
>
> Hello, 
>
> Thank you for reaching out to support and sharing the details to 
> troubleshoot the issue. Based on the documentation to create the Universal 
> App Campaigns 
> 
>  it 
> looks like you are missing some of the fields required. The bidding 
> strategy types that are supported are listed in the Preparation section of 
> the 
> guide 
> .
>  
> I have attached the request and response logs from my testing for your 
> reference. Could you please give this a try and let me know if you 
> encounter any issues?
>
> Regards,
> Bharani, Google Ads API Team
>
> ref:_00D1U1174p._5001UEILyU: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/740df0cf-6ed5-472d-9c0e-60fd43a83569%40googlegroups.com.


RE: This operation is not permitted on this campaign type

2019-08-08 Thread Google Ads API Forum Advisor Prod
Hello,

Thank you for reaching out to support and sharing the details to troubleshoot 
the issue. Based on the documentation to create the Universal App Campaigns it 
looks like you are missing some of the fields required. The bidding strategy 
types that are supported are listed in the Preparation section of the guide. I 
have attached the request and response logs from my testing for your reference. 
Could you please give this a try and let me know if you encounter any issues?

Regards,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UEILyU: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/q6t2b0PVX9N800ApoqVSslR8yo_L3h3U7CVA%40sfdc.net.


Sample_Logs.rtf
Description: RTF file