Create Performance Max with Shopping Setting Object

53 views
Skip to first unread message

Fadime Günay

unread,
Nov 23, 2022, 8:32:09 AM11/23/22
to Google Ads API and AdWords API Forum
Hi,

We create Performance Max Campaign with google ads api (v11). 
----
new MutateOperation([
'campaign_operation' => new CampaignOperation([
'create' => new Campaign([
'name' => self::PERFORMANCE_MAX_CAMPAIGN_NAME,
'resource_name' => ResourceNames::forCampaign(
$customer_id,
self::PERFORMANCE_MAX_CAMPAIGN_TEMPORARY_ID
),
'campaign_budget' => ResourceNames::forCampaignBudget(
$customer_id,
self::BUDGET_TEMPORARY_ID
),
'status' => CampaignStatus::ENABLED,
'advertising_channel_type' => AdvertisingChannelType::PERFORMANCE_MAX,
'maximize_conversion_value' => new MaximizeConversionValue(),
'url_expansion_opt_out' => false,
'start_date' => date('Ymd')
])
])
]);
----- 
We send request like this,  return succes response from request. But when  added Shopping Setting Object inside new Campaign object, get INVALID_ARGUMENT Error for some assert group operations. that error as example;  NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET,  NOT_ENOUGH_LONG_HEADLINE_ASSET.
---
new MutateOperation([
'campaign_operation' => new CampaignOperation([
'create' => new Campaign([
'name' => self::PERFORMANCE_MAX_CAMPAIGN_NAME,
'resource_name' => ResourceNames::forCampaign(
$customer_id,
self::PERFORMANCE_MAX_CAMPAIGN_TEMPORARY_ID
),
'campaign_budget' => ResourceNames::forCampaignBudget(
$customer_id,
self::BUDGET_TEMPORARY_ID
),
'status' => CampaignStatus::ENABLED,
'advertising_channel_type' => AdvertisingChannelType::PERFORMANCE_MAX,
'maximize_conversion_value' => new MaximizeConversionValue(),
'url_expansion_opt_out' => false,
'shopping_setting' => new Campaign\ShoppingSetting([
'sales_country' => 'TR',
'merchant_id' => $merchant_id,
'enable_local' => true
]),
'start_date' => date('Ymd')
])
])
]);
---
Us intention create Seller and Comparison Shopping Service header with Merchant Center Account inside Performance Max Campaign. 

Can you help us about this subject?

Google Ads API Forum Advisor

unread,
Nov 23, 2022, 10:05:08 AM11/23/22
to fadime...@ideasoft.com.tr, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? 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.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2gS54V:ref
Reply all
Reply to author
Forward
0 new messages