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?