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?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/41242ed5-aca7-4ec6-bb4f-bab87edfc3b6n%40googlegroups.com.