File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
packages/destination-actions/src/destinations/amazon-conversions-api Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ const destination: DestinationDefinition<Settings> = {
4343 return await request < RefreshTokenResponse > ( `${ settings . region } /v2/profiles` , {
4444 method : 'GET' ,
4545 headers : {
46- 'Content-Type' : 'application/json'
46+ 'Content-Type' : 'application/json' ,
47+ 'Amazon-Advertising-API-ClientID' : process . env . ACTIONS_AMAZON_CONVERSIONS_API_CLIENT_ID || ''
4748 } ,
4849 timeout : 2500
4950 } )
@@ -56,8 +57,7 @@ const destination: DestinationDefinition<Settings> = {
5657 extendRequest ( { auth } ) {
5758 return {
5859 headers : {
59- authorization : `Bearer ${ auth ?. accessToken } ` ,
60- 'Amazon-Ads-ClientId' : process . env . ACTIONS_AMAZON_CONVERSIONS_API_CLIENT_ID || ''
60+ authorization : `Bearer ${ auth ?. accessToken } `
6161 }
6262 }
6363 } ,
Original file line number Diff line number Diff line change @@ -149,7 +149,8 @@ export async function sendEventsRequest<ImportConversionEventsResponse>(
149149 events : events
150150 } ,
151151 headers : {
152- 'Amazon-Ads-AccountId' : settings . advertiserId
152+ 'Amazon-Ads-AccountId' : settings . advertiserId ,
153+ 'Amazon-Ads-ClientId' : process . env . ACTIONS_AMAZON_CONVERSIONS_API_CLIENT_ID || ''
153154 } ,
154155 timeout : 25000 ,
155156 throwHttpErrors : false
You can’t perform that action at this time.
0 commit comments