Google Ads Api budget Creation

160 views
Skip to first unread message

talha wassan

unread,
Sep 27, 2023, 7:37:30 AM9/27/23
to Google Ads API and AdWords API Forum
Hi there hope you find this well, i have just finished creating the campaignbudget campaign adgroups and ad but im missing so much fields in each of them like bidding strategy keywords and more and more fields first of all i want to know the correct sequence of all these modules by modules i meant campaigns budget adgroup ads bidding strategies keywords etc my first problem in create campaign budget is that it has a field name  alignedBiddingStrategyId which states as following:
ID of the portfolio bidding strategy that this shared campaign budget is aligned with. When a bidding strategy and a campaign budget are aligned, they are attached to the same set of campaigns. After a campaign budget is aligned with a bidding strategy, campaigns that are added to the campaign budget must also use the aligned bidding strategy
to achieve this id i referred to this endpoint https://developers.google.com/google-ads/api/rest/reference/rest/v14/BiddingStrategy i created the bidding strategy and added its id value in the campaignBudget field alignedBiddingStrategyId and i got the following error "Field 'aligned_bidding_strategy_id' cannot be modified by 'CREATE' operation. and bidding Strategy also has a field named  alignedCampaignBudgetId and if i pass my budgetid there its give me the same response cannot be modified by create operation Immutable i want to know how i can get  alignedBiddingStrategyId  value in my campaign budget is there any way to generate this id and vice versa in the bidding strategy part where it requires alignedCampaignBudgetID looking forward for a solution thanks.
"

Google Ads API Forum Advisor

unread,
Sep 29, 2023, 9:10:55 AM9/29/23
to talha.w...@gmail.com, adwor...@googlegroups.com
Hi,

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

By reviewing your concern, I understand that you've encountered an error message stating "Field 'aligned_bidding_strategy_id' cannot be modified by 'CREATE' operation". Additionally, you're seeking confirmation about whether your approach aligns with the Google Ads modules.

Please note that ‘alignedBiddingStrategyId’ and ‘alignedCampaignBudgetId’ are immutable fields, which means that they cannot be modified after the budget or bidding strategy is created. This is because these fields are used to link the budget and bidding strategy together.

The correct sequence of all the Google Ads modules is as follows:
  1. Campaign budget: This is where you set the budget for your campaigns.
  2. Campaign: This is where you create and manage your campaigns.
  3. Ad group: This is where you group your ads together.
  4. Ad: This is where you create your text, image, or video ads.
  5. Bidding strategy: This is where you set how much you want to bid on keywords and other factors.
  6. Keywords: These are the words or phrases that people search for that trigger your ads.
After following the above sequence, if you are still facing any issues kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end and uncropped UI screenshot of where you are facing the issue.

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.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

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:_00D1U1174p._5004Q2p1kCt:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages