For updation , I am creating a new budget resource and then updating the 
campaign.campaign_budget with new budget resource.
On Friday 13 September 2024 at 13:29:15 UTC+5:30 girish jain wrote:

> Hi team,
> I am already using the explicitly shared variable as false. 
> budget := googleCampaignsDataModel.Budget / (durationFloat + 1)
> budgetInMicros := int64(budget) * int64(1000000)
> budgetOperation := &servicespb.CampaignBudgetOperation{
> Operation: &servicespb.CampaignBudgetOperation_Create{
> Create: &resources.CampaignBudget{
> Name: &budgetName,
> DeliveryMethod: enums.BudgetDeliveryMethodEnum_BudgetDeliveryMethod(2),
> AmountMicros: &budgetInMicros,
> ExplicitlyShared: &varFalse,
> },
> },
> }
>
> and using the same campaign operation as mentioned in the doc
> campaignOperation := &servicespb.CampaignOperation{
> Operation: &servicespb.CampaignOperation_Create{
> Create: &resources.Campaign{
> Name: &campaignName,
> AdvertisingChannelType: 
> enums.AdvertisingChannelTypeEnum_AdvertisingChannelType(10), // 
> PERFORMANCE_MAX
> Status: enums.CampaignStatusEnum_PAUSED,
> CampaignBudget: &budgetResourceName,
> NetworkSettings: &resources.Campaign_NetworkSettings{
> TargetGoogleSearch: &varTrue,
> },
> StartDate: &startDate,
> EndDate: &endDate,
> CampaignBiddingStrategy: &resources.Campaign_MaximizeConversions{},
> },
> },
> }
> On Thursday 12 September 2024 at 22:19:12 UTC+5:30 Google Ads API Forum 
> Advisor wrote:
>
>> Hi,
>>
>> Thank you for reaching out to the Google Ads API support team.
>>
>> Kindly note that, as this is a Performance Max (PMax) campaign that you 
>> are trying to update, according to the Google Ads API documentation for PMax 
>> Campaign Budgets 
>> <https://developers.google.com/google-ads/api/docs/performance-max/create-campaign#create_a_budget>,
>>  it 
>> states that "The budget cannot be shared".
>>
>> Since you are attempting to set the campaign_budget field as a resource 
>> name, it implies that you are trying to set a shared budget onto the 
>> campaign. If you want to change the budget setting for this campaign, 
>> you'll need to modify the campaign.campaign_budget fields, as is 
>> illustrated in this documentation 
>> <https://developers.google.com/google-ads/api/docs/performance-max/create-campaign#create_a_budget>
>> .
>>
>> If you are still facing issues, even after following the given 
>> suggestion, please share the complete API logs (request 
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>> , response 
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>> , request-id 
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>>  and request header 
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
>>  
>> generated on your device with us. 
>>
>> If you are using a client library and haven't enabled the logging yet, I 
>> would request you to enable logging for the specific client library that 
>> you are using. You can refer to the guides Java 
>> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>
>> , .Net 
>> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
>> , PHP 
>> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
>> , Python 
>> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>
>> , Ruby 
>> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging>
>>  or Perl 
>> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging> 
>> to 
>> enable logging at your end. You can enable logging via the curl command by 
>> using the -i flag for REST interface requests.
>>
>> You can send the details via *Reply privately to the author option*, or 
>> *direct 
>> private reply* to this email.
>>   
>> This message is in relation to case 
>> "ref:!00D1U01174p.!5004Q02vG4og:ref" (ADR-00267964)
>>
>> Thanks,
>>   
>> [image: Google Logo] Google Ads API Team 
>>
>>
>>
>>  
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a1c747ea-0b35-40e1-9570-c7dcc1238efcn%40googlegroups.com.
  • Un... Aromal S
    • ... girish jain
      • ... girish jain
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to